diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 53e9d53388f7..629db40b2adf 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -316,7 +316,7 @@ com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.2.0;1.3.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-healthbot;1.1.0;1.2.0 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-netapp;2.1.0;2.2.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-netapp;2.1.0;2.2.0 com.azure.resourcemanager:azure-resourcemanager-storagecache;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-redisenterprise;2.1.0;2.2.0-beta.1 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 e8ee13cd4055..7429566eb198 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,14 +1,140 @@ # Release History -## 2.2.0-beta.2 (Unreleased) +## 2.2.0 (2026-04-20) -### 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-01-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.SvmPeerCommandResponse` was modified -### Other Changes +* `svmPeeringCommand()` was removed + +#### `models.ClusterPeerCommandResponse` was modified + +* `peerAcceptCommand()` was removed + +### Features Added + +* `models.BucketPatch` was added + +* `models.EncryptionState` was added + +* `models.Bucket$DefinitionStages` was added + +* `models.KerberosState` was added + +* `models.OnCertificateConflictAction` was added + +* `models.CacheLifeCycleState` was added + +* `models.SmbSettings` was added + +* `models.BucketServerProperties` was added + +* `models.Cache$UpdateStages` was added + +* `models.LdapServerType` was added + +* `models.VolumeLanguage` was added + +* `models.CacheMountTargetProperties` was added + +* `models.BucketPermissions` was added + +* `models.CifsChangeNotifyState` was added + +* `models.SvmPeerCommandResponseProperties` was added + +* `models.BucketPatchPermissions` was added + +* `models.Bucket$Definition` was added + +* `models.Bucket` was added + +* `models.CacheProperties` was added + +* `models.NfsUser` was added + +* `models.BucketGenerateCredentials` was added + +* `models.Caches` was added + +* `models.Cache$Definition` was added + +* `models.CacheProvisioningState` was added + +* `models.OriginClusterInformation` was added + +* `models.BucketCredentialsExpiry` was added + +* `models.CacheUpdate` was added + +* `models.AzureKeyVaultDetails` was added + +* `models.PeeringPassphrases` was added + +* `models.Bucket$Update` was added + +* `models.LdapState` was added + +* `models.Cache$Update` was added + +* `models.Cache` was added + +* `models.CachePropertiesExportPolicy` was added + +* `models.ProtocolTypes` was added + +* `models.CifsUser` was added + +* `models.BucketServerPatchProperties` was added + +* `models.CacheUpdateProperties` was added + +* `models.CredentialsStatus` was added + +* `models.SmbEncryptionState` was added + +* `models.ExternalReplicationSetupStatus` was added + +* `models.GlobalFileLockingState` was added + +* `models.Cache$DefinitionStages` was added + +* `models.Bucket$UpdateStages` was added + +* `models.Buckets` was added + +* `models.FileSystemUser` was added + +* `models.ClusterPeerCommandResponseProperties` was added + +* `models.EnableWriteBackState` was added + +* `models.CredentialsAkvDetails` was added + +* `models.CertificateAkvDetails` was added + +#### `models.ReplicationObject` was modified + +* `externalReplicationSetupInfo()` was added +* `externalReplicationSetupStatus()` was added +* `mirrorState()` was added +* `relationshipStatus()` was added + +#### `models.SvmPeerCommandResponse` was modified + +* `properties()` was added + +#### `NetAppFilesManager` was modified + +* `buckets()` was added +* `caches()` was added + +#### `models.ClusterPeerCommandResponse` was modified + +* `properties()` was added ## 2.2.0-beta.1 (2026-03-13) diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index 3f6d08a2c2d5..6318ba25be6b 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 2025-12-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-01-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.2.0-beta.1 + 2.2.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md index 2fa3a8bc55aa..ce734a0a5c55 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md +++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md @@ -14,15 +14,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) @@ -77,80 +68,12 @@ - [CreateOrUpdate](#caches_createorupdate) - [Delete](#caches_delete) - [Get](#caches_get) -- [ListByCapacityPools](#caches_listbycapacitypools) +- [List](#caches_list) - [ListPeeringPassphrases](#caches_listpeeringpassphrases) - [PoolChange](#caches_poolchange) - [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) @@ -281,7 +204,7 @@ import java.util.Arrays; */ public final class AccountsChangeKeyVaultSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_ChangeKeyVault.json + * x-ms-original-file: 2026-01-01/Accounts_ChangeKeyVault.json */ /** * Sample code: Accounts_ChangeKeyVault. @@ -306,7 +229,6 @@ public final class AccountsChangeKeyVaultSamples { ```java import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.azure.resourcemanager.netapp.models.LdapConfiguration; import java.util.Arrays; /** @@ -314,7 +236,7 @@ import java.util.Arrays; */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -326,7 +248,7 @@ public final class AccountsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-15-preview/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: 2026-01-01/Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. @@ -351,25 +273,6 @@ public final class AccountsCreateOrUpdateSamples { .withLdapOverTls(false))) .create(); } - - /* - * x-ms-original-file: 2025-12-15-preview/Accounts_CreateOrUpdateLdapConfig.json - */ - /** - * Sample code: Accounts_CreateOrUpdateLdapConfig. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountsCreateOrUpdateLdapConfig(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.accounts() - .define("account1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withLdapConfiguration(new LdapConfiguration().withDomain("example.com") - .withLdapServers(Arrays.asList("192.0.2.1", "192.0.2.2")) - .withLdapOverTLS(false)) - .create(); - } } ``` @@ -381,7 +284,7 @@ public final class AccountsCreateOrUpdateSamples { */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_Delete.json + * x-ms-original-file: 2026-01-01/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. @@ -402,7 +305,7 @@ public final class AccountsDeleteSamples { */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_Get.json + * x-ms-original-file: 2026-01-01/Accounts_Get.json */ /** * Sample code: Accounts_Get. @@ -423,7 +326,7 @@ public final class AccountsGetByResourceGroupSamples { */ public final class AccountsGetChangeKeyVaultInformationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_GetChangeKeyVaultInformation.json + * x-ms-original-file: 2026-01-01/Accounts_GetChangeKeyVaultInformation.json */ /** * Sample code: Accounts_GetChangeKeyVaultInformation. @@ -445,7 +348,7 @@ public final class AccountsGetChangeKeyVaultInformationSamples { */ public final class AccountsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_ListBySubscription.json + * x-ms-original-file: 2026-01-01/Accounts_ListBySubscription.json */ /** * Sample code: Accounts_ListBySubscription. @@ -466,7 +369,7 @@ public final class AccountsListSamples { */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_List.json + * x-ms-original-file: 2026-01-01/Accounts_List.json */ /** * Sample code: Accounts_List. @@ -487,7 +390,7 @@ public final class AccountsListByResourceGroupSamples { */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_RenewCredentials.json + * x-ms-original-file: 2026-01-01/Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. @@ -510,7 +413,7 @@ import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; */ public final class AccountsTransitionToCmkSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_TransitionEncryptionKey.json + * x-ms-original-file: 2026-01-01/Accounts_TransitionEncryptionKey.json */ /** * Sample code: Accounts_MigrateEncryptionKey. @@ -540,7 +443,7 @@ import java.util.Map; */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_Update.json + * x-ms-original-file: 2026-01-01/Accounts_Update.json */ /** * Sample code: Accounts_Update. @@ -568,191 +471,6 @@ public final class AccountsUpdateSamples { } ``` -### ActiveDirectoryConfigs_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigProperties; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.netapp.models.SecretPassword; -import com.azure.resourcemanager.netapp.models.SecretPasswordIdentity; -import com.azure.resourcemanager.netapp.models.SecretPasswordKeyVaultProperties; -import com.azure.resourcemanager.netapp.models.UserAssignedIdentity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ActiveDirectoryConfigs CreateOrUpdate. - */ -public final class ActiveDirectoryConfigsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ActiveDirectoryConfigs_CreateOrUpdate.json - */ - /** - * Sample code: ActiveDirectoryConfigs_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - activeDirectoryConfigsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs() - .define("adconfig1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withTags(mapOf("ac-tag1", "activeDirectoryConfig1")) - .withProperties(new ActiveDirectoryConfigProperties().withUserName("admin1") - .withDns(Arrays.asList("10.10.10.4", "10.10.10.5")) - .withSmbServerName("smbServer") - .withOrganizationalUnit("OU=Computers,DC=corp,DC=contoso,DC=com") - .withSite("Default-First-Site-Name") - .withBackupOperators(Arrays.asList("backupOp1")) - .withAdministrators(Arrays.asList("admin1")) - .withSecurityOperators(Arrays.asList("secOp1")) - .withDomain("example.net") - .withSecretPassword(new SecretPassword() - .withKeyVaultProperties( - new SecretPasswordKeyVaultProperties().withKeyVaultUri("fakeTokenPlaceholder") - .withSecretName("fakeTokenPlaceholder")) - .withIdentity(new SecretPasswordIdentity().withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity1")))) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity1", - new UserAssignedIdentity()))) - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} -``` - -### ActiveDirectoryConfigs_Delete - -```java -/** - * Samples for ActiveDirectoryConfigs Delete. - */ -public final class ActiveDirectoryConfigsDeleteSamples { - /* - * x-ms-original-file: 2025-12-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: 2025-12-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: 2025-12-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: 2025-12-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: 2025-12-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 @@ -761,7 +479,7 @@ public final class ActiveDirectoryConfigsUpdateSamples { */ public final class BackupPoliciesCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupPolicies_Create.json + * x-ms-original-file: 2026-01-01/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. @@ -790,7 +508,7 @@ public final class BackupPoliciesCreateSamples { */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupPolicies_Delete.json + * x-ms-original-file: 2026-01-01/BackupPolicies_Delete.json */ /** * Sample code: BackupPolicies_Delete. @@ -812,7 +530,7 @@ public final class BackupPoliciesDeleteSamples { */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupPolicies_Get.json + * x-ms-original-file: 2026-01-01/BackupPolicies_Get.json */ /** * Sample code: BackupPolicies_Get. @@ -834,7 +552,7 @@ public final class BackupPoliciesGetSamples { */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupPolicies_List.json + * x-ms-original-file: 2026-01-01/BackupPolicies_List.json */ /** * Sample code: BackupPolicies_List. @@ -857,7 +575,7 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy; */ public final class BackupPoliciesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupPolicies_Update.json + * x-ms-original-file: 2026-01-01/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. @@ -886,7 +604,7 @@ public final class BackupPoliciesUpdateSamples { */ public final class BackupVaultsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupVaults_Create.json + * x-ms-original-file: 2026-01-01/BackupVaults_Create.json */ /** * Sample code: BackupVault_CreateOrUpdate. @@ -911,7 +629,7 @@ public final class BackupVaultsCreateOrUpdateSamples { */ public final class BackupVaultsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupVaults_Delete.json + * x-ms-original-file: 2026-01-01/BackupVaults_Delete.json */ /** * Sample code: BackupVaults_Delete. @@ -932,7 +650,7 @@ public final class BackupVaultsDeleteSamples { */ public final class BackupVaultsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupVaults_Get.json + * x-ms-original-file: 2026-01-01/BackupVaults_Get.json */ /** * Sample code: BackupVaults_Get. @@ -953,7 +671,7 @@ public final class BackupVaultsGetSamples { */ public final class BackupVaultsListByNetAppAccountSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupVaults_List.json + * x-ms-original-file: 2026-01-01/BackupVaults_List.json */ /** * Sample code: BackupVaults_List. @@ -978,7 +696,7 @@ import java.util.Map; */ public final class BackupVaultsUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupVaults_Update.json + * x-ms-original-file: 2026-01-01/BackupVaults_Update.json */ /** * Sample code: BackupVaults_Update. @@ -1014,7 +732,7 @@ public final class BackupVaultsUpdateSamples { */ public final class BackupsCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderBackupVault_Create.json + * x-ms-original-file: 2026-01-01/BackupsUnderBackupVault_Create.json */ /** * Sample code: BackupsUnderBackupVault_Create. @@ -1041,7 +759,7 @@ public final class BackupsCreateSamples { */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderBackupVault_Delete.json + * x-ms-original-file: 2026-01-01/BackupsUnderBackupVault_Delete.json */ /** * Sample code: BackupsUnderBackupVault_Delete. @@ -1063,7 +781,7 @@ public final class BackupsDeleteSamples { */ public final class BackupsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderBackupVault_Get.json + * x-ms-original-file: 2026-01-01/BackupsUnderBackupVault_Get.json */ /** * Sample code: BackupsUnderBackupVault_Get. @@ -1085,7 +803,7 @@ public final class BackupsGetSamples { */ public final class BackupsGetLatestStatusSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_LatestBackupStatus.json + * x-ms-original-file: 2026-01-01/Volumes_LatestBackupStatus.json */ /** * Sample code: Volumes_BackupStatus. @@ -1107,7 +825,7 @@ public final class BackupsGetLatestStatusSamples { */ public final class BackupsGetVolumeLatestRestoreStatusSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_LatestRestoreStatus.json + * x-ms-original-file: 2026-01-01/Volumes_LatestRestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. @@ -1130,14 +848,14 @@ public final class BackupsGetVolumeLatestRestoreStatusSamples { */ public final class BackupsListByVaultSamples { /* - * x-ms-original-file: 2025-12-15-preview/Backups_ListByVault.json + * x-ms-original-file: 2026-01-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); } } @@ -1153,7 +871,7 @@ import com.azure.resourcemanager.netapp.models.Backup; */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderBackupVault_Update.json + * x-ms-original-file: 2026-01-01/BackupsUnderBackupVault_Update.json */ /** * Sample code: BackupsUnderBackupVault_Update. @@ -1179,7 +897,7 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; */ public final class BackupsUnderAccountMigrateBackupsSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderAccount_Migrate.json + * x-ms-original-file: 2026-01-01/BackupsUnderAccount_Migrate.json */ /** * Sample code: BackupsUnderAccount_Migrate. @@ -1206,7 +924,7 @@ import java.util.Arrays; */ public final class BackupsUnderBackupVaultRestoreFilesSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderBackupVault_SingleFileRestore.json + * x-ms-original-file: 2026-01-01/BackupsUnderBackupVault_SingleFileRestore.json */ /** * Sample code: Backups_SingleFileRestore. @@ -1234,7 +952,7 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; */ public final class BackupsUnderVolumeMigrateBackupsSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderVolume_Migrate.json + * x-ms-original-file: 2026-01-01/BackupsUnderVolume_Migrate.json */ /** * Sample code: BackupsUnderVolume_Migrate. @@ -1267,7 +985,7 @@ import com.azure.resourcemanager.netapp.models.OnCertificateConflictAction; */ public final class BucketsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Buckets_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Buckets_CreateOrUpdate.json */ /** * Sample code: Buckets_CreateOrUpdate. @@ -1282,1678 +1000,441 @@ public final class BucketsCreateOrUpdateSamples { .withFileSystemUser(new FileSystemUser().withNfsUser(new NfsUser().withUserId(1001L).withGroupId(1000L))) .withServer(new BucketServerProperties().withFqdn("fullyqualified.domainname.com") .withCertificateObject("") - .withOnCertificateConflictAction(OnCertificateConflictAction.UPDATE)) - .withPermissions(BucketPermissions.READ_ONLY) - .create(); - } - - /* - * x-ms-original-file: 2025-12-15-preview/Buckets_CreateOrUpdateWithAkv.json - */ - /** - * Sample code: Buckets_CreateOrUpdateWithAkv. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsCreateOrUpdateWithAkv(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .define("bucket1") - .withExistingVolume("myRG", "account1", "pool1", "volume1") - .withPath("/path") - .withFileSystemUser(new FileSystemUser().withNfsUser(new NfsUser().withUserId(1001L).withGroupId(1000L))) - .withServer(new BucketServerProperties().withFqdn("fullyqualified.domainname.com") - .withOnCertificateConflictAction(OnCertificateConflictAction.FAIL)) - .withPermissions(BucketPermissions.READ_ONLY) - .withAkvDetails(new AzureKeyVaultDetails() - .withCertificateAkvDetails( - new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder") - .withCertificateName("my-certificate")) - .withCredentialsAkvDetails( - new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder") - .withSecretName("fakeTokenPlaceholder"))) - .create(); - } -} -``` - -### Buckets_Delete - -```java -/** - * Samples for Buckets Delete. - */ -public final class BucketsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Buckets_Delete.json - */ - /** - * Sample code: Buckets_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets().delete("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); - } -} -``` - -### Buckets_GenerateAkvCredentials - -```java -import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; - -/** - * Samples for Buckets GenerateAkvCredentials. - */ -public final class BucketsGenerateAkvCredentialsSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Buckets_GenerateAkvCredentials.json - */ - /** - * Sample code: Buckets_GenerateAkvCredentials. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsGenerateAkvCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .generateAkvCredentials("myRG", "account1", "pool1", "volume1", "bucket1", - new BucketCredentialsExpiry().withKeyPairExpiryDays(3), com.azure.core.util.Context.NONE); - } -} -``` - -### Buckets_GenerateCredentials - -```java -import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; - -/** - * Samples for Buckets GenerateCredentials. - */ -public final class BucketsGenerateCredentialsSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Buckets_GenerateCredentials.json - */ - /** - * Sample code: Buckets_GenerateCredentials. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsGenerateCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .generateCredentialsWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", - new BucketCredentialsExpiry().withKeyPairExpiryDays(3), com.azure.core.util.Context.NONE); - } -} -``` - -### Buckets_Get - -```java -/** - * Samples for Buckets Get. - */ -public final class BucketsGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Buckets_Get.json - */ - /** - * Sample code: Buckets_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); - } -} -``` - -### Buckets_List - -```java -/** - * Samples for Buckets List. - */ -public final class BucketsListSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Buckets_List.json - */ - /** - * Sample code: Buckets_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} -``` - -### Buckets_RefreshCertificate - -```java -/** - * Samples for Buckets RefreshCertificate. - */ -public final class BucketsRefreshCertificateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Buckets_RefreshCertificate.json - */ - /** - * Sample code: Buckets_RefreshCertificate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsRefreshCertificate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .refreshCertificate("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); - } -} -``` - -### Buckets_Update - -```java -import com.azure.resourcemanager.netapp.models.AzureKeyVaultDetails; -import com.azure.resourcemanager.netapp.models.Bucket; -import com.azure.resourcemanager.netapp.models.BucketPatchPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; -import com.azure.resourcemanager.netapp.models.CertificateAkvDetails; -import com.azure.resourcemanager.netapp.models.CredentialsAkvDetails; -import com.azure.resourcemanager.netapp.models.OnCertificateConflictAction; - -/** - * Samples for Buckets Update. - */ -public final class BucketsUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Buckets_Update.json - */ - /** - * Sample code: Buckets_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - Bucket resource = manager.buckets() - .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com") - .withCertificateObject("") - .withOnCertificateConflictAction(OnCertificateConflictAction.UPDATE)) - .withPermissions(BucketPatchPermissions.READ_WRITE) - .apply(); - } - - /* - * x-ms-original-file: 2025-12-15-preview/Buckets_UpdateWithAkv.json - */ - /** - * Sample code: Buckets_UpdateWithAkv. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsUpdateWithAkv(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - Bucket resource = manager.buckets() - .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com") - .withOnCertificateConflictAction(OnCertificateConflictAction.FAIL)) - .withPermissions(BucketPatchPermissions.READ_ONLY) - .withAkvDetails(new AzureKeyVaultDetails() - .withCertificateAkvDetails( - new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder") - .withCertificateName("my-certificate")) - .withCredentialsAkvDetails( - new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder") - .withSecretName("fakeTokenPlaceholder"))) - .apply(); - } -} -``` - -### Caches_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.CacheProperties; -import com.azure.resourcemanager.netapp.models.EncryptionKeySource; -import com.azure.resourcemanager.netapp.models.LdapServerType; -import com.azure.resourcemanager.netapp.models.LdapState; -import com.azure.resourcemanager.netapp.models.OriginClusterInformation; -import java.util.Arrays; - -/** - * Samples for Caches CreateOrUpdate. - */ -public final class CachesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Caches_CreateOrUpdate.json - */ - /** - * Sample code: Caches_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void cachesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.caches() - .define("cache1") - .withRegion("eastus") - .withExistingCapacityPool("myRG", "account1", "pool1") - .withProperties(new CacheProperties().withFilePath("cache-west-us2-01") - .withSize(107374182400L) - .withCacheSubnetResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/cacheVnet/subnets/cacheSubnet1") - .withPeeringSubnetResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/icLifVnet/subnets/peeringSubnet1") - .withEncryptionKeySource(EncryptionKeySource.MICROSOFT_NET_APP) - .withLdap(LdapState.ENABLED) - .withLdapServerType(LdapServerType.OPEN_LDAP) - .withOriginClusterInformation(new OriginClusterInformation().withPeerClusterName("cluster1") - .withPeerAddresses(Arrays.asList("192.0.2.10", "192.0.2.11")) - .withPeerVserverName("vserver1") - .withPeerVolumeName("originvol1"))) - .create(); - } -} -``` - -### Caches_Delete - -```java -/** - * Samples for Caches Delete. - */ -public final class CachesDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Caches_Delete.json - */ - /** - * Sample code: Caches_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void cachesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.caches().delete("myRG", "account1", "pool1", "cache1", com.azure.core.util.Context.NONE); - } -} -``` - -### Caches_Get - -```java -/** - * Samples for Caches Get. - */ -public final class CachesGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Caches_Get.json - */ - /** - * Sample code: Caches_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void cachesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.caches().getWithResponse("myRG", "account1", "pool1", "cache1", com.azure.core.util.Context.NONE); - } -} -``` - -### Caches_ListByCapacityPools - -```java -/** - * Samples for Caches ListByCapacityPools. - */ -public final class CachesListByCapacityPoolsSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Caches_ListByCapacityPools.json - */ - /** - * Sample code: Caches_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void cachesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.caches().listByCapacityPools("myRG", "account1", "pool1", com.azure.core.util.Context.NONE); - } -} -``` - -### Caches_ListPeeringPassphrases - -```java -/** - * Samples for Caches ListPeeringPassphrases. - */ -public final class CachesListPeeringPassphrasesSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Caches_ListPeeringPassphrases.json - */ - /** - * Sample code: Caches_ListPeeringPassphrases. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void cachesListPeeringPassphrases(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.caches() - .listPeeringPassphrasesWithResponse("myRG", "account1", "pool1", "cache-1", - com.azure.core.util.Context.NONE); - } -} -``` - -### Caches_PoolChange - -```java -import com.azure.resourcemanager.netapp.models.PoolChangeRequest; - -/** - * Samples for Caches PoolChange. - */ -public final class CachesPoolChangeSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Caches_PoolChange.json - */ - /** - * Sample code: Caches_PoolChange. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void cachesPoolChange(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.caches() - .poolChange("myRG", "account1", "pool1", "cache1", new PoolChangeRequest().withNewPoolResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool2"), - com.azure.core.util.Context.NONE); - } -} -``` - -### Caches_ResetSmbPassword - -```java -/** - * Samples for Caches ResetSmbPassword. - */ -public final class CachesResetSmbPasswordSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Caches_ResetSmbPassword.json - */ - /** - * Sample code: Caches_ResetSmbPassword. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void cachesResetSmbPassword(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.caches() - .resetSmbPassword("myResourceGroup", "account1", "pool1", "cache1", com.azure.core.util.Context.NONE); - } -} -``` - -### Caches_Update - -```java -import com.azure.resourcemanager.netapp.models.Cache; -import com.azure.resourcemanager.netapp.models.CacheUpdateProperties; - -/** - * Samples for Caches Update. - */ -public final class CachesUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/Caches_Update.json - */ - /** - * Sample code: Caches_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void cachesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - Cache resource = manager.caches() - .getWithResponse("myRG", "account1", "pool1", "cache1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withProperties(new CacheUpdateProperties().withSize(214748364800L)).apply(); - } -} -``` - -### ElasticAccounts_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.ElasticAccountProperties; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticAccounts CreateOrUpdate. - */ -public final class ElasticAccountsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_CreateOrUpdate.json - */ - /** - * Sample code: ElasticAccounts_CreateOrUpdate. - * - * @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; - } -} -``` - -### ElasticAccounts_Delete - -```java -/** - * Samples for ElasticAccounts Delete. - */ -public final class ElasticAccountsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_Delete.json - */ - /** - * Sample code: ElasticAccounts_Delete. - * - * @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); - } -} -``` - -### ElasticAccounts_GetByResourceGroup - -```java -/** - * Samples for ElasticAccounts GetByResourceGroup. - */ -public final class ElasticAccountsGetByResourceGroupSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_Get.json - */ - /** - * Sample code: ElasticAccounts_Get. - * - * @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); - } -} -``` - -### ElasticAccounts_List - -```java -/** - * Samples for ElasticAccounts List. - */ -public final class ElasticAccountsListSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_ListBySubscription.json - */ - /** - * Sample code: ElasticAccounts_ListBySubscription. - * - * @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); - } -} -``` - -### ElasticAccounts_ListByResourceGroup - -```java -/** - * Samples for ElasticAccounts ListByResourceGroup. - */ -public final class ElasticAccountsListByResourceGroupSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_ListByResourceGroup.json - */ - /** - * Sample code: ElasticAccounts_ListByResourceGroup. - * - * @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); - } -} -``` - -### ElasticAccounts_Update - -```java -import com.azure.resourcemanager.netapp.models.ElasticAccount; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticAccounts Update. - */ -public final class ElasticAccountsUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_Update.json - */ - /** - * Sample code: ElasticAccounts_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; - } -} -``` - -### ElasticBackupPolicies_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; - -/** - * Samples for ElasticBackupPolicies CreateOrUpdate. - */ -public final class ElasticBackupPoliciesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupPolicies_CreateOrUpdate.json - */ - /** - * Sample code: ElasticBackupPolicies_CreateOrUpdate. - * - * @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(); - } -} -``` - -### ElasticBackupPolicies_Delete - -```java -/** - * Samples for ElasticBackupPolicies Delete. - */ -public final class ElasticBackupPoliciesDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupPolicies_Delete.json - */ - /** - * Sample code: ElasticBackupPolicies_Delete. - * - * @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); - } -} -``` - -### ElasticBackupPolicies_Get - -```java -/** - * Samples for ElasticBackupPolicies Get. - */ -public final class ElasticBackupPoliciesGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupPolicies_Get.json - */ - /** - * Sample code: ElasticBackupPolicies_Get. - * - * @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); - } -} -``` - -### ElasticBackupPolicies_ListByElasticAccount - -```java -/** - * Samples for ElasticBackupPolicies ListByElasticAccount. - */ -public final class ElasticBackupPoliciesListByElasticAccountSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupPolicies_List.json - */ - /** - * Sample code: ElasticBackupPolicies_ListByElasticAccount. - * - * @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); - } -} -``` - -### ElasticBackupPolicies_Update - -```java -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties; - -/** - * Samples for ElasticBackupPolicies Update. - */ -public final class ElasticBackupPoliciesUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupPolicies_Update.json - */ - /** - * Sample code: ElasticBackupPolicies_Update. - * - * @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(); - } -} -``` - -### ElasticBackupVaults_CreateOrUpdate - -```java -/** - * Samples for ElasticBackupVaults CreateOrUpdate. - */ -public final class ElasticBackupVaultsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupVaults_Create.json - */ - /** - * Sample code: ElasticBackupVaults_CreateOrUpdate. - * - * @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(); - } -} -``` - -### ElasticBackupVaults_Delete - -```java -/** - * Samples for ElasticBackupVaults Delete. - */ -public final class ElasticBackupVaultsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupVaults_Delete.json - */ - /** - * Sample code: ElasticBackupVaults_Delete. - * - * @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); - } -} -``` - -### ElasticBackupVaults_Get - -```java -/** - * Samples for ElasticBackupVaults Get. - */ -public final class ElasticBackupVaultsGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupVaults_Get.json - */ - /** - * Sample code: ElasticBackupVaults_Get. - * - * @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); - } -} -``` - -### ElasticBackupVaults_ListByElasticAccount - -```java -/** - * Samples for ElasticBackupVaults ListByElasticAccount. - */ -public final class ElasticBackupVaultsListByElasticAccountSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupVaults_ListByElasticAccount.json - */ - /** - * Sample code: ElasticBackupVaults_ListByElasticAccount. - * - * @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); - } -} -``` - -### ElasticBackupVaults_Update - -```java -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticBackupVaults Update. - */ -public final class ElasticBackupVaultsUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupVaults_Update.json - */ - /** - * Sample code: ElasticBackupVaults_Update. - * - * @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(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} -``` - -### ElasticBackups_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; - -/** - * Samples for ElasticBackups CreateOrUpdate. - */ -public final class ElasticBackupsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackups_CreateOrUpdate.json - */ - /** - * Sample code: ElasticBackups_CreateOrUpdate. - * - * @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(); - } -} -``` - -### ElasticBackups_Delete - -```java -/** - * Samples for ElasticBackups Delete. - */ -public final class ElasticBackupsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackups_Delete.json - */ - /** - * Sample code: ElasticBackups_Delete. - * - * @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); - } -} -``` - -### ElasticBackups_Get - -```java -/** - * Samples for ElasticBackups Get. - */ -public final class ElasticBackupsGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackups_Get.json - */ - /** - * Sample code: ElasticBackups_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); - } -} -``` - -### ElasticBackups_ListByVault - -```java -/** - * Samples for ElasticBackups ListByVault. - */ -public final class ElasticBackupsListByVaultSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackups_ListByVault.json - */ - /** - * Sample code: ElasticBackups_ListByVault. - * - * @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); - } -} -``` - -### ElasticBackups_Update - -```java -import com.azure.resourcemanager.netapp.models.ElasticBackup; - -/** - * Samples for ElasticBackups Update. - */ -public final class ElasticBackupsUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackups_Update.json - */ - /** - * Sample code: ElasticBackups_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) - .getValue(); - resource.update().apply(); - } -} -``` - -### ElasticCapacityPools_ChangeZone - -```java -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; - -/** - * Samples for ElasticCapacityPools ChangeZone. - */ -public final class ElasticCapacityPoolsChangeZoneSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_ChangeZone.json - */ - /** - * Sample code: ElasticCapacityPools_ChangeZone. - * - * @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"), - com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticCapacityPools_CheckVolumeFilePathAvailability - -```java -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; - -/** - * Samples for ElasticCapacityPools CheckVolumeFilePathAvailability. - */ -public final class ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_CheckVolumeFilePathAvailability.json - */ - /** - * Sample code: ElasticCapacityPools_CheckVolumeFilePathAvailability. - * - * @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"), - com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticCapacityPools_CreateOrUpdate - -```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. - */ -public final class ElasticCapacityPoolsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_CreateOrUpdateCMK.json - */ - /** - * Sample code: ElasticCapacityPools_CreateOrUpdateCMK. - * - * @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(); - } - - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_CreateOrUpdate.json - */ - /** - * Sample code: ElasticCapacityPools_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools() - .define("pool1") - .withRegion("eastus") - .withExistingElasticAccount("myRG", "account1") - .withProperties(new ElasticCapacityPoolProperties().withSize(4398046511104L) - .withServiceLevel(ElasticServiceLevel.ZONE_REDUNDANT) - .withSubnetResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") - .withActiveDirectoryConfigResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1")) - .withZones(Arrays.asList("1", "2", "3")) - .create(); - } -} -``` - -### ElasticCapacityPools_Delete - -```java -/** - * Samples for ElasticCapacityPools Delete. - */ -public final class ElasticCapacityPoolsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_Delete.json - */ - /** - * Sample code: ElasticCapacityPools_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); - } -} -``` - -### ElasticCapacityPools_Get - -```java -/** - * Samples for ElasticCapacityPools Get. - */ -public final class ElasticCapacityPoolsGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_Get.json - */ - /** - * Sample code: ElasticCapacityPools_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); + .withOnCertificateConflictAction(OnCertificateConflictAction.UPDATE)) + .withPermissions(BucketPermissions.READ_ONLY) + .create(); } -} -``` - -### ElasticCapacityPools_ListByElasticAccount -```java -/** - * Samples for ElasticCapacityPools ListByElasticAccount. - */ -public final class ElasticCapacityPoolsListByElasticAccountSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_ListByElasticAccount.json + * x-ms-original-file: 2026-01-01/Buckets_CreateOrUpdateWithAkv.json */ /** - * Sample code: ElasticCapacityPools_ListByElasticAccount. + * Sample code: Buckets_CreateOrUpdateWithAkv. * * @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 bucketsCreateOrUpdateWithAkv(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .define("bucket1") + .withExistingVolume("myRG", "account1", "pool1", "volume1") + .withPath("/path") + .withFileSystemUser(new FileSystemUser().withNfsUser(new NfsUser().withUserId(1001L).withGroupId(1000L))) + .withServer(new BucketServerProperties().withFqdn("fullyqualified.domainname.com") + .withOnCertificateConflictAction(OnCertificateConflictAction.FAIL)) + .withPermissions(BucketPermissions.READ_ONLY) + .withAkvDetails(new AzureKeyVaultDetails() + .withCertificateAkvDetails( + new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder") + .withCertificateName("my-certificate")) + .withCredentialsAkvDetails( + new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder") + .withSecretName("fakeTokenPlaceholder"))) + .create(); } } ``` -### ElasticCapacityPools_Update +### Buckets_Delete ```java -import com.azure.resourcemanager.netapp.models.ElasticCapacityPool; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdateProperties; - /** - * Samples for ElasticCapacityPools Update. + * Samples for Buckets Delete. */ -public final class ElasticCapacityPoolsUpdateSamples { +public final class BucketsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_Update.json + * x-ms-original-file: 2026-01-01/Buckets_Delete.json */ /** - * Sample code: ElasticCapacityPools_Update. + * Sample code: Buckets_Delete. * * @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(); + public static void bucketsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets().delete("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); } } ``` -### ElasticSnapshotPolicies_CreateOrUpdate +### Buckets_GenerateAkvCredentials ```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; +import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; /** - * Samples for ElasticSnapshotPolicies CreateOrUpdate. + * Samples for Buckets GenerateAkvCredentials. */ -public final class ElasticSnapshotPoliciesCreateOrUpdateSamples { +public final class BucketsGenerateAkvCredentialsSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshotPolicies_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Buckets_GenerateAkvCredentials.json */ /** - * Sample code: ElasticSnapshotPolicies_CreateOrUpdate. + * Sample code: Buckets_GenerateAkvCredentials. * * @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(); + public static void bucketsGenerateAkvCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .generateAkvCredentials("myRG", "account1", "pool1", "volume1", "bucket1", + new BucketCredentialsExpiry().withKeyPairExpiryDays(3), com.azure.core.util.Context.NONE); } } ``` -### ElasticSnapshotPolicies_Delete +### Buckets_GenerateCredentials ```java +import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; + /** - * Samples for ElasticSnapshotPolicies Delete. + * Samples for Buckets GenerateCredentials. */ -public final class ElasticSnapshotPoliciesDeleteSamples { +public final class BucketsGenerateCredentialsSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshotPolicies_Delete.json + * x-ms-original-file: 2026-01-01/Buckets_GenerateCredentials.json */ /** - * Sample code: ElasticSnapshotPolicies_Delete. + * Sample code: Buckets_GenerateCredentials. * * @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); + public static void bucketsGenerateCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .generateCredentialsWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", + new BucketCredentialsExpiry().withKeyPairExpiryDays(3), com.azure.core.util.Context.NONE); } } ``` -### ElasticSnapshotPolicies_Get +### Buckets_Get ```java /** - * Samples for ElasticSnapshotPolicies Get. + * Samples for Buckets Get. */ -public final class ElasticSnapshotPoliciesGetSamples { +public final class BucketsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshotPolicies_Get.json + * x-ms-original-file: 2026-01-01/Buckets_Get.json */ /** - * Sample code: ElasticSnapshotPolicies_Get. + * Sample code: Buckets_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); + public static void bucketsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); } } ``` -### ElasticSnapshotPolicies_ListByElasticAccount +### Buckets_List ```java /** - * Samples for ElasticSnapshotPolicies ListByElasticAccount. + * Samples for Buckets List. */ -public final class ElasticSnapshotPoliciesListByElasticAccountSamples { +public final class BucketsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshotPolicies_ListByElasticAccount.json + * x-ms-original-file: 2026-01-01/Buckets_List.json */ /** - * Sample code: ElasticSnapshotPolicies_ListByElasticAccount. + * Sample code: Buckets_List. * * @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); + public static void bucketsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); } } ``` -### ElasticSnapshotPolicies_ListElasticVolumes +### Buckets_RefreshCertificate ```java /** - * Samples for ElasticSnapshotPolicies ListElasticVolumes. + * Samples for Buckets RefreshCertificate. */ -public final class ElasticSnapshotPoliciesListElasticVolumesSamples { +public final class BucketsRefreshCertificateSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshotPolicies_ListElasticVolumes.json + * x-ms-original-file: 2026-01-01/Buckets_RefreshCertificate.json */ /** - * Sample code: ElasticSnapshotPolicies_ListElasticVolumes. + * Sample code: Buckets_RefreshCertificate. * * @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 bucketsRefreshCertificate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .refreshCertificate("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); } } ``` -### ElasticSnapshotPolicies_Update +### Buckets_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.AzureKeyVaultDetails; +import com.azure.resourcemanager.netapp.models.Bucket; +import com.azure.resourcemanager.netapp.models.BucketPatchPermissions; +import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; +import com.azure.resourcemanager.netapp.models.CertificateAkvDetails; +import com.azure.resourcemanager.netapp.models.CredentialsAkvDetails; +import com.azure.resourcemanager.netapp.models.OnCertificateConflictAction; /** - * Samples for ElasticSnapshotPolicies Update. + * Samples for Buckets Update. */ -public final class ElasticSnapshotPoliciesUpdateSamples { +public final class BucketsUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshotPolicies_Update.json + * x-ms-original-file: 2026-01-01/Buckets_Update.json */ /** - * Sample code: ElasticSnapshotPolicies_Update. + * Sample code: Buckets_Update. * * @param manager Entry point to NetAppFilesManager. */ - public static void elasticSnapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticSnapshotPolicy resource = manager.elasticSnapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE) + public static void bucketsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + Bucket resource = manager.buckets() + .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", 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)) + .withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com") + .withCertificateObject("") + .withOnCertificateConflictAction(OnCertificateConflictAction.UPDATE)) + .withPermissions(BucketPatchPermissions.READ_WRITE) .apply(); } -} -``` -### ElasticSnapshots_CreateOrUpdate - -```java -/** - * Samples for ElasticSnapshots CreateOrUpdate. - */ -public final class ElasticSnapshotsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshots_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Buckets_UpdateWithAkv.json */ /** - * Sample code: ElasticSnapshots_CreateOrUpdate. + * Sample code: Buckets_UpdateWithAkv. * * @param manager Entry point to NetAppFilesManager. */ - public static void elasticSnapshotsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .define("snapshot1") - .withExistingElasticVolume("myRG", "account1", "pool1", "volume1") - .create(); + public static void bucketsUpdateWithAkv(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + Bucket resource = manager.buckets() + .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com") + .withOnCertificateConflictAction(OnCertificateConflictAction.FAIL)) + .withPermissions(BucketPatchPermissions.READ_ONLY) + .withAkvDetails(new AzureKeyVaultDetails() + .withCertificateAkvDetails( + new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder") + .withCertificateName("my-certificate")) + .withCredentialsAkvDetails( + new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder") + .withSecretName("fakeTokenPlaceholder"))) + .apply(); } } ``` -### ElasticSnapshots_Delete +### Caches_CreateOrUpdate ```java -/** - * Samples for ElasticSnapshots Delete. - */ -public final class ElasticSnapshotsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshots_Delete.json - */ - /** - * Sample code: ElasticSnapshots_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticSnapshots_Get +import com.azure.resourcemanager.netapp.models.CacheProperties; +import com.azure.resourcemanager.netapp.models.EncryptionKeySource; +import com.azure.resourcemanager.netapp.models.LdapServerType; +import com.azure.resourcemanager.netapp.models.LdapState; +import com.azure.resourcemanager.netapp.models.OriginClusterInformation; +import java.util.Arrays; -```java /** - * Samples for ElasticSnapshots Get. + * Samples for Caches CreateOrUpdate. */ -public final class ElasticSnapshotsGetSamples { +public final class CachesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshots_Get.json + * x-ms-original-file: 2026-01-01/Caches_CreateOrUpdate.json */ /** - * Sample code: ElasticSnapshots_Get. + * Sample code: Caches_CreateOrUpdate. * * @param manager Entry point to NetAppFilesManager. */ - public static void elasticSnapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); + public static void cachesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.caches() + .define("cache1") + .withRegion("eastus") + .withExistingCapacityPool("myRG", "account1", "pool1") + .withProperties(new CacheProperties().withFilePath("cache-west-us2-01") + .withSize(107374182400L) + .withCacheSubnetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/cacheVnet/subnets/cacheSubnet1") + .withPeeringSubnetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/icLifVnet/subnets/peeringSubnet1") + .withEncryptionKeySource(EncryptionKeySource.MICROSOFT_NET_APP) + .withLdap(LdapState.ENABLED) + .withLdapServerType(LdapServerType.OPEN_LDAP) + .withOriginClusterInformation(new OriginClusterInformation().withPeerClusterName("cluster1") + .withPeerAddresses(Arrays.asList("192.0.2.10", "192.0.2.11")) + .withPeerVserverName("vserver1") + .withPeerVolumeName("originvol1"))) + .create(); } } ``` -### ElasticSnapshots_ListByElasticVolume +### Caches_Delete ```java /** - * Samples for ElasticSnapshots ListByElasticVolume. + * Samples for Caches Delete. */ -public final class ElasticSnapshotsListByElasticVolumeSamples { +public final class CachesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshots_ListByElasticVolume.json + * x-ms-original-file: 2026-01-01/Caches_Delete.json */ /** - * Sample code: ElasticSnapshots_ListByElasticVolume. + * Sample code: Caches_Delete. * * @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 cachesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.caches().delete("myRG", "account1", "pool1", "cache1", com.azure.core.util.Context.NONE); } } ``` -### ElasticVolumes_CreateOrUpdate +### Caches_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.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import java.util.Arrays; - /** - * Samples for ElasticVolumes CreateOrUpdate. + * Samples for Caches Get. */ -public final class ElasticVolumesCreateOrUpdateSamples { +public final class CachesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticVolumes_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Caches_Get.json */ /** - * Sample code: ElasticVolumes_CreateOrUpdate. + * Sample code: Caches_Get. * * @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(); + public static void cachesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.caches().getWithResponse("myRG", "account1", "pool1", "cache1", com.azure.core.util.Context.NONE); } } ``` -### ElasticVolumes_Delete +### Caches_List ```java /** - * Samples for ElasticVolumes Delete. + * Samples for Caches List. */ -public final class ElasticVolumesDeleteSamples { +public final class CachesListSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticVolumes_Delete.json + * x-ms-original-file: 2026-01-01/Caches_List.json */ /** - * Sample code: ElasticVolumes_Delete. + * Sample code: Caches_List. * * @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); + public static void cachesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.caches().list("myRG", "account1", "pool1", com.azure.core.util.Context.NONE); } } ``` -### ElasticVolumes_Get +### Caches_ListPeeringPassphrases ```java /** - * Samples for ElasticVolumes Get. + * Samples for Caches ListPeeringPassphrases. */ -public final class ElasticVolumesGetSamples { +public final class CachesListPeeringPassphrasesSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticVolumes_Get.json + * x-ms-original-file: 2026-01-01/Caches_ListPeeringPassphrases.json */ /** - * Sample code: ElasticVolumes_Get. + * Sample code: Caches_ListPeeringPassphrases. * * @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 cachesListPeeringPassphrases(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.caches() + .listPeeringPassphrasesWithResponse("myRG", "account1", "pool1", "cache-1", + com.azure.core.util.Context.NONE); } } ``` -### ElasticVolumes_ListByElasticPool +### Caches_PoolChange ```java +import com.azure.resourcemanager.netapp.models.PoolChangeRequest; + /** - * Samples for ElasticVolumes ListByElasticPool. + * Samples for Caches PoolChange. */ -public final class ElasticVolumesListByElasticPoolSamples { +public final class CachesPoolChangeSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticVolumes_ListByElasticPool.json + * x-ms-original-file: 2026-01-01/Caches_PoolChange.json */ /** - * Sample code: ElasticVolumes_ListByElasticPool. + * Sample code: Caches_PoolChange. * * @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 cachesPoolChange(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.caches() + .poolChange("myRG", "account1", "pool1", "cache1", new PoolChangeRequest().withNewPoolResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool2"), + com.azure.core.util.Context.NONE); } } ``` -### ElasticVolumes_Revert +### Caches_ResetSmbPassword ```java -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; - /** - * Samples for ElasticVolumes Revert. + * Samples for Caches ResetSmbPassword. */ -public final class ElasticVolumesRevertSamples { +public final class CachesResetSmbPasswordSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticVolumes_Revert.json + * x-ms-original-file: 2026-01-01/Caches_ResetSmbPassword.json */ /** - * Sample code: ElasticVolumes_Revert. + * Sample code: Caches_ResetSmbPassword. * * @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 cachesResetSmbPassword(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.caches() + .resetSmbPassword("myResourceGroup", "account1", "pool1", "cache1", com.azure.core.util.Context.NONE); } } ``` -### ElasticVolumes_Update +### Caches_Update ```java -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties; -import java.util.Arrays; +import com.azure.resourcemanager.netapp.models.Cache; +import com.azure.resourcemanager.netapp.models.CacheUpdateProperties; /** - * Samples for ElasticVolumes Update. + * Samples for Caches Update. */ -public final class ElasticVolumesUpdateSamples { +public final class CachesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/ElasticVolumes_Update.json + * x-ms-original-file: 2026-01-01/Caches_Update.json */ /** - * Sample code: ElasticVolumes_Update. + * Sample code: Caches_Update. * * @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) + public static void cachesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + Cache resource = manager.caches() + .getWithResponse("myRG", "account1", "pool1", "cache1", 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(); + resource.update().withProperties(new CacheUpdateProperties().withSize(214748364800L)).apply(); } } ``` @@ -2968,7 +1449,7 @@ import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: 2025-12-15-preview/CheckFilePathAvailability.json + * x-ms-original-file: 2026-01-01/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. @@ -2978,9 +1459,9 @@ public final class NetAppResourceCheckFilePathAvailabilitySamples { public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.netAppResources() .checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest() - .withName("my-exact-filepath") + .withName("my-exact-filepth") .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), com.azure.core.util.Context.NONE); } } @@ -2997,7 +1478,7 @@ import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; */ public final class NetAppResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2025-12-15-preview/CheckNameAvailability.json + * x-ms-original-file: 2026-01-01/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. @@ -3026,7 +1507,7 @@ import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; */ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: 2025-12-15-preview/CheckQuotaAvailability.json + * x-ms-original-file: 2026-01-01/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. @@ -3054,7 +1535,7 @@ import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetworkSiblingSet_Query.json + * x-ms-original-file: 2026-01-01/NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. @@ -3066,7 +1547,7 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples { .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"), + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), com.azure.core.util.Context.NONE); } } @@ -3080,7 +1561,7 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples { */ public final class NetAppResourceQueryRegionInfoSamples { /* - * x-ms-original-file: 2025-12-15-preview/RegionInfo.json + * x-ms-original-file: 2026-01-01/RegionInfo.json */ /** * Sample code: RegionInfo_Query. @@ -3104,7 +1585,7 @@ import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetworkSiblingSet_Update.json + * x-ms-original-file: 2026-01-01/NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. @@ -3116,7 +1597,7 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples { .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") + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") .withNetworkSiblingSetStateId("12345_44420.8001578125") .withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE); } @@ -3131,7 +1612,7 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples { */ public final class NetAppResourceQuotaLimitsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetAppResourceQuotaLimits_Get.json + * x-ms-original-file: 2026-01-01/NetAppResourceQuotaLimits_Get.json */ /** * Sample code: QuotaLimits. @@ -3153,7 +1634,7 @@ public final class NetAppResourceQuotaLimitsGetSamples { */ public final class NetAppResourceQuotaLimitsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetAppResourceQuotaLimits_List.json + * x-ms-original-file: 2026-01-01/NetAppResourceQuotaLimits_List.json */ /** * Sample code: QuotaLimits. @@ -3174,7 +1655,7 @@ public final class NetAppResourceQuotaLimitsListSamples { */ public final class NetAppResourceQuotaLimitsAccountGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetAppResourceQuotaLimitsAccount_Get.json + * x-ms-original-file: 2026-01-01/NetAppResourceQuotaLimitsAccount_Get.json */ /** * Sample code: QuotaLimits. @@ -3196,7 +1677,7 @@ public final class NetAppResourceQuotaLimitsAccountGetSamples { */ public final class NetAppResourceQuotaLimitsAccountListSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetAppResourceQuotaLimitsAccount_List.json + * x-ms-original-file: 2026-01-01/NetAppResourceQuotaLimitsAccount_List.json */ /** * Sample code: QuotaLimits. @@ -3217,7 +1698,7 @@ public final class NetAppResourceQuotaLimitsAccountListSamples { */ public final class NetAppResourceRegionInfosGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/RegionInfos_Get.json + * x-ms-original-file: 2026-01-01/RegionInfos_Get.json */ /** * Sample code: RegionInfos_Get. @@ -3238,7 +1719,7 @@ public final class NetAppResourceRegionInfosGetSamples { */ public final class NetAppResourceRegionInfosListSamples { /* - * x-ms-original-file: 2025-12-15-preview/RegionInfos_List.json + * x-ms-original-file: 2026-01-01/RegionInfos_List.json */ /** * Sample code: RegionInfos_List. @@ -3259,7 +1740,7 @@ public final class NetAppResourceRegionInfosListSamples { */ public final class NetAppResourceUsagesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/Usages_Get.json + * x-ms-original-file: 2026-01-01/Usages_Get.json */ /** * Sample code: Usages_Get. @@ -3281,7 +1762,7 @@ public final class NetAppResourceUsagesGetSamples { */ public final class NetAppResourceUsagesListSamples { /* - * x-ms-original-file: 2025-12-15-preview/Usages_List.json + * x-ms-original-file: 2026-01-01/Usages_List.json */ /** * Sample code: Usages_List. @@ -3302,7 +1783,7 @@ public final class NetAppResourceUsagesListSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/OperationList.json + * x-ms-original-file: 2026-01-01/OperationList.json */ /** * Sample code: OperationList. @@ -3326,7 +1807,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Pools_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -3345,7 +1826,7 @@ public final class PoolsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-15-preview/Pools_CreateOrUpdate_CustomThroughput.json + * x-ms-original-file: 2026-01-01/Pools_CreateOrUpdate_CustomThroughput.json */ /** * Sample code: Pools_CreateOrUpdate_CustomThroughput. @@ -3375,7 +1856,7 @@ public final class PoolsCreateOrUpdateSamples { */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Pools_Delete.json + * x-ms-original-file: 2026-01-01/Pools_Delete.json */ /** * Sample code: Pools_Delete. @@ -3396,7 +1877,7 @@ public final class PoolsDeleteSamples { */ public final class PoolsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/Pools_Get_CustomThroughput.json + * x-ms-original-file: 2026-01-01/Pools_Get_CustomThroughput.json */ /** * Sample code: Pools_Get_CustomThroughput. @@ -3408,7 +1889,7 @@ public final class PoolsGetSamples { } /* - * x-ms-original-file: 2025-12-15-preview/Pools_Get.json + * x-ms-original-file: 2026-01-01/Pools_Get.json */ /** * Sample code: Pools_Get. @@ -3429,7 +1910,7 @@ public final class PoolsGetSamples { */ public final class PoolsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/Pools_List.json + * x-ms-original-file: 2026-01-01/Pools_List.json */ /** * Sample code: Pools_List. @@ -3452,7 +1933,7 @@ import com.azure.resourcemanager.netapp.models.CapacityPool; */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Pools_Update.json + * x-ms-original-file: 2026-01-01/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -3466,7 +1947,7 @@ public final class PoolsUpdateSamples { } /* - * x-ms-original-file: 2025-12-15-preview/Pools_Update_CustomThroughput.json + * x-ms-original-file: 2026-01-01/Pools_Update_CustomThroughput.json */ /** * Sample code: Pools_Update_CustomThroughput. @@ -3494,7 +1975,7 @@ import java.util.Arrays; */ public final class RansomwareReportsClearSuspectsSamples { /* - * x-ms-original-file: 2025-12-15-preview/RansomwareReports_ClearSuspects.json + * x-ms-original-file: 2026-01-01/RansomwareReports_ClearSuspects.json */ /** * Sample code: RansomwareReports_ClearSuspects. @@ -3519,7 +2000,7 @@ public final class RansomwareReportsClearSuspectsSamples { */ public final class RansomwareReportsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/RansomwareReports_Get.json + * x-ms-original-file: 2026-01-01/RansomwareReports_Get.json */ /** * Sample code: RansomwareReports_Get. @@ -3542,7 +2023,7 @@ public final class RansomwareReportsGetSamples { */ public final class RansomwareReportsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/RansomwareReports_List.json + * x-ms-original-file: 2026-01-01/RansomwareReports_List.json */ /** * Sample code: RansomwareReports_List. @@ -3568,7 +2049,7 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_Create.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. @@ -3600,7 +2081,7 @@ public final class SnapshotPoliciesCreateSamples { */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_Delete.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. @@ -3622,7 +2103,7 @@ public final class SnapshotPoliciesDeleteSamples { */ public final class SnapshotPoliciesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_Get.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. @@ -3644,7 +2125,7 @@ public final class SnapshotPoliciesGetSamples { */ public final class SnapshotPoliciesListSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_List.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. @@ -3665,7 +2146,7 @@ public final class SnapshotPoliciesListSamples { */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. @@ -3693,7 +2174,7 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_Update.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. @@ -3725,7 +2206,7 @@ public final class SnapshotPoliciesUpdateSamples { */ public final class SnapshotsCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Snapshots_Create.json + * x-ms-original-file: 2026-01-01/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. @@ -3750,7 +2231,7 @@ public final class SnapshotsCreateSamples { */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Snapshots_Delete.json + * x-ms-original-file: 2026-01-01/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. @@ -3772,7 +2253,7 @@ public final class SnapshotsDeleteSamples { */ public final class SnapshotsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/Snapshots_Get.json + * x-ms-original-file: 2026-01-01/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. @@ -3794,7 +2275,7 @@ public final class SnapshotsGetSamples { */ public final class SnapshotsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/Snapshots_List.json + * x-ms-original-file: 2026-01-01/Snapshots_List.json */ /** * Sample code: Snapshots_List. @@ -3818,7 +2299,7 @@ import java.util.Arrays; */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: 2025-12-15-preview/Snapshots_SingleFileRestore.json + * x-ms-original-file: 2026-01-01/Snapshots_SingleFileRestore.json */ /** * Sample code: Snapshots_SingleFileRestore. @@ -3842,7 +2323,7 @@ public final class SnapshotsRestoreFilesSamples { */ public final class SubvolumesCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_Create.json + * x-ms-original-file: 2026-01-01/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. @@ -3867,7 +2348,7 @@ public final class SubvolumesCreateSamples { */ public final class SubvolumesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_Delete.json + * x-ms-original-file: 2026-01-01/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. @@ -3889,7 +2370,7 @@ public final class SubvolumesDeleteSamples { */ public final class SubvolumesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_Get.json + * x-ms-original-file: 2026-01-01/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. @@ -3911,7 +2392,7 @@ public final class SubvolumesGetSamples { */ public final class SubvolumesGetMetadataSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_Metadata.json + * x-ms-original-file: 2026-01-01/Subvolumes_Metadata.json */ /** * Sample code: Subvolumes_Metadata. @@ -3933,7 +2414,7 @@ public final class SubvolumesGetMetadataSamples { */ public final class SubvolumesListByVolumeSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_List.json + * x-ms-original-file: 2026-01-01/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. @@ -3956,7 +2437,7 @@ import com.azure.resourcemanager.netapp.models.SubvolumeInfo; */ public final class SubvolumesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_Update.json + * x-ms-original-file: 2026-01-01/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. @@ -3988,7 +2469,7 @@ import java.util.Arrays; */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_Create_SapHana.json + * x-ms-original-file: 2026-01-01/VolumeGroups_Create_SapHana.json */ /** * Sample code: VolumeGroups_Create_SapHana. @@ -4148,7 +2629,7 @@ public final class VolumeGroupsCreateSamples { } /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_Create_Oracle.json + * x-ms-original-file: 2026-01-01/VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. @@ -4501,7 +2982,7 @@ public final class VolumeGroupsCreateSamples { */ public final class VolumeGroupsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_Delete.json + * x-ms-original-file: 2026-01-01/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. @@ -4522,7 +3003,7 @@ public final class VolumeGroupsDeleteSamples { */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_Get_SapHana.json + * x-ms-original-file: 2026-01-01/VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. @@ -4534,7 +3015,7 @@ public final class VolumeGroupsGetSamples { } /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_Get_Oracle.json + * x-ms-original-file: 2026-01-01/VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. @@ -4555,7 +3036,7 @@ public final class VolumeGroupsGetSamples { */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_List_Oracle.json + * x-ms-original-file: 2026-01-01/VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. @@ -4567,7 +3048,7 @@ public final class VolumeGroupsListByNetAppAccountSamples { } /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_List_SapHana.json + * x-ms-original-file: 2026-01-01/VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. @@ -4590,7 +3071,7 @@ import com.azure.resourcemanager.netapp.models.QuotaType; */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeQuotaRules_Create.json + * x-ms-original-file: 2026-01-01/VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. @@ -4618,7 +3099,7 @@ public final class VolumeQuotaRulesCreateSamples { */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeQuotaRules_Delete.json + * x-ms-original-file: 2026-01-01/VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. @@ -4640,7 +3121,7 @@ public final class VolumeQuotaRulesDeleteSamples { */ public final class VolumeQuotaRulesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeQuotaRules_Get.json + * x-ms-original-file: 2026-01-01/VolumeQuotaRules_Get.json */ /** * Sample code: VolumeQuotaRules_Get. @@ -4663,7 +3144,7 @@ public final class VolumeQuotaRulesGetSamples { */ public final class VolumeQuotaRulesListByVolumeSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeQuotaRules_List.json + * x-ms-original-file: 2026-01-01/VolumeQuotaRules_List.json */ /** * Sample code: VolumeQuotaRules_List. @@ -4687,7 +3168,7 @@ import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeQuotaRules_Update.json + * x-ms-original-file: 2026-01-01/VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. @@ -4712,7 +3193,7 @@ public final class VolumeQuotaRulesUpdateSamples { */ public final class VolumesAuthorizeExternalReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_AuthorizeExternalReplication.json + * x-ms-original-file: 2026-01-01/Volumes_AuthorizeExternalReplication.json */ /** * Sample code: Volumes_AuthorizeExternalReplication. @@ -4737,7 +3218,7 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest; */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_AuthorizeReplication.json + * x-ms-original-file: 2026-01-01/Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -4764,7 +3245,7 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; */ public final class VolumesBreakFileLocksSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_BreakFileLocks.json + * x-ms-original-file: 2026-01-01/Volumes_BreakFileLocks.json */ /** * Sample code: Volumes_BreakFileLocks. @@ -4790,7 +3271,7 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_BreakReplication.json + * x-ms-original-file: 2026-01-01/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. @@ -4815,7 +3296,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. @@ -4830,7 +3311,7 @@ public final class VolumesCreateOrUpdateSamples { .withCreationToken("my-unique-file-path") .withUsageThreshold(107374182400L) .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withServiceLevel(ServiceLevel.PREMIUM) .create(); } @@ -4845,7 +3326,7 @@ public final class VolumesCreateOrUpdateSamples { */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_Delete.json + * x-ms-original-file: 2026-01-01/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. @@ -4866,7 +3347,7 @@ public final class VolumesDeleteSamples { */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_DeleteReplication.json + * x-ms-original-file: 2026-01-01/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. @@ -4887,7 +3368,7 @@ public final class VolumesDeleteReplicationSamples { */ public final class VolumesFinalizeExternalReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_FinalizeExternalReplication.json + * x-ms-original-file: 2026-01-01/Volumes_FinalizeExternalReplication.json */ /** * Sample code: Volumes_FinalizeExternalReplication. @@ -4909,7 +3390,7 @@ public final class VolumesFinalizeExternalReplicationSamples { */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_FinalizeRelocation.json + * x-ms-original-file: 2026-01-01/Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. @@ -4930,19 +3411,7 @@ public final class VolumesFinalizeRelocationSamples { */ public final class VolumesGetSamples { /* - * x-ms-original-file: 2025-12-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: 2025-12-15-preview/Volumes_Get.json + * x-ms-original-file: 2026-01-01/Volumes_Get.json */ /** * Sample code: Volumes_Get. @@ -4963,19 +3432,7 @@ public final class VolumesGetSamples { */ public final class VolumesListSamples { /* - * x-ms-original-file: 2025-12-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: 2025-12-15-preview/Volumes_List.json + * x-ms-original-file: 2026-01-01/Volumes_List.json */ /** * Sample code: Volumes_List. @@ -4998,7 +3455,7 @@ import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; */ public final class VolumesListGetGroupIdListForLdapUserSamples { /* - * x-ms-original-file: 2025-12-15-preview/GroupIdListForLDAPUser.json + * x-ms-original-file: 2026-01-01/GroupIdListForLDAPUser.json */ /** * Sample code: GetGroupIdListForUser. @@ -5022,7 +3479,7 @@ public final class VolumesListGetGroupIdListForLdapUserSamples { */ public final class VolumesListQuotaReportSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ListQuotaReport.json + * x-ms-original-file: 2026-01-01/Volumes_ListQuotaReport.json */ /** * Sample code: ListQuotaReport. @@ -5047,7 +3504,7 @@ import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ListReplications.json + * x-ms-original-file: 2026-01-01/Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. @@ -5073,7 +3530,7 @@ import java.util.Arrays; */ public final class VolumesPeerExternalClusterSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_PeerExternalCluster.json + * x-ms-original-file: 2026-01-01/Volumes_PeerExternalCluster.json */ /** * Sample code: Volumes_PeerExternalCluster. @@ -5098,7 +3555,7 @@ public final class VolumesPeerExternalClusterSamples { */ public final class VolumesPerformReplicationTransferSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_PerformReplicationTransfer.json + * x-ms-original-file: 2026-01-01/Volumes_PerformReplicationTransfer.json */ /** * Sample code: Volumes_PerformReplicationTransfer. @@ -5122,7 +3579,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest; */ public final class VolumesPoolChangeSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_PoolChange.json + * x-ms-original-file: 2026-01-01/Volumes_PoolChange.json */ /** * Sample code: Volumes_PoolChange. @@ -5146,7 +3603,7 @@ public final class VolumesPoolChangeSamples { */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: 2026-01-01/Volumes_PopulateAvailabilityZones.json */ /** * Sample code: Volumes_PopulateAvailabilityZones. @@ -5168,7 +3625,7 @@ public final class VolumesPopulateAvailabilityZoneSamples { */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ReInitializeReplication.json + * x-ms-original-file: 2026-01-01/Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. @@ -5192,7 +3649,7 @@ import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ReestablishReplication.json + * x-ms-original-file: 2026-01-01/Volumes_ReestablishReplication.json */ /** * Sample code: Volumes_ReestablishReplication. @@ -5219,7 +3676,7 @@ import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest; */ public final class VolumesRelocateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_Relocate.json + * x-ms-original-file: 2026-01-01/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. @@ -5242,7 +3699,7 @@ public final class VolumesRelocateSamples { */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ReplicationStatus.json + * x-ms-original-file: 2026-01-01/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. @@ -5264,7 +3721,7 @@ public final class VolumesReplicationStatusSamples { */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ResetCifsPassword.json + * x-ms-original-file: 2026-01-01/Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. @@ -5285,7 +3742,7 @@ public final class VolumesResetCifsPasswordSamples { */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ResyncReplication.json + * x-ms-original-file: 2026-01-01/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. @@ -5308,7 +3765,7 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert; */ public final class VolumesRevertSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_Revert.json + * x-ms-original-file: 2026-01-01/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. @@ -5332,7 +3789,7 @@ public final class VolumesRevertSamples { */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_RevertRelocation.json + * x-ms-original-file: 2026-01-01/Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. @@ -5353,7 +3810,7 @@ public final class VolumesRevertRelocationSamples { */ public final class VolumesSplitCloneFromParentSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_SplitClone.json + * x-ms-original-file: 2026-01-01/Volumes_SplitClone.json */ /** * Sample code: Volumes_SplitClone. @@ -5377,7 +3834,7 @@ import com.azure.resourcemanager.netapp.models.Volume; */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_Update.json + * x-ms-original-file: 2026-01-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 03fe990e2b2f..d01eaaff683a 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.2.0-beta.2 + 2.2.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 2025-12-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-01-01. https://github.com/Azure/azure-sdk-for-java 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 c9dd2c1cdbd6..cded158586b5 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 ab9def2b0953..000000000000 --- 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/CachesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/CachesClient.java index 92c51f5ae23e..a5e501f31e59 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/CachesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/CachesClient.java @@ -266,7 +266,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @return list of Cache resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByCapacityPools(String resourceGroupName, String accountName, String poolName); + PagedIterable list(String resourceGroupName, String accountName, String poolName); /** * List all Caches within the Capacity Pool. @@ -281,8 +281,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @return list of Cache resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByCapacityPools(String resourceGroupName, String accountName, String poolName, - Context context); + PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context); /** * This operation will list the cluster peering command, cluster peering passphrase and the vserver peering command. 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 1b42177183db..000000000000 --- 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 12f8ec5cce35..000000000000 --- 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 7f9dfbb74b56..000000000000 --- 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 ea1cbfc596b4..000000000000 --- 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 c3188ddaecef..000000000000 --- 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 long-running operation. - */ - @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 long-running operation. - */ - @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 the response. - */ - @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 the response. - */ - @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 062bc0b19bb4..000000000000 --- 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 b2021a544dba..000000000000 --- 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 6c2a45df398f..000000000000 --- 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 long-running operation. - */ - @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 long-running operation. - */ - @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 the response. - */ - @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 the response. - */ - @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 57bd68b86eac..39883afaff97 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 27e42ab8104f..667ce9fe0bd8 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,8 +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; import java.util.List; @@ -32,11 +30,6 @@ public final class AccountProperties implements JsonSerializable activeDirectories; - /* - * Entra ID configuration for the account. - */ - private EntraIdConfig entraIdConfig; - /* * Encryption settings */ @@ -58,11 +51,6 @@ public final class AccountProperties implements JsonSerializable activeDirec return this; } - /** - * Get the entraIdConfig property: Entra ID configuration for the account. - * - * @return the entraIdConfig value. - */ - public EntraIdConfig entraIdConfig() { - return this.entraIdConfig; - } - - /** - * Set the entraIdConfig property: Entra ID configuration for the account. - * - * @param entraIdConfig the entraIdConfig value to set. - * @return the AccountProperties object itself. - */ - public AccountProperties withEntraIdConfig(EntraIdConfig entraIdConfig) { - this.entraIdConfig = entraIdConfig; - return this; - } - /** * Get the encryption property: Encryption settings. * @@ -179,26 +147,6 @@ public MultiAdStatus multiAdStatus() { return this.multiAdStatus; } - /** - * Get the ldapConfiguration property: LDAP Configuration for the account. - * - * @return the ldapConfiguration value. - */ - public LdapConfiguration ldapConfiguration() { - return this.ldapConfiguration; - } - - /** - * Set the ldapConfiguration property: LDAP Configuration for the account. - * - * @param ldapConfiguration the ldapConfiguration value to set. - * @return the AccountProperties object itself. - */ - public AccountProperties withLdapConfiguration(LdapConfiguration ldapConfiguration) { - this.ldapConfiguration = ldapConfiguration; - return this; - } - /** * Validates the instance. * @@ -208,15 +156,9 @@ public void validate() { if (activeDirectories() != null) { activeDirectories().forEach(e -> e.validate()); } - if (entraIdConfig() != null) { - entraIdConfig().validate(); - } if (encryption() != null) { encryption().validate(); } - if (ldapConfiguration() != null) { - ldapConfiguration().validate(); - } } /** @@ -227,10 +169,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("activeDirectories", this.activeDirectories, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeJsonField("entraIdConfig", this.entraIdConfig); jsonWriter.writeJsonField("encryption", this.encryption); jsonWriter.writeStringField("nfsV4IDDomain", this.nfsV4IdDomain); - jsonWriter.writeJsonField("ldapConfiguration", this.ldapConfiguration); return jsonWriter.writeEndObject(); } @@ -255,8 +195,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)) { @@ -265,8 +203,6 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti deserializedAccountProperties.nfsV4IdDomain = reader.getString(); } else if ("multiAdStatus".equals(fieldName)) { deserializedAccountProperties.multiAdStatus = MultiAdStatus.fromString(reader.getString()); - } else if ("ldapConfiguration".equals(fieldName)) { - deserializedAccountProperties.ldapConfiguration = LdapConfiguration.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java deleted file mode 100644 index bf7f8a48463b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java +++ /dev/null @@ -1,257 +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.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.AccountEncryption; -import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.azure.resourcemanager.netapp.models.EntraIdConfigPatch; -import com.azure.resourcemanager.netapp.models.LdapConfigurationPatch; -import com.azure.resourcemanager.netapp.models.MultiAdStatus; -import java.io.IOException; -import java.util.List; - -/** - * NetApp account properties for PATCH operations. - */ -@Fluent -public final class AccountPropertiesPatch implements JsonSerializable { - /* - * Active Directories - */ - private List activeDirectories; - - /* - * Entra ID configuration for the account. - */ - private EntraIdConfigPatch entraIdConfig; - - /* - * Encryption settings - */ - private AccountEncryption encryption; - - /* - * Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and - * region and only affect non ldap NFSv4 volumes. - */ - private String nfsV4IdDomain; - - /* - * MultiAD Status for the account - */ - private MultiAdStatus multiAdStatus; - - /* - * LDAP Configuration for the account. - */ - private LdapConfigurationPatch ldapConfiguration; - - /** - * Creates an instance of AccountPropertiesPatch class. - */ - public AccountPropertiesPatch() { - } - - /** - * Get the activeDirectories property: Active Directories. - * - * @return the activeDirectories value. - */ - public List activeDirectories() { - return this.activeDirectories; - } - - /** - * Set the activeDirectories property: Active Directories. - * - * @param activeDirectories the activeDirectories value to set. - * @return the AccountPropertiesPatch object itself. - */ - public AccountPropertiesPatch withActiveDirectories(List activeDirectories) { - this.activeDirectories = activeDirectories; - return this; - } - - /** - * Get the entraIdConfig property: Entra ID configuration for the account. - * - * @return the entraIdConfig value. - */ - public EntraIdConfigPatch entraIdConfig() { - return this.entraIdConfig; - } - - /** - * Set the entraIdConfig property: Entra ID configuration for the account. - * - * @param entraIdConfig the entraIdConfig value to set. - * @return the AccountPropertiesPatch object itself. - */ - public AccountPropertiesPatch withEntraIdConfig(EntraIdConfigPatch entraIdConfig) { - this.entraIdConfig = entraIdConfig; - return this; - } - - /** - * Get the encryption property: Encryption settings. - * - * @return the encryption value. - */ - public AccountEncryption encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Encryption settings. - * - * @param encryption the encryption value to set. - * @return the AccountPropertiesPatch object itself. - */ - public AccountPropertiesPatch withEncryption(AccountEncryption encryption) { - this.encryption = encryption; - return this; - } - - /** - * Get the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp - * accounts in the subscription and region and only affect non ldap NFSv4 volumes. - * - * @return the nfsV4IdDomain value. - */ - public String nfsV4IdDomain() { - return this.nfsV4IdDomain; - } - - /** - * Set the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp - * accounts in the subscription and region and only affect non ldap NFSv4 volumes. - * - * @param nfsV4IdDomain the nfsV4IdDomain value to set. - * @return the AccountPropertiesPatch object itself. - */ - public AccountPropertiesPatch withNfsV4IdDomain(String nfsV4IdDomain) { - this.nfsV4IdDomain = nfsV4IdDomain; - return this; - } - - /** - * Get the multiAdStatus property: MultiAD Status for the account. - * - * @return the multiAdStatus value. - */ - public MultiAdStatus multiAdStatus() { - return this.multiAdStatus; - } - - /** - * Set the multiAdStatus property: MultiAD Status for the account. - * - * @param multiAdStatus the multiAdStatus value to set. - * @return the AccountPropertiesPatch object itself. - */ - public AccountPropertiesPatch withMultiAdStatus(MultiAdStatus multiAdStatus) { - this.multiAdStatus = multiAdStatus; - return this; - } - - /** - * Get the ldapConfiguration property: LDAP Configuration for the account. - * - * @return the ldapConfiguration value. - */ - public LdapConfigurationPatch ldapConfiguration() { - return this.ldapConfiguration; - } - - /** - * Set the ldapConfiguration property: LDAP Configuration for the account. - * - * @param ldapConfiguration the ldapConfiguration value to set. - * @return the AccountPropertiesPatch object itself. - */ - public AccountPropertiesPatch withLdapConfiguration(LdapConfigurationPatch ldapConfiguration) { - this.ldapConfiguration = ldapConfiguration; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (activeDirectories() != null) { - activeDirectories().forEach(e -> e.validate()); - } - if (entraIdConfig() != null) { - entraIdConfig().validate(); - } - if (encryption() != null) { - encryption().validate(); - } - if (ldapConfiguration() != null) { - ldapConfiguration().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("activeDirectories", this.activeDirectories, - (writer, element) -> writer.writeJson(element)); - jsonWriter.writeJsonField("entraIdConfig", this.entraIdConfig); - jsonWriter.writeJsonField("encryption", this.encryption); - jsonWriter.writeStringField("nfsV4IDDomain", this.nfsV4IdDomain); - jsonWriter.writeStringField("multiAdStatus", this.multiAdStatus == null ? null : this.multiAdStatus.toString()); - jsonWriter.writeJsonField("ldapConfiguration", this.ldapConfiguration); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AccountPropertiesPatch from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AccountPropertiesPatch if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the AccountPropertiesPatch. - */ - public static AccountPropertiesPatch fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AccountPropertiesPatch deserializedAccountPropertiesPatch = new AccountPropertiesPatch(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("activeDirectories".equals(fieldName)) { - List activeDirectories - = reader.readArray(reader1 -> ActiveDirectory.fromJson(reader1)); - deserializedAccountPropertiesPatch.activeDirectories = activeDirectories; - } else if ("entraIdConfig".equals(fieldName)) { - deserializedAccountPropertiesPatch.entraIdConfig = EntraIdConfigPatch.fromJson(reader); - } else if ("encryption".equals(fieldName)) { - deserializedAccountPropertiesPatch.encryption = AccountEncryption.fromJson(reader); - } else if ("nfsV4IDDomain".equals(fieldName)) { - deserializedAccountPropertiesPatch.nfsV4IdDomain = reader.getString(); - } else if ("multiAdStatus".equals(fieldName)) { - deserializedAccountPropertiesPatch.multiAdStatus = MultiAdStatus.fromString(reader.getString()); - } else if ("ldapConfiguration".equals(fieldName)) { - deserializedAccountPropertiesPatch.ldapConfiguration = LdapConfigurationPatch.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedAccountPropertiesPatch; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java deleted file mode 100644 index fdbfdf2c2060..000000000000 --- 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 254bfbbada50..4ec65b42aeb2 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 e510e0cead5c..000000000000 --- 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/ClusterPeerCommandResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ClusterPeerCommandResponseInner.java index 6fcd20b0e998..48ec894e0168 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ClusterPeerCommandResponseInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ClusterPeerCommandResponseInner.java @@ -9,6 +9,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponseProperties; import java.io.IOException; /** @@ -17,10 +18,9 @@ @Immutable public final class ClusterPeerCommandResponseInner implements JsonSerializable { /* - * A command that needs to be run on the external ONTAP to accept cluster peering. Will only be present if - * clusterPeeringStatus is pending + * Represents the properties of the cluster peer command response. */ - private String peerAcceptCommand; + private ClusterPeerCommandResponseProperties properties; /** * Creates an instance of ClusterPeerCommandResponseInner class. @@ -29,14 +29,12 @@ private ClusterPeerCommandResponseInner() { } /** - * Get the peerAcceptCommand property: A command that needs to be run on the external ONTAP to accept cluster - * peering. Will only be present if <code>clusterPeeringStatus</code> is - * <code>pending</code>. + * Get the properties property: Represents the properties of the cluster peer command response. * - * @return the peerAcceptCommand value. + * @return the properties value. */ - public String peerAcceptCommand() { - return this.peerAcceptCommand; + public ClusterPeerCommandResponseProperties properties() { + return this.properties; } /** @@ -45,6 +43,9 @@ public String peerAcceptCommand() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (properties() != null) { + properties().validate(); + } } /** @@ -53,7 +54,7 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("peerAcceptCommand", this.peerAcceptCommand); + jsonWriter.writeJsonField("properties", this.properties); return jsonWriter.writeEndObject(); } @@ -73,8 +74,9 @@ public static ClusterPeerCommandResponseInner fromJson(JsonReader jsonReader) th String fieldName = reader.getFieldName(); reader.nextToken(); - if ("peerAcceptCommand".equals(fieldName)) { - deserializedClusterPeerCommandResponseInner.peerAcceptCommand = reader.getString(); + if ("properties".equals(fieldName)) { + deserializedClusterPeerCommandResponseInner.properties + = ClusterPeerCommandResponseProperties.fromJson(reader); } else { reader.skipChildren(); } 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 fec53001fe1a..000000000000 --- 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 355c759d9ec7..000000000000 --- 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 46c2fe6bfa0d..000000000000 --- 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 578bd49e28cd..000000000000 --- 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 9440f6af3ca5..000000000000 --- 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 0e81120fbefd..000000000000 --- 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 2aa9cb9185f2..000000000000 --- 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 53b43ec7950f..000000000000 --- 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 c55ef862ec67..ec793e09817a 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,8 +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; import java.io.IOException; @@ -197,29 +195,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. * @@ -287,29 +262,6 @@ public MultiAdStatus multiAdStatus() { return this.innerProperties() == null ? null : this.innerProperties().multiAdStatus(); } - /** - * Get the ldapConfiguration property: LDAP Configuration for the account. - * - * @return the ldapConfiguration value. - */ - public LdapConfiguration ldapConfiguration() { - return this.innerProperties() == null ? null : this.innerProperties().ldapConfiguration(); - } - - /** - * Set the ldapConfiguration property: LDAP Configuration for the account. - * - * @param ldapConfiguration the ldapConfiguration value to set. - * @return the NetAppAccountInner object itself. - */ - public NetAppAccountInner withLdapConfiguration(LdapConfiguration ldapConfiguration) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountProperties(); - } - this.innerProperties().withLdapConfiguration(ldapConfiguration); - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java index f38106329998..a7f3357ea72a 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 f9c2741a0671..25b7c2934f0f 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/SvmPeerCommandResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SvmPeerCommandResponseInner.java index 48b20a6c6969..841993165815 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SvmPeerCommandResponseInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SvmPeerCommandResponseInner.java @@ -9,6 +9,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.models.SvmPeerCommandResponseProperties; import java.io.IOException; /** @@ -17,10 +18,9 @@ @Immutable public final class SvmPeerCommandResponseInner implements JsonSerializable { /* - * A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if - * svmPeeringStatus is pending + * Represents the properties of the SVM peer command response. */ - private String svmPeeringCommand; + private SvmPeerCommandResponseProperties properties; /** * Creates an instance of SvmPeerCommandResponseInner class. @@ -29,13 +29,12 @@ private SvmPeerCommandResponseInner() { } /** - * Get the svmPeeringCommand property: A command that needs to be run on the external ONTAP to accept svm peering. - * Will only be present if <code>svmPeeringStatus</code> is <code>pending</code>. + * Get the properties property: Represents the properties of the SVM peer command response. * - * @return the svmPeeringCommand value. + * @return the properties value. */ - public String svmPeeringCommand() { - return this.svmPeeringCommand; + public SvmPeerCommandResponseProperties properties() { + return this.properties; } /** @@ -44,6 +43,9 @@ public String svmPeeringCommand() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (properties() != null) { + properties().validate(); + } } /** @@ -52,7 +54,7 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("svmPeeringCommand", this.svmPeeringCommand); + jsonWriter.writeJsonField("properties", this.properties); return jsonWriter.writeEndObject(); } @@ -71,8 +73,9 @@ public static SvmPeerCommandResponseInner fromJson(JsonReader jsonReader) throws String fieldName = reader.getFieldName(); reader.nextToken(); - if ("svmPeeringCommand".equals(fieldName)) { - deserializedSvmPeerCommandResponseInner.svmPeeringCommand = reader.getString(); + if ("properties".equals(fieldName)) { + deserializedSvmPeerCommandResponseInner.properties + = SvmPeerCommandResponseProperties.fromJson(reader); } else { reader.skipChildren(); } 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 23790850280f..5a4ea7f2feb7 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 @@ -13,14 +13,11 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit; import com.azure.resourcemanager.netapp.models.AvsDataStore; -import com.azure.resourcemanager.netapp.models.BreakthroughMode; import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy; import com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy; 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 +25,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 +234,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 +246,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. @@ -870,29 +862,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. * @@ -1352,37 +1321,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. * @@ -1401,52 +1339,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. - * - * @return the breakthroughMode value. - */ - public BreakthroughMode breakthroughMode() { - return this.innerProperties() == null ? null : this.innerProperties().breakthroughMode(); - } - - /** - * Set the breakthroughMode property: Specifies whether the volume operates in Breakthrough Mode. - * - * @param breakthroughMode the breakthroughMode value to set. - * @return the VolumeInner object itself. - */ - public VolumeInner withBreakthroughMode(BreakthroughMode breakthroughMode) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withBreakthroughMode(breakthroughMode); - return this; - } - /** * Validates the instance. * 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 a719bc951111..b03bf0e90072 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 0b1642b1e178..000000000000 --- 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 57f4f5033f33..000000000000 --- 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/CachesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CachesClientImpl.java index 7991693b1336..c63d24b8e84b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CachesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CachesClientImpl.java @@ -158,7 +158,7 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/caches") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByCapacityPools(@HostParam("endpoint") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); @@ -167,7 +167,7 @@ Mono> listByCapacityPools(@HostParam("endpoint") String endp @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/caches") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByCapacityPoolsSync(@HostParam("endpoint") String endpoint, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); @@ -236,15 +236,14 @@ Response resetSmbPasswordSync(@HostParam("endpoint") String endpoint @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByCapacityPoolsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listNext(@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 listByCapacityPoolsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } @@ -1200,8 +1199,8 @@ public void delete(String resourceGroupName, String accountName, String poolName * @return list of Cache resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByCapacityPoolsSinglePageAsync(String resourceGroupName, - String accountName, String poolName) { + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + String poolName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1222,7 +1221,7 @@ private Mono> listByCapacityPoolsSinglePageAsync(Strin } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByCapacityPools(this.client.getEndpoint(), this.client.getApiVersion(), + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1241,10 +1240,9 @@ private Mono> listByCapacityPoolsSinglePageAsync(Strin * @return list of Cache resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByCapacityPoolsAsync(String resourceGroupName, String accountName, - String poolName) { - return new PagedFlux<>(() -> listByCapacityPoolsSinglePageAsync(resourceGroupName, accountName, poolName), - nextLink -> listByCapacityPoolsNextSinglePageAsync(nextLink)); + private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** @@ -1259,8 +1257,7 @@ private PagedFlux listByCapacityPoolsAsync(String resourceGroupName, * @return list of Cache resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByCapacityPoolsSinglePage(String resourceGroupName, String accountName, - String poolName) { + private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -1284,9 +1281,8 @@ private PagedResponse listByCapacityPoolsSinglePage(String resourceG .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByCapacityPoolsSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, Context.NONE); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -1304,8 +1300,8 @@ private PagedResponse listByCapacityPoolsSinglePage(String resourceG * @return list of Cache resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByCapacityPoolsSinglePage(String resourceGroupName, String accountName, - String poolName, Context context) { + private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName, + Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -1329,9 +1325,8 @@ private PagedResponse listByCapacityPoolsSinglePage(String resourceG .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByCapacityPoolsSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -1348,10 +1343,9 @@ private PagedResponse listByCapacityPoolsSinglePage(String resourceG * @return list of Cache resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByCapacityPools(String resourceGroupName, String accountName, - String poolName) { - return new PagedIterable<>(() -> listByCapacityPoolsSinglePage(resourceGroupName, accountName, poolName), - nextLink -> listByCapacityPoolsNextSinglePage(nextLink)); + public PagedIterable list(String resourceGroupName, String accountName, String poolName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName), + nextLink -> listNextSinglePage(nextLink)); } /** @@ -1367,11 +1361,10 @@ public PagedIterable listByCapacityPools(String resourceGroupName, S * @return list of Cache resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByCapacityPools(String resourceGroupName, String accountName, String poolName, + public PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context) { - return new PagedIterable<>( - () -> listByCapacityPoolsSinglePage(resourceGroupName, accountName, poolName, context), - nextLink -> listByCapacityPoolsNextSinglePage(nextLink, context)); + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName, context), + nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -2049,7 +2042,7 @@ public void resetSmbPassword(String resourceGroupName, String accountName, Strin * @return list of Cache resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByCapacityPoolsNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -2058,9 +2051,7 @@ private Mono> listByCapacityPoolsNextSinglePageAsync(S new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByCapacityPoolsNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(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())); @@ -2076,7 +2067,7 @@ private Mono> listByCapacityPoolsNextSinglePageAsync(S * @return list of Cache resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByCapacityPoolsNextSinglePage(String nextLink) { + private PagedResponse listNextSinglePage(String nextLink) { if (nextLink == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -2087,8 +2078,7 @@ private PagedResponse listByCapacityPoolsNextSinglePage(String nextL "Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByCapacityPoolsNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -2104,7 +2094,7 @@ private PagedResponse listByCapacityPoolsNextSinglePage(String nextL * @return list of Cache resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByCapacityPoolsNextSinglePage(String nextLink, Context context) { + private PagedResponse listNextSinglePage(String nextLink, Context context) { if (nextLink == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -2115,8 +2105,7 @@ private PagedResponse listByCapacityPoolsNextSinglePage(String nextL "Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByCapacityPoolsNextSync(nextLink, this.client.getEndpoint(), accept, context); + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CachesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CachesImpl.java index cd088ce4d93a..d9586204cbfe 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CachesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CachesImpl.java @@ -55,16 +55,13 @@ public void delete(String resourceGroupName, String accountName, String poolName this.serviceClient().delete(resourceGroupName, accountName, poolName, cacheName, context); } - public PagedIterable listByCapacityPools(String resourceGroupName, String accountName, String poolName) { - PagedIterable inner - = this.serviceClient().listByCapacityPools(resourceGroupName, accountName, poolName); + public PagedIterable list(String resourceGroupName, String accountName, String poolName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, poolName); return ResourceManagerUtils.mapPage(inner, inner1 -> new CacheImpl(inner1, this.manager())); } - public PagedIterable listByCapacityPools(String resourceGroupName, String accountName, String poolName, - Context context) { - PagedIterable inner - = this.serviceClient().listByCapacityPools(resourceGroupName, accountName, poolName, context); + public PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, poolName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new CacheImpl(inner1, 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 2b7bfcf99083..000000000000 --- 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/ClusterPeerCommandResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java index 1336757e463d..33049e8fa3ca 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner; import com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponse; +import com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponseProperties; public final class ClusterPeerCommandResponseImpl implements ClusterPeerCommandResponse { private ClusterPeerCommandResponseInner innerObject; @@ -18,8 +19,8 @@ public final class ClusterPeerCommandResponseImpl implements ClusterPeerCommandR this.serviceManager = serviceManager; } - public String peerAcceptCommand() { - return this.innerModel().peerAcceptCommand(); + public ClusterPeerCommandResponseProperties properties() { + return this.innerModel().properties(); } public ClusterPeerCommandResponseInner innerModel() { 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 11bd2660a1ff..000000000000 --- 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 1f3905cf94b3..000000000000 --- 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 updateSync(@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); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}") - @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("accountName") String accountName, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}") - @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("accountName") String accountName, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts") - @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/elasticAccounts") - @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/elasticAccounts") - @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/elasticAccounts") - @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 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 ManagementException 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, accountName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 ManagementException 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) - public Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, 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 ManagementException 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) - public ElasticAccountInner getByResourceGroup(String resourceGroupName, String accountName) { - return getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); - } - - /** - * 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 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 along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, ElasticAccountInner 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName 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, accountName, contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - ElasticAccountInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName 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, accountName, contentType, accept, body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - ElasticAccountInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName 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, accountName, contentType, accept, body, 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 ManagementException 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 netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticAccountInner> - beginCreateOrUpdateAsync(String resourceGroupName, String accountName, ElasticAccountInner body) { - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, accountName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticAccountInner.class, ElasticAccountInner.class, this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticAccountInner> - beginCreateOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, body); - return this.client.getLroResult(response, ElasticAccountInner.class, - ElasticAccountInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticAccountInner> - beginCreateOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body, Context context) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, body, context); - return this.client.getLroResult(response, ElasticAccountInner.class, - ElasticAccountInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - ElasticAccountInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticAccountInner createOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticAccountInner createOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body, - Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, body, context).getFinalResult(); - } - - /** - * 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 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 along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - ElasticAccountUpdate 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName 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, accountName, contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - ElasticAccountUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName 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, accountName, contentType, accept, body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - ElasticAccountUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName 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, accountName, contentType, accept, body, 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 ManagementException 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 netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticAccountInner> beginUpdateAsync(String resourceGroupName, - String accountName, ElasticAccountUpdate body) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticAccountInner.class, ElasticAccountInner.class, this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticAccountInner> beginUpdate(String resourceGroupName, - String accountName, ElasticAccountUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, body); - return this.client.getLroResult(response, ElasticAccountInner.class, - ElasticAccountInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticAccountInner> beginUpdate(String resourceGroupName, - String accountName, ElasticAccountUpdate body, Context context) { - Response response = updateWithResponse(resourceGroupName, accountName, body, context); - return this.client.getLroResult(response, ElasticAccountInner.class, - ElasticAccountInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, - ElasticAccountUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticAccountInner update(String resourceGroupName, String accountName, ElasticAccountUpdate body) { - return beginUpdate(resourceGroupName, accountName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticAccountInner update(String resourceGroupName, String accountName, ElasticAccountUpdate body, - Context context) { - return beginUpdate(resourceGroupName, accountName, body, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, 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 ManagementException 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 accountName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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 accountName) { - Response response = deleteWithResponse(resourceGroupName, accountName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, - Context context) { - Response response = deleteWithResponse(resourceGroupName, accountName, context); - return this.client.getLroResult(response, Void.class, Void.class, 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 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 accountName) { - return beginDeleteAsync(resourceGroupName, accountName).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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 accountName) { - beginDelete(resourceGroupName, accountName).getFinalResult(); - } - - /** - * 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 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 accountName, Context context) { - beginDelete(resourceGroupName, accountName, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 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 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 ManagementException 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * 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 ManagementException 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 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 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 ManagementException 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 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 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 ManagementException 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) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePage(nextLink)); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); - } - - /** - * List and describe all NetApp elastic accounts in 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 ElasticAccount 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 and describe all NetApp elastic accounts in 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 ElasticAccount list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); - } - - /** - * List and describe all NetApp elastic accounts in 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 ElasticAccount 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 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 ManagementException 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 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 and describe all NetApp elastic accounts in 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 ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); - } - - /** - * 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 ManagementException 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) - 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 ElasticAccount 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 ElasticAccount 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 ElasticAccount 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 ElasticAccount 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 ElasticAccount 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 ElasticAccount 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(ElasticAccountsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsImpl.java deleted file mode 100644 index 2a12b6a8e008..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsImpl.java +++ /dev/null @@ -1,142 +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.ElasticAccountsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner; -import com.azure.resourcemanager.netapp.models.ElasticAccount; -import com.azure.resourcemanager.netapp.models.ElasticAccounts; - -public final class ElasticAccountsImpl implements ElasticAccounts { - private static final ClientLogger LOGGER = new ClientLogger(ElasticAccountsImpl.class); - - private final ElasticAccountsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticAccountsImpl(ElasticAccountsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, - Context context) { - Response inner - = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, accountName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticAccountImpl(inner.getValue(), this.manager())); - } - - public ElasticAccount getByResourceGroup(String resourceGroupName, String accountName) { - ElasticAccountInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName); - if (inner != null) { - return new ElasticAccountImpl(inner, this.manager()); - } else { - return null; - } - } - - public void deleteByResourceGroup(String resourceGroupName, String accountName) { - this.serviceClient().delete(resourceGroupName, accountName); - } - - public void delete(String resourceGroupName, String accountName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, context); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticAccountImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticAccountImpl(inner1, this.manager())); - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticAccountImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticAccountImpl(inner1, this.manager())); - } - - public ElasticAccount 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, accountName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, accountName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - this.delete(resourceGroupName, accountName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - this.delete(resourceGroupName, accountName, context); - } - - private ElasticAccountsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticAccountImpl define(String name) { - return new ElasticAccountImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupImpl.java deleted file mode 100644 index d5c1bbf4ab11..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupImpl.java +++ /dev/null @@ -1,135 +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.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; -import com.azure.resourcemanager.netapp.models.ElasticBackup; -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; - -public final class ElasticBackupImpl implements ElasticBackup, ElasticBackup.Definition, ElasticBackup.Update { - private ElasticBackupInner 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 ElasticBackupProperties properties() { - return this.innerModel().properties(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ElasticBackupInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String backupVaultName; - - private String backupName; - - public ElasticBackupImpl withExistingElasticBackupVault(String resourceGroupName, String accountName, - String backupVaultName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - this.backupVaultName = backupVaultName; - return this; - } - - public ElasticBackup create() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .createOrUpdate(resourceGroupName, accountName, backupVaultName, backupName, this.innerModel(), - Context.NONE); - return this; - } - - public ElasticBackup create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .createOrUpdate(resourceGroupName, accountName, backupVaultName, backupName, this.innerModel(), context); - return this; - } - - ElasticBackupImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticBackupInner(); - this.serviceManager = serviceManager; - this.backupName = name; - } - - public ElasticBackupImpl update() { - return this; - } - - public ElasticBackup apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .update(resourceGroupName, accountName, backupVaultName, backupName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticBackup apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .update(resourceGroupName, accountName, backupVaultName, backupName, this.innerModel(), context); - return this; - } - - ElasticBackupImpl(ElasticBackupInner 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"); - this.backupVaultName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticBackupVaults"); - this.backupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticBackups"); - } - - public ElasticBackup refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, Context.NONE) - .getValue(); - return this; - } - - public ElasticBackup refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context) - .getValue(); - return this; - } - - public ElasticBackupImpl withProperties(ElasticBackupProperties properties) { - this.innerModel().withProperties(properties); - return this; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesClientImpl.java deleted file mode 100644 index 9570804a8999..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesClientImpl.java +++ /dev/null @@ -1,1323 +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.ElasticBackupPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupPolicyListResult; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdate; -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 ElasticBackupPoliciesClient. - */ -public final class ElasticBackupPoliciesClientImpl implements ElasticBackupPoliciesClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticBackupPoliciesService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticBackupPoliciesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticBackupPoliciesClientImpl(NetAppManagementClientImpl client) { - this.service = RestProxy.create(ElasticBackupPoliciesService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticBackupPolicies to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticBackupPolicies") - public interface ElasticBackupPoliciesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @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, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupPolicyInner body, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @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, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupPolicyInner body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @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, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupPolicyUpdate body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @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("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupPolicyUpdate body, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @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("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @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("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccount(@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}/elasticBackupPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountSync(@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("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccountNext( - @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 listByElasticAccountNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, 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 ManagementException 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String backupPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, - String backupPolicyName) { - return getWithResponseAsync(resourceGroupName, accountName, backupPolicyName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 ManagementException 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) - public Response getWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupPolicyName, accept, 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 ManagementException 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) - public ElasticBackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName) { - return getWithResponse(resourceGroupName, accountName, backupPolicyName, Context.NONE).getValue(); - } - - /** - * 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 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 along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String backupPolicyName, ElasticBackupPolicyInner 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupPolicyName 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, accountName, backupPolicyName, contentType, accept, - body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName 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, accountName, backupPolicyName, contentType, accept, - body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName 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, accountName, backupPolicyName, contentType, accept, - body, 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 ManagementException 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 netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupPolicyInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupPolicyName, body); - return this.client.getLroResult(response, - ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyInner body, - Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupPolicyName, body, context); - return this.client.getLroResult(response, - ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, backupPolicyName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticBackupPolicyInner createOrUpdate(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupPolicyName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticBackupPolicyInner createOrUpdate(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupPolicyName, body, context).getFinalResult(); - } - - /** - * 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 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 along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyUpdate 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupPolicyName 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, accountName, backupPolicyName, contentType, accept, - body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName 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, accountName, backupPolicyName, contentType, accept, - body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName 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, accountName, backupPolicyName, contentType, accept, - body, 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 ManagementException 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 netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupPolicyInner> beginUpdateAsync( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyUpdate body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, backupPolicyName, body); - return this.client.getLroResult(response, - ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyUpdate body, - Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, backupPolicyName, body, context); - return this.client.getLroResult(response, - ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, backupPolicyName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticBackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, - ElasticBackupPolicyUpdate body) { - return beginUpdate(resourceGroupName, accountName, backupPolicyName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticBackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, - ElasticBackupPolicyUpdate body, Context context) { - return beginUpdate(resourceGroupName, accountName, backupPolicyName, body, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 accountName, - String backupPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 accountName, - String backupPolicyName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, - String backupPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, 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 ManagementException 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 accountName, - String backupPolicyName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, backupPolicyName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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 accountName, - String backupPolicyName) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupPolicyName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, - String backupPolicyName, Context context) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupPolicyName, context); - return this.client.getLroResult(response, Void.class, Void.class, 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 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 accountName, String backupPolicyName) { - return beginDeleteAsync(resourceGroupName, accountName, backupPolicyName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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 accountName, String backupPolicyName) { - beginDelete(resourceGroupName, accountName, backupPolicyName).getFinalResult(); - } - - /** - * 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 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 accountName, String backupPolicyName, Context context) { - beginDelete(resourceGroupName, accountName, backupPolicyName, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountSinglePageAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticAccount(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, 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 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 ManagementException 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticAccountAsync(String resourceGroupName, - String accountName) { - return new PagedFlux<>(() -> listByElasticAccountSinglePageAsync(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePageAsync(nextLink)); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePage(nextLink)); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName, context), - nextLink -> listByElasticAccountNextSinglePage(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 ElasticBackupPolicy list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountNextSinglePageAsync(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.listByElasticAccountNext(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 ElasticBackupPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(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.listByElasticAccountNextSync(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 ElasticBackupPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(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.listByElasticAccountNextSync(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(ElasticBackupPoliciesClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesImpl.java deleted file mode 100644 index 4899e3583e0e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesImpl.java +++ /dev/null @@ -1,155 +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.ElasticBackupPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicies; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; - -public final class ElasticBackupPoliciesImpl implements ElasticBackupPolicies { - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupPoliciesImpl.class); - - private final ElasticBackupPoliciesClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticBackupPoliciesImpl(ElasticBackupPoliciesClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, accountName, backupPolicyName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticBackupPolicyImpl(inner.getValue(), this.manager())); - } - - public ElasticBackupPolicy get(String resourceGroupName, String accountName, String backupPolicyName) { - ElasticBackupPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, backupPolicyName); - if (inner != null) { - return new ElasticBackupPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String backupPolicyName) { - this.serviceClient().delete(resourceGroupName, accountName, backupPolicyName); - } - - public void delete(String resourceGroupName, String accountName, String backupPolicyName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, backupPolicyName, context); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupPolicyImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupPolicyImpl(inner1, this.manager())); - } - - public ElasticBackupPolicy 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupPolicies"); - if (backupPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupPolicies'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupPolicyName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupPolicies"); - if (backupPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupPolicies'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupPolicyName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupPolicies"); - if (backupPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupPolicies'.", id))); - } - this.delete(resourceGroupName, accountName, backupPolicyName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupPolicies"); - if (backupPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupPolicies'.", id))); - } - this.delete(resourceGroupName, accountName, backupPolicyName, context); - } - - private ElasticBackupPoliciesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticBackupPolicyImpl define(String name) { - return new ElasticBackupPolicyImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPolicyImpl.java deleted file mode 100644 index b5f1b87e2ade..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPolicyImpl.java +++ /dev/null @@ -1,192 +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.ElasticBackupPolicyInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdate; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties; -import java.util.Collections; -import java.util.Map; - -public final class ElasticBackupPolicyImpl - implements ElasticBackupPolicy, ElasticBackupPolicy.Definition, ElasticBackupPolicy.Update { - private ElasticBackupPolicyInner 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 ElasticBackupPolicyProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - 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 ElasticBackupPolicyInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String backupPolicyName; - - private ElasticBackupPolicyUpdate updateBody; - - public ElasticBackupPolicyImpl withExistingElasticAccount(String resourceGroupName, String accountName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - return this; - } - - public ElasticBackupPolicy create() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .createOrUpdate(resourceGroupName, accountName, backupPolicyName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticBackupPolicy create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .createOrUpdate(resourceGroupName, accountName, backupPolicyName, this.innerModel(), context); - return this; - } - - ElasticBackupPolicyImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticBackupPolicyInner(); - this.serviceManager = serviceManager; - this.backupPolicyName = name; - } - - public ElasticBackupPolicyImpl update() { - this.updateBody = new ElasticBackupPolicyUpdate(); - return this; - } - - public ElasticBackupPolicy apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .update(resourceGroupName, accountName, backupPolicyName, updateBody, Context.NONE); - return this; - } - - public ElasticBackupPolicy apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .update(resourceGroupName, accountName, backupPolicyName, updateBody, context); - return this; - } - - ElasticBackupPolicyImpl(ElasticBackupPolicyInner 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"); - this.backupPolicyName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticBackupPolicies"); - } - - public ElasticBackupPolicy refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .getWithResponse(resourceGroupName, accountName, backupPolicyName, Context.NONE) - .getValue(); - return this; - } - - public ElasticBackupPolicy refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .getWithResponse(resourceGroupName, accountName, backupPolicyName, context) - .getValue(); - return this; - } - - public ElasticBackupPolicyImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticBackupPolicyImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticBackupPolicyImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticBackupPolicyImpl withProperties(ElasticBackupPolicyProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ElasticBackupPolicyImpl withProperties(ElasticBackupPolicyUpdateProperties 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/ElasticBackupVaultImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultImpl.java deleted file mode 100644 index 13bcd05c95f6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultImpl.java +++ /dev/null @@ -1,186 +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.ElasticBackupVaultInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultUpdate; -import java.util.Collections; -import java.util.Map; - -public final class ElasticBackupVaultImpl - implements ElasticBackupVault, ElasticBackupVault.Definition, ElasticBackupVault.Update { - private ElasticBackupVaultInner 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 ElasticBackupVaultProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - 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 ElasticBackupVaultInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String backupVaultName; - - private ElasticBackupVaultUpdate updateBody; - - public ElasticBackupVaultImpl withExistingElasticAccount(String resourceGroupName, String accountName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - return this; - } - - public ElasticBackupVault create() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .createOrUpdate(resourceGroupName, accountName, backupVaultName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticBackupVault create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .createOrUpdate(resourceGroupName, accountName, backupVaultName, this.innerModel(), context); - return this; - } - - ElasticBackupVaultImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticBackupVaultInner(); - this.serviceManager = serviceManager; - this.backupVaultName = name; - } - - public ElasticBackupVaultImpl update() { - this.updateBody = new ElasticBackupVaultUpdate(); - return this; - } - - public ElasticBackupVault apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .update(resourceGroupName, accountName, backupVaultName, updateBody, Context.NONE); - return this; - } - - public ElasticBackupVault apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .update(resourceGroupName, accountName, backupVaultName, updateBody, context); - return this; - } - - ElasticBackupVaultImpl(ElasticBackupVaultInner 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"); - this.backupVaultName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticBackupVaults"); - } - - public ElasticBackupVault refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .getWithResponse(resourceGroupName, accountName, backupVaultName, Context.NONE) - .getValue(); - return this; - } - - public ElasticBackupVault refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .getWithResponse(resourceGroupName, accountName, backupVaultName, context) - .getValue(); - return this; - } - - public ElasticBackupVaultImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticBackupVaultImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticBackupVaultImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticBackupVaultImpl withProperties(ElasticBackupVaultProperties properties) { - this.innerModel().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/ElasticBackupVaultsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsClientImpl.java deleted file mode 100644 index 40825ed76062..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsClientImpl.java +++ /dev/null @@ -1,1322 +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.ElasticBackupVaultsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupVaultListResult; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultUpdate; -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 ElasticBackupVaultsClient. - */ -public final class ElasticBackupVaultsClientImpl implements ElasticBackupVaultsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticBackupVaultsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticBackupVaultsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticBackupVaultsClientImpl(NetAppManagementClientImpl client) { - this.service = RestProxy.create(ElasticBackupVaultsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticBackupVaults to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticBackupVaults") - public interface ElasticBackupVaultsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Accept") String accept, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @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, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupVaultInner body, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @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, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupVaultInner body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @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, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupVaultUpdate body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @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("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupVaultUpdate body, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @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("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @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("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccount(@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}/elasticBackupVaults") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountSync(@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("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccountNext( - @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 listByElasticAccountNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, 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 ManagementException 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, - String backupVaultName) { - return getWithResponseAsync(resourceGroupName, accountName, backupVaultName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 ManagementException 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) - public Response getWithResponse(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, accept, 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 ManagementException 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) - public ElasticBackupVaultInner get(String resourceGroupName, String accountName, String backupVaultName) { - return getWithResponse(resourceGroupName, accountName, backupVaultName, Context.NONE).getValue(); - } - - /** - * 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 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 along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String backupVaultName, ElasticBackupVaultInner 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName 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, accountName, backupVaultName, contentType, accept, - body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName 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, accountName, backupVaultName, contentType, accept, body, - Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName 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, accountName, backupVaultName, contentType, accept, body, - 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 ManagementException 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 netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupVaultInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, backupVaultName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupVaultInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupVaultName, body); - return this.client.getLroResult(response, - ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupVaultInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultInner body, - Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupVaultName, body, context); - return this.client.getLroResult(response, - ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, backupVaultName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticBackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupVaultName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticBackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupVaultName, body, context).getFinalResult(); - } - - /** - * 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 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 along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultUpdate 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName 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, accountName, backupVaultName, contentType, accept, - body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName 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, accountName, backupVaultName, contentType, accept, body, - Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName 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, accountName, backupVaultName, contentType, accept, body, - 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 ManagementException 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 netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupVaultInner> beginUpdateAsync( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultUpdate body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupVaultInner> beginUpdate( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, backupVaultName, body); - return this.client.getLroResult(response, - ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupVaultInner> beginUpdate( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultUpdate body, - Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, backupVaultName, body, context); - return this.client.getLroResult(response, - ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticBackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultUpdate body) { - return beginUpdate(resourceGroupName, accountName, backupVaultName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticBackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultUpdate body, Context context) { - return beginUpdate(resourceGroupName, accountName, backupVaultName, body, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 accountName, - String backupVaultName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 accountName, - String backupVaultName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, - String backupVaultName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, 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 ManagementException 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 accountName, - String backupVaultName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, backupVaultName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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 accountName, - String backupVaultName) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupVaultName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, - String backupVaultName, Context context) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupVaultName, context); - return this.client.getLroResult(response, Void.class, Void.class, 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 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 accountName, String backupVaultName) { - return beginDeleteAsync(resourceGroupName, accountName, backupVaultName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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 accountName, String backupVaultName) { - beginDelete(resourceGroupName, accountName, backupVaultName).getFinalResult(); - } - - /** - * 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 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 accountName, String backupVaultName, Context context) { - beginDelete(resourceGroupName, accountName, backupVaultName, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountSinglePageAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticAccount(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, 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 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 ManagementException 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticAccountAsync(String resourceGroupName, String accountName) { - return new PagedFlux<>(() -> listByElasticAccountSinglePageAsync(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePageAsync(nextLink)); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePage(nextLink)); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName, context), - nextLink -> listByElasticAccountNextSinglePage(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 ElasticBackupVault list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountNextSinglePageAsync(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.listByElasticAccountNext(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 ElasticBackupVault list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(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.listByElasticAccountNextSync(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 ElasticBackupVault list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(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.listByElasticAccountNextSync(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(ElasticBackupVaultsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsImpl.java deleted file mode 100644 index 827e6c61a571..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsImpl.java +++ /dev/null @@ -1,155 +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.ElasticBackupVaultsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaults; - -public final class ElasticBackupVaultsImpl implements ElasticBackupVaults { - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupVaultsImpl.class); - - private final ElasticBackupVaultsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticBackupVaultsImpl(ElasticBackupVaultsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, accountName, backupVaultName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticBackupVaultImpl(inner.getValue(), this.manager())); - } - - public ElasticBackupVault get(String resourceGroupName, String accountName, String backupVaultName) { - ElasticBackupVaultInner inner = this.serviceClient().get(resourceGroupName, accountName, backupVaultName); - if (inner != null) { - return new ElasticBackupVaultImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String backupVaultName) { - this.serviceClient().delete(resourceGroupName, accountName, backupVaultName); - } - - public void delete(String resourceGroupName, String accountName, String backupVaultName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, context); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupVaultImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupVaultImpl(inner1, this.manager())); - } - - public ElasticBackupVault 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupVaultName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupVaultName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - this.delete(resourceGroupName, accountName, backupVaultName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - this.delete(resourceGroupName, accountName, backupVaultName, context); - } - - private ElasticBackupVaultsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticBackupVaultImpl define(String name) { - return new ElasticBackupVaultImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsClientImpl.java deleted file mode 100644 index d048173279a6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsClientImpl.java +++ /dev/null @@ -1,1420 +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.ElasticBackupsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupListResult; -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 ElasticBackupsClient. - */ -public final class ElasticBackupsClientImpl implements ElasticBackupsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticBackupsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticBackupsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticBackupsClientImpl(NetAppManagementClientImpl client) { - this.service - = RestProxy.create(ElasticBackupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticBackups to be used by the proxy service - * to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticBackups") - public interface ElasticBackupsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @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, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticBackupInner body, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @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, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticBackupInner body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @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, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticBackupInner body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @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("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticBackupInner body, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @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("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @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("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVault(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByVaultSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVaultNext( - @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 listByVaultNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, 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 ManagementException 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} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String backupVaultName, - String backupName) { - return getWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 ManagementException 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) - public Response getWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, backupName, accept, 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 ManagementException 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) - public ElasticBackupInner get(String resourceGroupName, String accountName, String backupVaultName, - String backupName) { - return getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, Context.NONE).getValue(); - } - - /** - * 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 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 along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - return Mono.error(new IllegalArgumentException("Parameter backupName 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, accountName, backupVaultName, backupName, - contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName 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, accountName, backupVaultName, backupName, contentType, - accept, body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName 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, accountName, backupVaultName, backupName, contentType, - accept, body, 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 ManagementException 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 netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String backupVaultName, String backupName, - ElasticBackupInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticBackupInner.class, ElasticBackupInner.class, this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(response, ElasticBackupInner.class, - ElasticBackupInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body, Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body, context); - return this.client.getLroResult(response, ElasticBackupInner.class, - ElasticBackupInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticBackupInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupVaultName, backupName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticBackupInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupVaultName, backupName, body, context) - .getFinalResult(); - } - - /** - * 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 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 along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - return Mono.error(new IllegalArgumentException("Parameter backupName 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, accountName, backupVaultName, backupName, - contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName 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, accountName, backupVaultName, backupName, contentType, - accept, body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName 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, accountName, backupVaultName, backupName, contentType, - accept, body, 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 ManagementException 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 netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupInner> beginUpdateAsync(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticBackupInner.class, ElasticBackupInner.class, this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupInner> beginUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body) { - Response response - = updateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(response, ElasticBackupInner.class, - ElasticBackupInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticBackupInner> beginUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body, Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body, context); - return this.client.getLroResult(response, ElasticBackupInner.class, - ElasticBackupInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body) { - return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticBackupInner update(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body) { - return beginUpdate(resourceGroupName, accountName, backupVaultName, backupName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticBackupInner update(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body, Context context) { - return beginUpdate(resourceGroupName, accountName, backupVaultName, backupName, body, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 accountName, - String backupVaultName, String backupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 accountName, - String backupVaultName, String backupName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, - String backupVaultName, String backupName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, 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 ManagementException 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 accountName, - String backupVaultName, String backupName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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 accountName, - String backupVaultName, String backupName) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupVaultName, backupName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, - String backupVaultName, String backupName, Context context) { - Response response - = deleteWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context); - return this.client.getLroResult(response, Void.class, Void.class, 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 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 accountName, String backupVaultName, - String backupName) { - return beginDeleteAsync(resourceGroupName, accountName, backupVaultName, backupName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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 accountName, String backupVaultName, String backupName) { - beginDelete(resourceGroupName, accountName, backupVaultName, backupName).getFinalResult(); - } - - /** - * 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 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 accountName, String backupVaultName, String backupName, - Context context) { - beginDelete(resourceGroupName, accountName, backupVaultName, backupName, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVaultSinglePageAsync(String resourceGroupName, - String accountName, String backupVaultName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByVault(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, 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 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 ManagementException 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVaultAsync(String resourceGroupName, String accountName, - String backupVaultName) { - return new PagedFlux<>(() -> listByVaultSinglePageAsync(resourceGroupName, accountName, backupVaultName), - nextLink -> listByVaultNextSinglePageAsync(nextLink)); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVaultSinglePage(String resourceGroupName, String accountName, - String backupVaultName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByVaultSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVaultSinglePage(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByVaultSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByVault(String resourceGroupName, String accountName, - String backupVaultName) { - return new PagedIterable<>(() -> listByVaultSinglePage(resourceGroupName, accountName, backupVaultName), - nextLink -> listByVaultNextSinglePage(nextLink)); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByVault(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - return new PagedIterable<>( - () -> listByVaultSinglePage(resourceGroupName, accountName, backupVaultName, context), - nextLink -> listByVaultNextSinglePage(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 ElasticBackup list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVaultNextSinglePageAsync(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.listByVaultNext(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 ElasticBackup list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVaultNextSinglePage(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.listByVaultNextSync(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 ElasticBackup list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVaultNextSinglePage(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.listByVaultNextSync(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(ElasticBackupsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsImpl.java deleted file mode 100644 index 3f110c1e6b84..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsImpl.java +++ /dev/null @@ -1,179 +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.ElasticBackupsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; -import com.azure.resourcemanager.netapp.models.ElasticBackup; -import com.azure.resourcemanager.netapp.models.ElasticBackups; - -public final class ElasticBackupsImpl implements ElasticBackups { - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupsImpl.class); - - private final ElasticBackupsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticBackupsImpl(ElasticBackupsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, - String backupName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticBackupImpl(inner.getValue(), this.manager())); - } - - public ElasticBackup get(String resourceGroupName, String accountName, String backupVaultName, String backupName) { - ElasticBackupInner inner - = this.serviceClient().get(resourceGroupName, accountName, backupVaultName, backupName); - if (inner != null) { - return new ElasticBackupImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName) { - this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, backupName); - } - - public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, - Context context) { - this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, backupName, context); - } - - public PagedIterable listByVault(String resourceGroupName, String accountName, - String backupVaultName) { - PagedIterable inner - = this.serviceClient().listByVault(resourceGroupName, accountName, backupVaultName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupImpl(inner1, this.manager())); - } - - public PagedIterable listByVault(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - PagedIterable inner - = this.serviceClient().listByVault(resourceGroupName, accountName, backupVaultName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupImpl(inner1, this.manager())); - } - - public ElasticBackup 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - String backupName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackups"); - if (backupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackups'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - String backupName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackups"); - if (backupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackups'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - String backupName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackups"); - if (backupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackups'.", id))); - } - this.delete(resourceGroupName, accountName, backupVaultName, backupName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - String backupName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackups"); - if (backupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackups'.", id))); - } - this.delete(resourceGroupName, accountName, backupVaultName, backupName, context); - } - - private ElasticBackupsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticBackupImpl define(String name) { - return new ElasticBackupImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolImpl.java deleted file mode 100644 index af68ba51b1c6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolImpl.java +++ /dev/null @@ -1,232 +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.Response; -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.ElasticCapacityPoolInner; -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPool; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolProperties; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdate; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdateProperties; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -public final class ElasticCapacityPoolImpl - implements ElasticCapacityPool, ElasticCapacityPool.Definition, ElasticCapacityPool.Update { - private ElasticCapacityPoolInner 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 ElasticCapacityPoolProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - public List zones() { - List inner = this.innerModel().zones(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - 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 ElasticCapacityPoolInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String poolName; - - private ElasticCapacityPoolUpdate updateBody; - - public ElasticCapacityPoolImpl withExistingElasticAccount(String resourceGroupName, String accountName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - return this; - } - - public ElasticCapacityPool create() { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .createOrUpdate(resourceGroupName, accountName, poolName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticCapacityPool create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .createOrUpdate(resourceGroupName, accountName, poolName, this.innerModel(), context); - return this; - } - - ElasticCapacityPoolImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticCapacityPoolInner(); - this.serviceManager = serviceManager; - this.poolName = name; - } - - public ElasticCapacityPoolImpl update() { - this.updateBody = new ElasticCapacityPoolUpdate(); - return this; - } - - public ElasticCapacityPool apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .update(resourceGroupName, accountName, poolName, updateBody, Context.NONE); - return this; - } - - public ElasticCapacityPool apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .update(resourceGroupName, accountName, poolName, updateBody, context); - return this; - } - - ElasticCapacityPoolImpl(ElasticCapacityPoolInner 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"); - this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticCapacityPools"); - } - - public ElasticCapacityPool refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .getWithResponse(resourceGroupName, accountName, poolName, Context.NONE) - .getValue(); - return this; - } - - public ElasticCapacityPool refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .getWithResponse(resourceGroupName, accountName, poolName, context) - .getValue(); - return this; - } - - public ElasticCapacityPool changeZone(ChangeZoneRequest body) { - return serviceManager.elasticCapacityPools().changeZone(resourceGroupName, accountName, poolName, body); - } - - public ElasticCapacityPool changeZone(ChangeZoneRequest body, Context context) { - return serviceManager.elasticCapacityPools() - .changeZone(resourceGroupName, accountName, poolName, body, context); - } - - public Response checkVolumeFilePathAvailabilityWithResponse( - CheckElasticVolumeFilePathAvailabilityRequest body, Context context) { - return serviceManager.elasticCapacityPools() - .checkVolumeFilePathAvailabilityWithResponse(resourceGroupName, accountName, poolName, body, context); - } - - public CheckElasticResourceAvailabilityResponse - checkVolumeFilePathAvailability(CheckElasticVolumeFilePathAvailabilityRequest body) { - return serviceManager.elasticCapacityPools() - .checkVolumeFilePathAvailability(resourceGroupName, accountName, poolName, body); - } - - public ElasticCapacityPoolImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticCapacityPoolImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticCapacityPoolImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticCapacityPoolImpl withProperties(ElasticCapacityPoolProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ElasticCapacityPoolImpl withZones(List zones) { - this.innerModel().withZones(zones); - return this; - } - - public ElasticCapacityPoolImpl withProperties(ElasticCapacityPoolUpdateProperties 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/ElasticCapacityPoolsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsClientImpl.java deleted file mode 100644 index 187d4ee3ea11..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsClientImpl.java +++ /dev/null @@ -1,1760 +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.Post; -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.ElasticCapacityPoolsClient; -import com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner; -import com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticCapacityPoolListResult; -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdate; -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 ElasticCapacityPoolsClient. - */ -public final class ElasticCapacityPoolsClientImpl implements ElasticCapacityPoolsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticCapacityPoolsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticCapacityPoolsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticCapacityPoolsClientImpl(NetAppManagementClientImpl client) { - this.service = RestProxy.create(ElasticCapacityPoolsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticCapacityPools to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticCapacityPools") - public interface ElasticCapacityPoolsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @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, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticCapacityPoolInner body, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @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, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticCapacityPoolInner body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @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, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticCapacityPoolUpdate body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @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("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticCapacityPoolUpdate body, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @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("accountName") String accountName, - @PathParam("poolName") String poolName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @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("accountName") String accountName, - @PathParam("poolName") String poolName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccount(@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}/elasticCapacityPools") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountSync(@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); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/changeZone") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> changeZone(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ChangeZoneRequest body, - Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/changeZone") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response changeZoneSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ChangeZoneRequest body, - Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/checkVolumeFilePathAvailability") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkVolumeFilePathAvailability( - @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, - @BodyParam("application/json") CheckElasticVolumeFilePathAvailabilityRequest body, Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/checkVolumeFilePathAvailability") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response checkVolumeFilePathAvailabilitySync( - @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, - @BodyParam("application/json") CheckElasticVolumeFilePathAvailabilityRequest body, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccountNext( - @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 listByElasticAccountNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, 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 ManagementException 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String poolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String poolName) { - return getWithResponseAsync(resourceGroupName, accountName, poolName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 ManagementException 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) - public Response getWithResponse(String resourceGroupName, String accountName, - String poolName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, accept, 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 ManagementException 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) - public ElasticCapacityPoolInner get(String resourceGroupName, String accountName, String poolName) { - return getWithResponse(resourceGroupName, accountName, poolName, Context.NONE).getValue(); - } - - /** - * 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 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 along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String poolName, ElasticCapacityPoolInner 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName 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, accountName, poolName, contentType, accept, body, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, ElasticCapacityPoolInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName 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, accountName, poolName, contentType, accept, body, - Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, ElasticCapacityPoolInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName 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, accountName, poolName, contentType, accept, body, - 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 ManagementException 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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticCapacityPoolInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticCapacityPoolInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolInner body) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticCapacityPoolInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolInner body, Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, body, context); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String poolName, ElasticCapacityPoolInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticCapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticCapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, body, context).getFinalResult(); - } - - /** - * 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 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 along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String poolName, ElasticCapacityPoolUpdate 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName 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, accountName, poolName, contentType, accept, body, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName 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, accountName, poolName, contentType, accept, body, - Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName 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, accountName, poolName, contentType, accept, body, - 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 ManagementException 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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticCapacityPoolInner> beginUpdateAsync( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolUpdate body) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticCapacityPoolInner> - beginUpdate(String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticCapacityPoolInner> beginUpdate( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolUpdate body, - Context context) { - Response response = updateWithResponse(resourceGroupName, accountName, poolName, body, context); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticCapacityPoolInner update(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate body) { - return beginUpdate(resourceGroupName, accountName, poolName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticCapacityPoolInner update(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate body, Context context) { - return beginUpdate(resourceGroupName, accountName, poolName, body, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 accountName, - String poolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 accountName, String poolName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, String poolName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, 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 ManagementException 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 accountName, - String poolName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, poolName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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 accountName, - String poolName) { - Response response = deleteWithResponse(resourceGroupName, accountName, poolName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, String poolName, - Context context) { - Response response = deleteWithResponse(resourceGroupName, accountName, poolName, context); - return this.client.getLroResult(response, Void.class, Void.class, 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 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 accountName, String poolName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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 accountName, String poolName) { - beginDelete(resourceGroupName, accountName, poolName).getFinalResult(); - } - - /** - * 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 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 accountName, String poolName, Context context) { - beginDelete(resourceGroupName, accountName, poolName, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountSinglePageAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticAccount(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, 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 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 ManagementException 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticAccountAsync(String resourceGroupName, - String accountName) { - return new PagedFlux<>(() -> listByElasticAccountSinglePageAsync(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePageAsync(nextLink)); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePage(nextLink)); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName, context), - nextLink -> listByElasticAccountNextSinglePage(nextLink, 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 ManagementException 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> changeZoneWithResponseAsync(String resourceGroupName, String accountName, - String poolName, ChangeZoneRequest 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName 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.changeZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 changeZoneWithResponse(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName 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.changeZoneSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - Context.NONE); - } - - /** - * 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 ManagementException 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 changeZoneWithResponse(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName 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.changeZoneSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - 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 ManagementException 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, ElasticCapacityPoolInner> - beginChangeZoneAsync(String resourceGroupName, String accountName, String poolName, ChangeZoneRequest body) { - Mono>> mono - = changeZoneWithResponseAsync(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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, ElasticCapacityPoolInner> - beginChangeZone(String resourceGroupName, String accountName, String poolName, ChangeZoneRequest body) { - Response response = changeZoneWithResponse(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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, ElasticCapacityPoolInner> beginChangeZone( - String resourceGroupName, String accountName, String poolName, ChangeZoneRequest body, Context context) { - Response response = changeZoneWithResponse(resourceGroupName, accountName, poolName, body, context); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, 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 ManagementException 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono changeZoneAsync(String resourceGroupName, String accountName, - String poolName, ChangeZoneRequest body) { - return beginChangeZoneAsync(resourceGroupName, accountName, poolName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticCapacityPoolInner changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body) { - return beginChangeZone(resourceGroupName, accountName, poolName, body).getFinalResult(); - } - - /** - * 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 ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticCapacityPoolInner changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body, Context context) { - return beginChangeZone(resourceGroupName, accountName, poolName, body, context).getFinalResult(); - } - - /** - * 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 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} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - checkVolumeFilePathAvailabilityWithResponseAsync(String resourceGroupName, String accountName, String poolName, - CheckElasticVolumeFilePathAvailabilityRequest 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName 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.checkVolumeFilePathAvailability(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, - contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkVolumeFilePathAvailabilityAsync( - String resourceGroupName, String accountName, String poolName, - CheckElasticVolumeFilePathAvailabilityRequest body) { - return checkVolumeFilePathAvailabilityWithResponseAsync(resourceGroupName, accountName, poolName, body) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 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) - public Response checkVolumeFilePathAvailabilityWithResponse( - String resourceGroupName, String accountName, String poolName, - CheckElasticVolumeFilePathAvailabilityRequest 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName 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.checkVolumeFilePathAvailabilitySync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - 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 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) - public CheckElasticResourceAvailabilityResponseInner checkVolumeFilePathAvailability(String resourceGroupName, - String accountName, String poolName, CheckElasticVolumeFilePathAvailabilityRequest body) { - return checkVolumeFilePathAvailabilityWithResponse(resourceGroupName, accountName, poolName, body, Context.NONE) - .getValue(); - } - - /** - * 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 ElasticCapacityPool list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountNextSinglePageAsync(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.listByElasticAccountNext(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 ElasticCapacityPool list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(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.listByElasticAccountNextSync(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 ElasticCapacityPool list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(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.listByElasticAccountNextSync(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(ElasticCapacityPoolsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsImpl.java deleted file mode 100644 index 9234248ba2ee..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsImpl.java +++ /dev/null @@ -1,201 +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.ElasticCapacityPoolsClient; -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.CheckElasticResourceAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPool; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPools; - -public final class ElasticCapacityPoolsImpl implements ElasticCapacityPools { - private static final ClientLogger LOGGER = new ClientLogger(ElasticCapacityPoolsImpl.class); - - private final ElasticCapacityPoolsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticCapacityPoolsImpl(ElasticCapacityPoolsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, accountName, poolName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticCapacityPoolImpl(inner.getValue(), this.manager())); - } - - public ElasticCapacityPool get(String resourceGroupName, String accountName, String poolName) { - ElasticCapacityPoolInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName); - if (inner != null) { - return new ElasticCapacityPoolImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String poolName) { - this.serviceClient().delete(resourceGroupName, accountName, poolName); - } - - public void delete(String resourceGroupName, String accountName, String poolName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, context); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticCapacityPoolImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticCapacityPoolImpl(inner1, this.manager())); - } - - public ElasticCapacityPool changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body) { - ElasticCapacityPoolInner inner - = this.serviceClient().changeZone(resourceGroupName, accountName, poolName, body); - if (inner != null) { - return new ElasticCapacityPoolImpl(inner, this.manager()); - } else { - return null; - } - } - - public ElasticCapacityPool changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body, Context context) { - ElasticCapacityPoolInner inner - = this.serviceClient().changeZone(resourceGroupName, accountName, poolName, body, context); - if (inner != null) { - return new ElasticCapacityPoolImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response checkVolumeFilePathAvailabilityWithResponse( - String resourceGroupName, String accountName, String poolName, - CheckElasticVolumeFilePathAvailabilityRequest body, Context context) { - Response inner = this.serviceClient() - .checkVolumeFilePathAvailabilityWithResponse(resourceGroupName, accountName, poolName, body, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new CheckElasticResourceAvailabilityResponseImpl(inner.getValue(), this.manager())); - } - - public CheckElasticResourceAvailabilityResponse checkVolumeFilePathAvailability(String resourceGroupName, - String accountName, String poolName, CheckElasticVolumeFilePathAvailabilityRequest body) { - CheckElasticResourceAvailabilityResponseInner inner - = this.serviceClient().checkVolumeFilePathAvailability(resourceGroupName, accountName, poolName, body); - if (inner != null) { - return new CheckElasticResourceAvailabilityResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public ElasticCapacityPool 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, context); - } - - private ElasticCapacityPoolsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticCapacityPoolImpl define(String name) { - return new ElasticCapacityPoolImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotImpl.java deleted file mode 100644 index 7196cc3e5579..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotImpl.java +++ /dev/null @@ -1,142 +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.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshot; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties; - -public final class ElasticSnapshotImpl implements ElasticSnapshot, ElasticSnapshot.Definition, ElasticSnapshot.Update { - private ElasticSnapshotInner 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 ElasticSnapshotProperties properties() { - return this.innerModel().properties(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ElasticSnapshotInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String poolName; - - private String volumeName; - - private String snapshotName; - - public ElasticSnapshotImpl withExistingElasticVolume(String resourceGroupName, String accountName, String poolName, - String volumeName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - this.poolName = poolName; - this.volumeName = volumeName; - return this; - } - - public ElasticSnapshot create() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, this.innerModel(), - Context.NONE); - return this; - } - - public ElasticSnapshot create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, this.innerModel(), - context); - return this; - } - - ElasticSnapshotImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticSnapshotInner(); - this.serviceManager = serviceManager; - this.snapshotName = name; - } - - public ElasticSnapshotImpl update() { - return this; - } - - public ElasticSnapshot apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, this.innerModel(), - Context.NONE); - return this; - } - - public ElasticSnapshot apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, this.innerModel(), - context); - return this; - } - - ElasticSnapshotImpl(ElasticSnapshotInner 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"); - this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticCapacityPools"); - this.volumeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticVolumes"); - this.snapshotName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticSnapshots"); - } - - public ElasticSnapshot refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) - .getValue(); - return this; - } - - public ElasticSnapshot refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context) - .getValue(); - return this; - } - - public ElasticSnapshotImpl withProperties(ElasticSnapshotProperties properties) { - this.innerModel().withProperties(properties); - return this; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesClientImpl.java deleted file mode 100644 index e98b44912b66..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesClientImpl.java +++ /dev/null @@ -1,1635 +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.ElasticSnapshotPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyListResult; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyVolumeList; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdate; -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 ElasticSnapshotPoliciesClient. - */ -public final class ElasticSnapshotPoliciesClientImpl implements ElasticSnapshotPoliciesClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticSnapshotPoliciesService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticSnapshotPoliciesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticSnapshotPoliciesClientImpl(NetAppManagementClientImpl client) { - this.service = RestProxy.create(ElasticSnapshotPoliciesService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticSnapshotPolicies to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticSnapshotPolicies") - public interface ElasticSnapshotPoliciesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @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, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotPolicyInner body, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @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, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotPolicyInner body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @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, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotPolicyUpdate body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @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("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotPolicyUpdate body, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @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("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @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("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccount(@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}/elasticSnapshotPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountSync(@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}/elasticSnapshotPolicies/{snapshotPolicyName}/elasticvolumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listElasticVolumes(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}/elasticvolumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listElasticVolumesSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccountNext( - @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 listByElasticAccountNextSync( - @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> listElasticVolumesNext( - @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 listElasticVolumesNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, 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 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String accountName, String snapshotPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, - String snapshotPolicyName) { - return getWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 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) - public Response getWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, snapshotPolicyName, accept, 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 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) - public ElasticSnapshotPolicyInner get(String resourceGroupName, String accountName, String snapshotPolicyName) { - return getWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE).getValue(); - } - - /** - * 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 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 along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter snapshotPolicyName 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, accountName, snapshotPolicyName, contentType, - accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName 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, accountName, snapshotPolicyName, contentType, accept, - body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName 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, accountName, snapshotPolicyName, contentType, accept, - body, 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 ManagementException 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 netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticSnapshotPolicyInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticSnapshotPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, snapshotPolicyName, body); - return this.client.getLroResult(response, - ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticSnapshotPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body, - Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, snapshotPolicyName, body, context); - return this.client.getLroResult(response, - ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticSnapshotPolicyInner createOrUpdate(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, snapshotPolicyName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticSnapshotPolicyInner createOrUpdate(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, snapshotPolicyName, body, context).getFinalResult(); - } - - /** - * 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 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 along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyUpdate 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter snapshotPolicyName 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, accountName, snapshotPolicyName, contentType, - accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName 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, accountName, snapshotPolicyName, contentType, accept, - body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName 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, accountName, snapshotPolicyName, contentType, accept, - body, 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 ManagementException 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 netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticSnapshotPolicyInner> beginUpdateAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyUpdate body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticSnapshotPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, snapshotPolicyName, body); - return this.client.getLroResult(response, - ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticSnapshotPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyUpdate body, - Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, snapshotPolicyName, body, context); - return this.client.getLroResult(response, - ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticSnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, - ElasticSnapshotPolicyUpdate body) { - return beginUpdate(resourceGroupName, accountName, snapshotPolicyName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticSnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, - ElasticSnapshotPolicyUpdate body, Context context) { - return beginUpdate(resourceGroupName, accountName, snapshotPolicyName, body, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 accountName, - String snapshotPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 accountName, - String snapshotPolicyName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, - String snapshotPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, 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 ManagementException 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 accountName, - String snapshotPolicyName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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 accountName, - String snapshotPolicyName) { - Response response = deleteWithResponse(resourceGroupName, accountName, snapshotPolicyName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, - String snapshotPolicyName, Context context) { - Response response = deleteWithResponse(resourceGroupName, accountName, snapshotPolicyName, context); - return this.client.getLroResult(response, Void.class, Void.class, 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 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 accountName, String snapshotPolicyName) { - return beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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 accountName, String snapshotPolicyName) { - beginDelete(resourceGroupName, accountName, snapshotPolicyName).getFinalResult(); - } - - /** - * 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 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 accountName, String snapshotPolicyName, Context context) { - beginDelete(resourceGroupName, accountName, snapshotPolicyName, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByElasticAccountSinglePageAsync(String resourceGroupName, String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticAccount(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, 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 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 ManagementException 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticAccountAsync(String resourceGroupName, - String accountName) { - return new PagedFlux<>(() -> listByElasticAccountSinglePageAsync(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePageAsync(nextLink)); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticAccount(String resourceGroupName, - String accountName) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePage(nextLink)); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName, context), - nextLink -> listByElasticAccountNextSinglePage(nextLink, 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 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 along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listElasticVolumesSinglePageAsync(String resourceGroupName, - String accountName, String snapshotPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listElasticVolumes(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, 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 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 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listElasticVolumesAsync(String resourceGroupName, String accountName, - String snapshotPolicyName) { - return new PagedFlux<>( - () -> listElasticVolumesSinglePageAsync(resourceGroupName, accountName, snapshotPolicyName), - nextLink -> listElasticVolumesNextSinglePageAsync(nextLink)); - } - - /** - * 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 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listElasticVolumesSinglePage(String resourceGroupName, String accountName, - String snapshotPolicyName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listElasticVolumesSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, - snapshotPolicyName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listElasticVolumesSinglePage(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listElasticVolumesSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 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) - public PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName) { - return new PagedIterable<>( - () -> listElasticVolumesSinglePage(resourceGroupName, accountName, snapshotPolicyName), - nextLink -> listElasticVolumesNextSinglePage(nextLink)); - } - - /** - * 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 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) - public PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - return new PagedIterable<>( - () -> listElasticVolumesSinglePage(resourceGroupName, accountName, snapshotPolicyName, context), - nextLink -> listElasticVolumesNextSinglePage(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 ElasticSnapshotPolicy list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountNextSinglePageAsync(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.listByElasticAccountNext(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 ElasticSnapshotPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(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.listByElasticAccountNextSync(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 ElasticSnapshotPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(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.listByElasticAccountNextSync(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 elastic volumes associated with Elastic Snapshot Policy along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listElasticVolumesNextSinglePageAsync(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.listElasticVolumesNext(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 elastic volumes associated with Elastic Snapshot Policy along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listElasticVolumesNextSinglePage(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.listElasticVolumesNextSync(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 elastic volumes associated with Elastic Snapshot Policy along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listElasticVolumesNextSinglePage(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.listElasticVolumesNextSync(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(ElasticSnapshotPoliciesClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesImpl.java deleted file mode 100644 index 1e0054cf2788..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesImpl.java +++ /dev/null @@ -1,171 +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.ElasticSnapshotPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicies; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.ElasticVolume; - -public final class ElasticSnapshotPoliciesImpl implements ElasticSnapshotPolicies { - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotPoliciesImpl.class); - - private final ElasticSnapshotPoliciesClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticSnapshotPoliciesImpl(ElasticSnapshotPoliciesClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, accountName, snapshotPolicyName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticSnapshotPolicyImpl(inner.getValue(), this.manager())); - } - - public ElasticSnapshotPolicy get(String resourceGroupName, String accountName, String snapshotPolicyName) { - ElasticSnapshotPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, snapshotPolicyName); - if (inner != null) { - return new ElasticSnapshotPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String snapshotPolicyName) { - this.serviceClient().delete(resourceGroupName, accountName, snapshotPolicyName); - } - - public void delete(String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, snapshotPolicyName, context); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticSnapshotPolicyImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticSnapshotPolicyImpl(inner1, this.manager())); - } - - public PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName) { - PagedIterable inner - = this.serviceClient().listElasticVolumes(resourceGroupName, accountName, snapshotPolicyName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticVolumeImpl(inner1, this.manager())); - } - - public PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - PagedIterable inner - = this.serviceClient().listElasticVolumes(resourceGroupName, accountName, snapshotPolicyName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticVolumeImpl(inner1, this.manager())); - } - - public ElasticSnapshotPolicy 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String snapshotPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshotPolicies"); - if (snapshotPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshotPolicies'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, snapshotPolicyName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String snapshotPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshotPolicies"); - if (snapshotPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshotPolicies'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, snapshotPolicyName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String snapshotPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshotPolicies"); - if (snapshotPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshotPolicies'.", id))); - } - this.delete(resourceGroupName, accountName, snapshotPolicyName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String snapshotPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshotPolicies"); - if (snapshotPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshotPolicies'.", id))); - } - this.delete(resourceGroupName, accountName, snapshotPolicyName, context); - } - - private ElasticSnapshotPoliciesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticSnapshotPolicyImpl define(String name) { - return new ElasticSnapshotPolicyImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPolicyImpl.java deleted file mode 100644 index c0f1db8361fd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPolicyImpl.java +++ /dev/null @@ -1,193 +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.ElasticSnapshotPolicyInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdate; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdateProperties; -import java.util.Collections; -import java.util.Map; - -public final class ElasticSnapshotPolicyImpl - implements ElasticSnapshotPolicy, ElasticSnapshotPolicy.Definition, ElasticSnapshotPolicy.Update { - private ElasticSnapshotPolicyInner 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 ElasticSnapshotPolicyProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - 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 ElasticSnapshotPolicyInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String snapshotPolicyName; - - private ElasticSnapshotPolicyUpdate updateBody; - - public ElasticSnapshotPolicyImpl withExistingElasticAccount(String resourceGroupName, String accountName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - return this; - } - - public ElasticSnapshotPolicy create() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .createOrUpdate(resourceGroupName, accountName, snapshotPolicyName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticSnapshotPolicy create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .createOrUpdate(resourceGroupName, accountName, snapshotPolicyName, this.innerModel(), context); - return this; - } - - ElasticSnapshotPolicyImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticSnapshotPolicyInner(); - this.serviceManager = serviceManager; - this.snapshotPolicyName = name; - } - - public ElasticSnapshotPolicyImpl update() { - this.updateBody = new ElasticSnapshotPolicyUpdate(); - return this; - } - - public ElasticSnapshotPolicy apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .update(resourceGroupName, accountName, snapshotPolicyName, updateBody, Context.NONE); - return this; - } - - public ElasticSnapshotPolicy apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .update(resourceGroupName, accountName, snapshotPolicyName, updateBody, context); - return this; - } - - ElasticSnapshotPolicyImpl(ElasticSnapshotPolicyInner 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"); - this.snapshotPolicyName - = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticSnapshotPolicies"); - } - - public ElasticSnapshotPolicy refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .getWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE) - .getValue(); - return this; - } - - public ElasticSnapshotPolicy refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .getWithResponse(resourceGroupName, accountName, snapshotPolicyName, context) - .getValue(); - return this; - } - - public ElasticSnapshotPolicyImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticSnapshotPolicyImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticSnapshotPolicyImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticSnapshotPolicyImpl withProperties(ElasticSnapshotPolicyProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ElasticSnapshotPolicyImpl withProperties(ElasticSnapshotPolicyUpdateProperties 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/ElasticSnapshotsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsClientImpl.java deleted file mode 100644 index 95ea6dc5374f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsClientImpl.java +++ /dev/null @@ -1,1188 +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.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.ElasticSnapshotsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotListResult; -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 ElasticSnapshotsClient. - */ -public final class ElasticSnapshotsClientImpl implements ElasticSnapshotsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticSnapshotsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticSnapshotsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticSnapshotsClientImpl(NetAppManagementClientImpl client) { - this.service - = RestProxy.create(ElasticSnapshotsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticSnapshots to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticSnapshots") - public interface ElasticSnapshotsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @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, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotInner body, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @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, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotInner body, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @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("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @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("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticVolume(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticVolumeSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticVolumeNext( - @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 listByElasticVolumeNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, 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 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 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) - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, snapshotName, accept, 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 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) - public ElasticSnapshotInner get(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName) { - return getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) - .getValue(); - } - - /** - * 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 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 along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, String snapshotName, ElasticSnapshotInner 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - return Mono.error(new IllegalArgumentException("Parameter snapshotName 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, accountName, poolName, volumeName, snapshotName, - contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName, ElasticSnapshotInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName 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, accountName, poolName, volumeName, snapshotName, - contentType, accept, body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName, ElasticSnapshotInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName 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, accountName, poolName, volumeName, snapshotName, - contentType, accept, body, 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 ManagementException 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 netApp Elastic Snapshot under an Elastic Volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticSnapshotInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, - ElasticSnapshotInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticSnapshotInner.class, ElasticSnapshotInner.class, this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticSnapshotInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, - ElasticSnapshotInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); - return this.client.getLroResult(response, - ElasticSnapshotInner.class, ElasticSnapshotInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticSnapshotInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, - ElasticSnapshotInner body, Context context) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, volumeName, - snapshotName, body, context); - return this.client.getLroResult(response, - ElasticSnapshotInner.class, ElasticSnapshotInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName, ElasticSnapshotInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticSnapshotInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, ElasticSnapshotInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) - .getFinalResult(); - } - - /** - * 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 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) - public ElasticSnapshotInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, ElasticSnapshotInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) - .getFinalResult(); - } - - /** - * 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 ManagementException 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 accountName, - String poolName, String volumeName, String snapshotName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 accountName, String poolName, - String volumeName, String snapshotName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, String poolName, - String volumeName, String snapshotName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - 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 ManagementException 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 accountName, - String poolName, String volumeName, String snapshotName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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 accountName, String poolName, - String volumeName, String snapshotName) { - Response response - = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, String poolName, - String volumeName, String snapshotName, Context context) { - Response response - = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - return this.client.getLroResult(response, Void.class, Void.class, 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 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 accountName, String poolName, String volumeName, - String snapshotName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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 accountName, String poolName, String volumeName, - String snapshotName) { - beginDelete(resourceGroupName, accountName, poolName, volumeName, snapshotName).getFinalResult(); - } - - /** - * 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 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 accountName, String poolName, String volumeName, - String snapshotName, Context context) { - beginDelete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticVolumeSinglePageAsync(String resourceGroupName, - String accountName, String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticVolume(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, 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 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 ManagementException 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticVolumeAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return new PagedFlux<>( - () -> listByElasticVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), - nextLink -> listByElasticVolumeNextSinglePageAsync(nextLink)); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticVolumeSinglePage(String resourceGroupName, - String accountName, String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listByElasticVolumeSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, - volumeName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticVolumeSinglePage(String resourceGroupName, - String accountName, String poolName, String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticVolumeSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticVolume(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return new PagedIterable<>( - () -> listByElasticVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName), - nextLink -> listByElasticVolumeNextSinglePage(nextLink)); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticVolume(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { - return new PagedIterable<>( - () -> listByElasticVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName, context), - nextLink -> listByElasticVolumeNextSinglePage(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 ElasticSnapshot list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticVolumeNextSinglePageAsync(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.listByElasticVolumeNext(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 ElasticSnapshot list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticVolumeNextSinglePage(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.listByElasticVolumeNextSync(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 ElasticSnapshot list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticVolumeNextSinglePage(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.listByElasticVolumeNextSync(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(ElasticSnapshotsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsImpl.java deleted file mode 100644 index de5a2418aa00..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsImpl.java +++ /dev/null @@ -1,201 +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.ElasticSnapshotsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshot; -import com.azure.resourcemanager.netapp.models.ElasticSnapshots; - -public final class ElasticSnapshotsImpl implements ElasticSnapshots { - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotsImpl.class); - - private final ElasticSnapshotsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticSnapshotsImpl(ElasticSnapshotsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticSnapshotImpl(inner.getValue(), this.manager())); - } - - public ElasticSnapshot get(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName) { - ElasticSnapshotInner inner - = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, snapshotName); - if (inner != null) { - return new ElasticSnapshotImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, snapshotName); - } - - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - } - - public PagedIterable listByElasticVolume(String resourceGroupName, String accountName, - String poolName, String volumeName) { - PagedIterable inner - = this.serviceClient().listByElasticVolume(resourceGroupName, accountName, poolName, volumeName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticSnapshotImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticVolume(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { - PagedIterable inner - = this.serviceClient().listByElasticVolume(resourceGroupName, accountName, poolName, volumeName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticSnapshotImpl(inner1, this.manager())); - } - - public ElasticSnapshot 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - String snapshotName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshots"); - if (snapshotName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshots'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - String snapshotName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshots"); - if (snapshotName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshots'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - String snapshotName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshots"); - if (snapshotName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshots'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - String snapshotName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshots"); - if (snapshotName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshots'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - } - - private ElasticSnapshotsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticSnapshotImpl define(String name) { - return new ElasticSnapshotImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumeImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumeImpl.java deleted file mode 100644 index adb207a1a222..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumeImpl.java +++ /dev/null @@ -1,221 +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.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdate; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -public final class ElasticVolumeImpl implements ElasticVolume, ElasticVolume.Definition, ElasticVolume.Update { - private ElasticVolumeInner 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 ElasticVolumeProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - public List zones() { - List inner = this.innerModel().zones(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - 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 ElasticVolumeInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String poolName; - - private String volumeName; - - private ElasticVolumeUpdate updateBody; - - public ElasticVolumeImpl withExistingElasticCapacityPool(String resourceGroupName, String accountName, - String poolName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - this.poolName = poolName; - return this; - } - - public ElasticVolume create() { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticVolume create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, this.innerModel(), context); - return this; - } - - ElasticVolumeImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticVolumeInner(); - this.serviceManager = serviceManager; - this.volumeName = name; - } - - public ElasticVolumeImpl update() { - this.updateBody = new ElasticVolumeUpdate(); - return this; - } - - public ElasticVolume apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .update(resourceGroupName, accountName, poolName, volumeName, updateBody, Context.NONE); - return this; - } - - public ElasticVolume apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .update(resourceGroupName, accountName, poolName, volumeName, updateBody, context); - return this; - } - - ElasticVolumeImpl(ElasticVolumeInner 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"); - this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticCapacityPools"); - this.volumeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticVolumes"); - } - - public ElasticVolume refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE) - .getValue(); - return this; - } - - public ElasticVolume refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, context) - .getValue(); - return this; - } - - public ElasticVolume revert(ElasticVolumeRevert body) { - return serviceManager.elasticVolumes().revert(resourceGroupName, accountName, poolName, volumeName, body); - } - - public ElasticVolume revert(ElasticVolumeRevert body, Context context) { - return serviceManager.elasticVolumes() - .revert(resourceGroupName, accountName, poolName, volumeName, body, context); - } - - public ElasticVolumeImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticVolumeImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticVolumeImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticVolumeImpl withProperties(ElasticVolumeProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ElasticVolumeImpl withZones(List zones) { - this.innerModel().withZones(zones); - return this; - } - - public ElasticVolumeImpl withProperties(ElasticVolumeUpdateProperties 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/ElasticVolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesClientImpl.java deleted file mode 100644 index 8048fb06e895..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesClientImpl.java +++ /dev/null @@ -1,1710 +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.Post; -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.ElasticVolumesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticVolumeListResult; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdate; -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 ElasticVolumesClient. - */ -public final class ElasticVolumesClientImpl implements ElasticVolumesClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticVolumesService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticVolumesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticVolumesClientImpl(NetAppManagementClientImpl client) { - this.service - = RestProxy.create(ElasticVolumesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticVolumes to be used by the proxy service - * to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticVolumes") - public interface ElasticVolumesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @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, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeInner body, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @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, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeInner body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @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, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeUpdate body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @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("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeUpdate body, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @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("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @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("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticPool(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticPoolSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/revert") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> revert(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeRevert body, Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/revert") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response revertSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeRevert body, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticPoolNext( - @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 listByElasticPoolNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, 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 ManagementException 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 ManagementException 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) - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, accept, 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 ManagementException 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) - public ElasticVolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName) { - return getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE).getValue(); - } - - /** - * 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 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 along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeInner 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName 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, accountName, poolName, volumeName, contentType, - accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, ElasticVolumeInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName 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, accountName, poolName, volumeName, contentType, accept, - body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, ElasticVolumeInner 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName 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, accountName, poolName, volumeName, contentType, accept, - body, 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 ManagementException 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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticVolumeInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, ElasticVolumeInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticVolumeInner.class, ElasticVolumeInner.class, this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticVolumeInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticVolumeInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeInner body, Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, volumeName, body, context); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticVolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticVolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, body, context) - .getFinalResult(); - } - - /** - * 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 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 along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, ElasticVolumeUpdate 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName 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, accountName, poolName, volumeName, contentType, - accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName 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, accountName, poolName, volumeName, contentType, accept, - body, Context.NONE); - } - - /** - * 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 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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeUpdate 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName 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, accountName, poolName, volumeName, contentType, accept, - body, 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 ManagementException 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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticVolumeInner> beginUpdateAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeUpdate body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticVolumeInner.class, ElasticVolumeInner.class, this.client.getContext()); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticVolumeInner> beginUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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) - public SyncPoller, ElasticVolumeInner> beginUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeUpdate body, Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, poolName, volumeName, body, context); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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) - public ElasticVolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeUpdate body) { - return beginUpdate(resourceGroupName, accountName, poolName, volumeName, body).getFinalResult(); - } - - /** - * 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 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) - public ElasticVolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeUpdate body, Context context) { - return beginUpdate(resourceGroupName, accountName, poolName, volumeName, body, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 accountName, - String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 accountName, String poolName, - String volumeName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, String poolName, - String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, 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 ManagementException 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 accountName, - String poolName, String volumeName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * 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 ManagementException 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 accountName, String poolName, - String volumeName) { - Response response = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * 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 ManagementException 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 accountName, String poolName, - String volumeName, Context context) { - Response response - = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, context); - return this.client.getLroResult(response, Void.class, Void.class, 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 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 accountName, String poolName, String volumeName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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 accountName, String poolName, String volumeName) { - beginDelete(resourceGroupName, accountName, poolName, volumeName).getFinalResult(); - } - - /** - * 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 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 accountName, String poolName, String volumeName, - Context context) { - beginDelete(resourceGroupName, accountName, poolName, volumeName, context).getFinalResult(); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticPoolSinglePageAsync(String resourceGroupName, - String accountName, String poolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticPool(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, 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 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 ManagementException 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticPoolAsync(String resourceGroupName, String accountName, - String poolName) { - return new PagedFlux<>(() -> listByElasticPoolSinglePageAsync(resourceGroupName, accountName, poolName), - nextLink -> listByElasticPoolNextSinglePageAsync(nextLink)); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticPoolSinglePage(String resourceGroupName, String accountName, - String poolName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticPoolSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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 along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticPoolSinglePage(String resourceGroupName, String accountName, - String poolName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticPoolSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticPool(String resourceGroupName, String accountName, - String poolName) { - return new PagedIterable<>(() -> listByElasticPoolSinglePage(resourceGroupName, accountName, poolName), - nextLink -> listByElasticPoolNextSinglePage(nextLink)); - } - - /** - * 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 ManagementException 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) - public PagedIterable listByElasticPool(String resourceGroupName, String accountName, - String poolName, Context context) { - return new PagedIterable<>(() -> listByElasticPoolSinglePage(resourceGroupName, accountName, poolName, context), - nextLink -> listByElasticPoolNextSinglePage(nextLink, 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 ManagementException 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> revertWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, ElasticVolumeRevert 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 (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName 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.revert(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, - accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 ManagementException 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 revertWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeRevert 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName 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.revertSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, - body, Context.NONE); - } - - /** - * 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 ManagementException 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 revertWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeRevert 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 (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName 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.revertSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, - body, 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 ManagementException 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, ElasticVolumeInner> beginRevertAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeRevert body) { - Mono>> mono - = revertWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticVolumeInner.class, ElasticVolumeInner.class, this.client.getContext()); - } - - /** - * 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 ManagementException 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, ElasticVolumeInner> beginRevert(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeRevert body) { - Response response = revertWithResponse(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, Context.NONE); - } - - /** - * 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 ManagementException 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, ElasticVolumeInner> beginRevert(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeRevert body, Context context) { - Response response - = revertWithResponse(resourceGroupName, accountName, poolName, volumeName, body, context); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, 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 ManagementException 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono revertAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeRevert body) { - return beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticVolumeInner revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body) { - return beginRevert(resourceGroupName, accountName, poolName, volumeName, body).getFinalResult(); - } - - /** - * 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 ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticVolumeInner revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body, Context context) { - return beginRevert(resourceGroupName, accountName, poolName, volumeName, body, context).getFinalResult(); - } - - /** - * 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 ElasticVolume list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticPoolNextSinglePageAsync(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.listByElasticPoolNext(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 ElasticVolume list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticPoolNextSinglePage(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.listByElasticPoolNextSync(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 ElasticVolume list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticPoolNextSinglePage(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.listByElasticPoolNextSync(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(ElasticVolumesClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesImpl.java deleted file mode 100644 index 7bb4bbf1f4fe..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesImpl.java +++ /dev/null @@ -1,200 +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.ElasticVolumesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import com.azure.resourcemanager.netapp.models.ElasticVolumes; - -public final class ElasticVolumesImpl implements ElasticVolumes { - private static final ClientLogger LOGGER = new ClientLogger(ElasticVolumesImpl.class); - - private final ElasticVolumesClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticVolumesImpl(ElasticVolumesClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, accountName, poolName, volumeName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticVolumeImpl(inner.getValue(), this.manager())); - } - - public ElasticVolume get(String resourceGroupName, String accountName, String poolName, String volumeName) { - ElasticVolumeInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName); - if (inner != null) { - return new ElasticVolumeImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName); - } - - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, context); - } - - public PagedIterable listByElasticPool(String resourceGroupName, String accountName, - String poolName) { - PagedIterable inner - = this.serviceClient().listByElasticPool(resourceGroupName, accountName, poolName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticVolumeImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticPool(String resourceGroupName, String accountName, String poolName, - Context context) { - PagedIterable inner - = this.serviceClient().listByElasticPool(resourceGroupName, accountName, poolName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticVolumeImpl(inner1, this.manager())); - } - - public ElasticVolume revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body) { - ElasticVolumeInner inner - = this.serviceClient().revert(resourceGroupName, accountName, poolName, volumeName, body); - if (inner != null) { - return new ElasticVolumeImpl(inner, this.manager()); - } else { - return null; - } - } - - public ElasticVolume revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body, Context context) { - ElasticVolumeInner inner - = this.serviceClient().revert(resourceGroupName, accountName, poolName, volumeName, body, context); - if (inner != null) { - return new ElasticVolumeImpl(inner, this.manager()); - } else { - return null; - } - } - - public ElasticVolume 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, volumeName, 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, volumeName, context); - } - - private ElasticVolumesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticVolumeImpl define(String name) { - return new ElasticVolumeImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java index a6554eb5b97b..f7fdcc5c73b5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java @@ -12,11 +12,7 @@ import com.azure.resourcemanager.netapp.models.ActiveDirectory; import com.azure.resourcemanager.netapp.models.ChangeKeyVault; import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; -import com.azure.resourcemanager.netapp.models.EntraIdConfig; -import com.azure.resourcemanager.netapp.models.EntraIdConfigPatch; import com.azure.resourcemanager.netapp.models.GetKeyVaultStatusResponse; -import com.azure.resourcemanager.netapp.models.LdapConfiguration; -import com.azure.resourcemanager.netapp.models.LdapConfigurationPatch; import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; import com.azure.resourcemanager.netapp.models.MultiAdStatus; import com.azure.resourcemanager.netapp.models.NetAppAccount; @@ -80,10 +76,6 @@ public List activeDirectories() { } } - public EntraIdConfig entraIdConfig() { - return this.innerModel().entraIdConfig(); - } - public AccountEncryption encryption() { return this.innerModel().encryption(); } @@ -100,10 +92,6 @@ public MultiAdStatus multiAdStatus() { return this.innerModel().multiAdStatus(); } - public LdapConfiguration ldapConfiguration() { - return this.innerModel().ldapConfiguration(); - } - public Region region() { return Region.fromName(this.regionName()); } @@ -269,11 +257,6 @@ public NetAppAccountImpl withActiveDirectories(List activeDirec } } - public NetAppAccountImpl withEntraIdConfig(EntraIdConfig entraIdConfig) { - this.innerModel().withEntraIdConfig(entraIdConfig); - return this; - } - public NetAppAccountImpl withEncryption(AccountEncryption encryption) { if (isInCreateMode()) { this.innerModel().withEncryption(encryption); @@ -294,26 +277,6 @@ public NetAppAccountImpl withNfsV4IdDomain(String nfsV4IdDomain) { } } - public NetAppAccountImpl withLdapConfiguration(LdapConfiguration ldapConfiguration) { - this.innerModel().withLdapConfiguration(ldapConfiguration); - return this; - } - - public NetAppAccountImpl withEntraIdConfig(EntraIdConfigPatch entraIdConfig) { - this.updateBody.withEntraIdConfig(entraIdConfig); - return this; - } - - public NetAppAccountImpl withMultiAdStatus(MultiAdStatus multiAdStatus) { - this.updateBody.withMultiAdStatus(multiAdStatus); - return this; - } - - public NetAppAccountImpl withLdapConfiguration(LdapConfigurationPatch ldapConfiguration) { - this.updateBody.withLdapConfiguration(ldapConfiguration); - 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/NetAppManagementClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java index 0282b32e6e4d..35816b59fc10 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java @@ -27,7 +27,6 @@ import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; import com.azure.resourcemanager.netapp.fluent.AccountsClient; -import com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient; import com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient; import com.azure.resourcemanager.netapp.fluent.BackupVaultsClient; import com.azure.resourcemanager.netapp.fluent.BackupsClient; @@ -36,14 +35,6 @@ import com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient; import com.azure.resourcemanager.netapp.fluent.BucketsClient; import com.azure.resourcemanager.netapp.fluent.CachesClient; -import com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient; -import com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient; -import com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient; -import com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient; import com.azure.resourcemanager.netapp.fluent.NetAppManagementClient; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; @@ -339,132 +330,6 @@ public CachesClient getCaches() { return this.caches; } - /** - * The ElasticAccountsClient object to access its operations. - */ - private final ElasticAccountsClient elasticAccounts; - - /** - * Gets the ElasticAccountsClient object to access its operations. - * - * @return the ElasticAccountsClient object. - */ - public ElasticAccountsClient getElasticAccounts() { - return this.elasticAccounts; - } - - /** - * The ElasticCapacityPoolsClient object to access its operations. - */ - private final ElasticCapacityPoolsClient elasticCapacityPools; - - /** - * Gets the ElasticCapacityPoolsClient object to access its operations. - * - * @return the ElasticCapacityPoolsClient object. - */ - public ElasticCapacityPoolsClient getElasticCapacityPools() { - return this.elasticCapacityPools; - } - - /** - * The ElasticVolumesClient object to access its operations. - */ - private final ElasticVolumesClient elasticVolumes; - - /** - * Gets the ElasticVolumesClient object to access its operations. - * - * @return the ElasticVolumesClient object. - */ - public ElasticVolumesClient getElasticVolumes() { - return this.elasticVolumes; - } - - /** - * The ElasticSnapshotsClient object to access its operations. - */ - private final ElasticSnapshotsClient elasticSnapshots; - - /** - * Gets the ElasticSnapshotsClient object to access its operations. - * - * @return the ElasticSnapshotsClient object. - */ - public ElasticSnapshotsClient getElasticSnapshots() { - return this.elasticSnapshots; - } - - /** - * The ElasticSnapshotPoliciesClient object to access its operations. - */ - private final ElasticSnapshotPoliciesClient elasticSnapshotPolicies; - - /** - * Gets the ElasticSnapshotPoliciesClient object to access its operations. - * - * @return the ElasticSnapshotPoliciesClient object. - */ - public ElasticSnapshotPoliciesClient getElasticSnapshotPolicies() { - return this.elasticSnapshotPolicies; - } - - /** - * The ElasticBackupVaultsClient object to access its operations. - */ - private final ElasticBackupVaultsClient elasticBackupVaults; - - /** - * Gets the ElasticBackupVaultsClient object to access its operations. - * - * @return the ElasticBackupVaultsClient object. - */ - public ElasticBackupVaultsClient getElasticBackupVaults() { - return this.elasticBackupVaults; - } - - /** - * The ElasticBackupPoliciesClient object to access its operations. - */ - private final ElasticBackupPoliciesClient elasticBackupPolicies; - - /** - * Gets the ElasticBackupPoliciesClient object to access its operations. - * - * @return the ElasticBackupPoliciesClient object. - */ - public ElasticBackupPoliciesClient getElasticBackupPolicies() { - return this.elasticBackupPolicies; - } - - /** - * The ElasticBackupsClient object to access its operations. - */ - private final ElasticBackupsClient elasticBackups; - - /** - * Gets the ElasticBackupsClient object to access its operations. - * - * @return the ElasticBackupsClient object. - */ - public ElasticBackupsClient getElasticBackups() { - return this.elasticBackups; - } - - /** - * The ActiveDirectoryConfigsClient object to access its operations. - */ - private final ActiveDirectoryConfigsClient activeDirectoryConfigs; - - /** - * Gets the ActiveDirectoryConfigsClient object to access its operations. - * - * @return the ActiveDirectoryConfigsClient object. - */ - public ActiveDirectoryConfigsClient getActiveDirectoryConfigs() { - return this.activeDirectoryConfigs; - } - /** * The NetAppResourceQuotaLimitsClient object to access its operations. */ @@ -622,7 +487,7 @@ public NetAppResourceUsagesClient getNetAppResourceUsages() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2025-12-15-preview"; + this.apiVersion = "2026-01-01"; this.operations = new OperationsClientImpl(this); this.netAppResourceQuotaLimitsAccounts = new NetAppResourceQuotaLimitsAccountsClientImpl(this); this.volumeGroups = new VolumeGroupsClientImpl(this); @@ -636,15 +501,6 @@ public NetAppResourceUsagesClient getNetAppResourceUsages() { this.backupVaults = new BackupVaultsClientImpl(this); this.buckets = new BucketsClientImpl(this); this.caches = new CachesClientImpl(this); - this.elasticAccounts = new ElasticAccountsClientImpl(this); - this.elasticCapacityPools = new ElasticCapacityPoolsClientImpl(this); - this.elasticVolumes = new ElasticVolumesClientImpl(this); - this.elasticSnapshots = new ElasticSnapshotsClientImpl(this); - this.elasticSnapshotPolicies = new ElasticSnapshotPoliciesClientImpl(this); - this.elasticBackupVaults = new ElasticBackupVaultsClientImpl(this); - this.elasticBackupPolicies = new ElasticBackupPoliciesClientImpl(this); - this.elasticBackups = new ElasticBackupsClientImpl(this); - this.activeDirectoryConfigs = new ActiveDirectoryConfigsClientImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this); this.netAppResourceRegionInfos = new NetAppResourceRegionInfosClientImpl(this); this.accounts = new AccountsClientImpl(this); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java index 68a81ec87a88..d83b32cad5de 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner; import com.azure.resourcemanager.netapp.models.SvmPeerCommandResponse; +import com.azure.resourcemanager.netapp.models.SvmPeerCommandResponseProperties; public final class SvmPeerCommandResponseImpl implements SvmPeerCommandResponse { private SvmPeerCommandResponseInner innerObject; @@ -18,8 +19,8 @@ public final class SvmPeerCommandResponseImpl implements SvmPeerCommandResponse this.serviceManager = serviceManager; } - public String svmPeeringCommand() { - return this.innerModel().svmPeeringCommand(); + public SvmPeerCommandResponseProperties properties() { + return this.innerModel().properties(); } public SvmPeerCommandResponseInner innerModel() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java index 24a3e1e152a8..69e2b79f221c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; -import com.azure.resourcemanager.netapp.models.BreakthroughMode; import com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponse; import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy; import com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy; @@ -23,8 +22,6 @@ import com.azure.resourcemanager.netapp.models.FileAccessLogs; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserResponse; -import com.azure.resourcemanager.netapp.models.LargeVolumeType; -import com.azure.resourcemanager.netapp.models.LdapServerType; import com.azure.resourcemanager.netapp.models.ListQuotaReportResult; import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; import com.azure.resourcemanager.netapp.models.MountTargetProperties; @@ -42,7 +39,6 @@ import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; import com.azure.resourcemanager.netapp.models.SvmPeerCommandResponse; import com.azure.resourcemanager.netapp.models.Volume; -import com.azure.resourcemanager.netapp.models.VolumeLanguage; import com.azure.resourcemanager.netapp.models.VolumePatch; import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; @@ -243,10 +239,6 @@ public Boolean ldapEnabled() { return this.innerModel().ldapEnabled(); } - public LdapServerType ldapServerType() { - return this.innerModel().ldapServerType(); - } - public Boolean coolAccess() { return this.innerModel().coolAccess(); } @@ -349,10 +341,6 @@ public Boolean isLargeVolume() { return this.innerModel().isLargeVolume(); } - public LargeVolumeType largeVolumeType() { - return this.innerModel().largeVolumeType(); - } - public String originatingResourceId() { return this.innerModel().originatingResourceId(); } @@ -361,14 +349,6 @@ public Long inheritedSizeInBytes() { return this.innerModel().inheritedSizeInBytes(); } - public VolumeLanguage language() { - return this.innerModel().language(); - } - - public BreakthroughMode breakthroughMode() { - return this.innerModel().breakthroughMode(); - } - public Region region() { return Region.fromName(this.regionName()); } @@ -837,11 +817,6 @@ public VolumeImpl withLdapEnabled(Boolean ldapEnabled) { return this; } - public VolumeImpl withLdapServerType(LdapServerType ldapServerType) { - this.innerModel().withLdapServerType(ldapServerType); - return this; - } - public VolumeImpl withCoolAccess(Boolean coolAccess) { if (isInCreateMode()) { this.innerModel().withCoolAccess(coolAccess); @@ -957,21 +932,6 @@ public VolumeImpl withIsLargeVolume(Boolean isLargeVolume) { return this; } - public VolumeImpl withLargeVolumeType(LargeVolumeType largeVolumeType) { - this.innerModel().withLargeVolumeType(largeVolumeType); - return this; - } - - public VolumeImpl withLanguage(VolumeLanguage language) { - this.innerModel().withLanguage(language); - return this; - } - - public VolumeImpl withBreakthroughMode(BreakthroughMode breakthroughMode) { - this.innerModel().withBreakthroughMode(breakthroughMode); - return this; - } - public VolumeImpl withUsageThreshold(Long usageThreshold) { this.updateBody.withUsageThreshold(usageThreshold); return this; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ActiveDirectoryConfigListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ActiveDirectoryConfigListResult.java deleted file mode 100644 index c4156bf746f6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ActiveDirectoryConfigListResult.java +++ /dev/null @@ -1,115 +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.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -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.fluent.models.ActiveDirectoryConfigInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ActiveDirectoryConfig list operation. - */ -@Immutable -public final class ActiveDirectoryConfigListResult implements JsonSerializable { - /* - * The ActiveDirectoryConfig items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ActiveDirectoryConfigListResult class. - */ - private ActiveDirectoryConfigListResult() { - } - - /** - * Get the value property: The ActiveDirectoryConfig items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ActiveDirectoryConfigListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConfigListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ActiveDirectoryConfigListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ActiveDirectoryConfigListResult 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 ActiveDirectoryConfigListResult. - */ - public static ActiveDirectoryConfigListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ActiveDirectoryConfigListResult deserializedActiveDirectoryConfigListResult - = new ActiveDirectoryConfigListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ActiveDirectoryConfigInner.fromJson(reader1)); - deserializedActiveDirectoryConfigListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedActiveDirectoryConfigListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedActiveDirectoryConfigListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticAccountListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticAccountListResult.java deleted file mode 100644 index 39dc1ba7e341..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticAccountListResult.java +++ /dev/null @@ -1,113 +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.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -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.fluent.models.ElasticAccountInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticAccount list operation. - */ -@Immutable -public final class ElasticAccountListResult implements JsonSerializable { - /* - * The ElasticAccount items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticAccountListResult class. - */ - private ElasticAccountListResult() { - } - - /** - * Get the value property: The ElasticAccount items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property value in model ElasticAccountListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticAccountListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticAccountListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticAccountListResult 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 ElasticAccountListResult. - */ - public static ElasticAccountListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticAccountListResult deserializedElasticAccountListResult = new ElasticAccountListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticAccountInner.fromJson(reader1)); - deserializedElasticAccountListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticAccountListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticAccountListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupListResult.java deleted file mode 100644 index 0667488f7b95..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupListResult.java +++ /dev/null @@ -1,112 +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.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -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.fluent.models.ElasticBackupInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticBackup list operation. - */ -@Immutable -public final class ElasticBackupListResult implements JsonSerializable { - /* - * The ElasticBackup items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticBackupListResult class. - */ - private ElasticBackupListResult() { - } - - /** - * Get the value property: The ElasticBackup items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property value in model ElasticBackupListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupListResult 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 ElasticBackupListResult. - */ - public static ElasticBackupListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupListResult deserializedElasticBackupListResult = new ElasticBackupListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> ElasticBackupInner.fromJson(reader1)); - deserializedElasticBackupListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticBackupListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupPolicyListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupPolicyListResult.java deleted file mode 100644 index aaaed85dae68..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupPolicyListResult.java +++ /dev/null @@ -1,115 +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.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -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.fluent.models.ElasticBackupPolicyInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticBackupPolicy list operation. - */ -@Immutable -public final class ElasticBackupPolicyListResult implements JsonSerializable { - /* - * The ElasticBackupPolicy items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticBackupPolicyListResult class. - */ - private ElasticBackupPolicyListResult() { - } - - /** - * Get the value property: The ElasticBackupPolicy items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ElasticBackupPolicyListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupPolicyListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupPolicyListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupPolicyListResult 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 ElasticBackupPolicyListResult. - */ - public static ElasticBackupPolicyListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupPolicyListResult deserializedElasticBackupPolicyListResult - = new ElasticBackupPolicyListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticBackupPolicyInner.fromJson(reader1)); - deserializedElasticBackupPolicyListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticBackupPolicyListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupPolicyListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupVaultListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupVaultListResult.java deleted file mode 100644 index a81d1b7f1925..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupVaultListResult.java +++ /dev/null @@ -1,114 +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.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -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.fluent.models.ElasticBackupVaultInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticBackupVault list operation. - */ -@Immutable -public final class ElasticBackupVaultListResult implements JsonSerializable { - /* - * The ElasticBackupVault items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticBackupVaultListResult class. - */ - private ElasticBackupVaultListResult() { - } - - /** - * Get the value property: The ElasticBackupVault items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ElasticBackupVaultListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupVaultListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupVaultListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupVaultListResult 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 ElasticBackupVaultListResult. - */ - public static ElasticBackupVaultListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupVaultListResult deserializedElasticBackupVaultListResult = new ElasticBackupVaultListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticBackupVaultInner.fromJson(reader1)); - deserializedElasticBackupVaultListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticBackupVaultListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupVaultListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticCapacityPoolListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticCapacityPoolListResult.java deleted file mode 100644 index 9eccce4ead03..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticCapacityPoolListResult.java +++ /dev/null @@ -1,115 +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.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -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.fluent.models.ElasticCapacityPoolInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticCapacityPool list operation. - */ -@Immutable -public final class ElasticCapacityPoolListResult implements JsonSerializable { - /* - * The ElasticCapacityPool items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticCapacityPoolListResult class. - */ - private ElasticCapacityPoolListResult() { - } - - /** - * Get the value property: The ElasticCapacityPool items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ElasticCapacityPoolListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticCapacityPoolListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticCapacityPoolListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticCapacityPoolListResult 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 ElasticCapacityPoolListResult. - */ - public static ElasticCapacityPoolListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticCapacityPoolListResult deserializedElasticCapacityPoolListResult - = new ElasticCapacityPoolListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticCapacityPoolInner.fromJson(reader1)); - deserializedElasticCapacityPoolListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticCapacityPoolListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticCapacityPoolListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotListResult.java deleted file mode 100644 index c8fbd65c6204..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotListResult.java +++ /dev/null @@ -1,114 +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.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -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.fluent.models.ElasticSnapshotInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticSnapshot list operation. - */ -@Immutable -public final class ElasticSnapshotListResult implements JsonSerializable { - /* - * The ElasticSnapshot items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticSnapshotListResult class. - */ - private ElasticSnapshotListResult() { - } - - /** - * Get the value property: The ElasticSnapshot items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log( - new IllegalArgumentException("Missing required property value in model ElasticSnapshotListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotListResult 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 ElasticSnapshotListResult. - */ - public static ElasticSnapshotListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotListResult deserializedElasticSnapshotListResult = new ElasticSnapshotListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticSnapshotInner.fromJson(reader1)); - deserializedElasticSnapshotListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticSnapshotListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyListResult.java deleted file mode 100644 index b67a4f4bcf8c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyListResult.java +++ /dev/null @@ -1,115 +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.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -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.fluent.models.ElasticSnapshotPolicyInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticSnapshotPolicy list operation. - */ -@Immutable -public final class ElasticSnapshotPolicyListResult implements JsonSerializable { - /* - * The ElasticSnapshotPolicy items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticSnapshotPolicyListResult class. - */ - private ElasticSnapshotPolicyListResult() { - } - - /** - * Get the value property: The ElasticSnapshotPolicy items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ElasticSnapshotPolicyListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotPolicyListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyListResult 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 ElasticSnapshotPolicyListResult. - */ - public static ElasticSnapshotPolicyListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyListResult deserializedElasticSnapshotPolicyListResult - = new ElasticSnapshotPolicyListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticSnapshotPolicyInner.fromJson(reader1)); - deserializedElasticSnapshotPolicyListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticSnapshotPolicyListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyVolumeList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyVolumeList.java deleted file mode 100644 index e14266cfa95e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyVolumeList.java +++ /dev/null @@ -1,114 +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.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -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.fluent.models.ElasticVolumeInner; -import java.io.IOException; -import java.util.List; - -/** - * Elastic Volumes associated with Elastic Snapshot Policy. - */ -@Immutable -public final class ElasticSnapshotPolicyVolumeList implements JsonSerializable { - /* - * The ElasticVolume items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticSnapshotPolicyVolumeList class. - */ - private ElasticSnapshotPolicyVolumeList() { - } - - /** - * Get the value property: The ElasticVolume items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ElasticSnapshotPolicyVolumeList")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotPolicyVolumeList.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyVolumeList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyVolumeList 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 ElasticSnapshotPolicyVolumeList. - */ - public static ElasticSnapshotPolicyVolumeList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyVolumeList deserializedElasticSnapshotPolicyVolumeList - = new ElasticSnapshotPolicyVolumeList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> ElasticVolumeInner.fromJson(reader1)); - deserializedElasticSnapshotPolicyVolumeList.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticSnapshotPolicyVolumeList.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyVolumeList; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticVolumeListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticVolumeListResult.java deleted file mode 100644 index 9ef3accbd8b3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticVolumeListResult.java +++ /dev/null @@ -1,112 +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.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -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.fluent.models.ElasticVolumeInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticVolume list operation. - */ -@Immutable -public final class ElasticVolumeListResult implements JsonSerializable { - /* - * The ElasticVolume items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticVolumeListResult class. - */ - private ElasticVolumeListResult() { - } - - /** - * Get the value property: The ElasticVolume items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property value in model ElasticVolumeListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticVolumeListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeListResult 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 ElasticVolumeListResult. - */ - public static ElasticVolumeListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeListResult deserializedElasticVolumeListResult = new ElasticVolumeListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> ElasticVolumeInner.fromJson(reader1)); - deserializedElasticVolumeListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticVolumeListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfig.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfig.java deleted file mode 100644 index f791224f4e96..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfig.java +++ /dev/null @@ -1,309 +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.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner; -import java.util.Map; - -/** - * An immutable client-side representation of ActiveDirectoryConfig. - */ -public interface ActiveDirectoryConfig { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ActiveDirectoryConfigProperties properties(); - - /** - * Gets 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. - */ - String etag(); - - /** - * Gets the identity property: The managed service identities assigned to this resource. - * - * @return the identity value. - */ - ManagedServiceIdentity identity(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner object. - * - * @return the inner object. - */ - ActiveDirectoryConfigInner innerModel(); - - /** - * The entirety of the ActiveDirectoryConfig definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { - } - - /** - * The ActiveDirectoryConfig definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ActiveDirectoryConfig definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ActiveDirectoryConfig definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(String location); - } - - /** - * The stage of the ActiveDirectoryConfig definition allowing to specify parent resource. - */ - interface WithResourceGroup { - /** - * Specifies resourceGroupName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithCreate withExistingResourceGroup(String resourceGroupName); - } - - /** - * The stage of the ActiveDirectoryConfig definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithIdentity { - /** - * Executes the create request. - * - * @return the created resource. - */ - ActiveDirectoryConfig create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ActiveDirectoryConfig create(Context context); - } - - /** - * The stage of the ActiveDirectoryConfig definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ActiveDirectoryConfig definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ActiveDirectoryConfigProperties properties); - } - - /** - * The stage of the ActiveDirectoryConfig definition allowing to specify identity. - */ - interface WithIdentity { - /** - * Specifies the identity property: The managed service identities assigned to this resource.. - * - * @param identity The managed service identities assigned to this resource. - * @return the next definition stage. - */ - WithCreate withIdentity(ManagedServiceIdentity identity); - } - } - - /** - * Begins update for the ActiveDirectoryConfig resource. - * - * @return the stage of resource update. - */ - ActiveDirectoryConfig.Update update(); - - /** - * The template for ActiveDirectoryConfig update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ActiveDirectoryConfig apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ActiveDirectoryConfig apply(Context context); - } - - /** - * The ActiveDirectoryConfig update stages. - */ - interface UpdateStages { - /** - * The stage of the ActiveDirectoryConfig update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ActiveDirectoryConfig update allowing to specify identity. - */ - interface WithIdentity { - /** - * Specifies the identity property: The managed service identities assigned to this resource.. - * - * @param identity The managed service identities assigned to this resource. - * @return the next definition stage. - */ - Update withIdentity(ManagedServiceIdentity identity); - } - - /** - * The stage of the ActiveDirectoryConfig update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ActiveDirectoryConfigUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ActiveDirectoryConfig refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ActiveDirectoryConfig refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigProperties.java deleted file mode 100644 index 49fecd3169b6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigProperties.java +++ /dev/null @@ -1,416 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * Active Directory Configuration properties. - */ -@Fluent -public final class ActiveDirectoryConfigProperties implements JsonSerializable { - /* - * A domain user account with permission to create machine accounts - */ - private String userName; - - /* - * An array of DNS server IP addresses(IPv4 only) for the Active Directory - */ - private List dns; - - /* - * NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount - * volumes - */ - private String smbServerName; - - /* - * The Organizational Unit (OU) within the Windows Active Directory - */ - private String organizationalUnit; - - /* - * The Active Directory site the service will limit Domain Controller discovery to - */ - private String site; - - /* - * Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without - * domain specifier - */ - private List backupOperators; - - /* - * Users to be added to the Built-in Administrators active directory group. A list of unique usernames without - * domain specifier - */ - private List administrators; - - /* - * Domain Users in the Active directory to be given SecurityPrivilege privilege (Needed for SMB Continuously - * available shares for SQL). A list of unique usernames without domain specifier - */ - private List securityOperators; - - /* - * Status of the Active Directory - */ - private ActiveDirectoryStatus activeDirectoryStatus; - - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Name of the Active Directory domain - */ - private String domain; - - /* - * Access password from Azure KeyVault Secrets to connect Active Directory - */ - private SecretPassword secretPassword; - - /** - * Creates an instance of ActiveDirectoryConfigProperties class. - */ - public ActiveDirectoryConfigProperties() { - } - - /** - * Get the userName property: A domain user account with permission to create machine accounts. - * - * @return the userName value. - */ - public String userName() { - return this.userName; - } - - /** - * Set the userName property: A domain user account with permission to create machine accounts. - * - * @param userName the userName value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withUserName(String userName) { - this.userName = userName; - return this; - } - - /** - * Get the dns property: An array of DNS server IP addresses(IPv4 only) for the Active Directory. - * - * @return the dns value. - */ - public List dns() { - return this.dns; - } - - /** - * Set the dns property: An array of DNS server IP addresses(IPv4 only) for the Active Directory. - * - * @param dns the dns value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withDns(List dns) { - this.dns = dns; - return this; - } - - /** - * Get the smbServerName property: NetBIOS name of the SMB server. This name will be registered as a computer - * account in the AD and used to mount volumes. - * - * @return the smbServerName value. - */ - public String smbServerName() { - return this.smbServerName; - } - - /** - * Set the smbServerName property: NetBIOS name of the SMB server. This name will be registered as a computer - * account in the AD and used to mount volumes. - * - * @param smbServerName the smbServerName value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withSmbServerName(String smbServerName) { - this.smbServerName = smbServerName; - return this; - } - - /** - * Get the organizationalUnit property: The Organizational Unit (OU) within the Windows Active Directory. - * - * @return the organizationalUnit value. - */ - public String organizationalUnit() { - return this.organizationalUnit; - } - - /** - * Set the organizationalUnit property: The Organizational Unit (OU) within the Windows Active Directory. - * - * @param organizationalUnit the organizationalUnit value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withOrganizationalUnit(String organizationalUnit) { - this.organizationalUnit = organizationalUnit; - return this; - } - - /** - * Get the site property: The Active Directory site the service will limit Domain Controller discovery to. - * - * @return the site value. - */ - public String site() { - return this.site; - } - - /** - * Set the site property: The Active Directory site the service will limit Domain Controller discovery to. - * - * @param site the site value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withSite(String site) { - this.site = site; - return this; - } - - /** - * Get the backupOperators property: Users to be added to the Built-in Backup Operator active directory group. A - * list of unique usernames without domain specifier. - * - * @return the backupOperators value. - */ - public List backupOperators() { - return this.backupOperators; - } - - /** - * Set the backupOperators property: Users to be added to the Built-in Backup Operator active directory group. A - * list of unique usernames without domain specifier. - * - * @param backupOperators the backupOperators value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withBackupOperators(List backupOperators) { - this.backupOperators = backupOperators; - return this; - } - - /** - * Get the administrators property: Users to be added to the Built-in Administrators active directory group. A list - * of unique usernames without domain specifier. - * - * @return the administrators value. - */ - public List administrators() { - return this.administrators; - } - - /** - * Set the administrators property: Users to be added to the Built-in Administrators active directory group. A list - * of unique usernames without domain specifier. - * - * @param administrators the administrators value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withAdministrators(List administrators) { - this.administrators = administrators; - return this; - } - - /** - * Get the securityOperators property: Domain Users in the Active directory to be given SecurityPrivilege privilege - * (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. - * - * @return the securityOperators value. - */ - public List securityOperators() { - return this.securityOperators; - } - - /** - * Set the securityOperators property: Domain Users in the Active directory to be given SecurityPrivilege privilege - * (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. - * - * @param securityOperators the securityOperators value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withSecurityOperators(List securityOperators) { - this.securityOperators = securityOperators; - return this; - } - - /** - * Get the activeDirectoryStatus property: Status of the Active Directory. - * - * @return the activeDirectoryStatus value. - */ - public ActiveDirectoryStatus activeDirectoryStatus() { - return this.activeDirectoryStatus; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the domain property: Name of the Active Directory domain. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Name of the Active Directory domain. - * - * @param domain the domain value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the secretPassword property: Access password from Azure KeyVault Secrets to connect Active Directory. - * - * @return the secretPassword value. - */ - public SecretPassword secretPassword() { - return this.secretPassword; - } - - /** - * Set the secretPassword property: Access password from Azure KeyVault Secrets to connect Active Directory. - * - * @param secretPassword the secretPassword value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withSecretPassword(SecretPassword secretPassword) { - this.secretPassword = secretPassword; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (domain() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property domain in model ActiveDirectoryConfigProperties")); - } - if (secretPassword() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property secretPassword in model ActiveDirectoryConfigProperties")); - } else { - secretPassword().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConfigProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("domain", this.domain); - jsonWriter.writeJsonField("secretPassword", this.secretPassword); - jsonWriter.writeStringField("userName", this.userName); - jsonWriter.writeArrayField("dns", this.dns, (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("smbServerName", this.smbServerName); - jsonWriter.writeStringField("organizationalUnit", this.organizationalUnit); - jsonWriter.writeStringField("site", this.site); - jsonWriter.writeArrayField("backupOperators", this.backupOperators, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("administrators", this.administrators, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("securityOperators", this.securityOperators, - (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ActiveDirectoryConfigProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ActiveDirectoryConfigProperties 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 ActiveDirectoryConfigProperties. - */ - public static ActiveDirectoryConfigProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ActiveDirectoryConfigProperties deserializedActiveDirectoryConfigProperties - = new ActiveDirectoryConfigProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("domain".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.domain = reader.getString(); - } else if ("secretPassword".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.secretPassword = SecretPassword.fromJson(reader); - } else if ("userName".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.userName = reader.getString(); - } else if ("dns".equals(fieldName)) { - List dns = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigProperties.dns = dns; - } else if ("smbServerName".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.smbServerName = reader.getString(); - } else if ("organizationalUnit".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.organizationalUnit = reader.getString(); - } else if ("site".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.site = reader.getString(); - } else if ("backupOperators".equals(fieldName)) { - List backupOperators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigProperties.backupOperators = backupOperators; - } else if ("administrators".equals(fieldName)) { - List administrators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigProperties.administrators = administrators; - } else if ("securityOperators".equals(fieldName)) { - List securityOperators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigProperties.securityOperators = securityOperators; - } else if ("activeDirectoryStatus".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.activeDirectoryStatus - = ActiveDirectoryStatus.fromString(reader.getString()); - } else if ("provisioningState".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedActiveDirectoryConfigProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdate.java deleted file mode 100644 index bbd3b5956700..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdate.java +++ /dev/null @@ -1,158 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.Map; - -/** - * The type used for update operations of the ActiveDirectoryConfig. - */ -@Fluent -public final class ActiveDirectoryConfigUpdate implements JsonSerializable { - /* - * The managed service identities assigned to this resource. - */ - private ManagedServiceIdentity identity; - - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ActiveDirectoryConfigUpdateProperties properties; - - /** - * Creates an instance of ActiveDirectoryConfigUpdate class. - */ - public ActiveDirectoryConfigUpdate() { - } - - /** - * 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 ActiveDirectoryConfigUpdate object itself. - */ - public ActiveDirectoryConfigUpdate withIdentity(ManagedServiceIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ActiveDirectoryConfigUpdate object itself. - */ - public ActiveDirectoryConfigUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ActiveDirectoryConfigUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ActiveDirectoryConfigUpdate object itself. - */ - public ActiveDirectoryConfigUpdate withProperties(ActiveDirectoryConfigUpdateProperties properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("identity", this.identity); - jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ActiveDirectoryConfigUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ActiveDirectoryConfigUpdate 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 ActiveDirectoryConfigUpdate. - */ - public static ActiveDirectoryConfigUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ActiveDirectoryConfigUpdate deserializedActiveDirectoryConfigUpdate = new ActiveDirectoryConfigUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("identity".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdate.identity = ManagedServiceIdentity.fromJson(reader); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdate.properties - = ActiveDirectoryConfigUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedActiveDirectoryConfigUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdateProperties.java deleted file mode 100644 index bcf5c74329a3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdateProperties.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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * The updatable properties of the ActiveDirectoryConfig. - */ -@Fluent -public final class ActiveDirectoryConfigUpdateProperties - implements JsonSerializable { - /* - * A domain user account with permission to create machine accounts - */ - private String userName; - - /* - * An array of DNS server IP addresses(IPv4 only) for the Active Directory - */ - private List dns; - - /* - * NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount - * volumes - */ - private String smbServerName; - - /* - * The Organizational Unit (OU) within the Windows Active Directory - */ - private String organizationalUnit; - - /* - * The Active Directory site the service will limit Domain Controller discovery to - */ - private String site; - - /* - * Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without - * domain specifier - */ - private List backupOperators; - - /* - * Users to be added to the Built-in Administrators active directory group. A list of unique usernames without - * domain specifier - */ - private List administrators; - - /* - * Domain Users in the Active directory to be given SecurityPrivilege privilege (Needed for SMB Continuously - * available shares for SQL). A list of unique usernames without domain specifier - */ - private List securityOperators; - - /* - * Name of the Active Directory domain - */ - private String domain; - - /* - * Access password from Azure KeyVault Secrets to connect Active Directory - */ - private SecretPassword secretPassword; - - /** - * Creates an instance of ActiveDirectoryConfigUpdateProperties class. - */ - public ActiveDirectoryConfigUpdateProperties() { - } - - /** - * Get the userName property: A domain user account with permission to create machine accounts. - * - * @return the userName value. - */ - public String userName() { - return this.userName; - } - - /** - * Set the userName property: A domain user account with permission to create machine accounts. - * - * @param userName the userName value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withUserName(String userName) { - this.userName = userName; - return this; - } - - /** - * Get the dns property: An array of DNS server IP addresses(IPv4 only) for the Active Directory. - * - * @return the dns value. - */ - public List dns() { - return this.dns; - } - - /** - * Set the dns property: An array of DNS server IP addresses(IPv4 only) for the Active Directory. - * - * @param dns the dns value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withDns(List dns) { - this.dns = dns; - return this; - } - - /** - * Get the smbServerName property: NetBIOS name of the SMB server. This name will be registered as a computer - * account in the AD and used to mount volumes. - * - * @return the smbServerName value. - */ - public String smbServerName() { - return this.smbServerName; - } - - /** - * Set the smbServerName property: NetBIOS name of the SMB server. This name will be registered as a computer - * account in the AD and used to mount volumes. - * - * @param smbServerName the smbServerName value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withSmbServerName(String smbServerName) { - this.smbServerName = smbServerName; - return this; - } - - /** - * Get the organizationalUnit property: The Organizational Unit (OU) within the Windows Active Directory. - * - * @return the organizationalUnit value. - */ - public String organizationalUnit() { - return this.organizationalUnit; - } - - /** - * Set the organizationalUnit property: The Organizational Unit (OU) within the Windows Active Directory. - * - * @param organizationalUnit the organizationalUnit value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withOrganizationalUnit(String organizationalUnit) { - this.organizationalUnit = organizationalUnit; - return this; - } - - /** - * Get the site property: The Active Directory site the service will limit Domain Controller discovery to. - * - * @return the site value. - */ - public String site() { - return this.site; - } - - /** - * Set the site property: The Active Directory site the service will limit Domain Controller discovery to. - * - * @param site the site value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withSite(String site) { - this.site = site; - return this; - } - - /** - * Get the backupOperators property: Users to be added to the Built-in Backup Operator active directory group. A - * list of unique usernames without domain specifier. - * - * @return the backupOperators value. - */ - public List backupOperators() { - return this.backupOperators; - } - - /** - * Set the backupOperators property: Users to be added to the Built-in Backup Operator active directory group. A - * list of unique usernames without domain specifier. - * - * @param backupOperators the backupOperators value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withBackupOperators(List backupOperators) { - this.backupOperators = backupOperators; - return this; - } - - /** - * Get the administrators property: Users to be added to the Built-in Administrators active directory group. A list - * of unique usernames without domain specifier. - * - * @return the administrators value. - */ - public List administrators() { - return this.administrators; - } - - /** - * Set the administrators property: Users to be added to the Built-in Administrators active directory group. A list - * of unique usernames without domain specifier. - * - * @param administrators the administrators value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withAdministrators(List administrators) { - this.administrators = administrators; - return this; - } - - /** - * Get the securityOperators property: Domain Users in the Active directory to be given SecurityPrivilege privilege - * (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. - * - * @return the securityOperators value. - */ - public List securityOperators() { - return this.securityOperators; - } - - /** - * Set the securityOperators property: Domain Users in the Active directory to be given SecurityPrivilege privilege - * (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. - * - * @param securityOperators the securityOperators value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withSecurityOperators(List securityOperators) { - this.securityOperators = securityOperators; - return this; - } - - /** - * Get the domain property: Name of the Active Directory domain. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Name of the Active Directory domain. - * - * @param domain the domain value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the secretPassword property: Access password from Azure KeyVault Secrets to connect Active Directory. - * - * @return the secretPassword value. - */ - public SecretPassword secretPassword() { - return this.secretPassword; - } - - /** - * Set the secretPassword property: Access password from Azure KeyVault Secrets to connect Active Directory. - * - * @param secretPassword the secretPassword value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withSecretPassword(SecretPassword secretPassword) { - this.secretPassword = secretPassword; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (secretPassword() != null) { - secretPassword().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("userName", this.userName); - jsonWriter.writeArrayField("dns", this.dns, (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("smbServerName", this.smbServerName); - jsonWriter.writeStringField("organizationalUnit", this.organizationalUnit); - jsonWriter.writeStringField("site", this.site); - jsonWriter.writeArrayField("backupOperators", this.backupOperators, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("administrators", this.administrators, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("securityOperators", this.securityOperators, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("domain", this.domain); - jsonWriter.writeJsonField("secretPassword", this.secretPassword); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ActiveDirectoryConfigUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ActiveDirectoryConfigUpdateProperties 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 ActiveDirectoryConfigUpdateProperties. - */ - public static ActiveDirectoryConfigUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ActiveDirectoryConfigUpdateProperties deserializedActiveDirectoryConfigUpdateProperties - = new ActiveDirectoryConfigUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("userName".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.userName = reader.getString(); - } else if ("dns".equals(fieldName)) { - List dns = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigUpdateProperties.dns = dns; - } else if ("smbServerName".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.smbServerName = reader.getString(); - } else if ("organizationalUnit".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.organizationalUnit = reader.getString(); - } else if ("site".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.site = reader.getString(); - } else if ("backupOperators".equals(fieldName)) { - List backupOperators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigUpdateProperties.backupOperators = backupOperators; - } else if ("administrators".equals(fieldName)) { - List administrators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigUpdateProperties.administrators = administrators; - } else if ("securityOperators".equals(fieldName)) { - List securityOperators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigUpdateProperties.securityOperators = securityOperators; - } else if ("domain".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.domain = reader.getString(); - } else if ("secretPassword".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.secretPassword = SecretPassword.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedActiveDirectoryConfigUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigs.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigs.java deleted file mode 100644 index 512c71a48c3a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigs.java +++ /dev/null @@ -1,158 +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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ActiveDirectoryConfigs. - */ -public interface ActiveDirectoryConfigs { - /** - * 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}. - */ - 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. - */ - ActiveDirectoryConfig getByResourceGroup(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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByResourceGroup(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. - */ - 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}. - */ - 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}. - */ - 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}. - */ - 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}. - */ - PagedIterable list(Context context); - - /** - * Get the details of the specified active directory configuration. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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}. - */ - ActiveDirectoryConfig getById(String id); - - /** - * Get the details of the specified active directory configuration. - * - * @param id the resource ID. - * @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}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified Active Directory configuration. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Delete the specified Active Directory configuration. - * - * @param id the resource ID. - * @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. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ActiveDirectoryConfig resource. - * - * @param name resource name. - * @return the first stage of the new ActiveDirectoryConfig definition. - */ - ActiveDirectoryConfig.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakthroughMode.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakthroughMode.java deleted file mode 100644 index da586612fc56..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakthroughMode.java +++ /dev/null @@ -1,57 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Specifies whether the volume operates in Breakthrough Mode. When set to 'Enabled', the volume runs on the resources - * configured for this mode, - * delivering improved performance and higher throughput. If set to 'Disabled' or omitted, the volume uses the basic - * configuration. This feature - * is available only in regions where it’s been configured and first-time users must finish onboarding prior to using - * Breakthrough Mode. - */ -public final class BreakthroughMode extends ExpandableStringEnum { - /** - * The volume runs on the resources configured for Breakthrough mode which ensures consistent high performance and a - * higher throughput. - */ - public static final BreakthroughMode ENABLED = fromString("Enabled"); - - /** - * The volume uses configuration that provides basic performance and throughput. - */ - public static final BreakthroughMode DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of BreakthroughMode value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public BreakthroughMode() { - } - - /** - * Creates or finds a BreakthroughMode from its string representation. - * - * @param name a name to look for. - * @return the corresponding BreakthroughMode. - */ - public static BreakthroughMode fromString(String name) { - return fromString(name, BreakthroughMode.class); - } - - /** - * Gets known BreakthroughMode values. - * - * @return known BreakthroughMode values. - */ - public static Collection values() { - return values(BreakthroughMode.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Caches.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Caches.java index 8fb6d0ada701..f66e11dcdd64 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Caches.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Caches.java @@ -80,7 +80,7 @@ Response getWithResponse(String resourceGroupName, String accountName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of Cache resources as paginated response with {@link PagedIterable}. */ - PagedIterable listByCapacityPools(String resourceGroupName, String accountName, String poolName); + PagedIterable list(String resourceGroupName, String accountName, String poolName); /** * List all Caches within the Capacity Pool. @@ -94,8 +94,7 @@ Response getWithResponse(String resourceGroupName, String accountName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of Cache resources as paginated response with {@link PagedIterable}. */ - PagedIterable listByCapacityPools(String resourceGroupName, String accountName, String poolName, - Context context); + PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context); /** * This operation will list the cluster peering command, cluster peering passphrase and the vserver peering command. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java index abe1b1ed9488..cb345a4eb495 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java @@ -74,8 +74,8 @@ public interface CapacityPool { String poolId(); /** - * Gets 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). + * Gets 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. */ @@ -225,11 +225,11 @@ interface WithParentResource { */ interface WithSize { /** - * Specifies 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).. + * Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks + * (value must be multiple of 1099511627776).. * - * @param size Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or in - * 1TiB chunks (value must be multiple of 1099511627776). + * @param size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * @return the next definition stage. */ WithServiceLevel withSize(long size); @@ -390,11 +390,11 @@ interface WithTags { */ interface WithSize { /** - * Specifies 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).. + * Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks + * (value must be multiple of 1099511627776).. * - * @param size Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or in - * 1TiB chunks (value must be multiple of 1099511627776). + * @param size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * @return the next definition stage. */ Update withSize(Long size); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java index 8dad9c50f96b..fee779b57f66 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java @@ -131,8 +131,8 @@ private PoolPatchProperties innerProperties() { } /** - * 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. */ @@ -141,8 +141,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 CapacityPoolPatch object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChangeZoneRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChangeZoneRequest.java deleted file mode 100644 index 752861d01369..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChangeZoneRequest.java +++ /dev/null @@ -1,101 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Changes the zone for the Zone Redundant elastic capacity pool. - */ -@Fluent -public final class ChangeZoneRequest implements JsonSerializable { - /* - * Availability zone to move Zone Redundant elastic capacity pool to - */ - private String newZone; - - /** - * Creates an instance of ChangeZoneRequest class. - */ - public ChangeZoneRequest() { - } - - /** - * Get the newZone property: Availability zone to move Zone Redundant elastic capacity pool to. - * - * @return the newZone value. - */ - public String newZone() { - return this.newZone; - } - - /** - * Set the newZone property: Availability zone to move Zone Redundant elastic capacity pool to. - * - * @param newZone the newZone value to set. - * @return the ChangeZoneRequest object itself. - */ - public ChangeZoneRequest withNewZone(String newZone) { - this.newZone = newZone; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (newZone() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property newZone in model ChangeZoneRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ChangeZoneRequest.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("newZone", this.newZone); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ChangeZoneRequest from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ChangeZoneRequest 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 ChangeZoneRequest. - */ - public static ChangeZoneRequest fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ChangeZoneRequest deserializedChangeZoneRequest = new ChangeZoneRequest(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("newZone".equals(fieldName)) { - deserializedChangeZoneRequest.newZone = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedChangeZoneRequest; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityReason.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityReason.java deleted file mode 100644 index 3b1409dad2b9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityReason.java +++ /dev/null @@ -1,52 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Availability reason. - */ -public final class CheckElasticResourceAvailabilityReason - extends ExpandableStringEnum { - /** - * Value indicating the name provided does not match Azure NetApp Files naming requirements. - */ - public static final CheckElasticResourceAvailabilityReason INVALID = fromString("Invalid"); - - /** - * Value indicating the name is already in use and is therefore unavailable. - */ - public static final CheckElasticResourceAvailabilityReason ALREADY_EXISTS = fromString("AlreadyExists"); - - /** - * Creates a new instance of CheckElasticResourceAvailabilityReason value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public CheckElasticResourceAvailabilityReason() { - } - - /** - * Creates or finds a CheckElasticResourceAvailabilityReason from its string representation. - * - * @param name a name to look for. - * @return the corresponding CheckElasticResourceAvailabilityReason. - */ - public static CheckElasticResourceAvailabilityReason fromString(String name) { - return fromString(name, CheckElasticResourceAvailabilityReason.class); - } - - /** - * Gets known CheckElasticResourceAvailabilityReason values. - * - * @return known CheckElasticResourceAvailabilityReason values. - */ - public static Collection values() { - return values(CheckElasticResourceAvailabilityReason.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityResponse.java deleted file mode 100644 index 5af7e272e2e4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityResponse.java +++ /dev/null @@ -1,45 +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.models; - -import com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner; - -/** - * An immutable client-side representation of CheckElasticResourceAvailabilityResponse. - */ -public interface CheckElasticResourceAvailabilityResponse { - /** - * Gets the isAvailable property: True indicates name is valid and available. False indicates the name is invalid, - * unavailable, or both. - * - * @return the isAvailable value. - */ - CheckElasticResourceAvailabilityStatus isAvailable(); - - /** - * Gets 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. - */ - CheckElasticResourceAvailabilityReason reason(); - - /** - * Gets 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. - */ - String message(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner - * object. - * - * @return the inner object. - */ - CheckElasticResourceAvailabilityResponseInner innerModel(); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityStatus.java deleted file mode 100644 index 166f957b4018..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityStatus.java +++ /dev/null @@ -1,52 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Availability status. - */ -public final class CheckElasticResourceAvailabilityStatus - extends ExpandableStringEnum { - /** - * Value indicating the name is valid and available. - */ - public static final CheckElasticResourceAvailabilityStatus TRUE = fromString("True"); - - /** - * Value indicating the the name is invalid, unavailable, or both. - */ - public static final CheckElasticResourceAvailabilityStatus FALSE = fromString("False"); - - /** - * Creates a new instance of CheckElasticResourceAvailabilityStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public CheckElasticResourceAvailabilityStatus() { - } - - /** - * Creates or finds a CheckElasticResourceAvailabilityStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding CheckElasticResourceAvailabilityStatus. - */ - public static CheckElasticResourceAvailabilityStatus fromString(String name) { - return fromString(name, CheckElasticResourceAvailabilityStatus.class); - } - - /** - * Gets known CheckElasticResourceAvailabilityStatus values. - * - * @return known CheckElasticResourceAvailabilityStatus values. - */ - public static Collection values() { - return values(CheckElasticResourceAvailabilityStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticVolumeFilePathAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticVolumeFilePathAvailabilityRequest.java deleted file mode 100644 index b12b14137a72..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticVolumeFilePathAvailabilityRequest.java +++ /dev/null @@ -1,108 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * File path availability request content - availability is based on the elastic volume filePath within the given - * elastic capacityPool. - */ -@Fluent -public final class CheckElasticVolumeFilePathAvailabilityRequest - implements JsonSerializable { - /* - * A unique file path for the volume. Used when creating mount targets. This needs to be unique within the elastic - * capacity pool. - */ - private String filePath; - - /** - * Creates an instance of CheckElasticVolumeFilePathAvailabilityRequest class. - */ - public CheckElasticVolumeFilePathAvailabilityRequest() { - } - - /** - * Get the filePath property: A unique file path for the volume. Used when creating mount targets. This needs to be - * unique within the elastic capacity pool. - * - * @return the filePath value. - */ - public String filePath() { - return this.filePath; - } - - /** - * Set the filePath property: A unique file path for the volume. Used when creating mount targets. This needs to be - * unique within the elastic capacity pool. - * - * @param filePath the filePath value to set. - * @return the CheckElasticVolumeFilePathAvailabilityRequest object itself. - */ - public CheckElasticVolumeFilePathAvailabilityRequest withFilePath(String filePath) { - this.filePath = filePath; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (filePath() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property filePath in model CheckElasticVolumeFilePathAvailabilityRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CheckElasticVolumeFilePathAvailabilityRequest.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("filePath", this.filePath); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CheckElasticVolumeFilePathAvailabilityRequest from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CheckElasticVolumeFilePathAvailabilityRequest 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 CheckElasticVolumeFilePathAvailabilityRequest. - */ - public static CheckElasticVolumeFilePathAvailabilityRequest fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CheckElasticVolumeFilePathAvailabilityRequest deserializedCheckElasticVolumeFilePathAvailabilityRequest - = new CheckElasticVolumeFilePathAvailabilityRequest(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("filePath".equals(fieldName)) { - deserializedCheckElasticVolumeFilePathAvailabilityRequest.filePath = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedCheckElasticVolumeFilePathAvailabilityRequest; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java index 9e892320754a..aba4f927b059 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java @@ -11,13 +11,11 @@ */ public interface ClusterPeerCommandResponse { /** - * Gets the peerAcceptCommand property: A command that needs to be run on the external ONTAP to accept cluster - * peering. Will only be present if <code>clusterPeeringStatus</code> is - * <code>pending</code>. + * Gets the properties property: Represents the properties of the cluster peer command response. * - * @return the peerAcceptCommand value. + * @return the properties value. */ - String peerAcceptCommand(); + ClusterPeerCommandResponseProperties properties(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner object. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponseProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponseProperties.java new file mode 100644 index 000000000000..ebd2598dd909 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponseProperties.java @@ -0,0 +1,103 @@ +// 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.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 java.io.IOException; + +/** + * Properties of the cluster peer command response. + */ +@Immutable +public final class ClusterPeerCommandResponseProperties + implements JsonSerializable { + /* + * ClusterPeeringCommand to run to accept cluster peer. Will only be present if clusterPeeringStatus is + * pending. + */ + private String clusterPeeringCommand; + + /* + * Passphrase for use with cluster peer command + */ + private String passphrase; + + /** + * Creates an instance of ClusterPeerCommandResponseProperties class. + */ + private ClusterPeerCommandResponseProperties() { + } + + /** + * Get the clusterPeeringCommand property: ClusterPeeringCommand to run to accept cluster peer. Will only be present + * if <code>clusterPeeringStatus</code> is <code>pending</code>. + * + * @return the clusterPeeringCommand value. + */ + public String clusterPeeringCommand() { + return this.clusterPeeringCommand; + } + + /** + * Get the passphrase property: Passphrase for use with cluster peer command. + * + * @return the passphrase value. + */ + public String passphrase() { + return this.passphrase; + } + + /** + * 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("clusterPeeringCommand", this.clusterPeeringCommand); + jsonWriter.writeStringField("passphrase", this.passphrase); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterPeerCommandResponseProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterPeerCommandResponseProperties 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 ClusterPeerCommandResponseProperties. + */ + public static ClusterPeerCommandResponseProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterPeerCommandResponseProperties deserializedClusterPeerCommandResponseProperties + = new ClusterPeerCommandResponseProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("clusterPeeringCommand".equals(fieldName)) { + deserializedClusterPeerCommandResponseProperties.clusterPeeringCommand = reader.getString(); + } else if ("passphrase".equals(fieldName)) { + deserializedClusterPeerCommandResponseProperties.passphrase = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterPeerCommandResponseProperties; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DayOfWeek.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DayOfWeek.java deleted file mode 100644 index d53a7d76ef8d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DayOfWeek.java +++ /dev/null @@ -1,76 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Day of the week. - */ -public final class DayOfWeek extends ExpandableStringEnum { - /** - * Take a snapshot each Sunday. - */ - public static final DayOfWeek SUNDAY = fromString("Sunday"); - - /** - * Take a snapshot each Monday. - */ - public static final DayOfWeek MONDAY = fromString("Monday"); - - /** - * Take a snapshot each Tuesday. - */ - public static final DayOfWeek TUESDAY = fromString("Tuesday"); - - /** - * Take a snapshot each Wednesday. - */ - public static final DayOfWeek WEDNESDAY = fromString("Wednesday"); - - /** - * Take a snapshot each Thursday. - */ - public static final DayOfWeek THURSDAY = fromString("Thursday"); - - /** - * Take a snapshot each Friday. - */ - public static final DayOfWeek FRIDAY = fromString("Friday"); - - /** - * Take a snapshot each Saturday. - */ - public static final DayOfWeek SATURDAY = fromString("Saturday"); - - /** - * Creates a new instance of DayOfWeek value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DayOfWeek() { - } - - /** - * Creates or finds a DayOfWeek from its string representation. - * - * @param name a name to look for. - * @return the corresponding DayOfWeek. - */ - public static DayOfWeek fromString(String name) { - return fromString(name, DayOfWeek.class); - } - - /** - * Gets known DayOfWeek values. - * - * @return known DayOfWeek values. - */ - public static Collection values() { - return values(DayOfWeek.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccount.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccount.java deleted file mode 100644 index 74a275dbed06..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccount.java +++ /dev/null @@ -1,309 +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.models; - -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 java.util.Map; - -/** - * An immutable client-side representation of ElasticAccount. - */ -public interface ElasticAccount { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticAccountProperties properties(); - - /** - * Gets 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. - */ - String eTag(); - - /** - * Gets the identity property: The managed service identities assigned to this resource. - * - * @return the identity value. - */ - ManagedServiceIdentity identity(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner object. - * - * @return the inner object. - */ - ElasticAccountInner innerModel(); - - /** - * The entirety of the ElasticAccount definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { - } - - /** - * The ElasticAccount definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticAccount definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticAccount definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(String location); - } - - /** - * The stage of the ElasticAccount definition allowing to specify parent resource. - */ - interface WithResourceGroup { - /** - * Specifies resourceGroupName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithCreate withExistingResourceGroup(String resourceGroupName); - } - - /** - * The stage of the ElasticAccount definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithIdentity { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticAccount create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticAccount create(Context context); - } - - /** - * The stage of the ElasticAccount definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticAccount definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticAccountProperties properties); - } - - /** - * The stage of the ElasticAccount definition allowing to specify identity. - */ - interface WithIdentity { - /** - * Specifies the identity property: The managed service identities assigned to this resource.. - * - * @param identity The managed service identities assigned to this resource. - * @return the next definition stage. - */ - WithCreate withIdentity(ManagedServiceIdentity identity); - } - } - - /** - * Begins update for the ElasticAccount resource. - * - * @return the stage of resource update. - */ - ElasticAccount.Update update(); - - /** - * The template for ElasticAccount update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticAccount apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticAccount apply(Context context); - } - - /** - * The ElasticAccount update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticAccount update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ElasticAccount update allowing to specify identity. - */ - interface WithIdentity { - /** - * Specifies the identity property: The managed service identities assigned to this resource.. - * - * @param identity The managed service identities assigned to this resource. - * @return the next definition stage. - */ - Update withIdentity(ManagedServiceIdentity identity); - } - - /** - * The stage of the ElasticAccount update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticAccountUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticAccount refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticAccount refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountProperties.java deleted file mode 100644 index ba88af2cec9b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountProperties.java +++ /dev/null @@ -1,113 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * NetApp elastic account properties. - */ -@Fluent -public final class ElasticAccountProperties implements JsonSerializable { - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Encryption settings - */ - private ElasticEncryption encryption; - - /** - * Creates an instance of ElasticAccountProperties class. - */ - public ElasticAccountProperties() { - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the encryption property: Encryption settings. - * - * @return the encryption value. - */ - public ElasticEncryption encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Encryption settings. - * - * @param encryption the encryption value to set. - * @return the ElasticAccountProperties object itself. - */ - public ElasticAccountProperties withEncryption(ElasticEncryption encryption) { - this.encryption = encryption; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (encryption() != null) { - encryption().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("encryption", this.encryption); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticAccountProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticAccountProperties 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 ElasticAccountProperties. - */ - public static ElasticAccountProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticAccountProperties deserializedElasticAccountProperties = new ElasticAccountProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedElasticAccountProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("encryption".equals(fieldName)) { - deserializedElasticAccountProperties.encryption = ElasticEncryption.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticAccountProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdate.java deleted file mode 100644 index 73c6fe0da659..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdate.java +++ /dev/null @@ -1,157 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.Map; - -/** - * The type used for update operations of the ElasticAccount. - */ -@Fluent -public final class ElasticAccountUpdate implements JsonSerializable { - /* - * The managed service identities assigned to this resource. - */ - private ManagedServiceIdentity identity; - - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ElasticAccountUpdateProperties properties; - - /** - * Creates an instance of ElasticAccountUpdate class. - */ - public ElasticAccountUpdate() { - } - - /** - * 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 ElasticAccountUpdate object itself. - */ - public ElasticAccountUpdate withIdentity(ManagedServiceIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticAccountUpdate object itself. - */ - public ElasticAccountUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticAccountUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticAccountUpdate object itself. - */ - public ElasticAccountUpdate withProperties(ElasticAccountUpdateProperties properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("identity", this.identity); - jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticAccountUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticAccountUpdate 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 ElasticAccountUpdate. - */ - public static ElasticAccountUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticAccountUpdate deserializedElasticAccountUpdate = new ElasticAccountUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("identity".equals(fieldName)) { - deserializedElasticAccountUpdate.identity = ManagedServiceIdentity.fromJson(reader); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticAccountUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedElasticAccountUpdate.properties = ElasticAccountUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticAccountUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdateProperties.java deleted file mode 100644 index 10032af75144..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdateProperties.java +++ /dev/null @@ -1,97 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The updatable properties of the ElasticAccount. - */ -@Fluent -public final class ElasticAccountUpdateProperties implements JsonSerializable { - /* - * Encryption settings - */ - private ElasticEncryption encryption; - - /** - * Creates an instance of ElasticAccountUpdateProperties class. - */ - public ElasticAccountUpdateProperties() { - } - - /** - * Get the encryption property: Encryption settings. - * - * @return the encryption value. - */ - public ElasticEncryption encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Encryption settings. - * - * @param encryption the encryption value to set. - * @return the ElasticAccountUpdateProperties object itself. - */ - public ElasticAccountUpdateProperties withEncryption(ElasticEncryption encryption) { - this.encryption = encryption; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (encryption() != null) { - encryption().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("encryption", this.encryption); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticAccountUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticAccountUpdateProperties 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 ElasticAccountUpdateProperties. - */ - public static ElasticAccountUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticAccountUpdateProperties deserializedElasticAccountUpdateProperties - = new ElasticAccountUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("encryption".equals(fieldName)) { - deserializedElasticAccountUpdateProperties.encryption = ElasticEncryption.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticAccountUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccounts.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccounts.java deleted file mode 100644 index d0a352417a67..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccounts.java +++ /dev/null @@ -1,158 +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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticAccounts. - */ -public interface ElasticAccounts { - /** - * 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}. - */ - 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. - */ - ElasticAccount getByResourceGroup(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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByResourceGroup(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. - */ - 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}. - */ - 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}. - */ - 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}. - */ - 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}. - */ - PagedIterable list(Context context); - - /** - * Get the NetApp Elastic Account. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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}. - */ - ElasticAccount getById(String id); - - /** - * Get the NetApp Elastic Account. - * - * @param id the resource ID. - * @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}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified NetApp elastic account. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Delete the specified NetApp elastic account. - * - * @param id the resource ID. - * @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. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticAccount resource. - * - * @param name resource name. - * @return the first stage of the new ElasticAccount definition. - */ - ElasticAccount.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackup.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackup.java deleted file mode 100644 index 5d92beb9983b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackup.java +++ /dev/null @@ -1,191 +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.models; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; - -/** - * An immutable client-side representation of ElasticBackup. - */ -public interface ElasticBackup { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticBackupProperties properties(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner object. - * - * @return the inner object. - */ - ElasticBackupInner innerModel(); - - /** - * The entirety of the ElasticBackup definition. - */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticBackup definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticBackup definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the ElasticBackup definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName, backupVaultName. - * - * @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. - * @return the next definition stage. - */ - WithCreate withExistingElasticBackupVault(String resourceGroupName, String accountName, - String backupVaultName); - } - - /** - * The stage of the ElasticBackup definition which contains all the minimum required properties for the resource - * to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticBackup create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticBackup create(Context context); - } - - /** - * The stage of the ElasticBackup definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticBackupProperties properties); - } - } - - /** - * Begins update for the ElasticBackup resource. - * - * @return the stage of resource update. - */ - ElasticBackup.Update update(); - - /** - * The template for ElasticBackup update. - */ - interface Update extends UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticBackup apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticBackup apply(Context context); - } - - /** - * The ElasticBackup update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticBackup update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticBackupProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticBackup refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticBackup refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicies.java deleted file mode 100644 index 75cece14fea6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicies.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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticBackupPolicies. - */ -public interface ElasticBackupPolicies { - /** - * 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}. - */ - 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. - */ - ElasticBackupPolicy get(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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - 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. - */ - 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}. - */ - 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}. - */ - PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context); - - /** - * Get the Elastic Backup Policy. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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}. - */ - ElasticBackupPolicy getById(String id); - - /** - * Get the Elastic Backup Policy. - * - * @param id the resource ID. - * @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}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified Elastic Policy. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Delete the specified Elastic Policy. - * - * @param id the resource ID. - * @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. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticBackupPolicy resource. - * - * @param name resource name. - * @return the first stage of the new ElasticBackupPolicy definition. - */ - ElasticBackupPolicy.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicy.java deleted file mode 100644 index c05d1474cc2a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicy.java +++ /dev/null @@ -1,276 +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.models; - -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.ElasticBackupPolicyInner; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticBackupPolicy. - */ -public interface ElasticBackupPolicy { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticBackupPolicyProperties properties(); - - /** - * Gets 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. - */ - String eTag(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner object. - * - * @return the inner object. - */ - ElasticBackupPolicyInner innerModel(); - - /** - * The entirety of the ElasticBackupPolicy definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticBackupPolicy definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticBackupPolicy definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticBackupPolicy definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the ElasticBackupPolicy definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @return the next definition stage. - */ - WithCreate withExistingElasticAccount(String resourceGroupName, String accountName); - } - - /** - * The stage of the ElasticBackupPolicy definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticBackupPolicy create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticBackupPolicy create(Context context); - } - - /** - * The stage of the ElasticBackupPolicy definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticBackupPolicy definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticBackupPolicyProperties properties); - } - } - - /** - * Begins update for the ElasticBackupPolicy resource. - * - * @return the stage of resource update. - */ - ElasticBackupPolicy.Update update(); - - /** - * The template for ElasticBackupPolicy update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticBackupPolicy apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticBackupPolicy apply(Context context); - } - - /** - * The ElasticBackupPolicy update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticBackupPolicy update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ElasticBackupPolicy update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticBackupPolicyUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticBackupPolicy refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticBackupPolicy refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyProperties.java deleted file mode 100644 index a829e3c74291..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyProperties.java +++ /dev/null @@ -1,216 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Elastic Backup Policy properties. - */ -@Fluent -public final class ElasticBackupPolicyProperties implements JsonSerializable { - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Daily backups count to keep - */ - private Integer dailyBackupsToKeep; - - /* - * Weekly backups count to keep - */ - private Integer weeklyBackupsToKeep; - - /* - * Monthly backups count to keep - */ - private Integer monthlyBackupsToKeep; - - /* - * The number of volumes currently using this Backup Policy. - */ - private Integer assignedVolumesCount; - - /* - * The property to identify whether Backup Policy is enabled or not - */ - private ElasticBackupPolicyState policyState; - - /** - * Creates an instance of ElasticBackupPolicyProperties class. - */ - public ElasticBackupPolicyProperties() { - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the dailyBackupsToKeep property: Daily backups count to keep. - * - * @return the dailyBackupsToKeep value. - */ - public Integer dailyBackupsToKeep() { - return this.dailyBackupsToKeep; - } - - /** - * Set the dailyBackupsToKeep property: Daily backups count to keep. - * - * @param dailyBackupsToKeep the dailyBackupsToKeep value to set. - * @return the ElasticBackupPolicyProperties object itself. - */ - public ElasticBackupPolicyProperties withDailyBackupsToKeep(Integer dailyBackupsToKeep) { - this.dailyBackupsToKeep = dailyBackupsToKeep; - return this; - } - - /** - * Get the weeklyBackupsToKeep property: Weekly backups count to keep. - * - * @return the weeklyBackupsToKeep value. - */ - public Integer weeklyBackupsToKeep() { - return this.weeklyBackupsToKeep; - } - - /** - * Set the weeklyBackupsToKeep property: Weekly backups count to keep. - * - * @param weeklyBackupsToKeep the weeklyBackupsToKeep value to set. - * @return the ElasticBackupPolicyProperties object itself. - */ - public ElasticBackupPolicyProperties withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { - this.weeklyBackupsToKeep = weeklyBackupsToKeep; - return this; - } - - /** - * Get the monthlyBackupsToKeep property: Monthly backups count to keep. - * - * @return the monthlyBackupsToKeep value. - */ - public Integer monthlyBackupsToKeep() { - return this.monthlyBackupsToKeep; - } - - /** - * Set the monthlyBackupsToKeep property: Monthly backups count to keep. - * - * @param monthlyBackupsToKeep the monthlyBackupsToKeep value to set. - * @return the ElasticBackupPolicyProperties object itself. - */ - public ElasticBackupPolicyProperties withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) { - this.monthlyBackupsToKeep = monthlyBackupsToKeep; - return this; - } - - /** - * Get the assignedVolumesCount property: The number of volumes currently using this Backup Policy. - * - * @return the assignedVolumesCount value. - */ - public Integer assignedVolumesCount() { - return this.assignedVolumesCount; - } - - /** - * Get the policyState property: The property to identify whether Backup Policy is enabled or not. - * - * @return the policyState value. - */ - public ElasticBackupPolicyState policyState() { - return this.policyState; - } - - /** - * Set the policyState property: The property to identify whether Backup Policy is enabled or not. - * - * @param policyState the policyState value to set. - * @return the ElasticBackupPolicyProperties object itself. - */ - public ElasticBackupPolicyProperties withPolicyState(ElasticBackupPolicyState policyState) { - this.policyState = policyState; - return this; - } - - /** - * 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.writeNumberField("dailyBackupsToKeep", this.dailyBackupsToKeep); - jsonWriter.writeNumberField("weeklyBackupsToKeep", this.weeklyBackupsToKeep); - jsonWriter.writeNumberField("monthlyBackupsToKeep", this.monthlyBackupsToKeep); - jsonWriter.writeStringField("policyState", this.policyState == null ? null : this.policyState.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupPolicyProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupPolicyProperties 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 ElasticBackupPolicyProperties. - */ - public static ElasticBackupPolicyProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupPolicyProperties deserializedElasticBackupPolicyProperties - = new ElasticBackupPolicyProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("dailyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.dailyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("weeklyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.weeklyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("monthlyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.monthlyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("assignedVolumesCount".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.assignedVolumesCount - = reader.getNullable(JsonReader::getInt); - } else if ("policyState".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.policyState - = ElasticBackupPolicyState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupPolicyProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyState.java deleted file mode 100644 index 6b507c88adf5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyState.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Elastic Backup Policy state. - */ -public final class ElasticBackupPolicyState extends ExpandableStringEnum { - /** - * Value indicating the policy is enabled. - */ - public static final ElasticBackupPolicyState ENABLED = fromString("Enabled"); - - /** - * Value indicating the policy is disabled. - */ - public static final ElasticBackupPolicyState DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of ElasticBackupPolicyState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticBackupPolicyState() { - } - - /** - * Creates or finds a ElasticBackupPolicyState from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticBackupPolicyState. - */ - public static ElasticBackupPolicyState fromString(String name) { - return fromString(name, ElasticBackupPolicyState.class); - } - - /** - * Gets known ElasticBackupPolicyState values. - * - * @return known ElasticBackupPolicyState values. - */ - public static Collection values() { - return values(ElasticBackupPolicyState.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdate.java deleted file mode 100644 index 97c446acbc60..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdate.java +++ /dev/null @@ -1,127 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.Map; - -/** - * The type used for update operations of the ElasticBackupPolicy. - */ -@Fluent -public final class ElasticBackupPolicyUpdate implements JsonSerializable { - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ElasticBackupPolicyUpdateProperties properties; - - /** - * Creates an instance of ElasticBackupPolicyUpdate class. - */ - public ElasticBackupPolicyUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticBackupPolicyUpdate object itself. - */ - public ElasticBackupPolicyUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticBackupPolicyUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticBackupPolicyUpdate object itself. - */ - public ElasticBackupPolicyUpdate withProperties(ElasticBackupPolicyUpdateProperties properties) { - this.properties = properties; - 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.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupPolicyUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupPolicyUpdate 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 ElasticBackupPolicyUpdate. - */ - public static ElasticBackupPolicyUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupPolicyUpdate deserializedElasticBackupPolicyUpdate = new ElasticBackupPolicyUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticBackupPolicyUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedElasticBackupPolicyUpdate.properties - = ElasticBackupPolicyUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupPolicyUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdateProperties.java deleted file mode 100644 index feb77d0173c4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdateProperties.java +++ /dev/null @@ -1,183 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The updatable properties of the ElasticBackupPolicy. - */ -@Fluent -public final class ElasticBackupPolicyUpdateProperties - implements JsonSerializable { - /* - * Daily backups count to keep - */ - private Integer dailyBackupsToKeep; - - /* - * Weekly backups count to keep - */ - private Integer weeklyBackupsToKeep; - - /* - * Monthly backups count to keep - */ - private Integer monthlyBackupsToKeep; - - /* - * The property to identify whether Backup Policy is enabled or not - */ - private ElasticBackupPolicyState policyState; - - /** - * Creates an instance of ElasticBackupPolicyUpdateProperties class. - */ - public ElasticBackupPolicyUpdateProperties() { - } - - /** - * Get the dailyBackupsToKeep property: Daily backups count to keep. - * - * @return the dailyBackupsToKeep value. - */ - public Integer dailyBackupsToKeep() { - return this.dailyBackupsToKeep; - } - - /** - * Set the dailyBackupsToKeep property: Daily backups count to keep. - * - * @param dailyBackupsToKeep the dailyBackupsToKeep value to set. - * @return the ElasticBackupPolicyUpdateProperties object itself. - */ - public ElasticBackupPolicyUpdateProperties withDailyBackupsToKeep(Integer dailyBackupsToKeep) { - this.dailyBackupsToKeep = dailyBackupsToKeep; - return this; - } - - /** - * Get the weeklyBackupsToKeep property: Weekly backups count to keep. - * - * @return the weeklyBackupsToKeep value. - */ - public Integer weeklyBackupsToKeep() { - return this.weeklyBackupsToKeep; - } - - /** - * Set the weeklyBackupsToKeep property: Weekly backups count to keep. - * - * @param weeklyBackupsToKeep the weeklyBackupsToKeep value to set. - * @return the ElasticBackupPolicyUpdateProperties object itself. - */ - public ElasticBackupPolicyUpdateProperties withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { - this.weeklyBackupsToKeep = weeklyBackupsToKeep; - return this; - } - - /** - * Get the monthlyBackupsToKeep property: Monthly backups count to keep. - * - * @return the monthlyBackupsToKeep value. - */ - public Integer monthlyBackupsToKeep() { - return this.monthlyBackupsToKeep; - } - - /** - * Set the monthlyBackupsToKeep property: Monthly backups count to keep. - * - * @param monthlyBackupsToKeep the monthlyBackupsToKeep value to set. - * @return the ElasticBackupPolicyUpdateProperties object itself. - */ - public ElasticBackupPolicyUpdateProperties withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) { - this.monthlyBackupsToKeep = monthlyBackupsToKeep; - return this; - } - - /** - * Get the policyState property: The property to identify whether Backup Policy is enabled or not. - * - * @return the policyState value. - */ - public ElasticBackupPolicyState policyState() { - return this.policyState; - } - - /** - * Set the policyState property: The property to identify whether Backup Policy is enabled or not. - * - * @param policyState the policyState value to set. - * @return the ElasticBackupPolicyUpdateProperties object itself. - */ - public ElasticBackupPolicyUpdateProperties withPolicyState(ElasticBackupPolicyState policyState) { - this.policyState = policyState; - return this; - } - - /** - * 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.writeNumberField("dailyBackupsToKeep", this.dailyBackupsToKeep); - jsonWriter.writeNumberField("weeklyBackupsToKeep", this.weeklyBackupsToKeep); - jsonWriter.writeNumberField("monthlyBackupsToKeep", this.monthlyBackupsToKeep); - jsonWriter.writeStringField("policyState", this.policyState == null ? null : this.policyState.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupPolicyUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupPolicyUpdateProperties 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 ElasticBackupPolicyUpdateProperties. - */ - public static ElasticBackupPolicyUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupPolicyUpdateProperties deserializedElasticBackupPolicyUpdateProperties - = new ElasticBackupPolicyUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("dailyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyUpdateProperties.dailyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("weeklyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyUpdateProperties.weeklyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("monthlyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyUpdateProperties.monthlyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("policyState".equals(fieldName)) { - deserializedElasticBackupPolicyUpdateProperties.policyState - = ElasticBackupPolicyState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupPolicyUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupProperties.java deleted file mode 100644 index f494ee77a458..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupProperties.java +++ /dev/null @@ -1,342 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.CoreUtils; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; - -/** - * Elastic Backup properties. - */ -@Fluent -public final class ElasticBackupProperties implements JsonSerializable { - /* - * The creation date of the backup - */ - private OffsetDateTime creationDate; - - /* - * The snapshot creation date of the backup - */ - private OffsetDateTime snapshotCreationDate; - - /* - * The completion date of the backup - */ - private OffsetDateTime completionDate; - - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Size of backup in bytes - */ - private Long size; - - /* - * Label for backup - */ - private String label; - - /* - * Type of backup Manual or Scheduled - */ - private ElasticBackupType backupType; - - /* - * Failure reason - */ - private String failureReason; - - /* - * ResourceId used to identify the Elastic Volume - */ - private String elasticVolumeResourceId; - - /* - * Manual backup using an already existing snapshot. This will always be CreateNewSnapshot for scheduled backups and - * UseExistingSnapshot/CreateNewSnapshot for manual backups - */ - private SnapshotUsage snapshotUsage; - - /* - * ResourceId used to identify the elastic snapshot resource. This is required when an existing snapshot needs to be - * used for creating a manual backup - */ - private String elasticSnapshotResourceId; - - /* - * ResourceId used to identify the elastic backup policy - */ - private String elasticBackupPolicyResourceId; - - /* - * Specifies if the backup is for a large volume. - */ - private VolumeSize volumeSize; - - /** - * Creates an instance of ElasticBackupProperties class. - */ - public ElasticBackupProperties() { - } - - /** - * Get the creationDate property: The creation date of the backup. - * - * @return the creationDate value. - */ - public OffsetDateTime creationDate() { - return this.creationDate; - } - - /** - * Get the snapshotCreationDate property: The snapshot creation date of the backup. - * - * @return the snapshotCreationDate value. - */ - public OffsetDateTime snapshotCreationDate() { - return this.snapshotCreationDate; - } - - /** - * Get the completionDate property: The completion date of the backup. - * - * @return the completionDate value. - */ - public OffsetDateTime completionDate() { - return this.completionDate; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the size property: Size of backup in bytes. - * - * @return the size value. - */ - public Long size() { - return this.size; - } - - /** - * Get the label property: Label for backup. - * - * @return the label value. - */ - public String label() { - return this.label; - } - - /** - * Set the label property: Label for backup. - * - * @param label the label value to set. - * @return the ElasticBackupProperties object itself. - */ - public ElasticBackupProperties withLabel(String label) { - this.label = label; - return this; - } - - /** - * Get the backupType property: Type of backup Manual or Scheduled. - * - * @return the backupType value. - */ - public ElasticBackupType backupType() { - return this.backupType; - } - - /** - * Get the failureReason property: Failure reason. - * - * @return the failureReason value. - */ - public String failureReason() { - return this.failureReason; - } - - /** - * Get the elasticVolumeResourceId property: ResourceId used to identify the Elastic Volume. - * - * @return the elasticVolumeResourceId value. - */ - public String elasticVolumeResourceId() { - return this.elasticVolumeResourceId; - } - - /** - * Set the elasticVolumeResourceId property: ResourceId used to identify the Elastic Volume. - * - * @param elasticVolumeResourceId the elasticVolumeResourceId value to set. - * @return the ElasticBackupProperties object itself. - */ - public ElasticBackupProperties withElasticVolumeResourceId(String elasticVolumeResourceId) { - this.elasticVolumeResourceId = elasticVolumeResourceId; - return this; - } - - /** - * Get the snapshotUsage property: Manual backup using an already existing snapshot. This will always be - * CreateNewSnapshot for scheduled backups and UseExistingSnapshot/CreateNewSnapshot for manual backups. - * - * @return the snapshotUsage value. - */ - public SnapshotUsage snapshotUsage() { - return this.snapshotUsage; - } - - /** - * Set the snapshotUsage property: Manual backup using an already existing snapshot. This will always be - * CreateNewSnapshot for scheduled backups and UseExistingSnapshot/CreateNewSnapshot for manual backups. - * - * @param snapshotUsage the snapshotUsage value to set. - * @return the ElasticBackupProperties object itself. - */ - public ElasticBackupProperties withSnapshotUsage(SnapshotUsage snapshotUsage) { - this.snapshotUsage = snapshotUsage; - return this; - } - - /** - * Get the elasticSnapshotResourceId property: ResourceId used to identify the elastic snapshot resource. This is - * required when an existing snapshot needs to be used for creating a manual backup. - * - * @return the elasticSnapshotResourceId value. - */ - public String elasticSnapshotResourceId() { - return this.elasticSnapshotResourceId; - } - - /** - * Set the elasticSnapshotResourceId property: ResourceId used to identify the elastic snapshot resource. This is - * required when an existing snapshot needs to be used for creating a manual backup. - * - * @param elasticSnapshotResourceId the elasticSnapshotResourceId value to set. - * @return the ElasticBackupProperties object itself. - */ - public ElasticBackupProperties withElasticSnapshotResourceId(String elasticSnapshotResourceId) { - this.elasticSnapshotResourceId = elasticSnapshotResourceId; - return this; - } - - /** - * Get the elasticBackupPolicyResourceId property: ResourceId used to identify the elastic backup policy. - * - * @return the elasticBackupPolicyResourceId value. - */ - public String elasticBackupPolicyResourceId() { - return this.elasticBackupPolicyResourceId; - } - - /** - * Get the volumeSize property: Specifies if the backup is for a large volume. - * - * @return the volumeSize value. - */ - public VolumeSize volumeSize() { - return this.volumeSize; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (elasticVolumeResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property elasticVolumeResourceId in model ElasticBackupProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("elasticVolumeResourceId", this.elasticVolumeResourceId); - jsonWriter.writeStringField("label", this.label); - jsonWriter.writeStringField("snapshotUsage", this.snapshotUsage == null ? null : this.snapshotUsage.toString()); - jsonWriter.writeStringField("elasticSnapshotResourceId", this.elasticSnapshotResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupProperties 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 ElasticBackupProperties. - */ - public static ElasticBackupProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupProperties deserializedElasticBackupProperties = new ElasticBackupProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("elasticVolumeResourceId".equals(fieldName)) { - deserializedElasticBackupProperties.elasticVolumeResourceId = reader.getString(); - } else if ("creationDate".equals(fieldName)) { - deserializedElasticBackupProperties.creationDate = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("snapshotCreationDate".equals(fieldName)) { - deserializedElasticBackupProperties.snapshotCreationDate = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("completionDate".equals(fieldName)) { - deserializedElasticBackupProperties.completionDate = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("provisioningState".equals(fieldName)) { - deserializedElasticBackupProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("size".equals(fieldName)) { - deserializedElasticBackupProperties.size = reader.getNullable(JsonReader::getLong); - } else if ("label".equals(fieldName)) { - deserializedElasticBackupProperties.label = reader.getString(); - } else if ("backupType".equals(fieldName)) { - deserializedElasticBackupProperties.backupType = ElasticBackupType.fromString(reader.getString()); - } else if ("failureReason".equals(fieldName)) { - deserializedElasticBackupProperties.failureReason = reader.getString(); - } else if ("snapshotUsage".equals(fieldName)) { - deserializedElasticBackupProperties.snapshotUsage = SnapshotUsage.fromString(reader.getString()); - } else if ("elasticSnapshotResourceId".equals(fieldName)) { - deserializedElasticBackupProperties.elasticSnapshotResourceId = reader.getString(); - } else if ("elasticBackupPolicyResourceId".equals(fieldName)) { - deserializedElasticBackupProperties.elasticBackupPolicyResourceId = reader.getString(); - } else if ("volumeSize".equals(fieldName)) { - deserializedElasticBackupProperties.volumeSize = VolumeSize.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupType.java deleted file mode 100644 index 76dece2d90fe..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupType.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Type of backup. - */ -public final class ElasticBackupType extends ExpandableStringEnum { - /** - * Manual backup type. - */ - public static final ElasticBackupType MANUAL = fromString("Manual"); - - /** - * Scheduled backup type. - */ - public static final ElasticBackupType SCHEDULED = fromString("Scheduled"); - - /** - * Creates a new instance of ElasticBackupType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticBackupType() { - } - - /** - * Creates or finds a ElasticBackupType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticBackupType. - */ - public static ElasticBackupType fromString(String name) { - return fromString(name, ElasticBackupType.class); - } - - /** - * Gets known ElasticBackupType values. - * - * @return known ElasticBackupType values. - */ - public static Collection values() { - return values(ElasticBackupType.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVault.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVault.java deleted file mode 100644 index 7eb3253c88b5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVault.java +++ /dev/null @@ -1,263 +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.models; - -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.ElasticBackupVaultInner; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticBackupVault. - */ -public interface ElasticBackupVault { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticBackupVaultProperties properties(); - - /** - * Gets 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. - */ - String eTag(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner object. - * - * @return the inner object. - */ - ElasticBackupVaultInner innerModel(); - - /** - * The entirety of the ElasticBackupVault definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticBackupVault definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticBackupVault definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticBackupVault definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the ElasticBackupVault definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @return the next definition stage. - */ - WithCreate withExistingElasticAccount(String resourceGroupName, String accountName); - } - - /** - * The stage of the ElasticBackupVault definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticBackupVault create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticBackupVault create(Context context); - } - - /** - * The stage of the ElasticBackupVault definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticBackupVault definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticBackupVaultProperties properties); - } - } - - /** - * Begins update for the ElasticBackupVault resource. - * - * @return the stage of resource update. - */ - ElasticBackupVault.Update update(); - - /** - * The template for ElasticBackupVault update. - */ - interface Update extends UpdateStages.WithTags { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticBackupVault apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticBackupVault apply(Context context); - } - - /** - * The ElasticBackupVault update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticBackupVault update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticBackupVault refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticBackupVault refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultProperties.java deleted file mode 100644 index 8e5406661ee9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultProperties.java +++ /dev/null @@ -1,82 +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.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 java.io.IOException; - -/** - * Elastic Backup Vault properties. - */ -@Immutable -public final class ElasticBackupVaultProperties implements JsonSerializable { - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /** - * Creates an instance of ElasticBackupVaultProperties class. - */ - public ElasticBackupVaultProperties() { - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * 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(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupVaultProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupVaultProperties 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 ElasticBackupVaultProperties. - */ - public static ElasticBackupVaultProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupVaultProperties deserializedElasticBackupVaultProperties = new ElasticBackupVaultProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedElasticBackupVaultProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupVaultProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultUpdate.java deleted file mode 100644 index 2b73e7208cf0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultUpdate.java +++ /dev/null @@ -1,95 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.Map; - -/** - * The type used for update operations of the ElasticBackupVault. - */ -@Fluent -public final class ElasticBackupVaultUpdate implements JsonSerializable { - /* - * Resource tags. - */ - private Map tags; - - /** - * Creates an instance of ElasticBackupVaultUpdate class. - */ - public ElasticBackupVaultUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticBackupVaultUpdate object itself. - */ - public ElasticBackupVaultUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * 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.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupVaultUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupVaultUpdate 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 ElasticBackupVaultUpdate. - */ - public static ElasticBackupVaultUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupVaultUpdate deserializedElasticBackupVaultUpdate = new ElasticBackupVaultUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticBackupVaultUpdate.tags = tags; - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupVaultUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaults.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaults.java deleted file mode 100644 index 9f6b3c422549..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaults.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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticBackupVaults. - */ -public interface ElasticBackupVaults { - /** - * 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}. - */ - 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. - */ - ElasticBackupVault get(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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - 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. - */ - 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}. - */ - 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}. - */ - PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context); - - /** - * Get the Elastic Backup Vault. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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}. - */ - ElasticBackupVault getById(String id); - - /** - * Get the Elastic Backup Vault. - * - * @param id the resource ID. - * @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}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified Elastic Backup Vault. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Delete the specified Elastic Backup Vault. - * - * @param id the resource ID. - * @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. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticBackupVault resource. - * - * @param name resource name. - * @return the first stage of the new ElasticBackupVault definition. - */ - ElasticBackupVault.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackups.java deleted file mode 100644 index e158b9e65f00..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackups.java +++ /dev/null @@ -1,152 +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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticBackups. - */ -public interface ElasticBackups { - /** - * 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}. - */ - 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. - */ - ElasticBackup get(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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - 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. - */ - 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}. - */ - 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}. - */ - PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName, - Context context); - - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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}. - */ - ElasticBackup getById(String id); - - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param id the resource ID. - * @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}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete a ElasticBackup. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Delete a ElasticBackup. - * - * @param id the resource ID. - * @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. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticBackup resource. - * - * @param name resource name. - * @return the first stage of the new ElasticBackup definition. - */ - ElasticBackup.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPool.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPool.java deleted file mode 100644 index 98c16ebbd407..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPool.java +++ /dev/null @@ -1,347 +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.models; - -import com.azure.core.http.rest.Response; -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.ElasticCapacityPoolInner; -import java.util.List; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticCapacityPool. - */ -public interface ElasticCapacityPool { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticCapacityPoolProperties properties(); - - /** - * Gets 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. - */ - String eTag(); - - /** - * Gets the zones property: The availability zones. - * - * @return the zones value. - */ - List zones(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner object. - * - * @return the inner object. - */ - ElasticCapacityPoolInner innerModel(); - - /** - * The entirety of the ElasticCapacityPool definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticCapacityPool definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticCapacityPool definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticCapacityPool definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the ElasticCapacityPool definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @return the next definition stage. - */ - WithCreate withExistingElasticAccount(String resourceGroupName, String accountName); - } - - /** - * The stage of the ElasticCapacityPool definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithZones { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticCapacityPool create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticCapacityPool create(Context context); - } - - /** - * The stage of the ElasticCapacityPool definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticCapacityPool definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticCapacityPoolProperties properties); - } - - /** - * The stage of the ElasticCapacityPool definition allowing to specify zones. - */ - interface WithZones { - /** - * Specifies the zones property: The availability zones.. - * - * @param zones The availability zones. - * @return the next definition stage. - */ - WithCreate withZones(List zones); - } - } - - /** - * Begins update for the ElasticCapacityPool resource. - * - * @return the stage of resource update. - */ - ElasticCapacityPool.Update update(); - - /** - * The template for ElasticCapacityPool update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticCapacityPool apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticCapacityPool apply(Context context); - } - - /** - * The ElasticCapacityPool update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticCapacityPool update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ElasticCapacityPool update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticCapacityPoolUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticCapacityPool refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticCapacityPool refresh(Context context); - - /** - * Moves pool to another zone. - * - * @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 response. - */ - ElasticCapacityPool changeZone(ChangeZoneRequest body); - - /** - * Moves pool to another zone. - * - * @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 response. - */ - ElasticCapacityPool changeZone(ChangeZoneRequest body, Context context); - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @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}. - */ - Response checkVolumeFilePathAvailabilityWithResponse( - CheckElasticVolumeFilePathAvailabilityRequest body, Context context); - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @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. - */ - CheckElasticResourceAvailabilityResponse - checkVolumeFilePathAvailability(CheckElasticVolumeFilePathAvailabilityRequest body); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolProperties.java deleted file mode 100644 index 4f03b65a3831..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolProperties.java +++ /dev/null @@ -1,305 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Elastic capacity pool properties. - */ -@Fluent -public final class ElasticCapacityPoolProperties implements JsonSerializable { - /* - * Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must be in the range 1TiB to - * 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of 1TiB till 16TiB and in - * multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - */ - private long size; - - /* - * The service level of the elastic capacity pool - */ - private ElasticServiceLevel serviceLevel; - - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Encryption settings - */ - private ElasticEncryptionConfiguration encryption; - - /* - * Total throughput of the pool in MiB/s - */ - private Double totalThroughputMibps; - - /* - * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/elasticVolumes, this is - * used by all the volumes within the pool - */ - private String subnetResourceId; - - /* - * Indicates the current zone of the pool. This can be changed for zoneRedundant service level pool with the - * changeZone action - */ - private String currentZone; - - /* - * Current availability status of the resource. - */ - private ElasticResourceAvailabilityStatus availabilityStatus; - - /* - * The Azure Resource URI for an Active Directory configuration. This is used by all the SMB volumes within the pool - */ - private String activeDirectoryConfigResourceId; - - /** - * Creates an instance of ElasticCapacityPoolProperties class. - */ - public ElasticCapacityPoolProperties() { - } - - /** - * Get the size property: Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must - * be in the range 1TiB to 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of - * 1TiB till 16TiB and in multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - * - * @return the size value. - */ - public long size() { - return this.size; - } - - /** - * Set the size property: Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must - * be in the range 1TiB to 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of - * 1TiB till 16TiB and in multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - * - * @param size the size value to set. - * @return the ElasticCapacityPoolProperties object itself. - */ - public ElasticCapacityPoolProperties withSize(long size) { - this.size = size; - return this; - } - - /** - * Get the serviceLevel property: The service level of the elastic capacity pool. - * - * @return the serviceLevel value. - */ - public ElasticServiceLevel serviceLevel() { - return this.serviceLevel; - } - - /** - * Set the serviceLevel property: The service level of the elastic capacity pool. - * - * @param serviceLevel the serviceLevel value to set. - * @return the ElasticCapacityPoolProperties object itself. - */ - public ElasticCapacityPoolProperties withServiceLevel(ElasticServiceLevel serviceLevel) { - this.serviceLevel = serviceLevel; - return this; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the encryption property: Encryption settings. - * - * @return the encryption value. - */ - public ElasticEncryptionConfiguration encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Encryption settings. - * - * @param encryption the encryption value to set. - * @return the ElasticCapacityPoolProperties object itself. - */ - public ElasticCapacityPoolProperties withEncryption(ElasticEncryptionConfiguration encryption) { - this.encryption = encryption; - return this; - } - - /** - * Get the totalThroughputMibps property: Total throughput of the pool in MiB/s. - * - * @return the totalThroughputMibps value. - */ - public Double totalThroughputMibps() { - return this.totalThroughputMibps; - } - - /** - * Get the subnetResourceId property: The Azure Resource URI for a delegated subnet. Must have the delegation - * Microsoft.NetApp/elasticVolumes, this is used by all the volumes within the pool. - * - * @return the subnetResourceId value. - */ - public String subnetResourceId() { - return this.subnetResourceId; - } - - /** - * Set the subnetResourceId property: The Azure Resource URI for a delegated subnet. Must have the delegation - * Microsoft.NetApp/elasticVolumes, this is used by all the volumes within the pool. - * - * @param subnetResourceId the subnetResourceId value to set. - * @return the ElasticCapacityPoolProperties object itself. - */ - public ElasticCapacityPoolProperties withSubnetResourceId(String subnetResourceId) { - this.subnetResourceId = subnetResourceId; - return this; - } - - /** - * Get the currentZone property: Indicates the current zone of the pool. This can be changed for zoneRedundant - * service level pool with the changeZone action. - * - * @return the currentZone value. - */ - public String currentZone() { - return this.currentZone; - } - - /** - * Get the availabilityStatus property: Current availability status of the resource. - * - * @return the availabilityStatus value. - */ - public ElasticResourceAvailabilityStatus availabilityStatus() { - return this.availabilityStatus; - } - - /** - * Get the activeDirectoryConfigResourceId property: The Azure Resource URI for an Active Directory configuration. - * This is used by all the SMB volumes within the pool. - * - * @return the activeDirectoryConfigResourceId value. - */ - public String activeDirectoryConfigResourceId() { - return this.activeDirectoryConfigResourceId; - } - - /** - * Set the activeDirectoryConfigResourceId property: The Azure Resource URI for an Active Directory configuration. - * This is used by all the SMB volumes within the pool. - * - * @param activeDirectoryConfigResourceId the activeDirectoryConfigResourceId value to set. - * @return the ElasticCapacityPoolProperties object itself. - */ - public ElasticCapacityPoolProperties withActiveDirectoryConfigResourceId(String activeDirectoryConfigResourceId) { - this.activeDirectoryConfigResourceId = activeDirectoryConfigResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (serviceLevel() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property serviceLevel in model ElasticCapacityPoolProperties")); - } - if (encryption() != null) { - encryption().validate(); - } - if (subnetResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property subnetResourceId in model ElasticCapacityPoolProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticCapacityPoolProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeLongField("size", this.size); - jsonWriter.writeStringField("serviceLevel", this.serviceLevel == null ? null : this.serviceLevel.toString()); - jsonWriter.writeStringField("subnetResourceId", this.subnetResourceId); - jsonWriter.writeJsonField("encryption", this.encryption); - jsonWriter.writeStringField("activeDirectoryConfigResourceId", this.activeDirectoryConfigResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticCapacityPoolProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticCapacityPoolProperties 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 ElasticCapacityPoolProperties. - */ - public static ElasticCapacityPoolProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticCapacityPoolProperties deserializedElasticCapacityPoolProperties - = new ElasticCapacityPoolProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("size".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.size = reader.getLong(); - } else if ("serviceLevel".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.serviceLevel - = ElasticServiceLevel.fromString(reader.getString()); - } else if ("subnetResourceId".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.subnetResourceId = reader.getString(); - } else if ("provisioningState".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("encryption".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.encryption - = ElasticEncryptionConfiguration.fromJson(reader); - } else if ("totalThroughputMibps".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.totalThroughputMibps - = reader.getNullable(JsonReader::getDouble); - } else if ("currentZone".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.currentZone = reader.getString(); - } else if ("availabilityStatus".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.availabilityStatus - = ElasticResourceAvailabilityStatus.fromString(reader.getString()); - } else if ("activeDirectoryConfigResourceId".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.activeDirectoryConfigResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticCapacityPoolProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdate.java deleted file mode 100644 index c0edc78dae90..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdate.java +++ /dev/null @@ -1,127 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.Map; - -/** - * The type used for update operations of the ElasticCapacityPool. - */ -@Fluent -public final class ElasticCapacityPoolUpdate implements JsonSerializable { - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ElasticCapacityPoolUpdateProperties properties; - - /** - * Creates an instance of ElasticCapacityPoolUpdate class. - */ - public ElasticCapacityPoolUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticCapacityPoolUpdate object itself. - */ - public ElasticCapacityPoolUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticCapacityPoolUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticCapacityPoolUpdate object itself. - */ - public ElasticCapacityPoolUpdate withProperties(ElasticCapacityPoolUpdateProperties properties) { - this.properties = properties; - 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.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticCapacityPoolUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticCapacityPoolUpdate 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 ElasticCapacityPoolUpdate. - */ - public static ElasticCapacityPoolUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticCapacityPoolUpdate deserializedElasticCapacityPoolUpdate = new ElasticCapacityPoolUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticCapacityPoolUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedElasticCapacityPoolUpdate.properties - = ElasticCapacityPoolUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticCapacityPoolUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdateProperties.java deleted file mode 100644 index b88a394b7baf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdateProperties.java +++ /dev/null @@ -1,165 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The updatable properties of the ElasticCapacityPool. - */ -@Fluent -public final class ElasticCapacityPoolUpdateProperties - implements JsonSerializable { - /* - * Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must be in the range 1TiB to - * 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of 1TiB till 16TiB and in - * multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - */ - private Long size; - - /* - * Encryption settings - */ - private ElasticEncryptionConfiguration encryption; - - /* - * The Azure Resource URI for an Active Directory configuration. This is used by all the SMB volumes within the pool - */ - private String activeDirectoryConfigResourceId; - - /** - * Creates an instance of ElasticCapacityPoolUpdateProperties class. - */ - public ElasticCapacityPoolUpdateProperties() { - } - - /** - * Get the size property: Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must - * be in the range 1TiB to 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of - * 1TiB till 16TiB and in multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - * - * @return the size value. - */ - public Long size() { - return this.size; - } - - /** - * Set the size property: Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must - * be in the range 1TiB to 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of - * 1TiB till 16TiB and in multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - * - * @param size the size value to set. - * @return the ElasticCapacityPoolUpdateProperties object itself. - */ - public ElasticCapacityPoolUpdateProperties withSize(Long size) { - this.size = size; - return this; - } - - /** - * Get the encryption property: Encryption settings. - * - * @return the encryption value. - */ - public ElasticEncryptionConfiguration encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Encryption settings. - * - * @param encryption the encryption value to set. - * @return the ElasticCapacityPoolUpdateProperties object itself. - */ - public ElasticCapacityPoolUpdateProperties withEncryption(ElasticEncryptionConfiguration encryption) { - this.encryption = encryption; - return this; - } - - /** - * Get the activeDirectoryConfigResourceId property: The Azure Resource URI for an Active Directory configuration. - * This is used by all the SMB volumes within the pool. - * - * @return the activeDirectoryConfigResourceId value. - */ - public String activeDirectoryConfigResourceId() { - return this.activeDirectoryConfigResourceId; - } - - /** - * Set the activeDirectoryConfigResourceId property: The Azure Resource URI for an Active Directory configuration. - * This is used by all the SMB volumes within the pool. - * - * @param activeDirectoryConfigResourceId the activeDirectoryConfigResourceId value to set. - * @return the ElasticCapacityPoolUpdateProperties object itself. - */ - public ElasticCapacityPoolUpdateProperties - withActiveDirectoryConfigResourceId(String activeDirectoryConfigResourceId) { - this.activeDirectoryConfigResourceId = activeDirectoryConfigResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (encryption() != null) { - encryption().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("size", this.size); - jsonWriter.writeJsonField("encryption", this.encryption); - jsonWriter.writeStringField("activeDirectoryConfigResourceId", this.activeDirectoryConfigResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticCapacityPoolUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticCapacityPoolUpdateProperties 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 ElasticCapacityPoolUpdateProperties. - */ - public static ElasticCapacityPoolUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticCapacityPoolUpdateProperties deserializedElasticCapacityPoolUpdateProperties - = new ElasticCapacityPoolUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("size".equals(fieldName)) { - deserializedElasticCapacityPoolUpdateProperties.size = reader.getNullable(JsonReader::getLong); - } else if ("encryption".equals(fieldName)) { - deserializedElasticCapacityPoolUpdateProperties.encryption - = ElasticEncryptionConfiguration.fromJson(reader); - } else if ("activeDirectoryConfigResourceId".equals(fieldName)) { - deserializedElasticCapacityPoolUpdateProperties.activeDirectoryConfigResourceId - = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticCapacityPoolUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPools.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPools.java deleted file mode 100644 index f878ee07d04e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPools.java +++ /dev/null @@ -1,208 +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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticCapacityPools. - */ -public interface ElasticCapacityPools { - /** - * 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}. - */ - 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. - */ - ElasticCapacityPool get(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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - 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. - */ - 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}. - */ - 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}. - */ - 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 response. - */ - ElasticCapacityPool 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 the response. - */ - ElasticCapacityPool 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}. - */ - 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. - */ - CheckElasticResourceAvailabilityResponse checkVolumeFilePathAvailability(String resourceGroupName, - String accountName, String poolName, CheckElasticVolumeFilePathAvailabilityRequest body); - - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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}. - */ - ElasticCapacityPool getById(String id); - - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param id the resource ID. - * @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}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param id the resource ID. - * @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. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticCapacityPool resource. - * - * @param name resource name. - * @return the first stage of the new ElasticCapacityPool definition. - */ - ElasticCapacityPool.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryption.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryption.java deleted file mode 100644 index e4340a9c9b29..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryption.java +++ /dev/null @@ -1,161 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Encryption settings. - */ -@Fluent -public final class ElasticEncryption implements JsonSerializable { - /* - * The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault - */ - private KeySource keySource; - - /* - * Properties provided by KeyVault. Applicable if keySource is 'Microsoft.KeyVault'. - */ - private ElasticKeyVaultProperties keyVaultProperties; - - /* - * Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'. - */ - private ElasticEncryptionIdentity identity; - - /** - * Creates an instance of ElasticEncryption class. - */ - public ElasticEncryption() { - } - - /** - * Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): - * Microsoft.NetApp, Microsoft.KeyVault. - * - * @return the keySource value. - */ - public KeySource keySource() { - return this.keySource; - } - - /** - * Set the keySource property: The encryption keySource (provider). Possible values (case-insensitive): - * Microsoft.NetApp, Microsoft.KeyVault. - * - * @param keySource the keySource value to set. - * @return the ElasticEncryption object itself. - */ - public ElasticEncryption withKeySource(KeySource keySource) { - this.keySource = keySource; - return this; - } - - /** - * Get the keyVaultProperties property: Properties provided by KeyVault. Applicable if keySource is - * 'Microsoft.KeyVault'. - * - * @return the keyVaultProperties value. - */ - public ElasticKeyVaultProperties keyVaultProperties() { - return this.keyVaultProperties; - } - - /** - * Set the keyVaultProperties property: Properties provided by KeyVault. Applicable if keySource is - * 'Microsoft.KeyVault'. - * - * @param keyVaultProperties the keyVaultProperties value to set. - * @return the ElasticEncryption object itself. - */ - public ElasticEncryption withKeyVaultProperties(ElasticKeyVaultProperties keyVaultProperties) { - this.keyVaultProperties = keyVaultProperties; - return this; - } - - /** - * Get the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is - * 'Microsoft.KeyVault'. - * - * @return the identity value. - */ - public ElasticEncryptionIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is - * 'Microsoft.KeyVault'. - * - * @param identity the identity value to set. - * @return the ElasticEncryption object itself. - */ - public ElasticEncryption withIdentity(ElasticEncryptionIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (keyVaultProperties() != null) { - keyVaultProperties().validate(); - } - if (identity() != null) { - identity().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("keySource", this.keySource == null ? null : this.keySource.toString()); - jsonWriter.writeJsonField("keyVaultProperties", this.keyVaultProperties); - jsonWriter.writeJsonField("identity", this.identity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticEncryption from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticEncryption 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 ElasticEncryption. - */ - public static ElasticEncryption fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticEncryption deserializedElasticEncryption = new ElasticEncryption(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("keySource".equals(fieldName)) { - deserializedElasticEncryption.keySource = KeySource.fromString(reader.getString()); - } else if ("keyVaultProperties".equals(fieldName)) { - deserializedElasticEncryption.keyVaultProperties = ElasticKeyVaultProperties.fromJson(reader); - } else if ("identity".equals(fieldName)) { - deserializedElasticEncryption.identity = ElasticEncryptionIdentity.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticEncryption; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionConfiguration.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionConfiguration.java deleted file mode 100644 index 75a5ab4ad93f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionConfiguration.java +++ /dev/null @@ -1,143 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * CMK Encryption Configuration. - */ -@Fluent -public final class ElasticEncryptionConfiguration implements JsonSerializable { - /* - * Pool Encryption Key Source. - */ - private ElasticPoolEncryptionKeySource elasticPoolEncryptionKeySource; - - /* - * The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable - * if encryptionKeySource = 'Microsoft.KeyVault'. - */ - private String keyVaultPrivateEndpointResourceId; - - /** - * Creates an instance of ElasticEncryptionConfiguration class. - */ - public ElasticEncryptionConfiguration() { - } - - /** - * Get the elasticPoolEncryptionKeySource property: Pool Encryption Key Source. - * - * @return the elasticPoolEncryptionKeySource value. - */ - public ElasticPoolEncryptionKeySource elasticPoolEncryptionKeySource() { - return this.elasticPoolEncryptionKeySource; - } - - /** - * Set the elasticPoolEncryptionKeySource property: Pool Encryption Key Source. - * - * @param elasticPoolEncryptionKeySource the elasticPoolEncryptionKeySource value to set. - * @return the ElasticEncryptionConfiguration object itself. - */ - public ElasticEncryptionConfiguration - withElasticPoolEncryptionKeySource(ElasticPoolEncryptionKeySource elasticPoolEncryptionKeySource) { - this.elasticPoolEncryptionKeySource = elasticPoolEncryptionKeySource; - return this; - } - - /** - * Get the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must - * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * - * @return the keyVaultPrivateEndpointResourceId value. - */ - public String keyVaultPrivateEndpointResourceId() { - return this.keyVaultPrivateEndpointResourceId; - } - - /** - * Set the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must - * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * - * @param keyVaultPrivateEndpointResourceId the keyVaultPrivateEndpointResourceId value to set. - * @return the ElasticEncryptionConfiguration object itself. - */ - public ElasticEncryptionConfiguration - withKeyVaultPrivateEndpointResourceId(String keyVaultPrivateEndpointResourceId) { - this.keyVaultPrivateEndpointResourceId = keyVaultPrivateEndpointResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (elasticPoolEncryptionKeySource() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property elasticPoolEncryptionKeySource in model ElasticEncryptionConfiguration")); - } - if (keyVaultPrivateEndpointResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property keyVaultPrivateEndpointResourceId in model ElasticEncryptionConfiguration")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticEncryptionConfiguration.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("elasticPoolEncryptionKeySource", - this.elasticPoolEncryptionKeySource == null ? null : this.elasticPoolEncryptionKeySource.toString()); - jsonWriter.writeStringField("keyVaultPrivateEndpointResourceId", this.keyVaultPrivateEndpointResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticEncryptionConfiguration from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticEncryptionConfiguration 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 ElasticEncryptionConfiguration. - */ - public static ElasticEncryptionConfiguration fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticEncryptionConfiguration deserializedElasticEncryptionConfiguration - = new ElasticEncryptionConfiguration(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("elasticPoolEncryptionKeySource".equals(fieldName)) { - deserializedElasticEncryptionConfiguration.elasticPoolEncryptionKeySource - = ElasticPoolEncryptionKeySource.fromString(reader.getString()); - } else if ("keyVaultPrivateEndpointResourceId".equals(fieldName)) { - deserializedElasticEncryptionConfiguration.keyVaultPrivateEndpointResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticEncryptionConfiguration; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionIdentity.java deleted file mode 100644 index f351a7dc8d79..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionIdentity.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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Identity used to authenticate with key vault. - */ -@Fluent -public final class ElasticEncryptionIdentity implements JsonSerializable { - /* - * The principal ID (object ID) of the identity used to authenticate with key vault. Read-only. - */ - private String principalId; - - /* - * The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if - * identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. - */ - private String userAssignedIdentity; - - /* - * ClientId of the multi-tenant Entra ID Application. Used to access cross-tenant keyvaults. - */ - private String federatedClientId; - - /** - * Creates an instance of ElasticEncryptionIdentity class. - */ - public ElasticEncryptionIdentity() { - } - - /** - * Get the principalId property: The principal ID (object ID) of the identity used to authenticate with key vault. - * Read-only. - * - * @return the principalId value. - */ - public String principalId() { - return this.principalId; - } - - /** - * Get the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to - * authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of - * identity.userAssignedIdentities. - * - * @return the userAssignedIdentity value. - */ - public String userAssignedIdentity() { - return this.userAssignedIdentity; - } - - /** - * Set the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to - * authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of - * identity.userAssignedIdentities. - * - * @param userAssignedIdentity the userAssignedIdentity value to set. - * @return the ElasticEncryptionIdentity object itself. - */ - public ElasticEncryptionIdentity withUserAssignedIdentity(String userAssignedIdentity) { - this.userAssignedIdentity = userAssignedIdentity; - return this; - } - - /** - * Get the federatedClientId property: ClientId of the multi-tenant Entra ID Application. Used to access - * cross-tenant keyvaults. - * - * @return the federatedClientId value. - */ - public String federatedClientId() { - return this.federatedClientId; - } - - /** - * Set the federatedClientId property: ClientId of the multi-tenant Entra ID Application. Used to access - * cross-tenant keyvaults. - * - * @param federatedClientId the federatedClientId value to set. - * @return the ElasticEncryptionIdentity object itself. - */ - public ElasticEncryptionIdentity withFederatedClientId(String federatedClientId) { - this.federatedClientId = federatedClientId; - return this; - } - - /** - * 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("userAssignedIdentity", this.userAssignedIdentity); - jsonWriter.writeStringField("federatedClientId", this.federatedClientId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticEncryptionIdentity from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticEncryptionIdentity 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 ElasticEncryptionIdentity. - */ - public static ElasticEncryptionIdentity fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticEncryptionIdentity deserializedElasticEncryptionIdentity = new ElasticEncryptionIdentity(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("principalId".equals(fieldName)) { - deserializedElasticEncryptionIdentity.principalId = reader.getString(); - } else if ("userAssignedIdentity".equals(fieldName)) { - deserializedElasticEncryptionIdentity.userAssignedIdentity = reader.getString(); - } else if ("federatedClientId".equals(fieldName)) { - deserializedElasticEncryptionIdentity.federatedClientId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticEncryptionIdentity; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicy.java deleted file mode 100644 index 86e47d808720..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicy.java +++ /dev/null @@ -1,99 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * Set of export policy rules. - */ -@Fluent -public final class ElasticExportPolicy implements JsonSerializable { - /* - * Export policy rule - */ - private List rules; - - /** - * Creates an instance of ElasticExportPolicy class. - */ - public ElasticExportPolicy() { - } - - /** - * Get the rules property: Export policy rule. - * - * @return the rules value. - */ - public List rules() { - return this.rules; - } - - /** - * Set the rules property: Export policy rule. - * - * @param rules the rules value to set. - * @return the ElasticExportPolicy object itself. - */ - public ElasticExportPolicy withRules(List rules) { - this.rules = rules; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (rules() != null) { - rules().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("rules", this.rules, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticExportPolicy from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticExportPolicy 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 ElasticExportPolicy. - */ - public static ElasticExportPolicy fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticExportPolicy deserializedElasticExportPolicy = new ElasticExportPolicy(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("rules".equals(fieldName)) { - List rules - = reader.readArray(reader1 -> ElasticExportPolicyRule.fromJson(reader1)); - deserializedElasticExportPolicy.rules = rules; - } else { - reader.skipChildren(); - } - } - - return deserializedElasticExportPolicy; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicyRule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicyRule.java deleted file mode 100644 index 32b4063961f9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicyRule.java +++ /dev/null @@ -1,250 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * Elastic Volume Export Policy Rule. - */ -@Fluent -public final class ElasticExportPolicyRule implements JsonSerializable { - /* - * Controls the priority of the export policy rule. When connecting to the volume the rule with the lowest index - * that applies to the connecting client is used - */ - private Integer ruleIndex; - - /* - * Specifies the Unix file access level for the volume. It encompasses both read-only and read-write permissions. - * Additionally, NoAccess can be set to block all access to the volume - */ - private ElasticUnixAccessRule unixAccessRule; - - /* - * Allows clients to access the volume with the NFSv3 protocol. Enable only for NFSv3 type volumes - */ - private ElasticNfsv3Access nfsv3; - - /* - * Allows clients to access the volume with at least NFSv4.1 protocol. - */ - private ElasticNfsv4Access nfsv4; - - /* - * Client ingress specification for the export policy as list of IPv4 CIDRs, IPv4 host addresses and host names. - */ - private List allowedClients; - - /* - * Indicates whether root access to the volume is granted to clients affected by this rule - */ - private ElasticRootAccess rootAccess; - - /** - * Creates an instance of ElasticExportPolicyRule class. - */ - public ElasticExportPolicyRule() { - } - - /** - * Get the ruleIndex property: Controls the priority of the export policy rule. When connecting to the volume the - * rule with the lowest index that applies to the connecting client is used. - * - * @return the ruleIndex value. - */ - public Integer ruleIndex() { - return this.ruleIndex; - } - - /** - * Set the ruleIndex property: Controls the priority of the export policy rule. When connecting to the volume the - * rule with the lowest index that applies to the connecting client is used. - * - * @param ruleIndex the ruleIndex value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withRuleIndex(Integer ruleIndex) { - this.ruleIndex = ruleIndex; - return this; - } - - /** - * Get the unixAccessRule property: Specifies the Unix file access level for the volume. It encompasses both - * read-only and read-write permissions. Additionally, NoAccess can be set to block all access to the volume. - * - * @return the unixAccessRule value. - */ - public ElasticUnixAccessRule unixAccessRule() { - return this.unixAccessRule; - } - - /** - * Set the unixAccessRule property: Specifies the Unix file access level for the volume. It encompasses both - * read-only and read-write permissions. Additionally, NoAccess can be set to block all access to the volume. - * - * @param unixAccessRule the unixAccessRule value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withUnixAccessRule(ElasticUnixAccessRule unixAccessRule) { - this.unixAccessRule = unixAccessRule; - return this; - } - - /** - * Get the nfsv3 property: Allows clients to access the volume with the NFSv3 protocol. Enable only for NFSv3 type - * volumes. - * - * @return the nfsv3 value. - */ - public ElasticNfsv3Access nfsv3() { - return this.nfsv3; - } - - /** - * Set the nfsv3 property: Allows clients to access the volume with the NFSv3 protocol. Enable only for NFSv3 type - * volumes. - * - * @param nfsv3 the nfsv3 value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withNfsv3(ElasticNfsv3Access nfsv3) { - this.nfsv3 = nfsv3; - return this; - } - - /** - * Get the nfsv4 property: Allows clients to access the volume with at least NFSv4.1 protocol. - * - * @return the nfsv4 value. - */ - public ElasticNfsv4Access nfsv4() { - return this.nfsv4; - } - - /** - * Set the nfsv4 property: Allows clients to access the volume with at least NFSv4.1 protocol. - * - * @param nfsv4 the nfsv4 value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withNfsv4(ElasticNfsv4Access nfsv4) { - this.nfsv4 = nfsv4; - return this; - } - - /** - * Get the allowedClients property: Client ingress specification for the export policy as list of IPv4 CIDRs, IPv4 - * host addresses and host names. - * - * @return the allowedClients value. - */ - public List allowedClients() { - return this.allowedClients; - } - - /** - * Set the allowedClients property: Client ingress specification for the export policy as list of IPv4 CIDRs, IPv4 - * host addresses and host names. - * - * @param allowedClients the allowedClients value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withAllowedClients(List allowedClients) { - this.allowedClients = allowedClients; - return this; - } - - /** - * Get the rootAccess property: Indicates whether root access to the volume is granted to clients affected by this - * rule. - * - * @return the rootAccess value. - */ - public ElasticRootAccess rootAccess() { - return this.rootAccess; - } - - /** - * Set the rootAccess property: Indicates whether root access to the volume is granted to clients affected by this - * rule. - * - * @param rootAccess the rootAccess value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withRootAccess(ElasticRootAccess rootAccess) { - this.rootAccess = rootAccess; - return this; - } - - /** - * 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.writeNumberField("ruleIndex", this.ruleIndex); - jsonWriter.writeStringField("unixAccessRule", - this.unixAccessRule == null ? null : this.unixAccessRule.toString()); - jsonWriter.writeStringField("nfsv3", this.nfsv3 == null ? null : this.nfsv3.toString()); - jsonWriter.writeStringField("nfsv4", this.nfsv4 == null ? null : this.nfsv4.toString()); - jsonWriter.writeArrayField("allowedClients", this.allowedClients, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("rootAccess", this.rootAccess == null ? null : this.rootAccess.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticExportPolicyRule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticExportPolicyRule 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 ElasticExportPolicyRule. - */ - public static ElasticExportPolicyRule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticExportPolicyRule deserializedElasticExportPolicyRule = new ElasticExportPolicyRule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("ruleIndex".equals(fieldName)) { - deserializedElasticExportPolicyRule.ruleIndex = reader.getNullable(JsonReader::getInt); - } else if ("unixAccessRule".equals(fieldName)) { - deserializedElasticExportPolicyRule.unixAccessRule - = ElasticUnixAccessRule.fromString(reader.getString()); - } else if ("nfsv3".equals(fieldName)) { - deserializedElasticExportPolicyRule.nfsv3 = ElasticNfsv3Access.fromString(reader.getString()); - } else if ("nfsv4".equals(fieldName)) { - deserializedElasticExportPolicyRule.nfsv4 = ElasticNfsv4Access.fromString(reader.getString()); - } else if ("allowedClients".equals(fieldName)) { - List allowedClients = reader.readArray(reader1 -> reader1.getString()); - deserializedElasticExportPolicyRule.allowedClients = allowedClients; - } else if ("rootAccess".equals(fieldName)) { - deserializedElasticExportPolicyRule.rootAccess = ElasticRootAccess.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticExportPolicyRule; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultProperties.java deleted file mode 100644 index e0b7f1ab7fcf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultProperties.java +++ /dev/null @@ -1,165 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Properties of key vault. - */ -@Fluent -public final class ElasticKeyVaultProperties implements JsonSerializable { - /* - * The Uri of KeyVault. - */ - private String keyVaultUri; - - /* - * The name of KeyVault key. - */ - private String keyName; - - /* - * The resource ID of KeyVault. - */ - private String keyVaultResourceId; - - /* - * Status of the KeyVault connection. - */ - private ElasticKeyVaultStatus status; - - /** - * Creates an instance of ElasticKeyVaultProperties class. - */ - public ElasticKeyVaultProperties() { - } - - /** - * Get the keyVaultUri property: The Uri of KeyVault. - * - * @return the keyVaultUri value. - */ - public String keyVaultUri() { - return this.keyVaultUri; - } - - /** - * Set the keyVaultUri property: The Uri of KeyVault. - * - * @param keyVaultUri the keyVaultUri value to set. - * @return the ElasticKeyVaultProperties object itself. - */ - public ElasticKeyVaultProperties withKeyVaultUri(String keyVaultUri) { - this.keyVaultUri = keyVaultUri; - return this; - } - - /** - * Get the keyName property: The name of KeyVault key. - * - * @return the keyName value. - */ - public String keyName() { - return this.keyName; - } - - /** - * Set the keyName property: The name of KeyVault key. - * - * @param keyName the keyName value to set. - * @return the ElasticKeyVaultProperties object itself. - */ - public ElasticKeyVaultProperties withKeyName(String keyName) { - this.keyName = keyName; - return this; - } - - /** - * Get the keyVaultResourceId property: The resource ID of KeyVault. - * - * @return the keyVaultResourceId value. - */ - public String keyVaultResourceId() { - return this.keyVaultResourceId; - } - - /** - * Set the keyVaultResourceId property: The resource ID of KeyVault. - * - * @param keyVaultResourceId the keyVaultResourceId value to set. - * @return the ElasticKeyVaultProperties object itself. - */ - public ElasticKeyVaultProperties withKeyVaultResourceId(String keyVaultResourceId) { - this.keyVaultResourceId = keyVaultResourceId; - return this; - } - - /** - * Get the status property: Status of the KeyVault connection. - * - * @return the status value. - */ - public ElasticKeyVaultStatus status() { - return this.status; - } - - /** - * 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("keyVaultUri", this.keyVaultUri); - jsonWriter.writeStringField("keyName", this.keyName); - jsonWriter.writeStringField("keyVaultResourceId", this.keyVaultResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticKeyVaultProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticKeyVaultProperties 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 ElasticKeyVaultProperties. - */ - public static ElasticKeyVaultProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticKeyVaultProperties deserializedElasticKeyVaultProperties = new ElasticKeyVaultProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("keyVaultUri".equals(fieldName)) { - deserializedElasticKeyVaultProperties.keyVaultUri = reader.getString(); - } else if ("keyName".equals(fieldName)) { - deserializedElasticKeyVaultProperties.keyName = reader.getString(); - } else if ("keyVaultResourceId".equals(fieldName)) { - deserializedElasticKeyVaultProperties.keyVaultResourceId = reader.getString(); - } else if ("status".equals(fieldName)) { - deserializedElasticKeyVaultProperties.status = ElasticKeyVaultStatus.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticKeyVaultProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultStatus.java deleted file mode 100644 index b03bf923133d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultStatus.java +++ /dev/null @@ -1,66 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * KeyVault status. - */ -public final class ElasticKeyVaultStatus extends ExpandableStringEnum { - /** - * KeyVault connection created but not in use. - */ - public static final ElasticKeyVaultStatus CREATED = fromString("Created"); - - /** - * KeyVault connection in use by SMB Volume. - */ - public static final ElasticKeyVaultStatus IN_USE = fromString("InUse"); - - /** - * KeyVault connection Deleted. - */ - public static final ElasticKeyVaultStatus DELETED = fromString("Deleted"); - - /** - * Error with the KeyVault connection. - */ - public static final ElasticKeyVaultStatus ERROR = fromString("Error"); - - /** - * KeyVault connection Updating. - */ - public static final ElasticKeyVaultStatus UPDATING = fromString("Updating"); - - /** - * Creates a new instance of ElasticKeyVaultStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticKeyVaultStatus() { - } - - /** - * Creates or finds a ElasticKeyVaultStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticKeyVaultStatus. - */ - public static ElasticKeyVaultStatus fromString(String name) { - return fromString(name, ElasticKeyVaultStatus.class); - } - - /** - * Gets known ElasticKeyVaultStatus values. - * - * @return known ElasticKeyVaultStatus values. - */ - public static Collection values() { - return values(ElasticKeyVaultStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticMountTargetProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticMountTargetProperties.java deleted file mode 100644 index 8cd6c9a184f1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticMountTargetProperties.java +++ /dev/null @@ -1,97 +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.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 java.io.IOException; - -/** - * Contains all the information needed to mount an elastic volume. - */ -@Immutable -public final class ElasticMountTargetProperties implements JsonSerializable { - /* - * The mount target's IPv4 address, used to mount the volume - */ - private String ipAddress; - - /* - * The SMB server's Fully Qualified Domain Name, FQDN - */ - private String smbServerFqdn; - - /** - * Creates an instance of ElasticMountTargetProperties class. - */ - private ElasticMountTargetProperties() { - } - - /** - * Get the ipAddress property: The mount target's IPv4 address, used to mount the volume. - * - * @return the ipAddress value. - */ - public String ipAddress() { - return this.ipAddress; - } - - /** - * Get the smbServerFqdn property: The SMB server's Fully Qualified Domain Name, FQDN. - * - * @return the smbServerFqdn value. - */ - public String smbServerFqdn() { - return this.smbServerFqdn; - } - - /** - * 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(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticMountTargetProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticMountTargetProperties 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 ElasticMountTargetProperties. - */ - public static ElasticMountTargetProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticMountTargetProperties deserializedElasticMountTargetProperties = new ElasticMountTargetProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("ipAddress".equals(fieldName)) { - deserializedElasticMountTargetProperties.ipAddress = reader.getString(); - } else if ("smbServerFqdn".equals(fieldName)) { - deserializedElasticMountTargetProperties.smbServerFqdn = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticMountTargetProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv3Access.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv3Access.java deleted file mode 100644 index 5869cd66b457..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv3Access.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * NFSv3 access. - */ -public final class ElasticNfsv3Access extends ExpandableStringEnum { - /** - * Clients can connect to the volume using the NFSv3 protocol. - */ - public static final ElasticNfsv3Access ENABLED = fromString("Enabled"); - - /** - * Clients can't connect to the volume using the NFSv3 protocol. - */ - public static final ElasticNfsv3Access DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of ElasticNfsv3Access value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticNfsv3Access() { - } - - /** - * Creates or finds a ElasticNfsv3Access from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticNfsv3Access. - */ - public static ElasticNfsv3Access fromString(String name) { - return fromString(name, ElasticNfsv3Access.class); - } - - /** - * Gets known ElasticNfsv3Access values. - * - * @return known ElasticNfsv3Access values. - */ - public static Collection values() { - return values(ElasticNfsv3Access.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv4Access.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv4Access.java deleted file mode 100644 index 189fde0509d6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv4Access.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * NFSv4 access. - */ -public final class ElasticNfsv4Access extends ExpandableStringEnum { - /** - * Clients can connect to the volume using the NFSv4 protocol. - */ - public static final ElasticNfsv4Access ENABLED = fromString("Enabled"); - - /** - * Clients can't connect to the volume using the NFSv4 protocol. - */ - public static final ElasticNfsv4Access DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of ElasticNfsv4Access value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticNfsv4Access() { - } - - /** - * Creates or finds a ElasticNfsv4Access from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticNfsv4Access. - */ - public static ElasticNfsv4Access fromString(String name) { - return fromString(name, ElasticNfsv4Access.class); - } - - /** - * Gets known ElasticNfsv4Access values. - * - * @return known ElasticNfsv4Access values. - */ - public static Collection values() { - return values(ElasticNfsv4Access.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticPoolEncryptionKeySource.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticPoolEncryptionKeySource.java deleted file mode 100644 index aa4cc4f721a7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticPoolEncryptionKeySource.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Pool Encryption Key Source. - */ -public final class ElasticPoolEncryptionKeySource extends ExpandableStringEnum { - /** - * Represents the encryption key source of Elastic pool is Microsoft.NetApp. - */ - public static final ElasticPoolEncryptionKeySource NET_APP = fromString("NetApp"); - - /** - * Represents the encryption key source of Elastic pool is Microsoft.KeyVault. - */ - public static final ElasticPoolEncryptionKeySource KEY_VAULT = fromString("KeyVault"); - - /** - * Creates a new instance of ElasticPoolEncryptionKeySource value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticPoolEncryptionKeySource() { - } - - /** - * Creates or finds a ElasticPoolEncryptionKeySource from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticPoolEncryptionKeySource. - */ - public static ElasticPoolEncryptionKeySource fromString(String name) { - return fromString(name, ElasticPoolEncryptionKeySource.class); - } - - /** - * Gets known ElasticPoolEncryptionKeySource values. - * - * @return known ElasticPoolEncryptionKeySource values. - */ - public static Collection values() { - return values(ElasticPoolEncryptionKeySource.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticProtocolType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticProtocolType.java deleted file mode 100644 index d6a30768d5f2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticProtocolType.java +++ /dev/null @@ -1,56 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Protocol types for elastic volume. - */ -public final class ElasticProtocolType extends ExpandableStringEnum { - /** - * NFSv3 protocol type. - */ - public static final ElasticProtocolType NFSV3 = fromString("NFSv3"); - - /** - * NFSv4 protocol type. - */ - public static final ElasticProtocolType NFSV4 = fromString("NFSv4"); - - /** - * SMB/CIFS protocol type. - */ - public static final ElasticProtocolType SMB = fromString("SMB"); - - /** - * Creates a new instance of ElasticProtocolType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticProtocolType() { - } - - /** - * Creates or finds a ElasticProtocolType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticProtocolType. - */ - public static ElasticProtocolType fromString(String name) { - return fromString(name, ElasticProtocolType.class); - } - - /** - * Gets known ElasticProtocolType values. - * - * @return known ElasticProtocolType values. - */ - public static Collection values() { - return values(ElasticProtocolType.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticResourceAvailabilityStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticResourceAvailabilityStatus.java deleted file mode 100644 index 438fe0bd73b9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticResourceAvailabilityStatus.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Current availability status of the resource. - */ -public final class ElasticResourceAvailabilityStatus extends ExpandableStringEnum { - /** - * The resource is currently Online and accessible. - */ - public static final ElasticResourceAvailabilityStatus ONLINE = fromString("Online"); - - /** - * The resource is currently Offline and not accessible. - */ - public static final ElasticResourceAvailabilityStatus OFFLINE = fromString("Offline"); - - /** - * Creates a new instance of ElasticResourceAvailabilityStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticResourceAvailabilityStatus() { - } - - /** - * Creates or finds a ElasticResourceAvailabilityStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticResourceAvailabilityStatus. - */ - public static ElasticResourceAvailabilityStatus fromString(String name) { - return fromString(name, ElasticResourceAvailabilityStatus.class); - } - - /** - * Gets known ElasticResourceAvailabilityStatus values. - * - * @return known ElasticResourceAvailabilityStatus values. - */ - public static Collection values() { - return values(ElasticResourceAvailabilityStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticRootAccess.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticRootAccess.java deleted file mode 100644 index 72aeb2eb784d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticRootAccess.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Root access. - */ -public final class ElasticRootAccess extends ExpandableStringEnum { - /** - * Root user access is enabled for clients affected by this rule. - */ - public static final ElasticRootAccess ENABLED = fromString("Enabled"); - - /** - * Root user access is disabled for clients affected by this rule. - */ - public static final ElasticRootAccess DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of ElasticRootAccess value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticRootAccess() { - } - - /** - * Creates or finds a ElasticRootAccess from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticRootAccess. - */ - public static ElasticRootAccess fromString(String name) { - return fromString(name, ElasticRootAccess.class); - } - - /** - * Gets known ElasticRootAccess values. - * - * @return known ElasticRootAccess values. - */ - public static Collection values() { - return values(ElasticRootAccess.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticServiceLevel.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticServiceLevel.java deleted file mode 100644 index d7eba1c8da06..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticServiceLevel.java +++ /dev/null @@ -1,46 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Service level for elastic capacity pool. - */ -public final class ElasticServiceLevel extends ExpandableStringEnum { - /** - * Zone redundant storage service level. - */ - public static final ElasticServiceLevel ZONE_REDUNDANT = fromString("ZoneRedundant"); - - /** - * Creates a new instance of ElasticServiceLevel value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticServiceLevel() { - } - - /** - * Creates or finds a ElasticServiceLevel from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticServiceLevel. - */ - public static ElasticServiceLevel fromString(String name) { - return fromString(name, ElasticServiceLevel.class); - } - - /** - * Gets known ElasticServiceLevel values. - * - * @return known ElasticServiceLevel values. - */ - public static Collection values() { - return values(ElasticServiceLevel.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbEncryption.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbEncryption.java deleted file mode 100644 index 8595a9bd4819..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbEncryption.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * SMB encryption. - */ -public final class ElasticSmbEncryption extends ExpandableStringEnum { - /** - * Value indicating the SMB encryption is enabled. - */ - public static final ElasticSmbEncryption ENABLED = fromString("Enabled"); - - /** - * Value indicating the SMB encryption is disabled. - */ - public static final ElasticSmbEncryption DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of ElasticSmbEncryption value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticSmbEncryption() { - } - - /** - * Creates or finds a ElasticSmbEncryption from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticSmbEncryption. - */ - public static ElasticSmbEncryption fromString(String name) { - return fromString(name, ElasticSmbEncryption.class); - } - - /** - * Gets known ElasticSmbEncryption values. - * - * @return known ElasticSmbEncryption values. - */ - public static Collection values() { - return values(ElasticSmbEncryption.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbPatchProperties.java deleted file mode 100644 index 7766dfc4442c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbPatchProperties.java +++ /dev/null @@ -1,97 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * SMB Patch Properties. - */ -@Fluent -public final class ElasticSmbPatchProperties implements JsonSerializable { - /* - * Used to enable or disable encryption for in-flight SMB data volume. This flag can be modified during Elastic - * volume update operation as well. Only applicable for SMB protocol Elastic volumes. - */ - private ElasticSmbEncryption smbEncryption; - - /** - * Creates an instance of ElasticSmbPatchProperties class. - */ - public ElasticSmbPatchProperties() { - } - - /** - * Get the smbEncryption property: Used to enable or disable encryption for in-flight SMB data volume. This flag can - * be modified during Elastic volume update operation as well. Only applicable for SMB protocol Elastic volumes. - * - * @return the smbEncryption value. - */ - public ElasticSmbEncryption smbEncryption() { - return this.smbEncryption; - } - - /** - * Set the smbEncryption property: Used to enable or disable encryption for in-flight SMB data volume. This flag can - * be modified during Elastic volume update operation as well. Only applicable for SMB protocol Elastic volumes. - * - * @param smbEncryption the smbEncryption value to set. - * @return the ElasticSmbPatchProperties object itself. - */ - public ElasticSmbPatchProperties withSmbEncryption(ElasticSmbEncryption smbEncryption) { - this.smbEncryption = smbEncryption; - return this; - } - - /** - * 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("smbEncryption", this.smbEncryption == null ? null : this.smbEncryption.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSmbPatchProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSmbPatchProperties 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 ElasticSmbPatchProperties. - */ - public static ElasticSmbPatchProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSmbPatchProperties deserializedElasticSmbPatchProperties = new ElasticSmbPatchProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("smbEncryption".equals(fieldName)) { - deserializedElasticSmbPatchProperties.smbEncryption - = ElasticSmbEncryption.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSmbPatchProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbProperties.java deleted file mode 100644 index ce54c98ff0ed..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbProperties.java +++ /dev/null @@ -1,97 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * SMB Properties. - */ -@Fluent -public final class ElasticSmbProperties implements JsonSerializable { - /* - * Used to enable or disable encryption for in-flight SMB data volume. This flag can be modified during Elastic - * volume update operation as well. Only applicable for SMB protocol Elastic volumes. - */ - private ElasticSmbEncryption smbEncryption; - - /** - * Creates an instance of ElasticSmbProperties class. - */ - public ElasticSmbProperties() { - } - - /** - * Get the smbEncryption property: Used to enable or disable encryption for in-flight SMB data volume. This flag can - * be modified during Elastic volume update operation as well. Only applicable for SMB protocol Elastic volumes. - * - * @return the smbEncryption value. - */ - public ElasticSmbEncryption smbEncryption() { - return this.smbEncryption; - } - - /** - * Set the smbEncryption property: Used to enable or disable encryption for in-flight SMB data volume. This flag can - * be modified during Elastic volume update operation as well. Only applicable for SMB protocol Elastic volumes. - * - * @param smbEncryption the smbEncryption value to set. - * @return the ElasticSmbProperties object itself. - */ - public ElasticSmbProperties withSmbEncryption(ElasticSmbEncryption smbEncryption) { - this.smbEncryption = smbEncryption; - return this; - } - - /** - * 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("smbEncryption", this.smbEncryption == null ? null : this.smbEncryption.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSmbProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSmbProperties 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 ElasticSmbProperties. - */ - public static ElasticSmbProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSmbProperties deserializedElasticSmbProperties = new ElasticSmbProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("smbEncryption".equals(fieldName)) { - deserializedElasticSmbProperties.smbEncryption - = ElasticSmbEncryption.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSmbProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshot.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshot.java deleted file mode 100644 index 9e1816bc2354..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshot.java +++ /dev/null @@ -1,192 +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.models; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; - -/** - * An immutable client-side representation of ElasticSnapshot. - */ -public interface ElasticSnapshot { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticSnapshotProperties properties(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner object. - * - * @return the inner object. - */ - ElasticSnapshotInner innerModel(); - - /** - * The entirety of the ElasticSnapshot definition. - */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticSnapshot definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticSnapshot definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the ElasticSnapshot definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName, poolName, volumeName. - * - * @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. - * @return the next definition stage. - */ - WithCreate withExistingElasticVolume(String resourceGroupName, String accountName, String poolName, - String volumeName); - } - - /** - * The stage of the ElasticSnapshot definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticSnapshot create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticSnapshot create(Context context); - } - - /** - * The stage of the ElasticSnapshot definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticSnapshotProperties properties); - } - } - - /** - * Begins update for the ElasticSnapshot resource. - * - * @return the stage of resource update. - */ - ElasticSnapshot.Update update(); - - /** - * The template for ElasticSnapshot update. - */ - interface Update extends UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticSnapshot apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticSnapshot apply(Context context); - } - - /** - * The ElasticSnapshot update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticSnapshot update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticSnapshotProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticSnapshot refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticSnapshot refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicies.java deleted file mode 100644 index 75aed519de08..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicies.java +++ /dev/null @@ -1,174 +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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticSnapshotPolicies. - */ -public interface ElasticSnapshotPolicies { - /** - * 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}. - */ - 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. - */ - ElasticSnapshotPolicy get(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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - 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. - */ - 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}. - */ - 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}. - */ - 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}. - */ - 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}. - */ - PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context); - - /** - * Get a ElasticSnapshotPolicy. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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}. - */ - ElasticSnapshotPolicy getById(String id); - - /** - * Get a ElasticSnapshotPolicy. - * - * @param id the resource ID. - * @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}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param id the resource ID. - * @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. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticSnapshotPolicy resource. - * - * @param name resource name. - * @return the first stage of the new ElasticSnapshotPolicy definition. - */ - ElasticSnapshotPolicy.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicy.java deleted file mode 100644 index a0a76305002d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicy.java +++ /dev/null @@ -1,276 +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.models; - -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.ElasticSnapshotPolicyInner; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticSnapshotPolicy. - */ -public interface ElasticSnapshotPolicy { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticSnapshotPolicyProperties properties(); - - /** - * Gets 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. - */ - String eTag(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner object. - * - * @return the inner object. - */ - ElasticSnapshotPolicyInner innerModel(); - - /** - * The entirety of the ElasticSnapshotPolicy definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticSnapshotPolicy definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticSnapshotPolicy definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticSnapshotPolicy definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the ElasticSnapshotPolicy definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @return the next definition stage. - */ - WithCreate withExistingElasticAccount(String resourceGroupName, String accountName); - } - - /** - * The stage of the ElasticSnapshotPolicy definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticSnapshotPolicy create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticSnapshotPolicy create(Context context); - } - - /** - * The stage of the ElasticSnapshotPolicy definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticSnapshotPolicy definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticSnapshotPolicyProperties properties); - } - } - - /** - * Begins update for the ElasticSnapshotPolicy resource. - * - * @return the stage of resource update. - */ - ElasticSnapshotPolicy.Update update(); - - /** - * The template for ElasticSnapshotPolicy update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticSnapshotPolicy apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticSnapshotPolicy apply(Context context); - } - - /** - * The ElasticSnapshotPolicy update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticSnapshotPolicy update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ElasticSnapshotPolicy update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticSnapshotPolicyUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticSnapshotPolicy refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticSnapshotPolicy refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyDailySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyDailySchedule.java deleted file mode 100644 index d21f63d3ca15..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyDailySchedule.java +++ /dev/null @@ -1,151 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Daily Schedule properties used to create NetApp snapshot policy. - */ -@Fluent -public final class ElasticSnapshotPolicyDailySchedule implements JsonSerializable { - /* - * Daily snapshot count to keep - */ - private Integer snapshotsToKeep; - - /* - * Indicates which hour in UTC timezone a snapshot should be taken - */ - private Integer hour; - - /* - * Indicates which minute snapshot should be taken - */ - private Integer minute; - - /** - * Creates an instance of ElasticSnapshotPolicyDailySchedule class. - */ - public ElasticSnapshotPolicyDailySchedule() { - } - - /** - * Get the snapshotsToKeep property: Daily snapshot count to keep. - * - * @return the snapshotsToKeep value. - */ - public Integer snapshotsToKeep() { - return this.snapshotsToKeep; - } - - /** - * Set the snapshotsToKeep property: Daily snapshot count to keep. - * - * @param snapshotsToKeep the snapshotsToKeep value to set. - * @return the ElasticSnapshotPolicyDailySchedule object itself. - */ - public ElasticSnapshotPolicyDailySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { - this.snapshotsToKeep = snapshotsToKeep; - return this; - } - - /** - * Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @return the hour value. - */ - public Integer hour() { - return this.hour; - } - - /** - * Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @param hour the hour value to set. - * @return the ElasticSnapshotPolicyDailySchedule object itself. - */ - public ElasticSnapshotPolicyDailySchedule withHour(Integer hour) { - this.hour = hour; - return this; - } - - /** - * Get the minute property: Indicates which minute snapshot should be taken. - * - * @return the minute value. - */ - public Integer minute() { - return this.minute; - } - - /** - * Set the minute property: Indicates which minute snapshot should be taken. - * - * @param minute the minute value to set. - * @return the ElasticSnapshotPolicyDailySchedule object itself. - */ - public ElasticSnapshotPolicyDailySchedule withMinute(Integer minute) { - this.minute = minute; - return this; - } - - /** - * 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.writeNumberField("snapshotsToKeep", this.snapshotsToKeep); - jsonWriter.writeNumberField("hour", this.hour); - jsonWriter.writeNumberField("minute", this.minute); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyDailySchedule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyDailySchedule 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 ElasticSnapshotPolicyDailySchedule. - */ - public static ElasticSnapshotPolicyDailySchedule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyDailySchedule deserializedElasticSnapshotPolicyDailySchedule - = new ElasticSnapshotPolicyDailySchedule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotsToKeep".equals(fieldName)) { - deserializedElasticSnapshotPolicyDailySchedule.snapshotsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("hour".equals(fieldName)) { - deserializedElasticSnapshotPolicyDailySchedule.hour = reader.getNullable(JsonReader::getInt); - } else if ("minute".equals(fieldName)) { - deserializedElasticSnapshotPolicyDailySchedule.minute = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyDailySchedule; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyHourlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyHourlySchedule.java deleted file mode 100644 index bdec028a79b5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyHourlySchedule.java +++ /dev/null @@ -1,124 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Hourly Schedule properties used to create NetApp snapshot policy. - */ -@Fluent -public final class ElasticSnapshotPolicyHourlySchedule - implements JsonSerializable { - /* - * Hourly snapshot count to keep - */ - private Integer snapshotsToKeep; - - /* - * Indicates which minute snapshot should be taken - */ - private Integer minute; - - /** - * Creates an instance of ElasticSnapshotPolicyHourlySchedule class. - */ - public ElasticSnapshotPolicyHourlySchedule() { - } - - /** - * Get the snapshotsToKeep property: Hourly snapshot count to keep. - * - * @return the snapshotsToKeep value. - */ - public Integer snapshotsToKeep() { - return this.snapshotsToKeep; - } - - /** - * Set the snapshotsToKeep property: Hourly snapshot count to keep. - * - * @param snapshotsToKeep the snapshotsToKeep value to set. - * @return the ElasticSnapshotPolicyHourlySchedule object itself. - */ - public ElasticSnapshotPolicyHourlySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { - this.snapshotsToKeep = snapshotsToKeep; - return this; - } - - /** - * Get the minute property: Indicates which minute snapshot should be taken. - * - * @return the minute value. - */ - public Integer minute() { - return this.minute; - } - - /** - * Set the minute property: Indicates which minute snapshot should be taken. - * - * @param minute the minute value to set. - * @return the ElasticSnapshotPolicyHourlySchedule object itself. - */ - public ElasticSnapshotPolicyHourlySchedule withMinute(Integer minute) { - this.minute = minute; - return this; - } - - /** - * 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.writeNumberField("snapshotsToKeep", this.snapshotsToKeep); - jsonWriter.writeNumberField("minute", this.minute); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyHourlySchedule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyHourlySchedule 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 ElasticSnapshotPolicyHourlySchedule. - */ - public static ElasticSnapshotPolicyHourlySchedule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyHourlySchedule deserializedElasticSnapshotPolicyHourlySchedule - = new ElasticSnapshotPolicyHourlySchedule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotsToKeep".equals(fieldName)) { - deserializedElasticSnapshotPolicyHourlySchedule.snapshotsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("minute".equals(fieldName)) { - deserializedElasticSnapshotPolicyHourlySchedule.minute = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyHourlySchedule; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyMonthlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyMonthlySchedule.java deleted file mode 100644 index 1cbac2277d20..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyMonthlySchedule.java +++ /dev/null @@ -1,184 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * Monthly Schedule properties used to create NetApp snapshot policy. - */ -@Fluent -public final class ElasticSnapshotPolicyMonthlySchedule - implements JsonSerializable { - /* - * Monthly snapshot count to keep - */ - private Integer snapshotsToKeep; - - /* - * Indicates which days of the month snapshot (1-31) should be taken, accepts a list of integers - */ - private List daysOfMonth; - - /* - * Indicates which hour in UTC timezone a snapshot should be taken - */ - private Integer hour; - - /* - * Indicates which minute snapshot should be taken - */ - private Integer minute; - - /** - * Creates an instance of ElasticSnapshotPolicyMonthlySchedule class. - */ - public ElasticSnapshotPolicyMonthlySchedule() { - } - - /** - * Get the snapshotsToKeep property: Monthly snapshot count to keep. - * - * @return the snapshotsToKeep value. - */ - public Integer snapshotsToKeep() { - return this.snapshotsToKeep; - } - - /** - * Set the snapshotsToKeep property: Monthly snapshot count to keep. - * - * @param snapshotsToKeep the snapshotsToKeep value to set. - * @return the ElasticSnapshotPolicyMonthlySchedule object itself. - */ - public ElasticSnapshotPolicyMonthlySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { - this.snapshotsToKeep = snapshotsToKeep; - return this; - } - - /** - * Get the daysOfMonth property: Indicates which days of the month snapshot (1-31) should be taken, accepts a list - * of integers. - * - * @return the daysOfMonth value. - */ - public List daysOfMonth() { - return this.daysOfMonth; - } - - /** - * Set the daysOfMonth property: Indicates which days of the month snapshot (1-31) should be taken, accepts a list - * of integers. - * - * @param daysOfMonth the daysOfMonth value to set. - * @return the ElasticSnapshotPolicyMonthlySchedule object itself. - */ - public ElasticSnapshotPolicyMonthlySchedule withDaysOfMonth(List daysOfMonth) { - this.daysOfMonth = daysOfMonth; - return this; - } - - /** - * Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @return the hour value. - */ - public Integer hour() { - return this.hour; - } - - /** - * Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @param hour the hour value to set. - * @return the ElasticSnapshotPolicyMonthlySchedule object itself. - */ - public ElasticSnapshotPolicyMonthlySchedule withHour(Integer hour) { - this.hour = hour; - return this; - } - - /** - * Get the minute property: Indicates which minute snapshot should be taken. - * - * @return the minute value. - */ - public Integer minute() { - return this.minute; - } - - /** - * Set the minute property: Indicates which minute snapshot should be taken. - * - * @param minute the minute value to set. - * @return the ElasticSnapshotPolicyMonthlySchedule object itself. - */ - public ElasticSnapshotPolicyMonthlySchedule withMinute(Integer minute) { - this.minute = minute; - return this; - } - - /** - * 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.writeNumberField("snapshotsToKeep", this.snapshotsToKeep); - jsonWriter.writeArrayField("daysOfMonth", this.daysOfMonth, (writer, element) -> writer.writeInt(element)); - jsonWriter.writeNumberField("hour", this.hour); - jsonWriter.writeNumberField("minute", this.minute); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyMonthlySchedule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyMonthlySchedule 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 ElasticSnapshotPolicyMonthlySchedule. - */ - public static ElasticSnapshotPolicyMonthlySchedule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyMonthlySchedule deserializedElasticSnapshotPolicyMonthlySchedule - = new ElasticSnapshotPolicyMonthlySchedule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotsToKeep".equals(fieldName)) { - deserializedElasticSnapshotPolicyMonthlySchedule.snapshotsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("daysOfMonth".equals(fieldName)) { - List daysOfMonth = reader.readArray(reader1 -> reader1.getInt()); - deserializedElasticSnapshotPolicyMonthlySchedule.daysOfMonth = daysOfMonth; - } else if ("hour".equals(fieldName)) { - deserializedElasticSnapshotPolicyMonthlySchedule.hour = reader.getNullable(JsonReader::getInt); - } else if ("minute".equals(fieldName)) { - deserializedElasticSnapshotPolicyMonthlySchedule.minute = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyMonthlySchedule; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyProperties.java deleted file mode 100644 index e606a93f9402..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyProperties.java +++ /dev/null @@ -1,242 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Elastic Snapshot policy properties. - */ -@Fluent -public final class ElasticSnapshotPolicyProperties implements JsonSerializable { - /* - * Schedule for hourly snapshots - */ - private ElasticSnapshotPolicyHourlySchedule hourlySchedule; - - /* - * Schedule for daily snapshots - */ - private ElasticSnapshotPolicyDailySchedule dailySchedule; - - /* - * Schedule for weekly snapshots - */ - private ElasticSnapshotPolicyWeeklySchedule weeklySchedule; - - /* - * Schedule for monthly snapshots - */ - private ElasticSnapshotPolicyMonthlySchedule monthlySchedule; - - /* - * Configures if the snapshot policy is enabled on the volumes connected to the policy. - */ - private PolicyStatus policyStatus; - - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /** - * Creates an instance of ElasticSnapshotPolicyProperties class. - */ - public ElasticSnapshotPolicyProperties() { - } - - /** - * Get the hourlySchedule property: Schedule for hourly snapshots. - * - * @return the hourlySchedule value. - */ - public ElasticSnapshotPolicyHourlySchedule hourlySchedule() { - return this.hourlySchedule; - } - - /** - * Set the hourlySchedule property: Schedule for hourly snapshots. - * - * @param hourlySchedule the hourlySchedule value to set. - * @return the ElasticSnapshotPolicyProperties object itself. - */ - public ElasticSnapshotPolicyProperties withHourlySchedule(ElasticSnapshotPolicyHourlySchedule hourlySchedule) { - this.hourlySchedule = hourlySchedule; - return this; - } - - /** - * Get the dailySchedule property: Schedule for daily snapshots. - * - * @return the dailySchedule value. - */ - public ElasticSnapshotPolicyDailySchedule dailySchedule() { - return this.dailySchedule; - } - - /** - * Set the dailySchedule property: Schedule for daily snapshots. - * - * @param dailySchedule the dailySchedule value to set. - * @return the ElasticSnapshotPolicyProperties object itself. - */ - public ElasticSnapshotPolicyProperties withDailySchedule(ElasticSnapshotPolicyDailySchedule dailySchedule) { - this.dailySchedule = dailySchedule; - return this; - } - - /** - * Get the weeklySchedule property: Schedule for weekly snapshots. - * - * @return the weeklySchedule value. - */ - public ElasticSnapshotPolicyWeeklySchedule weeklySchedule() { - return this.weeklySchedule; - } - - /** - * Set the weeklySchedule property: Schedule for weekly snapshots. - * - * @param weeklySchedule the weeklySchedule value to set. - * @return the ElasticSnapshotPolicyProperties object itself. - */ - public ElasticSnapshotPolicyProperties withWeeklySchedule(ElasticSnapshotPolicyWeeklySchedule weeklySchedule) { - this.weeklySchedule = weeklySchedule; - return this; - } - - /** - * Get the monthlySchedule property: Schedule for monthly snapshots. - * - * @return the monthlySchedule value. - */ - public ElasticSnapshotPolicyMonthlySchedule monthlySchedule() { - return this.monthlySchedule; - } - - /** - * Set the monthlySchedule property: Schedule for monthly snapshots. - * - * @param monthlySchedule the monthlySchedule value to set. - * @return the ElasticSnapshotPolicyProperties object itself. - */ - public ElasticSnapshotPolicyProperties withMonthlySchedule(ElasticSnapshotPolicyMonthlySchedule monthlySchedule) { - this.monthlySchedule = monthlySchedule; - return this; - } - - /** - * Get the policyStatus property: Configures if the snapshot policy is enabled on the volumes connected to the - * policy. - * - * @return the policyStatus value. - */ - public PolicyStatus policyStatus() { - return this.policyStatus; - } - - /** - * Set the policyStatus property: Configures if the snapshot policy is enabled on the volumes connected to the - * policy. - * - * @param policyStatus the policyStatus value to set. - * @return the ElasticSnapshotPolicyProperties object itself. - */ - public ElasticSnapshotPolicyProperties withPolicyStatus(PolicyStatus policyStatus) { - this.policyStatus = policyStatus; - return this; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (hourlySchedule() != null) { - hourlySchedule().validate(); - } - if (dailySchedule() != null) { - dailySchedule().validate(); - } - if (weeklySchedule() != null) { - weeklySchedule().validate(); - } - if (monthlySchedule() != null) { - monthlySchedule().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("hourlySchedule", this.hourlySchedule); - jsonWriter.writeJsonField("dailySchedule", this.dailySchedule); - jsonWriter.writeJsonField("weeklySchedule", this.weeklySchedule); - jsonWriter.writeJsonField("monthlySchedule", this.monthlySchedule); - jsonWriter.writeStringField("policyStatus", this.policyStatus == null ? null : this.policyStatus.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyProperties 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 ElasticSnapshotPolicyProperties. - */ - public static ElasticSnapshotPolicyProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyProperties deserializedElasticSnapshotPolicyProperties - = new ElasticSnapshotPolicyProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("hourlySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.hourlySchedule - = ElasticSnapshotPolicyHourlySchedule.fromJson(reader); - } else if ("dailySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.dailySchedule - = ElasticSnapshotPolicyDailySchedule.fromJson(reader); - } else if ("weeklySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.weeklySchedule - = ElasticSnapshotPolicyWeeklySchedule.fromJson(reader); - } else if ("monthlySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.monthlySchedule - = ElasticSnapshotPolicyMonthlySchedule.fromJson(reader); - } else if ("policyStatus".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.policyStatus - = PolicyStatus.fromString(reader.getString()); - } else if ("provisioningState".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdate.java deleted file mode 100644 index c9224f647b39..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdate.java +++ /dev/null @@ -1,127 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.Map; - -/** - * The type used for update operations of the ElasticSnapshotPolicy. - */ -@Fluent -public final class ElasticSnapshotPolicyUpdate implements JsonSerializable { - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ElasticSnapshotPolicyUpdateProperties properties; - - /** - * Creates an instance of ElasticSnapshotPolicyUpdate class. - */ - public ElasticSnapshotPolicyUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticSnapshotPolicyUpdate object itself. - */ - public ElasticSnapshotPolicyUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticSnapshotPolicyUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticSnapshotPolicyUpdate object itself. - */ - public ElasticSnapshotPolicyUpdate withProperties(ElasticSnapshotPolicyUpdateProperties properties) { - this.properties = properties; - 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.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyUpdate 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 ElasticSnapshotPolicyUpdate. - */ - public static ElasticSnapshotPolicyUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyUpdate deserializedElasticSnapshotPolicyUpdate = new ElasticSnapshotPolicyUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticSnapshotPolicyUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdate.properties - = ElasticSnapshotPolicyUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdateProperties.java deleted file mode 100644 index aeb1d8a2d1a3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdateProperties.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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The updatable properties of the ElasticSnapshotPolicy. - */ -@Fluent -public final class ElasticSnapshotPolicyUpdateProperties - implements JsonSerializable { - /* - * Schedule for hourly snapshots - */ - private ElasticSnapshotPolicyHourlySchedule hourlySchedule; - - /* - * Schedule for daily snapshots - */ - private ElasticSnapshotPolicyDailySchedule dailySchedule; - - /* - * Schedule for weekly snapshots - */ - private ElasticSnapshotPolicyWeeklySchedule weeklySchedule; - - /* - * Schedule for monthly snapshots - */ - private ElasticSnapshotPolicyMonthlySchedule monthlySchedule; - - /* - * Configures if the snapshot policy is enabled on the volumes connected to the policy. - */ - private PolicyStatus policyStatus; - - /** - * Creates an instance of ElasticSnapshotPolicyUpdateProperties class. - */ - public ElasticSnapshotPolicyUpdateProperties() { - } - - /** - * Get the hourlySchedule property: Schedule for hourly snapshots. - * - * @return the hourlySchedule value. - */ - public ElasticSnapshotPolicyHourlySchedule hourlySchedule() { - return this.hourlySchedule; - } - - /** - * Set the hourlySchedule property: Schedule for hourly snapshots. - * - * @param hourlySchedule the hourlySchedule value to set. - * @return the ElasticSnapshotPolicyUpdateProperties object itself. - */ - public ElasticSnapshotPolicyUpdateProperties - withHourlySchedule(ElasticSnapshotPolicyHourlySchedule hourlySchedule) { - this.hourlySchedule = hourlySchedule; - return this; - } - - /** - * Get the dailySchedule property: Schedule for daily snapshots. - * - * @return the dailySchedule value. - */ - public ElasticSnapshotPolicyDailySchedule dailySchedule() { - return this.dailySchedule; - } - - /** - * Set the dailySchedule property: Schedule for daily snapshots. - * - * @param dailySchedule the dailySchedule value to set. - * @return the ElasticSnapshotPolicyUpdateProperties object itself. - */ - public ElasticSnapshotPolicyUpdateProperties withDailySchedule(ElasticSnapshotPolicyDailySchedule dailySchedule) { - this.dailySchedule = dailySchedule; - return this; - } - - /** - * Get the weeklySchedule property: Schedule for weekly snapshots. - * - * @return the weeklySchedule value. - */ - public ElasticSnapshotPolicyWeeklySchedule weeklySchedule() { - return this.weeklySchedule; - } - - /** - * Set the weeklySchedule property: Schedule for weekly snapshots. - * - * @param weeklySchedule the weeklySchedule value to set. - * @return the ElasticSnapshotPolicyUpdateProperties object itself. - */ - public ElasticSnapshotPolicyUpdateProperties - withWeeklySchedule(ElasticSnapshotPolicyWeeklySchedule weeklySchedule) { - this.weeklySchedule = weeklySchedule; - return this; - } - - /** - * Get the monthlySchedule property: Schedule for monthly snapshots. - * - * @return the monthlySchedule value. - */ - public ElasticSnapshotPolicyMonthlySchedule monthlySchedule() { - return this.monthlySchedule; - } - - /** - * Set the monthlySchedule property: Schedule for monthly snapshots. - * - * @param monthlySchedule the monthlySchedule value to set. - * @return the ElasticSnapshotPolicyUpdateProperties object itself. - */ - public ElasticSnapshotPolicyUpdateProperties - withMonthlySchedule(ElasticSnapshotPolicyMonthlySchedule monthlySchedule) { - this.monthlySchedule = monthlySchedule; - return this; - } - - /** - * Get the policyStatus property: Configures if the snapshot policy is enabled on the volumes connected to the - * policy. - * - * @return the policyStatus value. - */ - public PolicyStatus policyStatus() { - return this.policyStatus; - } - - /** - * Set the policyStatus property: Configures if the snapshot policy is enabled on the volumes connected to the - * policy. - * - * @param policyStatus the policyStatus value to set. - * @return the ElasticSnapshotPolicyUpdateProperties object itself. - */ - public ElasticSnapshotPolicyUpdateProperties withPolicyStatus(PolicyStatus policyStatus) { - this.policyStatus = policyStatus; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (hourlySchedule() != null) { - hourlySchedule().validate(); - } - if (dailySchedule() != null) { - dailySchedule().validate(); - } - if (weeklySchedule() != null) { - weeklySchedule().validate(); - } - if (monthlySchedule() != null) { - monthlySchedule().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("hourlySchedule", this.hourlySchedule); - jsonWriter.writeJsonField("dailySchedule", this.dailySchedule); - jsonWriter.writeJsonField("weeklySchedule", this.weeklySchedule); - jsonWriter.writeJsonField("monthlySchedule", this.monthlySchedule); - jsonWriter.writeStringField("policyStatus", this.policyStatus == null ? null : this.policyStatus.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyUpdateProperties 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 ElasticSnapshotPolicyUpdateProperties. - */ - public static ElasticSnapshotPolicyUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyUpdateProperties deserializedElasticSnapshotPolicyUpdateProperties - = new ElasticSnapshotPolicyUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("hourlySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdateProperties.hourlySchedule - = ElasticSnapshotPolicyHourlySchedule.fromJson(reader); - } else if ("dailySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdateProperties.dailySchedule - = ElasticSnapshotPolicyDailySchedule.fromJson(reader); - } else if ("weeklySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdateProperties.weeklySchedule - = ElasticSnapshotPolicyWeeklySchedule.fromJson(reader); - } else if ("monthlySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdateProperties.monthlySchedule - = ElasticSnapshotPolicyMonthlySchedule.fromJson(reader); - } else if ("policyStatus".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdateProperties.policyStatus - = PolicyStatus.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyWeeklySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyWeeklySchedule.java deleted file mode 100644 index 62a9b5ad9ac8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyWeeklySchedule.java +++ /dev/null @@ -1,185 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * Weekly Schedule properties used to create NetApp snapshot policy. - */ -@Fluent -public final class ElasticSnapshotPolicyWeeklySchedule - implements JsonSerializable { - /* - * Weekly snapshot count to keep - */ - private Integer snapshotsToKeep; - - /* - * Indicates which weekday(s) snapshot(s) should be taken, accepts a list of week day names in english - */ - private List days; - - /* - * Indicates which hour in UTC timezone a snapshot should be taken - */ - private Integer hour; - - /* - * Indicates which minute snapshot should be taken - */ - private Integer minute; - - /** - * Creates an instance of ElasticSnapshotPolicyWeeklySchedule class. - */ - public ElasticSnapshotPolicyWeeklySchedule() { - } - - /** - * Get the snapshotsToKeep property: Weekly snapshot count to keep. - * - * @return the snapshotsToKeep value. - */ - public Integer snapshotsToKeep() { - return this.snapshotsToKeep; - } - - /** - * Set the snapshotsToKeep property: Weekly snapshot count to keep. - * - * @param snapshotsToKeep the snapshotsToKeep value to set. - * @return the ElasticSnapshotPolicyWeeklySchedule object itself. - */ - public ElasticSnapshotPolicyWeeklySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { - this.snapshotsToKeep = snapshotsToKeep; - return this; - } - - /** - * Get the days property: Indicates which weekday(s) snapshot(s) should be taken, accepts a list of week day names - * in english. - * - * @return the days value. - */ - public List days() { - return this.days; - } - - /** - * Set the days property: Indicates which weekday(s) snapshot(s) should be taken, accepts a list of week day names - * in english. - * - * @param days the days value to set. - * @return the ElasticSnapshotPolicyWeeklySchedule object itself. - */ - public ElasticSnapshotPolicyWeeklySchedule withDays(List days) { - this.days = days; - return this; - } - - /** - * Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @return the hour value. - */ - public Integer hour() { - return this.hour; - } - - /** - * Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @param hour the hour value to set. - * @return the ElasticSnapshotPolicyWeeklySchedule object itself. - */ - public ElasticSnapshotPolicyWeeklySchedule withHour(Integer hour) { - this.hour = hour; - return this; - } - - /** - * Get the minute property: Indicates which minute snapshot should be taken. - * - * @return the minute value. - */ - public Integer minute() { - return this.minute; - } - - /** - * Set the minute property: Indicates which minute snapshot should be taken. - * - * @param minute the minute value to set. - * @return the ElasticSnapshotPolicyWeeklySchedule object itself. - */ - public ElasticSnapshotPolicyWeeklySchedule withMinute(Integer minute) { - this.minute = minute; - return this; - } - - /** - * 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.writeNumberField("snapshotsToKeep", this.snapshotsToKeep); - jsonWriter.writeArrayField("days", this.days, - (writer, element) -> writer.writeString(element == null ? null : element.toString())); - jsonWriter.writeNumberField("hour", this.hour); - jsonWriter.writeNumberField("minute", this.minute); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyWeeklySchedule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyWeeklySchedule 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 ElasticSnapshotPolicyWeeklySchedule. - */ - public static ElasticSnapshotPolicyWeeklySchedule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyWeeklySchedule deserializedElasticSnapshotPolicyWeeklySchedule - = new ElasticSnapshotPolicyWeeklySchedule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotsToKeep".equals(fieldName)) { - deserializedElasticSnapshotPolicyWeeklySchedule.snapshotsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("days".equals(fieldName)) { - List days = reader.readArray(reader1 -> DayOfWeek.fromString(reader1.getString())); - deserializedElasticSnapshotPolicyWeeklySchedule.days = days; - } else if ("hour".equals(fieldName)) { - deserializedElasticSnapshotPolicyWeeklySchedule.hour = reader.getNullable(JsonReader::getInt); - } else if ("minute".equals(fieldName)) { - deserializedElasticSnapshotPolicyWeeklySchedule.minute = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyWeeklySchedule; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotProperties.java deleted file mode 100644 index 92a3c2587f96..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotProperties.java +++ /dev/null @@ -1,82 +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.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 java.io.IOException; - -/** - * Elastic Snapshot properties. - */ -@Immutable -public final class ElasticSnapshotProperties implements JsonSerializable { - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /** - * Creates an instance of ElasticSnapshotProperties class. - */ - public ElasticSnapshotProperties() { - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * 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(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotProperties 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 ElasticSnapshotProperties. - */ - public static ElasticSnapshotProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotProperties deserializedElasticSnapshotProperties = new ElasticSnapshotProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedElasticSnapshotProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshots.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshots.java deleted file mode 100644 index aa698ce37da1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshots.java +++ /dev/null @@ -1,160 +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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticSnapshots. - */ -public interface ElasticSnapshots { - /** - * 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}. - */ - 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. - */ - ElasticSnapshot get(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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - 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. - */ - 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}. - */ - 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}. - */ - PagedIterable listByElasticVolume(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); - - /** - * Get a ElasticSnapshot. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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}. - */ - ElasticSnapshot getById(String id); - - /** - * Get a ElasticSnapshot. - * - * @param id the resource ID. - * @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}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete a ElasticSnapshot. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Delete a ElasticSnapshot. - * - * @param id the resource ID. - * @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. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticSnapshot resource. - * - * @param name resource name. - * @return the first stage of the new ElasticSnapshot definition. - */ - ElasticSnapshot.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticUnixAccessRule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticUnixAccessRule.java deleted file mode 100644 index 659566146864..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticUnixAccessRule.java +++ /dev/null @@ -1,56 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Unix access rule. - */ -public final class ElasticUnixAccessRule extends ExpandableStringEnum { - /** - * Clients connecting with this rule will only have read access to the volume. - */ - public static final ElasticUnixAccessRule READ_ONLY = fromString("ReadOnly"); - - /** - * Clients connecting with this rule will have full read and write access to the volume. - */ - public static final ElasticUnixAccessRule READ_WRITE = fromString("ReadWrite"); - - /** - * Clients connecting with this rule will have no access to the volume. - */ - public static final ElasticUnixAccessRule NO_ACCESS = fromString("NoAccess"); - - /** - * Creates a new instance of ElasticUnixAccessRule value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticUnixAccessRule() { - } - - /** - * Creates or finds a ElasticUnixAccessRule from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticUnixAccessRule. - */ - public static ElasticUnixAccessRule fromString(String name) { - return fromString(name, ElasticUnixAccessRule.class); - } - - /** - * Gets known ElasticUnixAccessRule values. - * - * @return known ElasticUnixAccessRule values. - */ - public static Collection values() { - return values(ElasticUnixAccessRule.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolume.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolume.java deleted file mode 100644 index 356a025e8029..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolume.java +++ /dev/null @@ -1,322 +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.models; - -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.ElasticVolumeInner; -import java.util.List; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticVolume. - */ -public interface ElasticVolume { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticVolumeProperties properties(); - - /** - * Gets 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. - */ - String eTag(); - - /** - * Gets the zones property: The availability zones. - * - * @return the zones value. - */ - List zones(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner object. - * - * @return the inner object. - */ - ElasticVolumeInner innerModel(); - - /** - * The entirety of the ElasticVolume definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticVolume definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticVolume definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticVolume definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the ElasticVolume definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName, poolName. - * - * @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. - * @return the next definition stage. - */ - WithCreate withExistingElasticCapacityPool(String resourceGroupName, String accountName, String poolName); - } - - /** - * The stage of the ElasticVolume definition which contains all the minimum required properties for the resource - * to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithZones { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticVolume create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticVolume create(Context context); - } - - /** - * The stage of the ElasticVolume definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticVolume definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticVolumeProperties properties); - } - - /** - * The stage of the ElasticVolume definition allowing to specify zones. - */ - interface WithZones { - /** - * Specifies the zones property: The availability zones.. - * - * @param zones The availability zones. - * @return the next definition stage. - */ - WithCreate withZones(List zones); - } - } - - /** - * Begins update for the ElasticVolume resource. - * - * @return the stage of resource update. - */ - ElasticVolume.Update update(); - - /** - * The template for ElasticVolume update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticVolume apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticVolume apply(Context context); - } - - /** - * The ElasticVolume update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticVolume update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ElasticVolume update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticVolumeUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticVolume refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticVolume refresh(Context context); - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @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 response. - */ - ElasticVolume revert(ElasticVolumeRevert body); - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @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 response. - */ - ElasticVolume revert(ElasticVolumeRevert body, Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeBackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeBackupProperties.java deleted file mode 100644 index 0ad6d3a993de..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeBackupProperties.java +++ /dev/null @@ -1,152 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Elastic Volume Backup Properties. - */ -@Fluent -public final class ElasticVolumeBackupProperties implements JsonSerializable { - /* - * ResourceId used to identify Elastic Backup Policy - */ - private String elasticBackupPolicyResourceId; - - /* - * The property to decide policy is enforced or not on the volume - */ - private ElasticVolumePolicyEnforcement policyEnforcement; - - /* - * ResourceId used to identify Elastic Backup Vault - */ - private String elasticBackupVaultResourceId; - - /** - * Creates an instance of ElasticVolumeBackupProperties class. - */ - public ElasticVolumeBackupProperties() { - } - - /** - * Get the elasticBackupPolicyResourceId property: ResourceId used to identify Elastic Backup Policy. - * - * @return the elasticBackupPolicyResourceId value. - */ - public String elasticBackupPolicyResourceId() { - return this.elasticBackupPolicyResourceId; - } - - /** - * Set the elasticBackupPolicyResourceId property: ResourceId used to identify Elastic Backup Policy. - * - * @param elasticBackupPolicyResourceId the elasticBackupPolicyResourceId value to set. - * @return the ElasticVolumeBackupProperties object itself. - */ - public ElasticVolumeBackupProperties withElasticBackupPolicyResourceId(String elasticBackupPolicyResourceId) { - this.elasticBackupPolicyResourceId = elasticBackupPolicyResourceId; - return this; - } - - /** - * Get the policyEnforcement property: The property to decide policy is enforced or not on the volume. - * - * @return the policyEnforcement value. - */ - public ElasticVolumePolicyEnforcement policyEnforcement() { - return this.policyEnforcement; - } - - /** - * Set the policyEnforcement property: The property to decide policy is enforced or not on the volume. - * - * @param policyEnforcement the policyEnforcement value to set. - * @return the ElasticVolumeBackupProperties object itself. - */ - public ElasticVolumeBackupProperties withPolicyEnforcement(ElasticVolumePolicyEnforcement policyEnforcement) { - this.policyEnforcement = policyEnforcement; - return this; - } - - /** - * Get the elasticBackupVaultResourceId property: ResourceId used to identify Elastic Backup Vault. - * - * @return the elasticBackupVaultResourceId value. - */ - public String elasticBackupVaultResourceId() { - return this.elasticBackupVaultResourceId; - } - - /** - * Set the elasticBackupVaultResourceId property: ResourceId used to identify Elastic Backup Vault. - * - * @param elasticBackupVaultResourceId the elasticBackupVaultResourceId value to set. - * @return the ElasticVolumeBackupProperties object itself. - */ - public ElasticVolumeBackupProperties withElasticBackupVaultResourceId(String elasticBackupVaultResourceId) { - this.elasticBackupVaultResourceId = elasticBackupVaultResourceId; - return this; - } - - /** - * 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("elasticBackupPolicyResourceId", this.elasticBackupPolicyResourceId); - jsonWriter.writeStringField("policyEnforcement", - this.policyEnforcement == null ? null : this.policyEnforcement.toString()); - jsonWriter.writeStringField("elasticBackupVaultResourceId", this.elasticBackupVaultResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeBackupProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeBackupProperties 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 ElasticVolumeBackupProperties. - */ - public static ElasticVolumeBackupProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeBackupProperties deserializedElasticVolumeBackupProperties - = new ElasticVolumeBackupProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("elasticBackupPolicyResourceId".equals(fieldName)) { - deserializedElasticVolumeBackupProperties.elasticBackupPolicyResourceId = reader.getString(); - } else if ("policyEnforcement".equals(fieldName)) { - deserializedElasticVolumeBackupProperties.policyEnforcement - = ElasticVolumePolicyEnforcement.fromString(reader.getString()); - } else if ("elasticBackupVaultResourceId".equals(fieldName)) { - deserializedElasticVolumeBackupProperties.elasticBackupVaultResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeBackupProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionPatchProperties.java deleted file mode 100644 index 5bef7dd86892..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionPatchProperties.java +++ /dev/null @@ -1,131 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Data protection configuration option for updating the volume, including snapshot policies and backup. - */ -@Fluent -public final class ElasticVolumeDataProtectionPatchProperties - implements JsonSerializable { - /* - * Used to apply a snapshot policy to a volume. - */ - private ElasticVolumeSnapshotProperties snapshot; - - /* - * Used to configure backups on an elastic volume. - */ - private ElasticVolumeBackupProperties backup; - - /** - * Creates an instance of ElasticVolumeDataProtectionPatchProperties class. - */ - public ElasticVolumeDataProtectionPatchProperties() { - } - - /** - * Get the snapshot property: Used to apply a snapshot policy to a volume. - * - * @return the snapshot value. - */ - public ElasticVolumeSnapshotProperties snapshot() { - return this.snapshot; - } - - /** - * Set the snapshot property: Used to apply a snapshot policy to a volume. - * - * @param snapshot the snapshot value to set. - * @return the ElasticVolumeDataProtectionPatchProperties object itself. - */ - public ElasticVolumeDataProtectionPatchProperties withSnapshot(ElasticVolumeSnapshotProperties snapshot) { - this.snapshot = snapshot; - return this; - } - - /** - * Get the backup property: Used to configure backups on an elastic volume. - * - * @return the backup value. - */ - public ElasticVolumeBackupProperties backup() { - return this.backup; - } - - /** - * Set the backup property: Used to configure backups on an elastic volume. - * - * @param backup the backup value to set. - * @return the ElasticVolumeDataProtectionPatchProperties object itself. - */ - public ElasticVolumeDataProtectionPatchProperties withBackup(ElasticVolumeBackupProperties backup) { - this.backup = backup; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (snapshot() != null) { - snapshot().validate(); - } - if (backup() != null) { - backup().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("snapshot", this.snapshot); - jsonWriter.writeJsonField("backup", this.backup); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeDataProtectionPatchProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeDataProtectionPatchProperties 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 ElasticVolumeDataProtectionPatchProperties. - */ - public static ElasticVolumeDataProtectionPatchProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeDataProtectionPatchProperties deserializedElasticVolumeDataProtectionPatchProperties - = new ElasticVolumeDataProtectionPatchProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshot".equals(fieldName)) { - deserializedElasticVolumeDataProtectionPatchProperties.snapshot - = ElasticVolumeSnapshotProperties.fromJson(reader); - } else if ("backup".equals(fieldName)) { - deserializedElasticVolumeDataProtectionPatchProperties.backup - = ElasticVolumeBackupProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeDataProtectionPatchProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionProperties.java deleted file mode 100644 index 1275a92577bc..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionProperties.java +++ /dev/null @@ -1,131 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Data protection configuration option for the volume, including snapshot policies and backup. - */ -@Fluent -public final class ElasticVolumeDataProtectionProperties - implements JsonSerializable { - /* - * Used to apply a snapshot policy to a volume. - */ - private ElasticVolumeSnapshotProperties snapshot; - - /* - * Used to configure backups on an elastic volume. - */ - private ElasticVolumeBackupProperties backup; - - /** - * Creates an instance of ElasticVolumeDataProtectionProperties class. - */ - public ElasticVolumeDataProtectionProperties() { - } - - /** - * Get the snapshot property: Used to apply a snapshot policy to a volume. - * - * @return the snapshot value. - */ - public ElasticVolumeSnapshotProperties snapshot() { - return this.snapshot; - } - - /** - * Set the snapshot property: Used to apply a snapshot policy to a volume. - * - * @param snapshot the snapshot value to set. - * @return the ElasticVolumeDataProtectionProperties object itself. - */ - public ElasticVolumeDataProtectionProperties withSnapshot(ElasticVolumeSnapshotProperties snapshot) { - this.snapshot = snapshot; - return this; - } - - /** - * Get the backup property: Used to configure backups on an elastic volume. - * - * @return the backup value. - */ - public ElasticVolumeBackupProperties backup() { - return this.backup; - } - - /** - * Set the backup property: Used to configure backups on an elastic volume. - * - * @param backup the backup value to set. - * @return the ElasticVolumeDataProtectionProperties object itself. - */ - public ElasticVolumeDataProtectionProperties withBackup(ElasticVolumeBackupProperties backup) { - this.backup = backup; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (snapshot() != null) { - snapshot().validate(); - } - if (backup() != null) { - backup().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("snapshot", this.snapshot); - jsonWriter.writeJsonField("backup", this.backup); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeDataProtectionProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeDataProtectionProperties 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 ElasticVolumeDataProtectionProperties. - */ - public static ElasticVolumeDataProtectionProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeDataProtectionProperties deserializedElasticVolumeDataProtectionProperties - = new ElasticVolumeDataProtectionProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshot".equals(fieldName)) { - deserializedElasticVolumeDataProtectionProperties.snapshot - = ElasticVolumeSnapshotProperties.fromJson(reader); - } else if ("backup".equals(fieldName)) { - deserializedElasticVolumeDataProtectionProperties.backup - = ElasticVolumeBackupProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeDataProtectionProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumePolicyEnforcement.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumePolicyEnforcement.java deleted file mode 100644 index 6a1bb984ee91..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumePolicyEnforcement.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Policy enforcement. - */ -public final class ElasticVolumePolicyEnforcement extends ExpandableStringEnum { - /** - * Value indicating the policy is enforced on the volume. - */ - public static final ElasticVolumePolicyEnforcement ENFORCED = fromString("Enforced"); - - /** - * Value indicating the policy is not enforced on the volume. - */ - public static final ElasticVolumePolicyEnforcement NOT_ENFORCED = fromString("NotEnforced"); - - /** - * Creates a new instance of ElasticVolumePolicyEnforcement value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticVolumePolicyEnforcement() { - } - - /** - * Creates or finds a ElasticVolumePolicyEnforcement from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticVolumePolicyEnforcement. - */ - public static ElasticVolumePolicyEnforcement fromString(String name) { - return fromString(name, ElasticVolumePolicyEnforcement.class); - } - - /** - * Gets known ElasticVolumePolicyEnforcement values. - * - * @return known ElasticVolumePolicyEnforcement values. - */ - public static Collection values() { - return values(ElasticVolumePolicyEnforcement.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeProperties.java deleted file mode 100644 index d4c03bb13886..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeProperties.java +++ /dev/null @@ -1,431 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * Elastic Volume properties. - */ -@Fluent -public final class ElasticVolumeProperties implements JsonSerializable { - /* - * A unique file path for the volume. Used when creating mount targets. This needs to be unique within the elastic - * capacity pool. - */ - private String filePath; - - /* - * Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. Values expressed in - * bytes as multiples of 1 GiB. - */ - private long size; - - /* - * Set of export policy rules - */ - private ElasticExportPolicy exportPolicy; - - /* - * Set of support protocol types for the elastic volume - */ - private List protocolTypes; - - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Current availability status of the resource. - */ - private ElasticResourceAvailabilityStatus availabilityStatus; - - /* - * Resource identifier used to identify the Elastic Snapshot. - */ - private String snapshotResourceId; - - /* - * List of mount targets that can be used to mount this volume - */ - private List mountTargets; - - /* - * Data protection configuration option for the volume, including snapshot policies and backup. - */ - private ElasticVolumeDataProtectionProperties dataProtection; - - /* - * Controls the visibility of the volume's read-only snapshot directory, which provides access to each of the - * volume's snapshots. - */ - private SnapshotDirectoryVisibility snapshotDirectoryVisibility; - - /* - * SMB Properties - */ - private ElasticSmbProperties smbProperties; - - /* - * Resource identifier used to identify the Elastic Backup. - */ - private String backupResourceId; - - /* - * The current state of the restoration process. - */ - private ElasticVolumeRestorationState restorationState; - - /** - * Creates an instance of ElasticVolumeProperties class. - */ - public ElasticVolumeProperties() { - } - - /** - * Get the filePath property: A unique file path for the volume. Used when creating mount targets. This needs to be - * unique within the elastic capacity pool. - * - * @return the filePath value. - */ - public String filePath() { - return this.filePath; - } - - /** - * Set the filePath property: A unique file path for the volume. Used when creating mount targets. This needs to be - * unique within the elastic capacity pool. - * - * @param filePath the filePath value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withFilePath(String filePath) { - this.filePath = filePath; - return this; - } - - /** - * Get the size property: Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. - * Values expressed in bytes as multiples of 1 GiB. - * - * @return the size value. - */ - public long size() { - return this.size; - } - - /** - * Set the size property: Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. - * Values expressed in bytes as multiples of 1 GiB. - * - * @param size the size value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withSize(long size) { - this.size = size; - return this; - } - - /** - * Get the exportPolicy property: Set of export policy rules. - * - * @return the exportPolicy value. - */ - public ElasticExportPolicy exportPolicy() { - return this.exportPolicy; - } - - /** - * Set the exportPolicy property: Set of export policy rules. - * - * @param exportPolicy the exportPolicy value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withExportPolicy(ElasticExportPolicy exportPolicy) { - this.exportPolicy = exportPolicy; - return this; - } - - /** - * Get the protocolTypes property: Set of support protocol types for the elastic volume. - * - * @return the protocolTypes value. - */ - public List protocolTypes() { - return this.protocolTypes; - } - - /** - * Set the protocolTypes property: Set of support protocol types for the elastic volume. - * - * @param protocolTypes the protocolTypes value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withProtocolTypes(List protocolTypes) { - this.protocolTypes = protocolTypes; - return this; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the availabilityStatus property: Current availability status of the resource. - * - * @return the availabilityStatus value. - */ - public ElasticResourceAvailabilityStatus availabilityStatus() { - return this.availabilityStatus; - } - - /** - * Get the snapshotResourceId property: Resource identifier used to identify the Elastic Snapshot. - * - * @return the snapshotResourceId value. - */ - public String snapshotResourceId() { - return this.snapshotResourceId; - } - - /** - * Set the snapshotResourceId property: Resource identifier used to identify the Elastic Snapshot. - * - * @param snapshotResourceId the snapshotResourceId value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withSnapshotResourceId(String snapshotResourceId) { - this.snapshotResourceId = snapshotResourceId; - return this; - } - - /** - * Get the mountTargets property: List of mount targets that can be used to mount this volume. - * - * @return the mountTargets value. - */ - public List mountTargets() { - return this.mountTargets; - } - - /** - * Get the dataProtection property: Data protection configuration option for the volume, including snapshot policies - * and backup. - * - * @return the dataProtection value. - */ - public ElasticVolumeDataProtectionProperties dataProtection() { - return this.dataProtection; - } - - /** - * Set the dataProtection property: Data protection configuration option for the volume, including snapshot policies - * and backup. - * - * @param dataProtection the dataProtection value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withDataProtection(ElasticVolumeDataProtectionProperties dataProtection) { - this.dataProtection = dataProtection; - return this; - } - - /** - * Get the snapshotDirectoryVisibility property: Controls the visibility of the volume's read-only snapshot - * directory, which provides access to each of the volume's snapshots. - * - * @return the snapshotDirectoryVisibility value. - */ - public SnapshotDirectoryVisibility snapshotDirectoryVisibility() { - return this.snapshotDirectoryVisibility; - } - - /** - * Set the snapshotDirectoryVisibility property: Controls the visibility of the volume's read-only snapshot - * directory, which provides access to each of the volume's snapshots. - * - * @param snapshotDirectoryVisibility the snapshotDirectoryVisibility value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties - withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility snapshotDirectoryVisibility) { - this.snapshotDirectoryVisibility = snapshotDirectoryVisibility; - return this; - } - - /** - * Get the smbProperties property: SMB Properties. - * - * @return the smbProperties value. - */ - public ElasticSmbProperties smbProperties() { - return this.smbProperties; - } - - /** - * Set the smbProperties property: SMB Properties. - * - * @param smbProperties the smbProperties value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withSmbProperties(ElasticSmbProperties smbProperties) { - this.smbProperties = smbProperties; - return this; - } - - /** - * Get the backupResourceId property: Resource identifier used to identify the Elastic Backup. - * - * @return the backupResourceId value. - */ - public String backupResourceId() { - return this.backupResourceId; - } - - /** - * Set the backupResourceId property: Resource identifier used to identify the Elastic Backup. - * - * @param backupResourceId the backupResourceId value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withBackupResourceId(String backupResourceId) { - this.backupResourceId = backupResourceId; - return this; - } - - /** - * Get the restorationState property: The current state of the restoration process. - * - * @return the restorationState value. - */ - public ElasticVolumeRestorationState restorationState() { - return this.restorationState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (filePath() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property filePath in model ElasticVolumeProperties")); - } - if (exportPolicy() != null) { - exportPolicy().validate(); - } - if (protocolTypes() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property protocolTypes in model ElasticVolumeProperties")); - } - if (mountTargets() != null) { - mountTargets().forEach(e -> e.validate()); - } - if (dataProtection() != null) { - dataProtection().validate(); - } - if (smbProperties() != null) { - smbProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticVolumeProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("filePath", this.filePath); - jsonWriter.writeLongField("size", this.size); - jsonWriter.writeArrayField("protocolTypes", this.protocolTypes, - (writer, element) -> writer.writeString(element == null ? null : element.toString())); - jsonWriter.writeJsonField("exportPolicy", this.exportPolicy); - jsonWriter.writeStringField("snapshotResourceId", this.snapshotResourceId); - jsonWriter.writeJsonField("dataProtection", this.dataProtection); - jsonWriter.writeStringField("snapshotDirectoryVisibility", - this.snapshotDirectoryVisibility == null ? null : this.snapshotDirectoryVisibility.toString()); - jsonWriter.writeJsonField("smbProperties", this.smbProperties); - jsonWriter.writeStringField("backupResourceId", this.backupResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeProperties 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 ElasticVolumeProperties. - */ - public static ElasticVolumeProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeProperties deserializedElasticVolumeProperties = new ElasticVolumeProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("filePath".equals(fieldName)) { - deserializedElasticVolumeProperties.filePath = reader.getString(); - } else if ("size".equals(fieldName)) { - deserializedElasticVolumeProperties.size = reader.getLong(); - } else if ("protocolTypes".equals(fieldName)) { - List protocolTypes - = reader.readArray(reader1 -> ElasticProtocolType.fromString(reader1.getString())); - deserializedElasticVolumeProperties.protocolTypes = protocolTypes; - } else if ("exportPolicy".equals(fieldName)) { - deserializedElasticVolumeProperties.exportPolicy = ElasticExportPolicy.fromJson(reader); - } else if ("provisioningState".equals(fieldName)) { - deserializedElasticVolumeProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("availabilityStatus".equals(fieldName)) { - deserializedElasticVolumeProperties.availabilityStatus - = ElasticResourceAvailabilityStatus.fromString(reader.getString()); - } else if ("snapshotResourceId".equals(fieldName)) { - deserializedElasticVolumeProperties.snapshotResourceId = reader.getString(); - } else if ("mountTargets".equals(fieldName)) { - List mountTargets - = reader.readArray(reader1 -> ElasticMountTargetProperties.fromJson(reader1)); - deserializedElasticVolumeProperties.mountTargets = mountTargets; - } else if ("dataProtection".equals(fieldName)) { - deserializedElasticVolumeProperties.dataProtection - = ElasticVolumeDataProtectionProperties.fromJson(reader); - } else if ("snapshotDirectoryVisibility".equals(fieldName)) { - deserializedElasticVolumeProperties.snapshotDirectoryVisibility - = SnapshotDirectoryVisibility.fromString(reader.getString()); - } else if ("smbProperties".equals(fieldName)) { - deserializedElasticVolumeProperties.smbProperties = ElasticSmbProperties.fromJson(reader); - } else if ("backupResourceId".equals(fieldName)) { - deserializedElasticVolumeProperties.backupResourceId = reader.getString(); - } else if ("restorationState".equals(fieldName)) { - deserializedElasticVolumeProperties.restorationState - = ElasticVolumeRestorationState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRestorationState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRestorationState.java deleted file mode 100644 index b6ff08208f5c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRestorationState.java +++ /dev/null @@ -1,56 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The current state of the restoration process. - */ -public final class ElasticVolumeRestorationState extends ExpandableStringEnum { - /** - * Value indicating that the volume is currently restoring. - */ - public static final ElasticVolumeRestorationState RESTORING = fromString("Restoring"); - - /** - * Value indicating that the volume is restored. - */ - public static final ElasticVolumeRestorationState RESTORED = fromString("Restored"); - - /** - * Value indicating that the volume restore has failed. - */ - public static final ElasticVolumeRestorationState FAILED = fromString("Failed"); - - /** - * Creates a new instance of ElasticVolumeRestorationState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticVolumeRestorationState() { - } - - /** - * Creates or finds a ElasticVolumeRestorationState from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticVolumeRestorationState. - */ - public static ElasticVolumeRestorationState fromString(String name) { - return fromString(name, ElasticVolumeRestorationState.class); - } - - /** - * Gets known ElasticVolumeRestorationState values. - * - * @return known ElasticVolumeRestorationState values. - */ - public static Collection values() { - return values(ElasticVolumeRestorationState.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRevert.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRevert.java deleted file mode 100644 index 1f1ec4a9d78e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRevert.java +++ /dev/null @@ -1,93 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Reverts the elastic volume to the specified snapshot. - */ -@Fluent -public final class ElasticVolumeRevert implements JsonSerializable { - /* - * Resource identifier used to identify the Elastic Snapshot. - */ - private String snapshotResourceId; - - /** - * Creates an instance of ElasticVolumeRevert class. - */ - public ElasticVolumeRevert() { - } - - /** - * Get the snapshotResourceId property: Resource identifier used to identify the Elastic Snapshot. - * - * @return the snapshotResourceId value. - */ - public String snapshotResourceId() { - return this.snapshotResourceId; - } - - /** - * Set the snapshotResourceId property: Resource identifier used to identify the Elastic Snapshot. - * - * @param snapshotResourceId the snapshotResourceId value to set. - * @return the ElasticVolumeRevert object itself. - */ - public ElasticVolumeRevert withSnapshotResourceId(String snapshotResourceId) { - this.snapshotResourceId = snapshotResourceId; - return this; - } - - /** - * 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("snapshotResourceId", this.snapshotResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeRevert from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeRevert 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 ElasticVolumeRevert. - */ - public static ElasticVolumeRevert fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeRevert deserializedElasticVolumeRevert = new ElasticVolumeRevert(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotResourceId".equals(fieldName)) { - deserializedElasticVolumeRevert.snapshotResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeRevert; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeSnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeSnapshotProperties.java deleted file mode 100644 index 204f7885a30c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeSnapshotProperties.java +++ /dev/null @@ -1,94 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Elastic Volume Snapshot Properties. - */ -@Fluent -public final class ElasticVolumeSnapshotProperties implements JsonSerializable { - /* - * Snapshot Policy ResourceId - */ - private String snapshotPolicyResourceId; - - /** - * Creates an instance of ElasticVolumeSnapshotProperties class. - */ - public ElasticVolumeSnapshotProperties() { - } - - /** - * Get the snapshotPolicyResourceId property: Snapshot Policy ResourceId. - * - * @return the snapshotPolicyResourceId value. - */ - public String snapshotPolicyResourceId() { - return this.snapshotPolicyResourceId; - } - - /** - * Set the snapshotPolicyResourceId property: Snapshot Policy ResourceId. - * - * @param snapshotPolicyResourceId the snapshotPolicyResourceId value to set. - * @return the ElasticVolumeSnapshotProperties object itself. - */ - public ElasticVolumeSnapshotProperties withSnapshotPolicyResourceId(String snapshotPolicyResourceId) { - this.snapshotPolicyResourceId = snapshotPolicyResourceId; - return this; - } - - /** - * 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("snapshotPolicyResourceId", this.snapshotPolicyResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeSnapshotProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeSnapshotProperties 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 ElasticVolumeSnapshotProperties. - */ - public static ElasticVolumeSnapshotProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeSnapshotProperties deserializedElasticVolumeSnapshotProperties - = new ElasticVolumeSnapshotProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotPolicyResourceId".equals(fieldName)) { - deserializedElasticVolumeSnapshotProperties.snapshotPolicyResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeSnapshotProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdate.java deleted file mode 100644 index 047910d44201..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdate.java +++ /dev/null @@ -1,126 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.Map; - -/** - * The type used for update operations of the ElasticVolume. - */ -@Fluent -public final class ElasticVolumeUpdate implements JsonSerializable { - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ElasticVolumeUpdateProperties properties; - - /** - * Creates an instance of ElasticVolumeUpdate class. - */ - public ElasticVolumeUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticVolumeUpdate object itself. - */ - public ElasticVolumeUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticVolumeUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticVolumeUpdate object itself. - */ - public ElasticVolumeUpdate withProperties(ElasticVolumeUpdateProperties properties) { - this.properties = properties; - 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.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeUpdate 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 ElasticVolumeUpdate. - */ - public static ElasticVolumeUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeUpdate deserializedElasticVolumeUpdate = new ElasticVolumeUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticVolumeUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedElasticVolumeUpdate.properties = ElasticVolumeUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdateProperties.java deleted file mode 100644 index 49adf76f4df0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdateProperties.java +++ /dev/null @@ -1,228 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The updatable properties of the ElasticVolume. - */ -@Fluent -public final class ElasticVolumeUpdateProperties implements JsonSerializable { - /* - * Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. Values expressed in - * bytes as multiples of 1 GiB. - */ - private Long size; - - /* - * Set of export policy rules - */ - private ElasticExportPolicy exportPolicy; - - /* - * Data protection configuration option for the volume, including snapshot policies and backup. - */ - private ElasticVolumeDataProtectionPatchProperties dataProtection; - - /* - * Controls the visibility of the volume's read-only snapshot directory, which provides access to each of the - * volume's snapshots. - */ - private SnapshotDirectoryVisibility snapshotDirectoryVisibility; - - /* - * SMB Properties - */ - private ElasticSmbPatchProperties smbProperties; - - /** - * Creates an instance of ElasticVolumeUpdateProperties class. - */ - public ElasticVolumeUpdateProperties() { - } - - /** - * Get the size property: Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. - * Values expressed in bytes as multiples of 1 GiB. - * - * @return the size value. - */ - public Long size() { - return this.size; - } - - /** - * Set the size property: Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. - * Values expressed in bytes as multiples of 1 GiB. - * - * @param size the size value to set. - * @return the ElasticVolumeUpdateProperties object itself. - */ - public ElasticVolumeUpdateProperties withSize(Long size) { - this.size = size; - return this; - } - - /** - * Get the exportPolicy property: Set of export policy rules. - * - * @return the exportPolicy value. - */ - public ElasticExportPolicy exportPolicy() { - return this.exportPolicy; - } - - /** - * Set the exportPolicy property: Set of export policy rules. - * - * @param exportPolicy the exportPolicy value to set. - * @return the ElasticVolumeUpdateProperties object itself. - */ - public ElasticVolumeUpdateProperties withExportPolicy(ElasticExportPolicy exportPolicy) { - this.exportPolicy = exportPolicy; - return this; - } - - /** - * Get the dataProtection property: Data protection configuration option for the volume, including snapshot policies - * and backup. - * - * @return the dataProtection value. - */ - public ElasticVolumeDataProtectionPatchProperties dataProtection() { - return this.dataProtection; - } - - /** - * Set the dataProtection property: Data protection configuration option for the volume, including snapshot policies - * and backup. - * - * @param dataProtection the dataProtection value to set. - * @return the ElasticVolumeUpdateProperties object itself. - */ - public ElasticVolumeUpdateProperties withDataProtection(ElasticVolumeDataProtectionPatchProperties dataProtection) { - this.dataProtection = dataProtection; - return this; - } - - /** - * Get the snapshotDirectoryVisibility property: Controls the visibility of the volume's read-only snapshot - * directory, which provides access to each of the volume's snapshots. - * - * @return the snapshotDirectoryVisibility value. - */ - public SnapshotDirectoryVisibility snapshotDirectoryVisibility() { - return this.snapshotDirectoryVisibility; - } - - /** - * Set the snapshotDirectoryVisibility property: Controls the visibility of the volume's read-only snapshot - * directory, which provides access to each of the volume's snapshots. - * - * @param snapshotDirectoryVisibility the snapshotDirectoryVisibility value to set. - * @return the ElasticVolumeUpdateProperties object itself. - */ - public ElasticVolumeUpdateProperties - withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility snapshotDirectoryVisibility) { - this.snapshotDirectoryVisibility = snapshotDirectoryVisibility; - return this; - } - - /** - * Get the smbProperties property: SMB Properties. - * - * @return the smbProperties value. - */ - public ElasticSmbPatchProperties smbProperties() { - return this.smbProperties; - } - - /** - * Set the smbProperties property: SMB Properties. - * - * @param smbProperties the smbProperties value to set. - * @return the ElasticVolumeUpdateProperties object itself. - */ - public ElasticVolumeUpdateProperties withSmbProperties(ElasticSmbPatchProperties smbProperties) { - this.smbProperties = smbProperties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (exportPolicy() != null) { - exportPolicy().validate(); - } - if (dataProtection() != null) { - dataProtection().validate(); - } - if (smbProperties() != null) { - smbProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("size", this.size); - jsonWriter.writeJsonField("exportPolicy", this.exportPolicy); - jsonWriter.writeJsonField("dataProtection", this.dataProtection); - jsonWriter.writeStringField("snapshotDirectoryVisibility", - this.snapshotDirectoryVisibility == null ? null : this.snapshotDirectoryVisibility.toString()); - jsonWriter.writeJsonField("smbProperties", this.smbProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeUpdateProperties 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 ElasticVolumeUpdateProperties. - */ - public static ElasticVolumeUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeUpdateProperties deserializedElasticVolumeUpdateProperties - = new ElasticVolumeUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("size".equals(fieldName)) { - deserializedElasticVolumeUpdateProperties.size = reader.getNullable(JsonReader::getLong); - } else if ("exportPolicy".equals(fieldName)) { - deserializedElasticVolumeUpdateProperties.exportPolicy = ElasticExportPolicy.fromJson(reader); - } else if ("dataProtection".equals(fieldName)) { - deserializedElasticVolumeUpdateProperties.dataProtection - = ElasticVolumeDataProtectionPatchProperties.fromJson(reader); - } else if ("snapshotDirectoryVisibility".equals(fieldName)) { - deserializedElasticVolumeUpdateProperties.snapshotDirectoryVisibility - = SnapshotDirectoryVisibility.fromString(reader.getString()); - } else if ("smbProperties".equals(fieldName)) { - deserializedElasticVolumeUpdateProperties.smbProperties - = ElasticSmbPatchProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumes.java deleted file mode 100644 index 73ee0d0607a5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumes.java +++ /dev/null @@ -1,184 +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.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticVolumes. - */ -public interface ElasticVolumes { - /** - * 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}. - */ - 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. - */ - ElasticVolume get(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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - 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. - */ - 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}. - */ - 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}. - */ - 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 response. - */ - ElasticVolume 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 the response. - */ - ElasticVolume revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body, Context context); - - /** - * Get the details of the specified volume. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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}. - */ - ElasticVolume getById(String id); - - /** - * Get the details of the specified volume. - * - * @param id the resource ID. - * @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}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified Elastic Volume. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Delete the specified Elastic Volume. - * - * @param id the resource ID. - * @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. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticVolume resource. - * - * @param name resource name. - * @return the first stage of the new ElasticVolume definition. - */ - ElasticVolume.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfig.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfig.java deleted file mode 100644 index 3c165fdacb65..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfig.java +++ /dev/null @@ -1,167 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Using AKV config, certificate will be fetched, which will contain private key & public certificate, that - * correspond to the public certificate which is uploaded on the application created by customer. This will be used - * further for authentication. - */ -@Fluent -public final class EntraIdAkvConfig implements JsonSerializable { - /* - * The Azure Key Vault URI where the Entra ID credentials are stored. - */ - private String azureKeyVaultUri; - - /* - * The name of the certificate in Azure Key Vault. - */ - private String certificateName; - - /* - * The ARM resource identifier of the user assigned identity used to authenticate with key vault. - */ - private String userAssignedIdentity; - - /** - * Creates an instance of EntraIdAkvConfig class. - */ - public EntraIdAkvConfig() { - } - - /** - * Get the azureKeyVaultUri property: The Azure Key Vault URI where the Entra ID credentials are stored. - * - * @return the azureKeyVaultUri value. - */ - public String azureKeyVaultUri() { - return this.azureKeyVaultUri; - } - - /** - * Set the azureKeyVaultUri property: The Azure Key Vault URI where the Entra ID credentials are stored. - * - * @param azureKeyVaultUri the azureKeyVaultUri value to set. - * @return the EntraIdAkvConfig object itself. - */ - public EntraIdAkvConfig withAzureKeyVaultUri(String azureKeyVaultUri) { - this.azureKeyVaultUri = azureKeyVaultUri; - return this; - } - - /** - * Get the certificateName property: The name of the certificate in Azure Key Vault. - * - * @return the certificateName value. - */ - public String certificateName() { - return this.certificateName; - } - - /** - * Set the certificateName property: The name of the certificate in Azure Key Vault. - * - * @param certificateName the certificateName value to set. - * @return the EntraIdAkvConfig object itself. - */ - public EntraIdAkvConfig withCertificateName(String certificateName) { - this.certificateName = certificateName; - return this; - } - - /** - * Get the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to - * authenticate with key vault. - * - * @return the userAssignedIdentity value. - */ - public String userAssignedIdentity() { - return this.userAssignedIdentity; - } - - /** - * Set the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to - * authenticate with key vault. - * - * @param userAssignedIdentity the userAssignedIdentity value to set. - * @return the EntraIdAkvConfig object itself. - */ - public EntraIdAkvConfig withUserAssignedIdentity(String userAssignedIdentity) { - this.userAssignedIdentity = userAssignedIdentity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (azureKeyVaultUri() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property azureKeyVaultUri in model EntraIdAkvConfig")); - } - if (certificateName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property certificateName in model EntraIdAkvConfig")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EntraIdAkvConfig.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("azureKeyVaultUri", this.azureKeyVaultUri); - jsonWriter.writeStringField("certificateName", this.certificateName); - jsonWriter.writeStringField("userAssignedIdentity", this.userAssignedIdentity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EntraIdAkvConfig from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EntraIdAkvConfig 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 EntraIdAkvConfig. - */ - public static EntraIdAkvConfig fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EntraIdAkvConfig deserializedEntraIdAkvConfig = new EntraIdAkvConfig(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("azureKeyVaultUri".equals(fieldName)) { - deserializedEntraIdAkvConfig.azureKeyVaultUri = reader.getString(); - } else if ("certificateName".equals(fieldName)) { - deserializedEntraIdAkvConfig.certificateName = reader.getString(); - } else if ("userAssignedIdentity".equals(fieldName)) { - deserializedEntraIdAkvConfig.userAssignedIdentity = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedEntraIdAkvConfig; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfigPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfigPatch.java deleted file mode 100644 index 2620a0b3e76c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfigPatch.java +++ /dev/null @@ -1,153 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Using AKV config, certificate will be fetched, which will contain private key & public certificate, that - * correspond to the public certificate which is uploaded on the application created by customer. This will be used - * further for authentication. - */ -@Fluent -public final class EntraIdAkvConfigPatch implements JsonSerializable { - /* - * The Azure Key Vault URI where the Entra ID credentials are stored. - */ - private String azureKeyVaultUri; - - /* - * The name of the certificate in Azure Key Vault. - */ - private String certificateName; - - /* - * The ARM resource identifier of the user assigned identity used to authenticate with key vault. - */ - private String userAssignedIdentity; - - /** - * Creates an instance of EntraIdAkvConfigPatch class. - */ - public EntraIdAkvConfigPatch() { - } - - /** - * Get the azureKeyVaultUri property: The Azure Key Vault URI where the Entra ID credentials are stored. - * - * @return the azureKeyVaultUri value. - */ - public String azureKeyVaultUri() { - return this.azureKeyVaultUri; - } - - /** - * Set the azureKeyVaultUri property: The Azure Key Vault URI where the Entra ID credentials are stored. - * - * @param azureKeyVaultUri the azureKeyVaultUri value to set. - * @return the EntraIdAkvConfigPatch object itself. - */ - public EntraIdAkvConfigPatch withAzureKeyVaultUri(String azureKeyVaultUri) { - this.azureKeyVaultUri = azureKeyVaultUri; - return this; - } - - /** - * Get the certificateName property: The name of the certificate in Azure Key Vault. - * - * @return the certificateName value. - */ - public String certificateName() { - return this.certificateName; - } - - /** - * Set the certificateName property: The name of the certificate in Azure Key Vault. - * - * @param certificateName the certificateName value to set. - * @return the EntraIdAkvConfigPatch object itself. - */ - public EntraIdAkvConfigPatch withCertificateName(String certificateName) { - this.certificateName = certificateName; - return this; - } - - /** - * Get the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to - * authenticate with key vault. - * - * @return the userAssignedIdentity value. - */ - public String userAssignedIdentity() { - return this.userAssignedIdentity; - } - - /** - * Set the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to - * authenticate with key vault. - * - * @param userAssignedIdentity the userAssignedIdentity value to set. - * @return the EntraIdAkvConfigPatch object itself. - */ - public EntraIdAkvConfigPatch withUserAssignedIdentity(String userAssignedIdentity) { - this.userAssignedIdentity = userAssignedIdentity; - return this; - } - - /** - * 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("azureKeyVaultUri", this.azureKeyVaultUri); - jsonWriter.writeStringField("certificateName", this.certificateName); - jsonWriter.writeStringField("userAssignedIdentity", this.userAssignedIdentity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EntraIdAkvConfigPatch from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EntraIdAkvConfigPatch 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 EntraIdAkvConfigPatch. - */ - public static EntraIdAkvConfigPatch fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EntraIdAkvConfigPatch deserializedEntraIdAkvConfigPatch = new EntraIdAkvConfigPatch(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("azureKeyVaultUri".equals(fieldName)) { - deserializedEntraIdAkvConfigPatch.azureKeyVaultUri = reader.getString(); - } else if ("certificateName".equals(fieldName)) { - deserializedEntraIdAkvConfigPatch.certificateName = reader.getString(); - } else if ("userAssignedIdentity".equals(fieldName)) { - deserializedEntraIdAkvConfigPatch.userAssignedIdentity = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedEntraIdAkvConfigPatch; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfig.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfig.java deleted file mode 100644 index 71777b63ff48..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfig.java +++ /dev/null @@ -1,208 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Entra ID configuration for the account. - */ -@Fluent -public final class EntraIdConfig implements JsonSerializable { - /* - * ApplicationId of the app created by customer to provide authentication and required API permissions for Microsoft - * Graph endpoint. - */ - private String applicationId; - - /* - * Domain of the Active directory synced to Entra ID for hybrid identities. - */ - private String domain; - - /* - * Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated for SMB share, using this FQDN, SMB - * Share will be mounted on Entra Joined VM. - */ - private String serverNamePrefix; - - /* - * Using AKV config, certificate will be fetched, which will contain private key & public certificate, that - * correspond to the public certificate which is uploaded on the application created by customer. This will be used - * further for authentication. - */ - private EntraIdAkvConfig entraIdAkvConfig; - - /** - * Creates an instance of EntraIdConfig class. - */ - public EntraIdConfig() { - } - - /** - * Get the applicationId property: ApplicationId of the app created by customer to provide authentication and - * required API permissions for Microsoft Graph endpoint. - * - * @return the applicationId value. - */ - public String applicationId() { - return this.applicationId; - } - - /** - * Set the applicationId property: ApplicationId of the app created by customer to provide authentication and - * required API permissions for Microsoft Graph endpoint. - * - * @param applicationId the applicationId value to set. - * @return the EntraIdConfig object itself. - */ - public EntraIdConfig withApplicationId(String applicationId) { - this.applicationId = applicationId; - return this; - } - - /** - * Get the domain property: Domain of the Active directory synced to Entra ID for hybrid identities. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Domain of the Active directory synced to Entra ID for hybrid identities. - * - * @param domain the domain value to set. - * @return the EntraIdConfig object itself. - */ - public EntraIdConfig withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the serverNamePrefix property: Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated - * for SMB share, using this FQDN, SMB Share will be mounted on Entra Joined VM. - * - * @return the serverNamePrefix value. - */ - public String serverNamePrefix() { - return this.serverNamePrefix; - } - - /** - * Set the serverNamePrefix property: Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated - * for SMB share, using this FQDN, SMB Share will be mounted on Entra Joined VM. - * - * @param serverNamePrefix the serverNamePrefix value to set. - * @return the EntraIdConfig object itself. - */ - public EntraIdConfig withServerNamePrefix(String serverNamePrefix) { - this.serverNamePrefix = serverNamePrefix; - return this; - } - - /** - * Get the entraIdAkvConfig property: Using AKV config, certificate will be fetched, which will contain private key - * & public certificate, that correspond to the public certificate which is uploaded on the application created - * by customer. This will be used further for authentication. - * - * @return the entraIdAkvConfig value. - */ - public EntraIdAkvConfig entraIdAkvConfig() { - return this.entraIdAkvConfig; - } - - /** - * Set the entraIdAkvConfig property: Using AKV config, certificate will be fetched, which will contain private key - * & public certificate, that correspond to the public certificate which is uploaded on the application created - * by customer. This will be used further for authentication. - * - * @param entraIdAkvConfig the entraIdAkvConfig value to set. - * @return the EntraIdConfig object itself. - */ - public EntraIdConfig withEntraIdAkvConfig(EntraIdAkvConfig entraIdAkvConfig) { - this.entraIdAkvConfig = entraIdAkvConfig; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (applicationId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property applicationId in model EntraIdConfig")); - } - if (domain() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property domain in model EntraIdConfig")); - } - if (serverNamePrefix() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property serverNamePrefix in model EntraIdConfig")); - } - if (entraIdAkvConfig() != null) { - entraIdAkvConfig().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EntraIdConfig.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("applicationId", this.applicationId); - jsonWriter.writeStringField("domain", this.domain); - jsonWriter.writeStringField("serverNamePrefix", this.serverNamePrefix); - jsonWriter.writeJsonField("entraIdAkvConfig", this.entraIdAkvConfig); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EntraIdConfig from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EntraIdConfig 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 EntraIdConfig. - */ - public static EntraIdConfig fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EntraIdConfig deserializedEntraIdConfig = new EntraIdConfig(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("applicationId".equals(fieldName)) { - deserializedEntraIdConfig.applicationId = reader.getString(); - } else if ("domain".equals(fieldName)) { - deserializedEntraIdConfig.domain = reader.getString(); - } else if ("serverNamePrefix".equals(fieldName)) { - deserializedEntraIdConfig.serverNamePrefix = reader.getString(); - } else if ("entraIdAkvConfig".equals(fieldName)) { - deserializedEntraIdConfig.entraIdAkvConfig = EntraIdAkvConfig.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedEntraIdConfig; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfigPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfigPatch.java deleted file mode 100644 index 675657764f7d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfigPatch.java +++ /dev/null @@ -1,192 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Entra ID Patch configuration for the account. - */ -@Fluent -public final class EntraIdConfigPatch implements JsonSerializable { - /* - * ApplicationId of the app created by customer to provide authentication and required API permissions for Microsoft - * Graph endpoint. - */ - private String applicationId; - - /* - * Domain of the Active directory synced to Entra ID for hybrid identities. - */ - private String domain; - - /* - * Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated for SMB share, using this FQDN, SMB - * Share will be mounted on Entra Joined VM. - */ - private String serverNamePrefix; - - /* - * Using AKV config, certificate will be fetched, which will contain private key & public certificate, that - * correspond to the public certificate which is uploaded on the application created by customer. This will be used - * further for authentication. - */ - private EntraIdAkvConfigPatch entraIdAkvConfig; - - /** - * Creates an instance of EntraIdConfigPatch class. - */ - public EntraIdConfigPatch() { - } - - /** - * Get the applicationId property: ApplicationId of the app created by customer to provide authentication and - * required API permissions for Microsoft Graph endpoint. - * - * @return the applicationId value. - */ - public String applicationId() { - return this.applicationId; - } - - /** - * Set the applicationId property: ApplicationId of the app created by customer to provide authentication and - * required API permissions for Microsoft Graph endpoint. - * - * @param applicationId the applicationId value to set. - * @return the EntraIdConfigPatch object itself. - */ - public EntraIdConfigPatch withApplicationId(String applicationId) { - this.applicationId = applicationId; - return this; - } - - /** - * Get the domain property: Domain of the Active directory synced to Entra ID for hybrid identities. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Domain of the Active directory synced to Entra ID for hybrid identities. - * - * @param domain the domain value to set. - * @return the EntraIdConfigPatch object itself. - */ - public EntraIdConfigPatch withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the serverNamePrefix property: Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated - * for SMB share, using this FQDN, SMB Share will be mounted on Entra Joined VM. - * - * @return the serverNamePrefix value. - */ - public String serverNamePrefix() { - return this.serverNamePrefix; - } - - /** - * Set the serverNamePrefix property: Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated - * for SMB share, using this FQDN, SMB Share will be mounted on Entra Joined VM. - * - * @param serverNamePrefix the serverNamePrefix value to set. - * @return the EntraIdConfigPatch object itself. - */ - public EntraIdConfigPatch withServerNamePrefix(String serverNamePrefix) { - this.serverNamePrefix = serverNamePrefix; - return this; - } - - /** - * Get the entraIdAkvConfig property: Using AKV config, certificate will be fetched, which will contain private key - * & public certificate, that correspond to the public certificate which is uploaded on the application created - * by customer. This will be used further for authentication. - * - * @return the entraIdAkvConfig value. - */ - public EntraIdAkvConfigPatch entraIdAkvConfig() { - return this.entraIdAkvConfig; - } - - /** - * Set the entraIdAkvConfig property: Using AKV config, certificate will be fetched, which will contain private key - * & public certificate, that correspond to the public certificate which is uploaded on the application created - * by customer. This will be used further for authentication. - * - * @param entraIdAkvConfig the entraIdAkvConfig value to set. - * @return the EntraIdConfigPatch object itself. - */ - public EntraIdConfigPatch withEntraIdAkvConfig(EntraIdAkvConfigPatch entraIdAkvConfig) { - this.entraIdAkvConfig = entraIdAkvConfig; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (entraIdAkvConfig() != null) { - entraIdAkvConfig().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("applicationId", this.applicationId); - jsonWriter.writeStringField("domain", this.domain); - jsonWriter.writeStringField("serverNamePrefix", this.serverNamePrefix); - jsonWriter.writeJsonField("entraIdAkvConfig", this.entraIdAkvConfig); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EntraIdConfigPatch from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EntraIdConfigPatch 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 EntraIdConfigPatch. - */ - public static EntraIdConfigPatch fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EntraIdConfigPatch deserializedEntraIdConfigPatch = new EntraIdConfigPatch(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("applicationId".equals(fieldName)) { - deserializedEntraIdConfigPatch.applicationId = reader.getString(); - } else if ("domain".equals(fieldName)) { - deserializedEntraIdConfigPatch.domain = reader.getString(); - } else if ("serverNamePrefix".equals(fieldName)) { - deserializedEntraIdConfigPatch.serverNamePrefix = reader.getString(); - } else if ("entraIdAkvConfig".equals(fieldName)) { - deserializedEntraIdConfigPatch.entraIdAkvConfig = EntraIdAkvConfigPatch.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedEntraIdConfigPatch; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LargeVolumeType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LargeVolumeType.java deleted file mode 100644 index 7f151ae470b7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LargeVolumeType.java +++ /dev/null @@ -1,56 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * 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. - */ -public final class LargeVolumeType extends ExpandableStringEnum { - /** - * The large volume is created with standard configuration that provides standard performance and throughput. - */ - public static final LargeVolumeType LARGE_VOLUME = fromString("LargeVolume"); - - /** - * The extra large volume is created with higher volume capacity limit 7.2PiB with cool access enabled, delivering - * higher capacity limit with lower costs. - */ - public static final LargeVolumeType EXTRA_LARGE_VOLUME7DOT2PIB = fromString("PremExtraLargeVolume7Dot2PiB"); - - /** - * Creates a new instance of LargeVolumeType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public LargeVolumeType() { - } - - /** - * Creates or finds a LargeVolumeType from its string representation. - * - * @param name a name to look for. - * @return the corresponding LargeVolumeType. - */ - public static LargeVolumeType fromString(String name) { - return fromString(name, LargeVolumeType.class); - } - - /** - * Gets known LargeVolumeType values. - * - * @return known LargeVolumeType values. - */ - public static Collection values() { - return values(LargeVolumeType.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java deleted file mode 100644 index 2c645570142c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java +++ /dev/null @@ -1,213 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * LDAP configuration. - */ -@Fluent -public final class LdapConfiguration implements JsonSerializable { - /* - * Name of the LDAP configuration domain - */ - private String domain; - - /* - * List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - */ - private List ldapServers; - - /* - * Specifies whether or not the LDAP traffic needs to be secured via TLS. - */ - private Boolean ldapOverTLS; - - /* - * When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded ldap servers CA - * certificate. - */ - private String serverCACertificate; - - /* - * The CN host name used while generating the certificate, LDAP Over TLS requires the CN host name to create DNS - * host entry. - */ - private String certificateCNHost; - - /** - * Creates an instance of LdapConfiguration class. - */ - public LdapConfiguration() { - } - - /** - * Get the domain property: Name of the LDAP configuration domain. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Name of the LDAP configuration domain. - * - * @param domain the domain value to set. - * @return the LdapConfiguration object itself. - */ - public LdapConfiguration withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the ldapServers property: List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - * - * @return the ldapServers value. - */ - public List ldapServers() { - return this.ldapServers; - } - - /** - * Set the ldapServers property: List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - * - * @param ldapServers the ldapServers value to set. - * @return the LdapConfiguration object itself. - */ - public LdapConfiguration withLdapServers(List ldapServers) { - this.ldapServers = ldapServers; - return this; - } - - /** - * Get the ldapOverTLS property: Specifies whether or not the LDAP traffic needs to be secured via TLS. - * - * @return the ldapOverTLS value. - */ - public Boolean ldapOverTLS() { - return this.ldapOverTLS; - } - - /** - * Set the ldapOverTLS property: Specifies whether or not the LDAP traffic needs to be secured via TLS. - * - * @param ldapOverTLS the ldapOverTLS value to set. - * @return the LdapConfiguration object itself. - */ - public LdapConfiguration withLdapOverTLS(Boolean ldapOverTLS) { - this.ldapOverTLS = ldapOverTLS; - return this; - } - - /** - * Get the serverCACertificate property: When LDAP over SSL/TLS is enabled, the LDAP client is required to have - * base64 encoded ldap servers CA certificate. - * - * @return the serverCACertificate value. - */ - public String serverCACertificate() { - return this.serverCACertificate; - } - - /** - * Set the serverCACertificate property: When LDAP over SSL/TLS is enabled, the LDAP client is required to have - * base64 encoded ldap servers CA certificate. - * - * @param serverCACertificate the serverCACertificate value to set. - * @return the LdapConfiguration object itself. - */ - public LdapConfiguration withServerCACertificate(String serverCACertificate) { - this.serverCACertificate = serverCACertificate; - return this; - } - - /** - * Get the certificateCNHost property: The CN host name used while generating the certificate, LDAP Over TLS - * requires the CN host name to create DNS host entry. - * - * @return the certificateCNHost value. - */ - public String certificateCNHost() { - return this.certificateCNHost; - } - - /** - * Set the certificateCNHost property: The CN host name used while generating the certificate, LDAP Over TLS - * requires the CN host name to create DNS host entry. - * - * @param certificateCNHost the certificateCNHost value to set. - * @return the LdapConfiguration object itself. - */ - public LdapConfiguration withCertificateCNHost(String certificateCNHost) { - this.certificateCNHost = certificateCNHost; - return this; - } - - /** - * 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("domain", this.domain); - jsonWriter.writeArrayField("ldapServers", this.ldapServers, (writer, element) -> writer.writeString(element)); - jsonWriter.writeBooleanField("ldapOverTLS", this.ldapOverTLS); - jsonWriter.writeStringField("serverCACertificate", this.serverCACertificate); - jsonWriter.writeStringField("certificateCNHost", this.certificateCNHost); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of LdapConfiguration from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of LdapConfiguration 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 LdapConfiguration. - */ - public static LdapConfiguration fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - LdapConfiguration deserializedLdapConfiguration = new LdapConfiguration(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("domain".equals(fieldName)) { - deserializedLdapConfiguration.domain = reader.getString(); - } else if ("ldapServers".equals(fieldName)) { - List ldapServers = reader.readArray(reader1 -> reader1.getString()); - deserializedLdapConfiguration.ldapServers = ldapServers; - } else if ("ldapOverTLS".equals(fieldName)) { - deserializedLdapConfiguration.ldapOverTLS = reader.getNullable(JsonReader::getBoolean); - } else if ("serverCACertificate".equals(fieldName)) { - deserializedLdapConfiguration.serverCACertificate = reader.getString(); - } else if ("certificateCNHost".equals(fieldName)) { - deserializedLdapConfiguration.certificateCNHost = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedLdapConfiguration; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfigurationPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfigurationPatch.java deleted file mode 100644 index 8ff870ca04b8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfigurationPatch.java +++ /dev/null @@ -1,213 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * LDAP configuration for PATCH operations (no default values). - */ -@Fluent -public final class LdapConfigurationPatch implements JsonSerializable { - /* - * Name of the LDAP configuration domain - */ - private String domain; - - /* - * List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - */ - private List ldapServers; - - /* - * Specifies whether or not the LDAP traffic needs to be secured via TLS. - */ - private Boolean ldapOverTLS; - - /* - * When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded ldap servers CA - * certificate. - */ - private String serverCACertificate; - - /* - * The CN host name used while generating the certificate, LDAP Over TLS requires the CN host name to create DNS - * host entry. - */ - private String certificateCNHost; - - /** - * Creates an instance of LdapConfigurationPatch class. - */ - public LdapConfigurationPatch() { - } - - /** - * Get the domain property: Name of the LDAP configuration domain. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Name of the LDAP configuration domain. - * - * @param domain the domain value to set. - * @return the LdapConfigurationPatch object itself. - */ - public LdapConfigurationPatch withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the ldapServers property: List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - * - * @return the ldapServers value. - */ - public List ldapServers() { - return this.ldapServers; - } - - /** - * Set the ldapServers property: List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - * - * @param ldapServers the ldapServers value to set. - * @return the LdapConfigurationPatch object itself. - */ - public LdapConfigurationPatch withLdapServers(List ldapServers) { - this.ldapServers = ldapServers; - return this; - } - - /** - * Get the ldapOverTLS property: Specifies whether or not the LDAP traffic needs to be secured via TLS. - * - * @return the ldapOverTLS value. - */ - public Boolean ldapOverTLS() { - return this.ldapOverTLS; - } - - /** - * Set the ldapOverTLS property: Specifies whether or not the LDAP traffic needs to be secured via TLS. - * - * @param ldapOverTLS the ldapOverTLS value to set. - * @return the LdapConfigurationPatch object itself. - */ - public LdapConfigurationPatch withLdapOverTLS(Boolean ldapOverTLS) { - this.ldapOverTLS = ldapOverTLS; - return this; - } - - /** - * Get the serverCACertificate property: When LDAP over SSL/TLS is enabled, the LDAP client is required to have - * base64 encoded ldap servers CA certificate. - * - * @return the serverCACertificate value. - */ - public String serverCACertificate() { - return this.serverCACertificate; - } - - /** - * Set the serverCACertificate property: When LDAP over SSL/TLS is enabled, the LDAP client is required to have - * base64 encoded ldap servers CA certificate. - * - * @param serverCACertificate the serverCACertificate value to set. - * @return the LdapConfigurationPatch object itself. - */ - public LdapConfigurationPatch withServerCACertificate(String serverCACertificate) { - this.serverCACertificate = serverCACertificate; - return this; - } - - /** - * Get the certificateCNHost property: The CN host name used while generating the certificate, LDAP Over TLS - * requires the CN host name to create DNS host entry. - * - * @return the certificateCNHost value. - */ - public String certificateCNHost() { - return this.certificateCNHost; - } - - /** - * Set the certificateCNHost property: The CN host name used while generating the certificate, LDAP Over TLS - * requires the CN host name to create DNS host entry. - * - * @param certificateCNHost the certificateCNHost value to set. - * @return the LdapConfigurationPatch object itself. - */ - public LdapConfigurationPatch withCertificateCNHost(String certificateCNHost) { - this.certificateCNHost = certificateCNHost; - return this; - } - - /** - * 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("domain", this.domain); - jsonWriter.writeArrayField("ldapServers", this.ldapServers, (writer, element) -> writer.writeString(element)); - jsonWriter.writeBooleanField("ldapOverTLS", this.ldapOverTLS); - jsonWriter.writeStringField("serverCACertificate", this.serverCACertificate); - jsonWriter.writeStringField("certificateCNHost", this.certificateCNHost); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of LdapConfigurationPatch from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of LdapConfigurationPatch 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 LdapConfigurationPatch. - */ - public static LdapConfigurationPatch fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - LdapConfigurationPatch deserializedLdapConfigurationPatch = new LdapConfigurationPatch(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("domain".equals(fieldName)) { - deserializedLdapConfigurationPatch.domain = reader.getString(); - } else if ("ldapServers".equals(fieldName)) { - List ldapServers = reader.readArray(reader1 -> reader1.getString()); - deserializedLdapConfigurationPatch.ldapServers = ldapServers; - } else if ("ldapOverTLS".equals(fieldName)) { - deserializedLdapConfigurationPatch.ldapOverTLS = reader.getNullable(JsonReader::getBoolean); - } else if ("serverCACertificate".equals(fieldName)) { - deserializedLdapConfigurationPatch.serverCACertificate = reader.getString(); - } else if ("certificateCNHost".equals(fieldName)) { - deserializedLdapConfigurationPatch.certificateCNHost = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedLdapConfigurationPatch; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java index a3dbcc3b1f94..9f44d1a824dc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java @@ -88,13 +88,6 @@ public interface NetAppAccount { */ List activeDirectories(); - /** - * Gets the entraIdConfig property: Entra ID configuration for the account. - * - * @return the entraIdConfig value. - */ - EntraIdConfig entraIdConfig(); - /** * Gets the encryption property: Encryption settings. * @@ -125,13 +118,6 @@ public interface NetAppAccount { */ MultiAdStatus multiAdStatus(); - /** - * Gets the ldapConfiguration property: LDAP Configuration for the account. - * - * @return the ldapConfiguration value. - */ - LdapConfiguration ldapConfiguration(); - /** * Gets the region of the resource. * @@ -215,9 +201,9 @@ interface WithResourceGroup { * The stage of the NetAppAccount definition which contains all the minimum required properties for the resource * to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, - DefinitionStages.WithActiveDirectories, DefinitionStages.WithEntraIdConfig, DefinitionStages.WithEncryption, - DefinitionStages.WithNfsV4IdDomain, DefinitionStages.WithLdapConfiguration { + interface WithCreate + extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithActiveDirectories, + DefinitionStages.WithEncryption, DefinitionStages.WithNfsV4IdDomain { /** * Executes the create request. * @@ -273,19 +259,6 @@ interface WithActiveDirectories { WithCreate withActiveDirectories(List activeDirectories); } - /** - * The stage of the NetAppAccount definition allowing to specify entraIdConfig. - */ - interface WithEntraIdConfig { - /** - * Specifies the entraIdConfig property: Entra ID configuration for the account.. - * - * @param entraIdConfig Entra ID configuration for the account. - * @return the next definition stage. - */ - WithCreate withEntraIdConfig(EntraIdConfig entraIdConfig); - } - /** * The stage of the NetAppAccount definition allowing to specify encryption. */ @@ -313,19 +286,6 @@ interface WithNfsV4IdDomain { */ WithCreate withNfsV4IdDomain(String nfsV4IdDomain); } - - /** - * The stage of the NetAppAccount definition allowing to specify ldapConfiguration. - */ - interface WithLdapConfiguration { - /** - * Specifies the ldapConfiguration property: LDAP Configuration for the account.. - * - * @param ldapConfiguration LDAP Configuration for the account. - * @return the next definition stage. - */ - WithCreate withLdapConfiguration(LdapConfiguration ldapConfiguration); - } } /** @@ -339,8 +299,7 @@ interface WithLdapConfiguration { * The template for NetAppAccount update. */ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithActiveDirectories, - UpdateStages.WithEntraIdConfig, UpdateStages.WithEncryption, UpdateStages.WithNfsV4IdDomain, - UpdateStages.WithMultiAdStatus, UpdateStages.WithLdapConfiguration { + UpdateStages.WithEncryption, UpdateStages.WithNfsV4IdDomain { /** * Executes the update request. * @@ -400,19 +359,6 @@ interface WithActiveDirectories { Update withActiveDirectories(List activeDirectories); } - /** - * The stage of the NetAppAccount update allowing to specify entraIdConfig. - */ - interface WithEntraIdConfig { - /** - * Specifies the entraIdConfig property: Entra ID configuration for the account.. - * - * @param entraIdConfig Entra ID configuration for the account. - * @return the next definition stage. - */ - Update withEntraIdConfig(EntraIdConfigPatch entraIdConfig); - } - /** * The stage of the NetAppAccount update allowing to specify encryption. */ @@ -440,32 +386,6 @@ interface WithNfsV4IdDomain { */ Update withNfsV4IdDomain(String nfsV4IdDomain); } - - /** - * The stage of the NetAppAccount update allowing to specify multiAdStatus. - */ - interface WithMultiAdStatus { - /** - * Specifies the multiAdStatus property: MultiAD Status for the account. - * - * @param multiAdStatus MultiAD Status for the account. - * @return the next definition stage. - */ - Update withMultiAdStatus(MultiAdStatus multiAdStatus); - } - - /** - * The stage of the NetAppAccount update allowing to specify ldapConfiguration. - */ - interface WithLdapConfiguration { - /** - * Specifies the ldapConfiguration property: LDAP Configuration for the account.. - * - * @param ldapConfiguration LDAP Configuration for the account. - * @return the next definition stage. - */ - Update withLdapConfiguration(LdapConfigurationPatch ldapConfiguration); - } } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java index 967df7d666ce..4759d24a74b2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java @@ -9,7 +9,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.AccountPropertiesPatch; +import com.azure.resourcemanager.netapp.fluent.models.AccountProperties; import java.io.IOException; import java.util.List; import java.util.Map; @@ -47,7 +47,7 @@ public final class NetAppAccountPatch implements JsonSerializable tags) { * * @return the innerProperties value. */ - private AccountPropertiesPatch innerProperties() { + private AccountProperties innerProperties() { return this.innerProperties; } @@ -156,6 +156,15 @@ public NetAppAccountPatch withIdentity(ManagedServiceIdentity identity) { return this; } + /** + * Get the provisioningState property: Azure lifecycle management. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + /** * Get the activeDirectories property: Active Directories. * @@ -173,35 +182,12 @@ public List activeDirectories() { */ public NetAppAccountPatch withActiveDirectories(List activeDirectories) { if (this.innerProperties() == null) { - this.innerProperties = new AccountPropertiesPatch(); + this.innerProperties = new AccountProperties(); } this.innerProperties().withActiveDirectories(activeDirectories); return this; } - /** - * Get the entraIdConfig property: Entra ID configuration for the account. - * - * @return the entraIdConfig value. - */ - public EntraIdConfigPatch 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 NetAppAccountPatch object itself. - */ - public NetAppAccountPatch withEntraIdConfig(EntraIdConfigPatch entraIdConfig) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountPropertiesPatch(); - } - this.innerProperties().withEntraIdConfig(entraIdConfig); - return this; - } - /** * Get the encryption property: Encryption settings. * @@ -219,12 +205,22 @@ public AccountEncryption encryption() { */ public NetAppAccountPatch withEncryption(AccountEncryption encryption) { if (this.innerProperties() == null) { - this.innerProperties = new AccountPropertiesPatch(); + this.innerProperties = new AccountProperties(); } this.innerProperties().withEncryption(encryption); return this; } + /** + * Get the disableShowmount property: Shows the status of disableShowmount for all volumes under the subscription, + * null equals false. + * + * @return the disableShowmount value. + */ + public Boolean disableShowmount() { + return this.innerProperties() == null ? null : this.innerProperties().disableShowmount(); + } + /** * 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. @@ -244,7 +240,7 @@ public String nfsV4IdDomain() { */ public NetAppAccountPatch withNfsV4IdDomain(String nfsV4IdDomain) { if (this.innerProperties() == null) { - this.innerProperties = new AccountPropertiesPatch(); + this.innerProperties = new AccountProperties(); } this.innerProperties().withNfsV4IdDomain(nfsV4IdDomain); return this; @@ -259,43 +255,6 @@ public MultiAdStatus multiAdStatus() { return this.innerProperties() == null ? null : this.innerProperties().multiAdStatus(); } - /** - * Set the multiAdStatus property: MultiAD Status for the account. - * - * @param multiAdStatus the multiAdStatus value to set. - * @return the NetAppAccountPatch object itself. - */ - public NetAppAccountPatch withMultiAdStatus(MultiAdStatus multiAdStatus) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountPropertiesPatch(); - } - this.innerProperties().withMultiAdStatus(multiAdStatus); - return this; - } - - /** - * Get the ldapConfiguration property: LDAP Configuration for the account. - * - * @return the ldapConfiguration value. - */ - public LdapConfigurationPatch ldapConfiguration() { - return this.innerProperties() == null ? null : this.innerProperties().ldapConfiguration(); - } - - /** - * Set the ldapConfiguration property: LDAP Configuration for the account. - * - * @param ldapConfiguration the ldapConfiguration value to set. - * @return the NetAppAccountPatch object itself. - */ - public NetAppAccountPatch withLdapConfiguration(LdapConfigurationPatch ldapConfiguration) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountPropertiesPatch(); - } - this.innerProperties().withLdapConfiguration(ldapConfiguration); - return this; - } - /** * Validates the instance. * @@ -350,7 +309,7 @@ public static NetAppAccountPatch fromJson(JsonReader jsonReader) throws IOExcept Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedNetAppAccountPatch.tags = tags; } else if ("properties".equals(fieldName)) { - deserializedNetAppAccountPatch.innerProperties = AccountPropertiesPatch.fromJson(reader); + deserializedNetAppAccountPatch.innerProperties = AccountProperties.fromJson(reader); } else if ("identity".equals(fieldName)) { deserializedNetAppAccountPatch.identity = ManagedServiceIdentity.fromJson(reader); } else { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OriginClusterInformation.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OriginClusterInformation.java index 9ccd09d0cc5b..49208c19773a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OriginClusterInformation.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OriginClusterInformation.java @@ -19,7 +19,7 @@ @Fluent public final class OriginClusterInformation implements JsonSerializable { /* - * ONTAP cluster name of external cluster hosting the origin volume + * ONTAP cluster name of external cluster hosting the origin volume. Must match the exact cluster name. */ private String peerClusterName; @@ -45,7 +45,8 @@ public OriginClusterInformation() { } /** - * Get the peerClusterName property: ONTAP cluster name of external cluster hosting the origin volume. + * Get the peerClusterName property: ONTAP cluster name of external cluster hosting the origin volume. Must match + * the exact cluster name. * * @return the peerClusterName value. */ @@ -54,7 +55,8 @@ public String peerClusterName() { } /** - * Set the peerClusterName property: ONTAP cluster name of external cluster hosting the origin volume. + * Set the peerClusterName property: ONTAP cluster name of external cluster hosting the origin volume. Must match + * the exact cluster name. * * @param peerClusterName the peerClusterName value to set. * @return the OriginClusterInformation object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PolicyStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PolicyStatus.java deleted file mode 100644 index f787817200bd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PolicyStatus.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Policy status. - */ -public final class PolicyStatus extends ExpandableStringEnum { - /** - * Value indicating the policy is enabled. - */ - public static final PolicyStatus ENABLED = fromString("Enabled"); - - /** - * Value indicating the policy is disabled. - */ - public static final PolicyStatus DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of PolicyStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public PolicyStatus() { - } - - /** - * Creates or finds a PolicyStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding PolicyStatus. - */ - public static PolicyStatus fromString(String name) { - return fromString(name, PolicyStatus.class); - } - - /** - * Gets known PolicyStatus values. - * - * @return known PolicyStatus values. - */ - public static Collection values() { - return values(PolicyStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPassword.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPassword.java deleted file mode 100644 index c8074d6214cd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPassword.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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Access password from Azure KeyVault Secrets to connect Active Directory. - */ -@Fluent -public final class SecretPassword implements JsonSerializable { - /* - * Properties provided by KeyVault. - */ - private SecretPasswordKeyVaultProperties keyVaultProperties; - - /* - * Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'. - */ - private SecretPasswordIdentity identity; - - /** - * Creates an instance of SecretPassword class. - */ - public SecretPassword() { - } - - /** - * Get the keyVaultProperties property: Properties provided by KeyVault. - * - * @return the keyVaultProperties value. - */ - public SecretPasswordKeyVaultProperties keyVaultProperties() { - return this.keyVaultProperties; - } - - /** - * Set the keyVaultProperties property: Properties provided by KeyVault. - * - * @param keyVaultProperties the keyVaultProperties value to set. - * @return the SecretPassword object itself. - */ - public SecretPassword withKeyVaultProperties(SecretPasswordKeyVaultProperties keyVaultProperties) { - this.keyVaultProperties = keyVaultProperties; - return this; - } - - /** - * Get the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is - * 'Microsoft.KeyVault'. - * - * @return the identity value. - */ - public SecretPasswordIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is - * 'Microsoft.KeyVault'. - * - * @param identity the identity value to set. - * @return the SecretPassword object itself. - */ - public SecretPassword withIdentity(SecretPasswordIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (keyVaultProperties() != null) { - keyVaultProperties().validate(); - } - if (identity() != null) { - identity().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("keyVaultProperties", this.keyVaultProperties); - jsonWriter.writeJsonField("identity", this.identity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SecretPassword from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SecretPassword 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 SecretPassword. - */ - public static SecretPassword fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SecretPassword deserializedSecretPassword = new SecretPassword(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("keyVaultProperties".equals(fieldName)) { - deserializedSecretPassword.keyVaultProperties = SecretPasswordKeyVaultProperties.fromJson(reader); - } else if ("identity".equals(fieldName)) { - deserializedSecretPassword.identity = SecretPasswordIdentity.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedSecretPassword; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordIdentity.java deleted file mode 100644 index 142d0abf11dd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordIdentity.java +++ /dev/null @@ -1,115 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Identity used to authenticate with key vault. - */ -@Fluent -public final class SecretPasswordIdentity implements JsonSerializable { - /* - * The principal ID (object ID) of the identity used to authenticate with key vault. Read-only. - */ - private String principalId; - - /* - * The Azure resource identifier of the user assigned identity used to authenticate with key vault. Applicable if - * identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. - */ - private String userAssignedIdentity; - - /** - * Creates an instance of SecretPasswordIdentity class. - */ - public SecretPasswordIdentity() { - } - - /** - * Get the principalId property: The principal ID (object ID) of the identity used to authenticate with key vault. - * Read-only. - * - * @return the principalId value. - */ - public String principalId() { - return this.principalId; - } - - /** - * Get the userAssignedIdentity property: The Azure resource identifier of the user assigned identity used to - * authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of - * identity.userAssignedIdentities. - * - * @return the userAssignedIdentity value. - */ - public String userAssignedIdentity() { - return this.userAssignedIdentity; - } - - /** - * Set the userAssignedIdentity property: The Azure resource identifier of the user assigned identity used to - * authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of - * identity.userAssignedIdentities. - * - * @param userAssignedIdentity the userAssignedIdentity value to set. - * @return the SecretPasswordIdentity object itself. - */ - public SecretPasswordIdentity withUserAssignedIdentity(String userAssignedIdentity) { - this.userAssignedIdentity = userAssignedIdentity; - return this; - } - - /** - * 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("userAssignedIdentity", this.userAssignedIdentity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SecretPasswordIdentity from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SecretPasswordIdentity 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 SecretPasswordIdentity. - */ - public static SecretPasswordIdentity fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SecretPasswordIdentity deserializedSecretPasswordIdentity = new SecretPasswordIdentity(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("principalId".equals(fieldName)) { - deserializedSecretPasswordIdentity.principalId = reader.getString(); - } else if ("userAssignedIdentity".equals(fieldName)) { - deserializedSecretPasswordIdentity.userAssignedIdentity = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedSecretPasswordIdentity; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordKeyVaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordKeyVaultProperties.java deleted file mode 100644 index d61ec62ff020..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordKeyVaultProperties.java +++ /dev/null @@ -1,136 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Properties of key vault to get the secrets for password. - */ -@Fluent -public final class SecretPasswordKeyVaultProperties implements JsonSerializable { - /* - * The Uri of KeyVault. - */ - private String keyVaultUri; - - /* - * The name of KeyVault password secret. - */ - private String secretName; - - /** - * Creates an instance of SecretPasswordKeyVaultProperties class. - */ - public SecretPasswordKeyVaultProperties() { - } - - /** - * Get the keyVaultUri property: The Uri of KeyVault. - * - * @return the keyVaultUri value. - */ - public String keyVaultUri() { - return this.keyVaultUri; - } - - /** - * Set the keyVaultUri property: The Uri of KeyVault. - * - * @param keyVaultUri the keyVaultUri value to set. - * @return the SecretPasswordKeyVaultProperties object itself. - */ - public SecretPasswordKeyVaultProperties withKeyVaultUri(String keyVaultUri) { - this.keyVaultUri = keyVaultUri; - return this; - } - - /** - * Get the secretName property: The name of KeyVault password secret. - * - * @return the secretName value. - */ - public String secretName() { - return this.secretName; - } - - /** - * Set the secretName property: The name of KeyVault password secret. - * - * @param secretName the secretName value to set. - * @return the SecretPasswordKeyVaultProperties object itself. - */ - public SecretPasswordKeyVaultProperties withSecretName(String secretName) { - this.secretName = secretName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (keyVaultUri() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property keyVaultUri in model SecretPasswordKeyVaultProperties")); - } - if (secretName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property secretName in model SecretPasswordKeyVaultProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SecretPasswordKeyVaultProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("keyVaultUri", this.keyVaultUri); - jsonWriter.writeStringField("secretName", this.secretName); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SecretPasswordKeyVaultProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SecretPasswordKeyVaultProperties 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 SecretPasswordKeyVaultProperties. - */ - public static SecretPasswordKeyVaultProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SecretPasswordKeyVaultProperties deserializedSecretPasswordKeyVaultProperties - = new SecretPasswordKeyVaultProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("keyVaultUri".equals(fieldName)) { - deserializedSecretPasswordKeyVaultProperties.keyVaultUri = reader.getString(); - } else if ("secretName".equals(fieldName)) { - deserializedSecretPasswordKeyVaultProperties.secretName = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedSecretPasswordKeyVaultProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotDirectoryVisibility.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotDirectoryVisibility.java deleted file mode 100644 index ea3a485321db..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotDirectoryVisibility.java +++ /dev/null @@ -1,52 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Controls the visibility of the Elastic Volume's read-only snapshot directory, which provides access to each of the - * volume's snapshots. - */ -public final class SnapshotDirectoryVisibility extends ExpandableStringEnum { - /** - * Value indicating the read-only snapshot directory is not visible. - */ - public static final SnapshotDirectoryVisibility HIDDEN = fromString("Hidden"); - - /** - * Value indicating the read-only snapshot directory is visible. - */ - public static final SnapshotDirectoryVisibility VISIBLE = fromString("Visible"); - - /** - * Creates a new instance of SnapshotDirectoryVisibility value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public SnapshotDirectoryVisibility() { - } - - /** - * Creates or finds a SnapshotDirectoryVisibility from its string representation. - * - * @param name a name to look for. - * @return the corresponding SnapshotDirectoryVisibility. - */ - public static SnapshotDirectoryVisibility fromString(String name) { - return fromString(name, SnapshotDirectoryVisibility.class); - } - - /** - * Gets known SnapshotDirectoryVisibility values. - * - * @return known SnapshotDirectoryVisibility values. - */ - public static Collection values() { - return values(SnapshotDirectoryVisibility.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotUsage.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotUsage.java deleted file mode 100644 index 54786c233ec7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotUsage.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Snapshot usage for backup. - */ -public final class SnapshotUsage extends ExpandableStringEnum { - /** - * Value indicating an existing snapshot is used. - */ - public static final SnapshotUsage USE_EXISTING_SNAPSHOT = fromString("UseExistingSnapshot"); - - /** - * Value indicating a new snapshot is created. - */ - public static final SnapshotUsage CREATE_NEW_SNAPSHOT = fromString("CreateNewSnapshot"); - - /** - * Creates a new instance of SnapshotUsage value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public SnapshotUsage() { - } - - /** - * Creates or finds a SnapshotUsage from its string representation. - * - * @param name a name to look for. - * @return the corresponding SnapshotUsage. - */ - public static SnapshotUsage fromString(String name) { - return fromString(name, SnapshotUsage.class); - } - - /** - * Gets known SnapshotUsage values. - * - * @return known SnapshotUsage values. - */ - public static Collection values() { - return values(SnapshotUsage.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java index 36ec7eb50a76..698fab268a74 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java @@ -11,12 +11,11 @@ */ public interface SvmPeerCommandResponse { /** - * Gets the svmPeeringCommand property: A command that needs to be run on the external ONTAP to accept svm peering. - * Will only be present if <code>svmPeeringStatus</code> is <code>pending</code>. + * Gets the properties property: Represents the properties of the SVM peer command response. * - * @return the svmPeeringCommand value. + * @return the properties value. */ - String svmPeeringCommand(); + SvmPeerCommandResponseProperties properties(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner object. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponseProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponseProperties.java new file mode 100644 index 000000000000..d8806bdc176d --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponseProperties.java @@ -0,0 +1,85 @@ +// 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.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 java.io.IOException; + +/** + * Properties of the SVM peer command response. + */ +@Immutable +public final class SvmPeerCommandResponseProperties implements JsonSerializable { + /* + * A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if + * svmPeeringStatus is pending + */ + private String svmPeeringCommand; + + /** + * Creates an instance of SvmPeerCommandResponseProperties class. + */ + private SvmPeerCommandResponseProperties() { + } + + /** + * Get the svmPeeringCommand property: A command that needs to be run on the external ONTAP to accept svm peering. + * Will only be present if <code>svmPeeringStatus</code> is <code>pending</code>. + * + * @return the svmPeeringCommand value. + */ + public String svmPeeringCommand() { + return this.svmPeeringCommand; + } + + /** + * 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("svmPeeringCommand", this.svmPeeringCommand); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SvmPeerCommandResponseProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SvmPeerCommandResponseProperties 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 SvmPeerCommandResponseProperties. + */ + public static SvmPeerCommandResponseProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SvmPeerCommandResponseProperties deserializedSvmPeerCommandResponseProperties + = new SvmPeerCommandResponseProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("svmPeeringCommand".equals(fieldName)) { + deserializedSvmPeerCommandResponseProperties.svmPeeringCommand = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSvmPeerCommandResponseProperties; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java index d1f0405e18aa..41769afffafc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java @@ -98,11 +98,9 @@ public interface Volume { /** * Gets 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. */ @@ -333,13 +331,6 @@ public interface Volume { */ Boolean ldapEnabled(); - /** - * Gets the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @return the ldapServerType value. - */ - LdapServerType ldapServerType(); - /** * Gets the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -526,17 +517,6 @@ public interface Volume { */ Boolean isLargeVolume(); - /** - * Gets 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. - */ - LargeVolumeType largeVolumeType(); - /** * Gets the originatingResourceId property: Id of the snapshot or backup that the volume is restored from. * @@ -551,20 +531,6 @@ public interface Volume { */ Long inheritedSizeInBytes(); - /** - * Gets the language property: Language supported for volume. - * - * @return the language value. - */ - VolumeLanguage language(); - - /** - * Gets the breakthroughMode property: Specifies whether the volume operates in Breakthrough Mode. - * - * @return the breakthroughMode value. - */ - BreakthroughMode breakthroughMode(); - /** * Gets the region of the resource. * @@ -669,16 +635,12 @@ interface WithUsageThreshold { * Specifies 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.. + * 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.. * * @param usageThreshold 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. + * 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 next definition stage. */ WithSubnetId withUsageThreshold(long usageThreshold); @@ -713,15 +675,14 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithZon DefinitionStages.WithSmbAccessBasedEnumeration, DefinitionStages.WithSmbNonBrowsable, DefinitionStages.WithSmbContinuouslyAvailable, DefinitionStages.WithThroughputMibps, DefinitionStages.WithEncryptionKeySource, DefinitionStages.WithKeyVaultPrivateEndpointResourceId, - DefinitionStages.WithLdapEnabled, DefinitionStages.WithLdapServerType, DefinitionStages.WithCoolAccess, - DefinitionStages.WithCoolnessPeriod, DefinitionStages.WithCoolAccessRetrievalPolicy, - DefinitionStages.WithCoolAccessTieringPolicy, DefinitionStages.WithUnixPermissions, - DefinitionStages.WithAvsDataStore, DefinitionStages.WithIsDefaultQuotaEnabled, - DefinitionStages.WithDefaultUserQuotaInKiBs, DefinitionStages.WithDefaultGroupQuotaInKiBs, - DefinitionStages.WithCapacityPoolResourceId, DefinitionStages.WithProximityPlacementGroup, - DefinitionStages.WithVolumeSpecName, DefinitionStages.WithPlacementRules, - DefinitionStages.WithEnableSubvolumes, DefinitionStages.WithIsLargeVolume, - DefinitionStages.WithLargeVolumeType, DefinitionStages.WithLanguage, DefinitionStages.WithBreakthroughMode { + DefinitionStages.WithLdapEnabled, DefinitionStages.WithCoolAccess, DefinitionStages.WithCoolnessPeriod, + DefinitionStages.WithCoolAccessRetrievalPolicy, DefinitionStages.WithCoolAccessTieringPolicy, + DefinitionStages.WithUnixPermissions, DefinitionStages.WithAvsDataStore, + DefinitionStages.WithIsDefaultQuotaEnabled, DefinitionStages.WithDefaultUserQuotaInKiBs, + DefinitionStages.WithDefaultGroupQuotaInKiBs, DefinitionStages.WithCapacityPoolResourceId, + DefinitionStages.WithProximityPlacementGroup, DefinitionStages.WithVolumeSpecName, + DefinitionStages.WithPlacementRules, DefinitionStages.WithEnableSubvolumes, + DefinitionStages.WithIsLargeVolume { /** * Executes the create request. * @@ -1075,19 +1036,6 @@ interface WithLdapEnabled { WithCreate withLdapEnabled(Boolean ldapEnabled); } - /** - * The stage of the Volume definition allowing to specify ldapServerType. - */ - interface WithLdapServerType { - /** - * Specifies the ldapServerType property: Specifies the type of LDAP server for a given NFS volume.. - * - * @param ldapServerType Specifies the type of LDAP server for a given NFS volume. - * @return the next definition stage. - */ - WithCreate withLdapServerType(LdapServerType ldapServerType); - } - /** * The stage of the Volume definition allowing to specify coolAccess. */ @@ -1324,53 +1272,6 @@ interface WithIsLargeVolume { */ WithCreate withIsLargeVolume(Boolean isLargeVolume); } - - /** - * The stage of the Volume definition allowing to specify largeVolumeType. - */ - interface WithLargeVolumeType { - /** - * Specifies 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 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 next definition stage. - */ - WithCreate withLargeVolumeType(LargeVolumeType largeVolumeType); - } - - /** - * The stage of the Volume definition allowing to specify language. - */ - interface WithLanguage { - /** - * Specifies the language property: Language supported for volume.. - * - * @param language Language supported for volume. - * @return the next definition stage. - */ - WithCreate withLanguage(VolumeLanguage language); - } - - /** - * The stage of the Volume definition allowing to specify breakthroughMode. - */ - interface WithBreakthroughMode { - /** - * Specifies the breakthroughMode property: Specifies whether the volume operates in Breakthrough Mode.. - * - * @param breakthroughMode Specifies whether the volume operates in Breakthrough Mode. - * @return the next definition stage. - */ - WithCreate withBreakthroughMode(BreakthroughMode breakthroughMode); - } } /** @@ -1445,16 +1346,12 @@ interface WithUsageThreshold { * Specifies 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.. + * 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.. * * @param usageThreshold 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. + * 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 next definition stage. */ Update withUsageThreshold(Long usageThreshold); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java index d8076515c82c..f78f779f1c15 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java @@ -200,11 +200,9 @@ public VolumeGroupVolumeProperties 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. */ @@ -214,11 +212,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 VolumeGroupVolumeProperties object itself. @@ -833,29 +829,6 @@ public VolumeGroupVolumeProperties 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 VolumeGroupVolumeProperties object itself. - */ - public VolumeGroupVolumeProperties 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. * @@ -1316,37 +1289,6 @@ public VolumeGroupVolumeProperties 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 VolumeGroupVolumeProperties object itself. - */ - public VolumeGroupVolumeProperties 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. * @@ -1365,52 +1307,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 VolumeGroupVolumeProperties object itself. - */ - public VolumeGroupVolumeProperties 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. - * - * @return the breakthroughMode value. - */ - public BreakthroughMode breakthroughMode() { - return this.innerProperties() == null ? null : this.innerProperties().breakthroughMode(); - } - - /** - * Set the breakthroughMode property: Specifies whether the volume operates in Breakthrough Mode. - * - * @param breakthroughMode the breakthroughMode value to set. - * @return the VolumeGroupVolumeProperties object itself. - */ - public VolumeGroupVolumeProperties withBreakthroughMode(BreakthroughMode breakthroughMode) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withBreakthroughMode(breakthroughMode); - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java index 1550c3dc8ec5..d9b8f7747497 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java @@ -156,11 +156,9 @@ public VolumePatch 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. */ @@ -170,11 +168,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 VolumePatch object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSize.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSize.java deleted file mode 100644 index be50c34ba00d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSize.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Volume size for backup. - */ -public final class VolumeSize extends ExpandableStringEnum { - /** - * Value indicating backup is for a large volume. - */ - public static final VolumeSize LARGE = fromString("Large"); - - /** - * Value indicating backup is not for a large volume. - */ - public static final VolumeSize REGULAR = fromString("Regular"); - - /** - * Creates a new instance of VolumeSize value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public VolumeSize() { - } - - /** - * Creates or finds a VolumeSize from its string representation. - * - * @param name a name to look for. - * @return the corresponding VolumeSize. - */ - public static VolumeSize fromString(String name) { - return fromString(name, VolumeSize.class); - } - - /** - * Gets known VolumeSize values. - * - * @return known VolumeSize values. - */ - public static Collection values() { - return values(VolumeSize.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json index 5c6da968d2a4..f6c4f331ad61 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.NetApp":"2025-12-15-preview"},"crossLanguageDefinitions":{"com.azure.resourcemanager.netapp.fluent.AccountsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginChangeKeyVault":"Microsoft.NetApp.NetAppAccounts.changeKeyVault","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginCreateOrUpdate":"Microsoft.NetApp.NetAppAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginDelete":"Microsoft.NetApp.NetAppAccounts.delete","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginGetChangeKeyVaultInformation":"Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginRenewCredentials":"Microsoft.NetApp.NetAppAccounts.renewCredentials","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginTransitionToCmk":"Microsoft.NetApp.NetAppAccounts.transitionToCmk","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginUpdate":"Microsoft.NetApp.NetAppAccounts.update","com.azure.resourcemanager.netapp.fluent.AccountsClient.changeKeyVault":"Microsoft.NetApp.NetAppAccounts.changeKeyVault","com.azure.resourcemanager.netapp.fluent.AccountsClient.createOrUpdate":"Microsoft.NetApp.NetAppAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.AccountsClient.delete":"Microsoft.NetApp.NetAppAccounts.delete","com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroup":"Microsoft.NetApp.NetAppAccounts.get","com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroupWithResponse":"Microsoft.NetApp.NetAppAccounts.get","com.azure.resourcemanager.netapp.fluent.AccountsClient.getChangeKeyVaultInformation":"Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation","com.azure.resourcemanager.netapp.fluent.AccountsClient.list":"Microsoft.NetApp.NetAppAccounts.listBySubscription","com.azure.resourcemanager.netapp.fluent.AccountsClient.listByResourceGroup":"Microsoft.NetApp.NetAppAccounts.list","com.azure.resourcemanager.netapp.fluent.AccountsClient.renewCredentials":"Microsoft.NetApp.NetAppAccounts.renewCredentials","com.azure.resourcemanager.netapp.fluent.AccountsClient.transitionToCmk":"Microsoft.NetApp.NetAppAccounts.transitionToCmk","com.azure.resourcemanager.netapp.fluent.AccountsClient.update":"Microsoft.NetApp.NetAppAccounts.update","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient":"Microsoft.NetApp.ActiveDirectoryConfigs","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.beginCreateOrUpdate":"Microsoft.NetApp.ActiveDirectoryConfigs.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.beginDelete":"Microsoft.NetApp.ActiveDirectoryConfigs.delete","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.beginUpdate":"Microsoft.NetApp.ActiveDirectoryConfigs.update","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.createOrUpdate":"Microsoft.NetApp.ActiveDirectoryConfigs.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.delete":"Microsoft.NetApp.ActiveDirectoryConfigs.delete","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.getByResourceGroup":"Microsoft.NetApp.ActiveDirectoryConfigs.get","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.getByResourceGroupWithResponse":"Microsoft.NetApp.ActiveDirectoryConfigs.get","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.list":"Microsoft.NetApp.ActiveDirectoryConfigs.listBySubscription","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.listByResourceGroup":"Microsoft.NetApp.ActiveDirectoryConfigs.listByResourceGroup","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.update":"Microsoft.NetApp.ActiveDirectoryConfigs.update","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient":"Microsoft.NetApp.BackupPolicies","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginCreate":"Microsoft.NetApp.BackupPolicies.create","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginDelete":"Microsoft.NetApp.BackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginUpdate":"Microsoft.NetApp.BackupPolicies.update","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.create":"Microsoft.NetApp.BackupPolicies.create","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.delete":"Microsoft.NetApp.BackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.get":"Microsoft.NetApp.BackupPolicies.get","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.getWithResponse":"Microsoft.NetApp.BackupPolicies.get","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.list":"Microsoft.NetApp.BackupPolicies.list","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.update":"Microsoft.NetApp.BackupPolicies.update","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient":"Microsoft.NetApp.BackupVaults","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginCreateOrUpdate":"Microsoft.NetApp.BackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginDelete":"Microsoft.NetApp.BackupVaults.delete","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginUpdate":"Microsoft.NetApp.BackupVaults.update","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.createOrUpdate":"Microsoft.NetApp.BackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.delete":"Microsoft.NetApp.BackupVaults.delete","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.get":"Microsoft.NetApp.BackupVaults.get","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.getWithResponse":"Microsoft.NetApp.BackupVaults.get","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.listByNetAppAccount":"Microsoft.NetApp.BackupVaults.listByNetAppAccount","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.update":"Microsoft.NetApp.BackupVaults.update","com.azure.resourcemanager.netapp.fluent.BackupsClient":"Microsoft.NetApp.Backups","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginCreate":"Microsoft.NetApp.Backups.create","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginDelete":"Microsoft.NetApp.Backups.delete","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginUpdate":"Microsoft.NetApp.Backups.update","com.azure.resourcemanager.netapp.fluent.BackupsClient.create":"Microsoft.NetApp.Backups.create","com.azure.resourcemanager.netapp.fluent.BackupsClient.delete":"Microsoft.NetApp.Backups.delete","com.azure.resourcemanager.netapp.fluent.BackupsClient.get":"Microsoft.NetApp.Backups.get","com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatus":"Microsoft.NetApp.Volumes.getLatestStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatusWithResponse":"Microsoft.NetApp.Volumes.getLatestStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatus":"Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatusWithResponse":"Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getWithResponse":"Microsoft.NetApp.Backups.get","com.azure.resourcemanager.netapp.fluent.BackupsClient.listByVault":"Microsoft.NetApp.Backups.listByVault","com.azure.resourcemanager.netapp.fluent.BackupsClient.update":"Microsoft.NetApp.Backups.update","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.beginMigrateBackups":"Microsoft.NetApp.NetAppAccounts.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.migrateBackups":"Microsoft.NetApp.NetAppAccounts.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.beginRestoreFiles":"Microsoft.NetApp.Backups.restoreFiles","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.restoreFiles":"Microsoft.NetApp.Backups.restoreFiles","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.beginMigrateBackups":"Microsoft.NetApp.Volumes.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.migrateBackups":"Microsoft.NetApp.Volumes.migrateBackups","com.azure.resourcemanager.netapp.fluent.BucketsClient":"Microsoft.NetApp.Buckets","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginCreateOrUpdate":"Microsoft.NetApp.Buckets.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginDelete":"Microsoft.NetApp.Buckets.delete","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginGenerateAkvCredentials":"Microsoft.NetApp.Buckets.generateAkvCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginRefreshCertificate":"Microsoft.NetApp.Buckets.refreshCertificate","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginUpdate":"Microsoft.NetApp.Buckets.update","com.azure.resourcemanager.netapp.fluent.BucketsClient.createOrUpdate":"Microsoft.NetApp.Buckets.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BucketsClient.delete":"Microsoft.NetApp.Buckets.delete","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateAkvCredentials":"Microsoft.NetApp.Buckets.generateAkvCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateCredentials":"Microsoft.NetApp.Buckets.generateCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateCredentialsWithResponse":"Microsoft.NetApp.Buckets.generateCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.get":"Microsoft.NetApp.Buckets.get","com.azure.resourcemanager.netapp.fluent.BucketsClient.getWithResponse":"Microsoft.NetApp.Buckets.get","com.azure.resourcemanager.netapp.fluent.BucketsClient.list":"Microsoft.NetApp.Buckets.list","com.azure.resourcemanager.netapp.fluent.BucketsClient.refreshCertificate":"Microsoft.NetApp.Buckets.refreshCertificate","com.azure.resourcemanager.netapp.fluent.BucketsClient.update":"Microsoft.NetApp.Buckets.update","com.azure.resourcemanager.netapp.fluent.CachesClient":"Microsoft.NetApp.Caches","com.azure.resourcemanager.netapp.fluent.CachesClient.beginCreateOrUpdate":"Microsoft.NetApp.Caches.createOrUpdate","com.azure.resourcemanager.netapp.fluent.CachesClient.beginDelete":"Microsoft.NetApp.Caches.delete","com.azure.resourcemanager.netapp.fluent.CachesClient.beginPoolChange":"Microsoft.NetApp.Caches.poolChange","com.azure.resourcemanager.netapp.fluent.CachesClient.beginResetSmbPassword":"Microsoft.NetApp.Caches.resetSmbPassword","com.azure.resourcemanager.netapp.fluent.CachesClient.beginUpdate":"Microsoft.NetApp.Caches.update","com.azure.resourcemanager.netapp.fluent.CachesClient.createOrUpdate":"Microsoft.NetApp.Caches.createOrUpdate","com.azure.resourcemanager.netapp.fluent.CachesClient.delete":"Microsoft.NetApp.Caches.delete","com.azure.resourcemanager.netapp.fluent.CachesClient.get":"Microsoft.NetApp.Caches.get","com.azure.resourcemanager.netapp.fluent.CachesClient.getWithResponse":"Microsoft.NetApp.Caches.get","com.azure.resourcemanager.netapp.fluent.CachesClient.listByCapacityPools":"Microsoft.NetApp.Caches.listByCapacityPools","com.azure.resourcemanager.netapp.fluent.CachesClient.listPeeringPassphrases":"Microsoft.NetApp.Caches.listPeeringPassphrases","com.azure.resourcemanager.netapp.fluent.CachesClient.listPeeringPassphrasesWithResponse":"Microsoft.NetApp.Caches.listPeeringPassphrases","com.azure.resourcemanager.netapp.fluent.CachesClient.poolChange":"Microsoft.NetApp.Caches.poolChange","com.azure.resourcemanager.netapp.fluent.CachesClient.resetSmbPassword":"Microsoft.NetApp.Caches.resetSmbPassword","com.azure.resourcemanager.netapp.fluent.CachesClient.update":"Microsoft.NetApp.Caches.update","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient":"Microsoft.NetApp.ElasticAccounts","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.beginDelete":"Microsoft.NetApp.ElasticAccounts.delete","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.beginUpdate":"Microsoft.NetApp.ElasticAccounts.update","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.createOrUpdate":"Microsoft.NetApp.ElasticAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.delete":"Microsoft.NetApp.ElasticAccounts.delete","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.getByResourceGroup":"Microsoft.NetApp.ElasticAccounts.get","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.getByResourceGroupWithResponse":"Microsoft.NetApp.ElasticAccounts.get","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.list":"Microsoft.NetApp.ElasticAccounts.listBySubscription","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.listByResourceGroup":"Microsoft.NetApp.ElasticAccounts.listByResourceGroup","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.update":"Microsoft.NetApp.ElasticAccounts.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient":"Microsoft.NetApp.ElasticBackupPolicies","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticBackupPolicies.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.beginDelete":"Microsoft.NetApp.ElasticBackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.beginUpdate":"Microsoft.NetApp.ElasticBackupPolicies.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.createOrUpdate":"Microsoft.NetApp.ElasticBackupPolicies.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.delete":"Microsoft.NetApp.ElasticBackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.get":"Microsoft.NetApp.ElasticBackupPolicies.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.getWithResponse":"Microsoft.NetApp.ElasticBackupPolicies.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.listByElasticAccount":"Microsoft.NetApp.ElasticBackupPolicies.listByElasticAccount","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.update":"Microsoft.NetApp.ElasticBackupPolicies.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient":"Microsoft.NetApp.ElasticBackupVaults","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticBackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.beginDelete":"Microsoft.NetApp.ElasticBackupVaults.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.beginUpdate":"Microsoft.NetApp.ElasticBackupVaults.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.createOrUpdate":"Microsoft.NetApp.ElasticBackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.delete":"Microsoft.NetApp.ElasticBackupVaults.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.get":"Microsoft.NetApp.ElasticBackupVaults.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.getWithResponse":"Microsoft.NetApp.ElasticBackupVaults.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.listByElasticAccount":"Microsoft.NetApp.ElasticBackupVaults.listByElasticAccount","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.update":"Microsoft.NetApp.ElasticBackupVaults.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient":"Microsoft.NetApp.ElasticBackups","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticBackups.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.beginDelete":"Microsoft.NetApp.ElasticBackups.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.beginUpdate":"Microsoft.NetApp.ElasticBackups.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.createOrUpdate":"Microsoft.NetApp.ElasticBackups.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.delete":"Microsoft.NetApp.ElasticBackups.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.get":"Microsoft.NetApp.ElasticBackups.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.getWithResponse":"Microsoft.NetApp.ElasticBackups.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.listByVault":"Microsoft.NetApp.ElasticBackups.listByVault","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.update":"Microsoft.NetApp.ElasticBackups.update","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient":"Microsoft.NetApp.ElasticCapacityPools","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.beginChangeZone":"Microsoft.NetApp.ElasticCapacityPools.changeZone","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticCapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.beginDelete":"Microsoft.NetApp.ElasticCapacityPools.delete","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.beginUpdate":"Microsoft.NetApp.ElasticCapacityPools.update","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.changeZone":"Microsoft.NetApp.ElasticCapacityPools.changeZone","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.checkVolumeFilePathAvailability":"Microsoft.NetApp.ElasticCapacityPools.checkVolumeFilePathAvailability","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.checkVolumeFilePathAvailabilityWithResponse":"Microsoft.NetApp.ElasticCapacityPools.checkVolumeFilePathAvailability","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.createOrUpdate":"Microsoft.NetApp.ElasticCapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.delete":"Microsoft.NetApp.ElasticCapacityPools.delete","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.get":"Microsoft.NetApp.ElasticCapacityPools.get","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.getWithResponse":"Microsoft.NetApp.ElasticCapacityPools.get","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.listByElasticAccount":"Microsoft.NetApp.ElasticCapacityPools.listByElasticAccount","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.update":"Microsoft.NetApp.ElasticCapacityPools.update","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient":"Microsoft.NetApp.ElasticSnapshotPolicies","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticSnapshotPolicies.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.beginDelete":"Microsoft.NetApp.ElasticSnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.beginUpdate":"Microsoft.NetApp.ElasticSnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.createOrUpdate":"Microsoft.NetApp.ElasticSnapshotPolicies.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.delete":"Microsoft.NetApp.ElasticSnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.get":"Microsoft.NetApp.ElasticSnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.getWithResponse":"Microsoft.NetApp.ElasticSnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.listByElasticAccount":"Microsoft.NetApp.ElasticSnapshotPolicies.listByElasticAccount","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.listElasticVolumes":"Microsoft.NetApp.ElasticSnapshotPolicies.listElasticVolumes","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.update":"Microsoft.NetApp.ElasticSnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient":"Microsoft.NetApp.ElasticSnapshots","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticSnapshots.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.beginDelete":"Microsoft.NetApp.ElasticSnapshots.delete","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.createOrUpdate":"Microsoft.NetApp.ElasticSnapshots.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.delete":"Microsoft.NetApp.ElasticSnapshots.delete","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.get":"Microsoft.NetApp.ElasticSnapshots.get","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.getWithResponse":"Microsoft.NetApp.ElasticSnapshots.get","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.listByElasticVolume":"Microsoft.NetApp.ElasticSnapshots.listByElasticVolume","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient":"Microsoft.NetApp.ElasticVolumes","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticVolumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.beginDelete":"Microsoft.NetApp.ElasticVolumes.delete","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.beginRevert":"Microsoft.NetApp.ElasticVolumes.revert","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.beginUpdate":"Microsoft.NetApp.ElasticVolumes.update","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.createOrUpdate":"Microsoft.NetApp.ElasticVolumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.delete":"Microsoft.NetApp.ElasticVolumes.delete","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.get":"Microsoft.NetApp.ElasticVolumes.get","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.getWithResponse":"Microsoft.NetApp.ElasticVolumes.get","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.listByElasticPool":"Microsoft.NetApp.ElasticVolumes.listByElasticPool","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.revert":"Microsoft.NetApp.ElasticVolumes.revert","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.update":"Microsoft.NetApp.ElasticVolumes.update","com.azure.resourcemanager.netapp.fluent.NetAppManagementClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.get":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.getWithResponse":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.list":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.get":"Microsoft.NetApp.SubscriptionQuotaItems.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.getWithResponse":"Microsoft.NetApp.SubscriptionQuotaItems.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.list":"Microsoft.NetApp.SubscriptionQuotaItems.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.get":"Microsoft.NetApp.RegionInfoResources.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.getWithResponse":"Microsoft.NetApp.RegionInfoResources.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.list":"Microsoft.NetApp.RegionInfoResources.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.get":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.getWithResponse":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.list":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.list","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.beginUpdateNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSetWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfo":"Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfoWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.updateNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.OperationsClient":"Microsoft.NetApp.Operations","com.azure.resourcemanager.netapp.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.netapp.fluent.PoolsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginCreateOrUpdate":"Microsoft.NetApp.CapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginDelete":"Microsoft.NetApp.CapacityPools.delete","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginUpdate":"Microsoft.NetApp.CapacityPools.update","com.azure.resourcemanager.netapp.fluent.PoolsClient.createOrUpdate":"Microsoft.NetApp.CapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.PoolsClient.delete":"Microsoft.NetApp.CapacityPools.delete","com.azure.resourcemanager.netapp.fluent.PoolsClient.get":"Microsoft.NetApp.CapacityPools.get","com.azure.resourcemanager.netapp.fluent.PoolsClient.getWithResponse":"Microsoft.NetApp.CapacityPools.get","com.azure.resourcemanager.netapp.fluent.PoolsClient.list":"Microsoft.NetApp.CapacityPools.list","com.azure.resourcemanager.netapp.fluent.PoolsClient.update":"Microsoft.NetApp.CapacityPools.update","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient":"Microsoft.NetApp.RansomwareReports","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.beginClearSuspects":"Microsoft.NetApp.RansomwareReports.clearSuspects","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.clearSuspects":"Microsoft.NetApp.RansomwareReports.clearSuspects","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.get":"Microsoft.NetApp.RansomwareReports.get","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.getWithResponse":"Microsoft.NetApp.RansomwareReports.get","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.list":"Microsoft.NetApp.RansomwareReports.list","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient":"Microsoft.NetApp.SnapshotPolicies","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginDelete":"Microsoft.NetApp.SnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginUpdate":"Microsoft.NetApp.SnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.create":"Microsoft.NetApp.SnapshotPolicies.create","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.createWithResponse":"Microsoft.NetApp.SnapshotPolicies.create","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.delete":"Microsoft.NetApp.SnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.get":"Microsoft.NetApp.SnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.getWithResponse":"Microsoft.NetApp.SnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.list":"Microsoft.NetApp.SnapshotPolicies.list","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumes":"Microsoft.NetApp.SnapshotPolicies.listVolumes","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumesWithResponse":"Microsoft.NetApp.SnapshotPolicies.listVolumes","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.update":"Microsoft.NetApp.SnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.SnapshotsClient":"Microsoft.NetApp.Snapshots","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginCreate":"Microsoft.NetApp.Snapshots.create","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginDelete":"Microsoft.NetApp.Snapshots.delete","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginRestoreFiles":"Microsoft.NetApp.Snapshots.restoreFiles","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.create":"Microsoft.NetApp.Snapshots.create","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.delete":"Microsoft.NetApp.Snapshots.delete","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.get":"Microsoft.NetApp.Snapshots.get","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.getWithResponse":"Microsoft.NetApp.Snapshots.get","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.list":"Microsoft.NetApp.Snapshots.list","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.restoreFiles":"Microsoft.NetApp.Snapshots.restoreFiles","com.azure.resourcemanager.netapp.fluent.SubvolumesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginCreate":"Microsoft.NetApp.SubvolumeInfos.create","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginDelete":"Microsoft.NetApp.SubvolumeInfos.delete","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginGetMetadata":"Microsoft.NetApp.SubvolumeInfos.getMetadata","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginUpdate":"Microsoft.NetApp.SubvolumeInfos.update","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.create":"Microsoft.NetApp.SubvolumeInfos.create","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.delete":"Microsoft.NetApp.SubvolumeInfos.delete","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.get":"Microsoft.NetApp.SubvolumeInfos.get","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getMetadata":"Microsoft.NetApp.SubvolumeInfos.getMetadata","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getWithResponse":"Microsoft.NetApp.SubvolumeInfos.get","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.listByVolume":"Microsoft.NetApp.SubvolumeInfos.listByVolume","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.update":"Microsoft.NetApp.SubvolumeInfos.update","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient":"Microsoft.NetApp.VolumeGroups","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginCreate":"Microsoft.NetApp.VolumeGroups.create","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginDelete":"Microsoft.NetApp.VolumeGroups.delete","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.create":"Microsoft.NetApp.VolumeGroups.create","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.delete":"Microsoft.NetApp.VolumeGroups.delete","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.get":"Microsoft.NetApp.VolumeGroups.get","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.getWithResponse":"Microsoft.NetApp.VolumeGroups.get","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.listByNetAppAccount":"Microsoft.NetApp.NetAppAccounts.listByNetAppAccount","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient":"Microsoft.NetApp.VolumeQuotaRules","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginCreate":"Microsoft.NetApp.VolumeQuotaRules.create","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginDelete":"Microsoft.NetApp.VolumeQuotaRules.delete","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginUpdate":"Microsoft.NetApp.VolumeQuotaRules.update","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.create":"Microsoft.NetApp.VolumeQuotaRules.create","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.delete":"Microsoft.NetApp.VolumeQuotaRules.delete","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.get":"Microsoft.NetApp.VolumeQuotaRules.get","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.getWithResponse":"Microsoft.NetApp.VolumeQuotaRules.get","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.listByVolume":"Microsoft.NetApp.VolumeQuotaRules.listByVolume","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.update":"Microsoft.NetApp.VolumeQuotaRules.update","com.azure.resourcemanager.netapp.fluent.VolumesClient":"Microsoft.NetApp.Volumes","com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeExternalReplication":"Microsoft.NetApp.Volumes.authorizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeReplication":"Microsoft.NetApp.Volumes.authorizeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeExternalReplication":"Microsoft.NetApp.Volumes.authorizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeReplication":"Microsoft.NetApp.Volumes.authorizeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakFileLocks":"Microsoft.NetApp.Volumes.breakFileLocks","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakReplication":"Microsoft.NetApp.Volumes.breakReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginCreateOrUpdate":"Microsoft.NetApp.Volumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDelete":"Microsoft.NetApp.Volumes.delete","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDeleteReplication":"Microsoft.NetApp.Volumes.deleteReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeExternalReplication":"Microsoft.NetApp.Volumes.finalizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeRelocation":"Microsoft.NetApp.Volumes.finalizeRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginListGetGroupIdListForLdapUser":"Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginListQuotaReport":"Microsoft.NetApp.Volumes.listQuotaReport","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPeerExternalCluster":"Microsoft.NetApp.Volumes.peerExternalCluster","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPerformReplicationTransfer":"Microsoft.NetApp.Volumes.performReplicationTransfer","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPoolChange":"Microsoft.NetApp.Volumes.poolChange","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPopulateAvailabilityZone":"Microsoft.NetApp.Volumes.populateAvailabilityZone","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReInitializeReplication":"Microsoft.NetApp.Volumes.reInitializeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReestablishReplication":"Microsoft.NetApp.Volumes.reestablishReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRelocate":"Microsoft.NetApp.Volumes.relocate","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResetCifsPassword":"Microsoft.NetApp.Volumes.resetCifsPassword","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResyncReplication":"Microsoft.NetApp.Volumes.resyncReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevert":"Microsoft.NetApp.Volumes.revert","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevertRelocation":"Microsoft.NetApp.Volumes.revertRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginSplitCloneFromParent":"Microsoft.NetApp.Volumes.splitCloneFromParent","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginUpdate":"Microsoft.NetApp.Volumes.update","com.azure.resourcemanager.netapp.fluent.VolumesClient.breakFileLocks":"Microsoft.NetApp.Volumes.breakFileLocks","com.azure.resourcemanager.netapp.fluent.VolumesClient.breakReplication":"Microsoft.NetApp.Volumes.breakReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.createOrUpdate":"Microsoft.NetApp.Volumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.VolumesClient.delete":"Microsoft.NetApp.Volumes.delete","com.azure.resourcemanager.netapp.fluent.VolumesClient.deleteReplication":"Microsoft.NetApp.Volumes.deleteReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeExternalReplication":"Microsoft.NetApp.Volumes.finalizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeRelocation":"Microsoft.NetApp.Volumes.finalizeRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.get":"Microsoft.NetApp.Volumes.get","com.azure.resourcemanager.netapp.fluent.VolumesClient.getWithResponse":"Microsoft.NetApp.Volumes.get","com.azure.resourcemanager.netapp.fluent.VolumesClient.list":"Microsoft.NetApp.Volumes.list","com.azure.resourcemanager.netapp.fluent.VolumesClient.listGetGroupIdListForLdapUser":"Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser","com.azure.resourcemanager.netapp.fluent.VolumesClient.listQuotaReport":"Microsoft.NetApp.Volumes.listQuotaReport","com.azure.resourcemanager.netapp.fluent.VolumesClient.listReplications":"Microsoft.NetApp.Volumes.listReplications","com.azure.resourcemanager.netapp.fluent.VolumesClient.peerExternalCluster":"Microsoft.NetApp.Volumes.peerExternalCluster","com.azure.resourcemanager.netapp.fluent.VolumesClient.performReplicationTransfer":"Microsoft.NetApp.Volumes.performReplicationTransfer","com.azure.resourcemanager.netapp.fluent.VolumesClient.poolChange":"Microsoft.NetApp.Volumes.poolChange","com.azure.resourcemanager.netapp.fluent.VolumesClient.populateAvailabilityZone":"Microsoft.NetApp.Volumes.populateAvailabilityZone","com.azure.resourcemanager.netapp.fluent.VolumesClient.reInitializeReplication":"Microsoft.NetApp.Volumes.reInitializeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.reestablishReplication":"Microsoft.NetApp.Volumes.reestablishReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.relocate":"Microsoft.NetApp.Volumes.relocate","com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatus":"Microsoft.NetApp.Volumes.replicationStatus","com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatusWithResponse":"Microsoft.NetApp.Volumes.replicationStatus","com.azure.resourcemanager.netapp.fluent.VolumesClient.resetCifsPassword":"Microsoft.NetApp.Volumes.resetCifsPassword","com.azure.resourcemanager.netapp.fluent.VolumesClient.resyncReplication":"Microsoft.NetApp.Volumes.resyncReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.revert":"Microsoft.NetApp.Volumes.revert","com.azure.resourcemanager.netapp.fluent.VolumesClient.revertRelocation":"Microsoft.NetApp.Volumes.revertRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.splitCloneFromParent":"Microsoft.NetApp.Volumes.splitCloneFromParent","com.azure.resourcemanager.netapp.fluent.VolumesClient.update":"Microsoft.NetApp.Volumes.update","com.azure.resourcemanager.netapp.fluent.models.AccountProperties":"Microsoft.NetApp.AccountProperties","com.azure.resourcemanager.netapp.fluent.models.AccountPropertiesPatch":"Microsoft.NetApp.AccountPropertiesPatch","com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner":"Microsoft.NetApp.ActiveDirectoryConfig","com.azure.resourcemanager.netapp.fluent.models.BackupInner":"Microsoft.NetApp.Backup","com.azure.resourcemanager.netapp.fluent.models.BackupPatchProperties":"Microsoft.NetApp.BackupPatchProperties","com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner":"Microsoft.NetApp.BackupPolicy","com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties":"Microsoft.NetApp.BackupPolicyProperties","com.azure.resourcemanager.netapp.fluent.models.BackupProperties":"Microsoft.NetApp.BackupProperties","com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner":"Microsoft.NetApp.BackupStatus","com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner":"Microsoft.NetApp.BackupVault","com.azure.resourcemanager.netapp.fluent.models.BackupVaultProperties":"Microsoft.NetApp.BackupVaultProperties","com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner":"Microsoft.NetApp.BucketGenerateCredentials","com.azure.resourcemanager.netapp.fluent.models.BucketInner":"Microsoft.NetApp.Bucket","com.azure.resourcemanager.netapp.fluent.models.BucketPatchProperties":"Microsoft.NetApp.BucketPatchProperties","com.azure.resourcemanager.netapp.fluent.models.BucketProperties":"Microsoft.NetApp.BucketProperties","com.azure.resourcemanager.netapp.fluent.models.CacheInner":"Microsoft.NetApp.Cache","com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner":"Microsoft.NetApp.CapacityPool","com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner":"Microsoft.NetApp.CheckAvailabilityResponse","com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner":"Microsoft.NetApp.CheckElasticResourceAvailabilityResponse","com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner":"Microsoft.NetApp.ClusterPeerCommandResponse","com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner":"Microsoft.NetApp.ElasticAccount","com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner":"Microsoft.NetApp.ElasticBackup","com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner":"Microsoft.NetApp.ElasticBackupPolicy","com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner":"Microsoft.NetApp.ElasticBackupVault","com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner":"Microsoft.NetApp.ElasticCapacityPool","com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner":"Microsoft.NetApp.ElasticSnapshot","com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner":"Microsoft.NetApp.ElasticSnapshotPolicy","com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner":"Microsoft.NetApp.ElasticVolume","com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner":"Microsoft.NetApp.GetGroupIdListForLdapUserResponse","com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseInner":"Microsoft.NetApp.GetKeyVaultStatusResponse","com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseProperties":"Microsoft.NetApp.GetKeyVaultStatusResponseProperties","com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResultInner":"Microsoft.NetApp.ListQuotaReportResult","com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner":"Microsoft.NetApp.NetAppAccount","com.azure.resourcemanager.netapp.fluent.models.NetworkSiblingSetInner":"Microsoft.NetApp.NetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.models.OperationInner":"Microsoft.NetApp.Operation","com.azure.resourcemanager.netapp.fluent.models.OperationProperties":"Microsoft.NetApp.OperationProperties","com.azure.resourcemanager.netapp.fluent.models.PeeringPassphrasesInner":"Microsoft.NetApp.PeeringPassphrases","com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties":"Microsoft.NetApp.PoolPatchProperties","com.azure.resourcemanager.netapp.fluent.models.PoolProperties":"Microsoft.NetApp.PoolProperties","com.azure.resourcemanager.netapp.fluent.models.QuotaItemProperties":"Microsoft.NetApp.QuotaItemProperties","com.azure.resourcemanager.netapp.fluent.models.RansomwareReportInner":"Microsoft.NetApp.RansomwareReport","com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner":"Microsoft.NetApp.RegionInfo","com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner":"Microsoft.NetApp.RegionInfoResource","com.azure.resourcemanager.netapp.fluent.models.ReplicationInner":"Microsoft.NetApp.Replication","com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner":"Microsoft.NetApp.ReplicationStatus","com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner":"Microsoft.NetApp.RestoreStatus","com.azure.resourcemanager.netapp.fluent.models.SnapshotInner":"Microsoft.NetApp.Snapshot","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner":"Microsoft.NetApp.SnapshotPolicy","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties":"Microsoft.NetApp.SnapshotPolicyProperties","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner":"Microsoft.NetApp.SnapshotPolicyVolumeList","com.azure.resourcemanager.netapp.fluent.models.SnapshotProperties":"Microsoft.NetApp.SnapshotProperties","com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner":"Microsoft.NetApp.QuotaItem","com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner":"Microsoft.NetApp.SubvolumeInfo","com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner":"Microsoft.NetApp.SubvolumeModel","com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelProperties":"Microsoft.NetApp.SubvolumeModelProperties","com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams":"Microsoft.NetApp.SubvolumePatchParams","com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties":"Microsoft.NetApp.SubvolumeProperties","com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner":"Microsoft.NetApp.SvmPeerCommandResponse","com.azure.resourcemanager.netapp.fluent.models.UsageProperties":"Microsoft.NetApp.UsageProperties","com.azure.resourcemanager.netapp.fluent.models.UsageResultInner":"Microsoft.NetApp.UsageResult","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner":"Microsoft.NetApp.VolumeGroupDetails","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner":"Microsoft.NetApp.VolumeGroup","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupListProperties":"Microsoft.NetApp.VolumeGroupListProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupProperties":"Microsoft.NetApp.VolumeGroupProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeInner":"Microsoft.NetApp.Volume","com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties":"Microsoft.NetApp.VolumePatchProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeProperties":"Microsoft.NetApp.VolumeProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner":"Microsoft.NetApp.VolumeQuotaRule","com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRulesProperties":"Microsoft.NetApp.VolumeQuotaRulesProperties","com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder":"Microsoft.NetApp","com.azure.resourcemanager.netapp.implementation.models.ActiveDirectoryConfigListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.BackupPoliciesList":"Microsoft.NetApp.BackupPoliciesList","com.azure.resourcemanager.netapp.implementation.models.BackupVaultsList":"Microsoft.NetApp.BackupVaultsList","com.azure.resourcemanager.netapp.implementation.models.BackupsList":"Microsoft.NetApp.BackupsList","com.azure.resourcemanager.netapp.implementation.models.BucketList":"Microsoft.NetApp.BucketList","com.azure.resourcemanager.netapp.implementation.models.CacheList":"Microsoft.NetApp.CacheList","com.azure.resourcemanager.netapp.implementation.models.CapacityPoolList":"Microsoft.NetApp.CapacityPoolList","com.azure.resourcemanager.netapp.implementation.models.ElasticAccountListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticBackupListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticBackupPolicyListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticBackupVaultListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticCapacityPoolListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyVolumeList":"Microsoft.NetApp.ElasticSnapshotPolicyVolumeList","com.azure.resourcemanager.netapp.implementation.models.ElasticVolumeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ListReplications":"Microsoft.NetApp.ListReplications","com.azure.resourcemanager.netapp.implementation.models.NetAppAccountList":"Microsoft.NetApp.NetAppAccountList","com.azure.resourcemanager.netapp.implementation.models.OperationListResult":"Microsoft.NetApp.OperationListResult","com.azure.resourcemanager.netapp.implementation.models.QuotaItemList":"Microsoft.NetApp.QuotaItemList","com.azure.resourcemanager.netapp.implementation.models.RansomwareReportsList":"Microsoft.NetApp.RansomwareReportsList","com.azure.resourcemanager.netapp.implementation.models.RegionInfosList":"Microsoft.NetApp.RegionInfosList","com.azure.resourcemanager.netapp.implementation.models.SnapshotPoliciesList":"Microsoft.NetApp.SnapshotPoliciesList","com.azure.resourcemanager.netapp.implementation.models.SnapshotsList":"Microsoft.NetApp.SnapshotsList","com.azure.resourcemanager.netapp.implementation.models.SubvolumesList":"Microsoft.NetApp.SubvolumesList","com.azure.resourcemanager.netapp.implementation.models.UsagesListResult":"Microsoft.NetApp.UsagesListResult","com.azure.resourcemanager.netapp.implementation.models.VolumeGroupList":"Microsoft.NetApp.VolumeGroupList","com.azure.resourcemanager.netapp.implementation.models.VolumeList":"Microsoft.NetApp.VolumeList","com.azure.resourcemanager.netapp.implementation.models.VolumeQuotaRulesList":"Microsoft.NetApp.VolumeQuotaRulesList","com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit":"Microsoft.NetApp.AcceptGrowCapacityPoolForShortTermCloneSplit","com.azure.resourcemanager.netapp.models.AccountEncryption":"Microsoft.NetApp.AccountEncryption","com.azure.resourcemanager.netapp.models.ActiveDirectory":"Microsoft.NetApp.ActiveDirectory","com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigProperties":"Microsoft.NetApp.ActiveDirectoryConfigProperties","com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.ActiveDirectoryStatus":"Microsoft.NetApp.ActiveDirectoryStatus","com.azure.resourcemanager.netapp.models.ActualRansomwareProtectionState":"Microsoft.NetApp.ActualRansomwareProtectionState","com.azure.resourcemanager.netapp.models.ApplicationType":"Microsoft.NetApp.ApplicationType","com.azure.resourcemanager.netapp.models.AuthorizeRequest":"Microsoft.NetApp.AuthorizeRequest","com.azure.resourcemanager.netapp.models.AvsDataStore":"Microsoft.NetApp.AvsDataStore","com.azure.resourcemanager.netapp.models.AzureKeyVaultDetails":"Microsoft.NetApp.AzureKeyVaultDetails","com.azure.resourcemanager.netapp.models.BackupPatch":"Microsoft.NetApp.BackupPatch","com.azure.resourcemanager.netapp.models.BackupPolicyPatch":"Microsoft.NetApp.BackupPolicyPatch","com.azure.resourcemanager.netapp.models.BackupRestoreFiles":"Microsoft.NetApp.BackupRestoreFiles","com.azure.resourcemanager.netapp.models.BackupType":"Microsoft.NetApp.BackupType","com.azure.resourcemanager.netapp.models.BackupVaultPatch":"Microsoft.NetApp.BackupVaultPatch","com.azure.resourcemanager.netapp.models.BackupsMigrationRequest":"Microsoft.NetApp.BackupsMigrationRequest","com.azure.resourcemanager.netapp.models.BreakFileLocksRequest":"Microsoft.NetApp.BreakFileLocksRequest","com.azure.resourcemanager.netapp.models.BreakReplicationRequest":"Microsoft.NetApp.BreakReplicationRequest","com.azure.resourcemanager.netapp.models.BreakthroughMode":"Microsoft.NetApp.BreakthroughMode","com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry":"Microsoft.NetApp.BucketCredentialsExpiry","com.azure.resourcemanager.netapp.models.BucketPatch":"Microsoft.NetApp.BucketPatch","com.azure.resourcemanager.netapp.models.BucketPatchPermissions":"Microsoft.NetApp.BucketPatchPermissions","com.azure.resourcemanager.netapp.models.BucketPermissions":"Microsoft.NetApp.BucketPermissions","com.azure.resourcemanager.netapp.models.BucketServerPatchProperties":"Microsoft.NetApp.BucketServerPatchProperties","com.azure.resourcemanager.netapp.models.BucketServerProperties":"Microsoft.NetApp.BucketServerProperties","com.azure.resourcemanager.netapp.models.CacheLifeCycleState":"Microsoft.NetApp.CacheLifeCycleState","com.azure.resourcemanager.netapp.models.CacheMountTargetProperties":"Microsoft.NetApp.CacheMountTargetProperties","com.azure.resourcemanager.netapp.models.CacheProperties":"Microsoft.NetApp.CacheProperties","com.azure.resourcemanager.netapp.models.CachePropertiesExportPolicy":"Microsoft.NetApp.CachePropertiesExportPolicy","com.azure.resourcemanager.netapp.models.CacheProvisioningState":"Microsoft.NetApp.CacheProvisioningState","com.azure.resourcemanager.netapp.models.CacheUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.CacheUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.CapacityPoolPatch":"Microsoft.NetApp.CapacityPoolPatch","com.azure.resourcemanager.netapp.models.CertificateAkvDetails":"Microsoft.NetApp.CertificateAkvDetails","com.azure.resourcemanager.netapp.models.ChangeKeyVault":"Microsoft.NetApp.ChangeKeyVault","com.azure.resourcemanager.netapp.models.ChangeZoneRequest":"Microsoft.NetApp.ChangeZoneRequest","com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityReason":"Microsoft.NetApp.CheckElasticResourceAvailabilityReason","com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityStatus":"Microsoft.NetApp.CheckElasticResourceAvailabilityStatus","com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest":"Microsoft.NetApp.CheckElasticVolumeFilePathAvailabilityRequest","com.azure.resourcemanager.netapp.models.CheckNameResourceTypes":"Microsoft.NetApp.CheckNameResourceTypes","com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes":"Microsoft.NetApp.CheckQuotaNameResourceTypes","com.azure.resourcemanager.netapp.models.ChownMode":"Microsoft.NetApp.ChownMode","com.azure.resourcemanager.netapp.models.CifsChangeNotifyState":"Microsoft.NetApp.CifsChangeNotifyState","com.azure.resourcemanager.netapp.models.CifsUser":"Microsoft.NetApp.CifsUser","com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy":"Microsoft.NetApp.CoolAccessRetrievalPolicy","com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy":"Microsoft.NetApp.CoolAccessTieringPolicy","com.azure.resourcemanager.netapp.models.CredentialsAkvDetails":"Microsoft.NetApp.CredentialsAkvDetails","com.azure.resourcemanager.netapp.models.CredentialsStatus":"Microsoft.NetApp.CredentialsStatus","com.azure.resourcemanager.netapp.models.DailySchedule":"Microsoft.NetApp.DailySchedule","com.azure.resourcemanager.netapp.models.DayOfWeek":"Microsoft.NetApp.DayOfWeek","com.azure.resourcemanager.netapp.models.DesiredRansomwareProtectionState":"Microsoft.NetApp.DesiredRansomwareProtectionState","com.azure.resourcemanager.netapp.models.DestinationReplication":"Microsoft.NetApp.DestinationReplication","com.azure.resourcemanager.netapp.models.Dimension":"Microsoft.NetApp.Dimension","com.azure.resourcemanager.netapp.models.ElasticAccountProperties":"Microsoft.NetApp.ElasticAccountProperties","com.azure.resourcemanager.netapp.models.ElasticAccountUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticAccountUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties":"Microsoft.NetApp.ElasticBackupPolicyProperties","com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState":"Microsoft.NetApp.ElasticBackupPolicyState","com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.ElasticBackupProperties":"Microsoft.NetApp.ElasticBackupProperties","com.azure.resourcemanager.netapp.models.ElasticBackupType":"Microsoft.NetApp.ElasticBackupType","com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties":"Microsoft.NetApp.ElasticBackupVaultProperties","com.azure.resourcemanager.netapp.models.ElasticBackupVaultUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticCapacityPoolProperties":"Microsoft.NetApp.ElasticCapacityPoolProperties","com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.ElasticEncryption":"Microsoft.NetApp.ElasticEncryption","com.azure.resourcemanager.netapp.models.ElasticEncryptionConfiguration":"Microsoft.NetApp.ElasticEncryptionConfiguration","com.azure.resourcemanager.netapp.models.ElasticEncryptionIdentity":"Microsoft.NetApp.ElasticEncryptionIdentity","com.azure.resourcemanager.netapp.models.ElasticExportPolicy":"Microsoft.NetApp.ElasticExportPolicy","com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule":"Microsoft.NetApp.ElasticExportPolicyRule","com.azure.resourcemanager.netapp.models.ElasticKeyVaultProperties":"Microsoft.NetApp.ElasticKeyVaultProperties","com.azure.resourcemanager.netapp.models.ElasticKeyVaultStatus":"Microsoft.NetApp.ElasticKeyVaultStatus","com.azure.resourcemanager.netapp.models.ElasticMountTargetProperties":"Microsoft.NetApp.ElasticMountTargetProperties","com.azure.resourcemanager.netapp.models.ElasticNfsv3Access":"Microsoft.NetApp.ElasticNfsv3Access","com.azure.resourcemanager.netapp.models.ElasticNfsv4Access":"Microsoft.NetApp.ElasticNfsv4Access","com.azure.resourcemanager.netapp.models.ElasticPoolEncryptionKeySource":"Microsoft.NetApp.ElasticPoolEncryptionKeySource","com.azure.resourcemanager.netapp.models.ElasticProtocolType":"Microsoft.NetApp.ElasticProtocolType","com.azure.resourcemanager.netapp.models.ElasticResourceAvailabilityStatus":"Microsoft.NetApp.ElasticResourceAvailabilityStatus","com.azure.resourcemanager.netapp.models.ElasticRootAccess":"Microsoft.NetApp.ElasticRootAccess","com.azure.resourcemanager.netapp.models.ElasticServiceLevel":"Microsoft.NetApp.ElasticServiceLevel","com.azure.resourcemanager.netapp.models.ElasticSmbEncryption":"Microsoft.NetApp.ElasticSmbEncryption","com.azure.resourcemanager.netapp.models.ElasticSmbPatchProperties":"Microsoft.NetApp.ElasticSmbPatchProperties","com.azure.resourcemanager.netapp.models.ElasticSmbProperties":"Microsoft.NetApp.ElasticSmbProperties","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule":"Microsoft.NetApp.ElasticSnapshotPolicyDailySchedule","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule":"Microsoft.NetApp.ElasticSnapshotPolicyHourlySchedule","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule":"Microsoft.NetApp.ElasticSnapshotPolicyMonthlySchedule","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties":"Microsoft.NetApp.ElasticSnapshotPolicyProperties","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule":"Microsoft.NetApp.ElasticSnapshotPolicyWeeklySchedule","com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties":"Microsoft.NetApp.ElasticSnapshotProperties","com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule":"Microsoft.NetApp.ElasticUnixAccessRule","com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties":"Microsoft.NetApp.ElasticVolumeBackupProperties","com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties":"Microsoft.NetApp.ElasticVolumeDataProtectionPatchProperties","com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties":"Microsoft.NetApp.ElasticVolumeDataProtectionProperties","com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement":"Microsoft.NetApp.ElasticVolumePolicyEnforcement","com.azure.resourcemanager.netapp.models.ElasticVolumeProperties":"Microsoft.NetApp.ElasticVolumeProperties","com.azure.resourcemanager.netapp.models.ElasticVolumeRestorationState":"Microsoft.NetApp.ElasticVolumeRestorationState","com.azure.resourcemanager.netapp.models.ElasticVolumeRevert":"Microsoft.NetApp.ElasticVolumeRevert","com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties":"Microsoft.NetApp.ElasticVolumeSnapshotProperties","com.azure.resourcemanager.netapp.models.ElasticVolumeUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.EnableSubvolumes":"Microsoft.NetApp.EnableSubvolumes","com.azure.resourcemanager.netapp.models.EnableWriteBackState":"Microsoft.NetApp.EnableWriteBackState","com.azure.resourcemanager.netapp.models.EncryptionIdentity":"Microsoft.NetApp.EncryptionIdentity","com.azure.resourcemanager.netapp.models.EncryptionKeySource":"Microsoft.NetApp.EncryptionKeySource","com.azure.resourcemanager.netapp.models.EncryptionState":"Microsoft.NetApp.EncryptionState","com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest":"Microsoft.NetApp.EncryptionTransitionRequest","com.azure.resourcemanager.netapp.models.EncryptionType":"Microsoft.NetApp.EncryptionType","com.azure.resourcemanager.netapp.models.EndpointType":"Microsoft.NetApp.EndpointType","com.azure.resourcemanager.netapp.models.EntraIdAkvConfig":"Microsoft.NetApp.EntraIdAkvConfig","com.azure.resourcemanager.netapp.models.EntraIdAkvConfigPatch":"Microsoft.NetApp.EntraIdAkvConfigPatch","com.azure.resourcemanager.netapp.models.EntraIdConfig":"Microsoft.NetApp.EntraIdConfig","com.azure.resourcemanager.netapp.models.EntraIdConfigPatch":"Microsoft.NetApp.EntraIdConfigPatch","com.azure.resourcemanager.netapp.models.Exclude":"Microsoft.NetApp.Exclude","com.azure.resourcemanager.netapp.models.ExportPolicyRule":"Microsoft.NetApp.ExportPolicyRule","com.azure.resourcemanager.netapp.models.ExternalReplicationSetupStatus":"Microsoft.NetApp.ExternalReplicationSetupStatus","com.azure.resourcemanager.netapp.models.FileAccessLogs":"Microsoft.NetApp.FileAccessLogs","com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest":"Microsoft.NetApp.FilePathAvailabilityRequest","com.azure.resourcemanager.netapp.models.FileSystemUser":"Microsoft.NetApp.FileSystemUser","com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest":"Microsoft.NetApp.GetGroupIdListForLdapUserRequest","com.azure.resourcemanager.netapp.models.GlobalFileLockingState":"Microsoft.NetApp.GlobalFileLockingState","com.azure.resourcemanager.netapp.models.HourlySchedule":"Microsoft.NetApp.HourlySchedule","com.azure.resourcemanager.netapp.models.InAvailabilityReasonType":"Microsoft.NetApp.InAvailabilityReasonType","com.azure.resourcemanager.netapp.models.KerberosState":"Microsoft.NetApp.KerberosState","com.azure.resourcemanager.netapp.models.KeySource":"Microsoft.NetApp.KeySource","com.azure.resourcemanager.netapp.models.KeyVaultPrivateEndpoint":"Microsoft.NetApp.KeyVaultPrivateEndpoint","com.azure.resourcemanager.netapp.models.KeyVaultProperties":"Microsoft.NetApp.KeyVaultProperties","com.azure.resourcemanager.netapp.models.KeyVaultStatus":"Microsoft.NetApp.KeyVaultStatus","com.azure.resourcemanager.netapp.models.LargeVolumeType":"Microsoft.NetApp.LargeVolumeType","com.azure.resourcemanager.netapp.models.LdapConfiguration":"Microsoft.NetApp.LdapConfiguration","com.azure.resourcemanager.netapp.models.LdapConfigurationPatch":"Microsoft.NetApp.LdapConfigurationPatch","com.azure.resourcemanager.netapp.models.LdapSearchScopeOpt":"Microsoft.NetApp.LdapSearchScopeOpt","com.azure.resourcemanager.netapp.models.LdapServerType":"Microsoft.NetApp.LdapServerType","com.azure.resourcemanager.netapp.models.LdapState":"Microsoft.NetApp.LdapState","com.azure.resourcemanager.netapp.models.ListQuotaReportResponse":"Microsoft.NetApp.ListQuotaReportResponse","com.azure.resourcemanager.netapp.models.ListReplicationsRequest":"Microsoft.NetApp.ListReplicationsRequest","com.azure.resourcemanager.netapp.models.LogSpecification":"Microsoft.NetApp.LogSpecification","com.azure.resourcemanager.netapp.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.netapp.models.MetricAggregationType":"Microsoft.NetApp.MetricAggregationType","com.azure.resourcemanager.netapp.models.MetricSpecification":"Microsoft.NetApp.MetricSpecification","com.azure.resourcemanager.netapp.models.MirrorState":"Microsoft.NetApp.MirrorState","com.azure.resourcemanager.netapp.models.MonthlySchedule":"Microsoft.NetApp.MonthlySchedule","com.azure.resourcemanager.netapp.models.MountTargetProperties":"Microsoft.NetApp.MountTargetProperties","com.azure.resourcemanager.netapp.models.MultiAdStatus":"Microsoft.NetApp.MultiAdStatus","com.azure.resourcemanager.netapp.models.NetAppAccountPatch":"Microsoft.NetApp.NetAppAccountPatch","com.azure.resourcemanager.netapp.models.NetworkFeatures":"Microsoft.NetApp.NetworkFeatures","com.azure.resourcemanager.netapp.models.NetworkSiblingSetProvisioningState":"Microsoft.NetApp.NetworkSiblingSetProvisioningState","com.azure.resourcemanager.netapp.models.NfsUser":"Microsoft.NetApp.NfsUser","com.azure.resourcemanager.netapp.models.NicInfo":"Microsoft.NetApp.NicInfo","com.azure.resourcemanager.netapp.models.OnCertificateConflictAction":"Microsoft.NetApp.OnCertificateConflictAction","com.azure.resourcemanager.netapp.models.OperationDisplay":"Microsoft.NetApp.OperationDisplay","com.azure.resourcemanager.netapp.models.OriginClusterInformation":"Microsoft.NetApp.OriginClusterInformation","com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest":"Microsoft.NetApp.PeerClusterForVolumeMigrationRequest","com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs":"Microsoft.NetApp.PlacementKeyValuePairs","com.azure.resourcemanager.netapp.models.PolicyStatus":"Microsoft.NetApp.PolicyStatus","com.azure.resourcemanager.netapp.models.PoolChangeRequest":"Microsoft.NetApp.PoolChangeRequest","com.azure.resourcemanager.netapp.models.ProtocolTypes":"Microsoft.NetApp.ProtocolTypes","com.azure.resourcemanager.netapp.models.ProvisioningState":"Microsoft.NetApp.NetAppProvisioningState","com.azure.resourcemanager.netapp.models.QosType":"Microsoft.NetApp.QosType","com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest":"Microsoft.NetApp.QueryNetworkSiblingSetRequest","com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest":"Microsoft.NetApp.QuotaAvailabilityRequest","com.azure.resourcemanager.netapp.models.QuotaReport":"Microsoft.NetApp.QuotaReport","com.azure.resourcemanager.netapp.models.QuotaReportFilterRequest":"Microsoft.NetApp.QuotaReportFilterRequest","com.azure.resourcemanager.netapp.models.QuotaType":"Microsoft.NetApp.QuotaType","com.azure.resourcemanager.netapp.models.RansomwareProtectionPatchSettings":"Microsoft.NetApp.RansomwareProtectionPatchSettings","com.azure.resourcemanager.netapp.models.RansomwareProtectionSettings":"Microsoft.NetApp.RansomwareProtectionSettings","com.azure.resourcemanager.netapp.models.RansomwareReportProperties":"Microsoft.NetApp.RansomwareReportProperties","com.azure.resourcemanager.netapp.models.RansomwareReportSeverity":"Microsoft.NetApp.RansomwareReportSeverity","com.azure.resourcemanager.netapp.models.RansomwareReportState":"Microsoft.NetApp.RansomwareReportState","com.azure.resourcemanager.netapp.models.RansomwareSuspectResolution":"Microsoft.NetApp.RansomwareSuspectResolution","com.azure.resourcemanager.netapp.models.RansomwareSuspects":"Microsoft.NetApp.RansomwareSuspects","com.azure.resourcemanager.netapp.models.RansomwareSuspectsClearRequest":"Microsoft.NetApp.RansomwareSuspectsClearRequest","com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest":"Microsoft.NetApp.ReestablishReplicationRequest","com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem":"Microsoft.NetApp.RegionInfoAvailabilityZoneMappingsItem","com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity":"Microsoft.NetApp.RegionStorageToNetworkProximity","com.azure.resourcemanager.netapp.models.RelocateVolumeRequest":"Microsoft.NetApp.RelocateVolumeRequest","com.azure.resourcemanager.netapp.models.RemotePath":"Microsoft.NetApp.RemotePath","com.azure.resourcemanager.netapp.models.ReplicationMirrorState":"Microsoft.NetApp.ReplicationMirrorState","com.azure.resourcemanager.netapp.models.ReplicationObject":"Microsoft.NetApp.ReplicationObject","com.azure.resourcemanager.netapp.models.ReplicationSchedule":"Microsoft.NetApp.ReplicationSchedule","com.azure.resourcemanager.netapp.models.ReplicationType":"Microsoft.NetApp.ReplicationType","com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest":"Microsoft.NetApp.ResourceNameAvailabilityRequest","com.azure.resourcemanager.netapp.models.SecretPassword":"Microsoft.NetApp.SecretPassword","com.azure.resourcemanager.netapp.models.SecretPasswordIdentity":"Microsoft.NetApp.SecretPasswordIdentity","com.azure.resourcemanager.netapp.models.SecretPasswordKeyVaultProperties":"Microsoft.NetApp.SecretPasswordKeyVaultProperties","com.azure.resourcemanager.netapp.models.SecurityStyle":"Microsoft.NetApp.SecurityStyle","com.azure.resourcemanager.netapp.models.ServiceLevel":"Microsoft.NetApp.ServiceLevel","com.azure.resourcemanager.netapp.models.ServiceSpecification":"Microsoft.NetApp.ServiceSpecification","com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration":"Microsoft.NetApp.SmbAccessBasedEnumeration","com.azure.resourcemanager.netapp.models.SmbEncryptionState":"Microsoft.NetApp.SmbEncryptionState","com.azure.resourcemanager.netapp.models.SmbNonBrowsable":"Microsoft.NetApp.SmbNonBrowsable","com.azure.resourcemanager.netapp.models.SmbSettings":"Microsoft.NetApp.SmbSettings","com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility":"Microsoft.NetApp.SnapshotDirectoryVisibility","com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch":"Microsoft.NetApp.SnapshotPolicyPatch","com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles":"Microsoft.NetApp.SnapshotRestoreFiles","com.azure.resourcemanager.netapp.models.SnapshotUsage":"Microsoft.NetApp.SnapshotUsage","com.azure.resourcemanager.netapp.models.SubvolumePatchRequest":"Microsoft.NetApp.SubvolumePatchRequest","com.azure.resourcemanager.netapp.models.SuspectFile":"Microsoft.NetApp.SuspectFile","com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest":"Microsoft.NetApp.UpdateNetworkSiblingSetRequest","com.azure.resourcemanager.netapp.models.UsageName":"Microsoft.NetApp.UsageName","com.azure.resourcemanager.netapp.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.netapp.models.VolumeBackupProperties":"Microsoft.NetApp.VolumeBackupProperties","com.azure.resourcemanager.netapp.models.VolumeBackupRelationshipStatus":"Microsoft.NetApp.VolumeBackupRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeBackups":"Microsoft.NetApp.VolumeBackups","com.azure.resourcemanager.netapp.models.VolumeGroupMetadata":"Microsoft.NetApp.VolumeGroupMetaData","com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties":"Microsoft.NetApp.VolumeGroupVolumeProperties","com.azure.resourcemanager.netapp.models.VolumeLanguage":"Microsoft.NetApp.VolumeLanguage","com.azure.resourcemanager.netapp.models.VolumePatch":"Microsoft.NetApp.VolumePatch","com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection":"Microsoft.NetApp.VolumePatchPropertiesDataProtection","com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy":"Microsoft.NetApp.VolumePatchPropertiesExportPolicy","com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection":"Microsoft.NetApp.VolumePropertiesDataProtection","com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy":"Microsoft.NetApp.VolumePropertiesExportPolicy","com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch":"Microsoft.NetApp.VolumeQuotaRulePatch","com.azure.resourcemanager.netapp.models.VolumeRelocationProperties":"Microsoft.NetApp.VolumeRelocationProperties","com.azure.resourcemanager.netapp.models.VolumeReplicationRelationshipStatus":"Microsoft.NetApp.VolumeReplicationRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeRestoreRelationshipStatus":"Microsoft.NetApp.VolumeRestoreRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeRevert":"Microsoft.NetApp.VolumeRevert","com.azure.resourcemanager.netapp.models.VolumeSize":"Microsoft.NetApp.VolumeSize","com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties":"Microsoft.NetApp.VolumeSnapshotProperties","com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity":"Microsoft.NetApp.VolumeStorageToNetworkProximity","com.azure.resourcemanager.netapp.models.WeeklySchedule":"Microsoft.NetApp.WeeklySchedule"},"generatedFiles":["src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java","src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/CachesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticCapacityPoolsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticVolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/RansomwareReportsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CacheInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckElasticResourceAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ClusterPeerCommandResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticAccountInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupVaultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticCapacityPoolInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticVolumeInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetGroupIdListForLdapUserResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PeeringPassphrasesInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RansomwareReportInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SvmPeerCommandResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java","src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CacheImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CachesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CachesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CheckElasticResourceAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumeImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/GetKeyVaultStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PeeringPassphrasesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoResourceImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ActiveDirectoryConfigListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupPoliciesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupVaultsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BucketList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/CacheList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/CapacityPoolList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticAccountListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupPolicyListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupVaultListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticCapacityPoolListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyVolumeList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticVolumeListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ListReplications.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/NetAppAccountList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/QuotaItemList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/RansomwareReportsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/RegionInfosList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotPoliciesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SubvolumesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/UsagesListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeGroupList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeQuotaRulesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java","src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java","src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java","src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfig.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigs.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ActualRansomwareProtectionState.java","src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java","src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java","src/main/java/com/azure/resourcemanager/netapp/models/AzureKeyVaultDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/Backup.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupRestoreFiles.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupType.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVault.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/Backups.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsMigrationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderBackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderVolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakthroughMode.java","src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPatchPermissions.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPermissions.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java","src/main/java/com/azure/resourcemanager/netapp/models/Cache.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheLifeCycleState.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheMountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CachePropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/Caches.java","src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java","src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/CertificateAkvDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/ChangeKeyVault.java","src/main/java/com/azure/resourcemanager/netapp/models/ChangeZoneRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityReason.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticVolumeFilePathAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckQuotaNameResourceTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/ChownMode.java","src/main/java/com/azure/resourcemanager/netapp/models/CifsChangeNotifyState.java","src/main/java/com/azure/resourcemanager/netapp/models/CifsUser.java","src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessTieringPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CredentialsAkvDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/DayOfWeek.java","src/main/java/com/azure/resourcemanager/netapp/models/DesiredRansomwareProtectionState.java","src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java","src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccount.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackup.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyState.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupType.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVault.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackups.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPool.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPools.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryption.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionConfiguration.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicyRule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticMountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv3Access.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv4Access.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticPoolEncryptionKeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticProtocolType.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticResourceAvailabilityStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticRootAccess.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticServiceLevel.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbEncryption.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshot.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyDailySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyHourlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyMonthlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyWeeklySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshots.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticUnixAccessRule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolume.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeBackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumePolicyEnforcement.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRestorationState.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRevert.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeSnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/EnableWriteBackState.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionKeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionState.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionTransitionRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java","src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java","src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfig.java","src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfigPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfig.java","src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfigPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/Exclude.java","src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java","src/main/java/com/azure/resourcemanager/netapp/models/ExternalReplicationSetupStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java","src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java","src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/GetKeyVaultStatusResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/GlobalFileLockingState.java","src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java","src/main/java/com/azure/resourcemanager/netapp/models/KerberosState.java","src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPrivateEndpoint.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/LargeVolumeType.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapConfigurationPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapState.java","src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResult.java","src/main/java/com/azure/resourcemanager/netapp/models/ListReplicationsRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java","src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java","src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/MultiAdStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceRegionInfos.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java","src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/OnCertificateConflictAction.java","src/main/java/com/azure/resourcemanager/netapp/models/Operation.java","src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/netapp/models/Operations.java","src/main/java/com/azure/resourcemanager/netapp/models/OriginClusterInformation.java","src/main/java/com/azure/resourcemanager/netapp/models/PeerClusterForVolumeMigrationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/PeeringPassphrases.java","src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java","src/main/java/com/azure/resourcemanager/netapp/models/PolicyStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Pools.java","src/main/java/com/azure/resourcemanager/netapp/models/ProtocolTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/QosType.java","src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaReportFilterRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaType.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareProtectionPatchSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareProtectionSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReport.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportSeverity.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportState.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReports.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspectResolution.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspects.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspectsClearRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoResource.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java","src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RemotePath.java","src/main/java/com/azure/resourcemanager/netapp/models/Replication.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationMirrorState.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java","src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/SecretPassword.java","src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordKeyVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java","src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java","src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbEncryptionState.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotDirectoryVisibility.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotUsage.java","src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java","src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/SuspectFile.java","src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java","src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java","src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/Volume.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeReplicationRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRestoreRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeSize.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java","src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java","src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/package-info.java","src/main/java/com/azure/resourcemanager/netapp/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.NetApp":"2026-01-01"},"crossLanguageDefinitions":{"com.azure.resourcemanager.netapp.fluent.AccountsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginChangeKeyVault":"Microsoft.NetApp.NetAppAccounts.changeKeyVault","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginCreateOrUpdate":"Microsoft.NetApp.NetAppAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginDelete":"Microsoft.NetApp.NetAppAccounts.delete","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginGetChangeKeyVaultInformation":"Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginRenewCredentials":"Microsoft.NetApp.NetAppAccounts.renewCredentials","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginTransitionToCmk":"Microsoft.NetApp.NetAppAccounts.transitionToCmk","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginUpdate":"Microsoft.NetApp.NetAppAccounts.update","com.azure.resourcemanager.netapp.fluent.AccountsClient.changeKeyVault":"Microsoft.NetApp.NetAppAccounts.changeKeyVault","com.azure.resourcemanager.netapp.fluent.AccountsClient.createOrUpdate":"Microsoft.NetApp.NetAppAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.AccountsClient.delete":"Microsoft.NetApp.NetAppAccounts.delete","com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroup":"Microsoft.NetApp.NetAppAccounts.get","com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroupWithResponse":"Microsoft.NetApp.NetAppAccounts.get","com.azure.resourcemanager.netapp.fluent.AccountsClient.getChangeKeyVaultInformation":"Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation","com.azure.resourcemanager.netapp.fluent.AccountsClient.list":"Microsoft.NetApp.NetAppAccounts.listBySubscription","com.azure.resourcemanager.netapp.fluent.AccountsClient.listByResourceGroup":"Microsoft.NetApp.NetAppAccounts.list","com.azure.resourcemanager.netapp.fluent.AccountsClient.renewCredentials":"Microsoft.NetApp.NetAppAccounts.renewCredentials","com.azure.resourcemanager.netapp.fluent.AccountsClient.transitionToCmk":"Microsoft.NetApp.NetAppAccounts.transitionToCmk","com.azure.resourcemanager.netapp.fluent.AccountsClient.update":"Microsoft.NetApp.NetAppAccounts.update","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient":"Microsoft.NetApp.BackupPolicies","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginCreate":"Microsoft.NetApp.BackupPolicies.create","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginDelete":"Microsoft.NetApp.BackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginUpdate":"Microsoft.NetApp.BackupPolicies.update","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.create":"Microsoft.NetApp.BackupPolicies.create","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.delete":"Microsoft.NetApp.BackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.get":"Microsoft.NetApp.BackupPolicies.get","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.getWithResponse":"Microsoft.NetApp.BackupPolicies.get","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.list":"Microsoft.NetApp.BackupPolicies.list","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.update":"Microsoft.NetApp.BackupPolicies.update","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient":"Microsoft.NetApp.BackupVaults","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginCreateOrUpdate":"Microsoft.NetApp.BackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginDelete":"Microsoft.NetApp.BackupVaults.delete","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginUpdate":"Microsoft.NetApp.BackupVaults.update","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.createOrUpdate":"Microsoft.NetApp.BackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.delete":"Microsoft.NetApp.BackupVaults.delete","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.get":"Microsoft.NetApp.BackupVaults.get","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.getWithResponse":"Microsoft.NetApp.BackupVaults.get","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.listByNetAppAccount":"Microsoft.NetApp.BackupVaults.listByNetAppAccount","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.update":"Microsoft.NetApp.BackupVaults.update","com.azure.resourcemanager.netapp.fluent.BackupsClient":"Microsoft.NetApp.Backups","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginCreate":"Microsoft.NetApp.Backups.create","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginDelete":"Microsoft.NetApp.Backups.delete","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginUpdate":"Microsoft.NetApp.Backups.update","com.azure.resourcemanager.netapp.fluent.BackupsClient.create":"Microsoft.NetApp.Backups.create","com.azure.resourcemanager.netapp.fluent.BackupsClient.delete":"Microsoft.NetApp.Backups.delete","com.azure.resourcemanager.netapp.fluent.BackupsClient.get":"Microsoft.NetApp.Backups.get","com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatus":"Microsoft.NetApp.Volumes.getLatestStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatusWithResponse":"Microsoft.NetApp.Volumes.getLatestStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatus":"Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatusWithResponse":"Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getWithResponse":"Microsoft.NetApp.Backups.get","com.azure.resourcemanager.netapp.fluent.BackupsClient.listByVault":"Microsoft.NetApp.Backups.listByVault","com.azure.resourcemanager.netapp.fluent.BackupsClient.update":"Microsoft.NetApp.Backups.update","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.beginMigrateBackups":"Microsoft.NetApp.NetAppAccounts.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.migrateBackups":"Microsoft.NetApp.NetAppAccounts.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.beginRestoreFiles":"Microsoft.NetApp.Backups.restoreFiles","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.restoreFiles":"Microsoft.NetApp.Backups.restoreFiles","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.beginMigrateBackups":"Microsoft.NetApp.Volumes.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.migrateBackups":"Microsoft.NetApp.Volumes.migrateBackups","com.azure.resourcemanager.netapp.fluent.BucketsClient":"Microsoft.NetApp.Buckets","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginCreateOrUpdate":"Microsoft.NetApp.Buckets.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginDelete":"Microsoft.NetApp.Buckets.delete","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginGenerateAkvCredentials":"Microsoft.NetApp.Buckets.generateAkvCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginRefreshCertificate":"Microsoft.NetApp.Buckets.refreshCertificate","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginUpdate":"Microsoft.NetApp.Buckets.update","com.azure.resourcemanager.netapp.fluent.BucketsClient.createOrUpdate":"Microsoft.NetApp.Buckets.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BucketsClient.delete":"Microsoft.NetApp.Buckets.delete","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateAkvCredentials":"Microsoft.NetApp.Buckets.generateAkvCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateCredentials":"Microsoft.NetApp.Buckets.generateCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateCredentialsWithResponse":"Microsoft.NetApp.Buckets.generateCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.get":"Microsoft.NetApp.Buckets.get","com.azure.resourcemanager.netapp.fluent.BucketsClient.getWithResponse":"Microsoft.NetApp.Buckets.get","com.azure.resourcemanager.netapp.fluent.BucketsClient.list":"Microsoft.NetApp.Buckets.list","com.azure.resourcemanager.netapp.fluent.BucketsClient.refreshCertificate":"Microsoft.NetApp.Buckets.refreshCertificate","com.azure.resourcemanager.netapp.fluent.BucketsClient.update":"Microsoft.NetApp.Buckets.update","com.azure.resourcemanager.netapp.fluent.CachesClient":"Microsoft.NetApp.Caches","com.azure.resourcemanager.netapp.fluent.CachesClient.beginCreateOrUpdate":"Microsoft.NetApp.Caches.createOrUpdate","com.azure.resourcemanager.netapp.fluent.CachesClient.beginDelete":"Microsoft.NetApp.Caches.delete","com.azure.resourcemanager.netapp.fluent.CachesClient.beginPoolChange":"Microsoft.NetApp.Caches.poolChange","com.azure.resourcemanager.netapp.fluent.CachesClient.beginResetSmbPassword":"Microsoft.NetApp.Caches.resetSmbPassword","com.azure.resourcemanager.netapp.fluent.CachesClient.beginUpdate":"Microsoft.NetApp.Caches.update","com.azure.resourcemanager.netapp.fluent.CachesClient.createOrUpdate":"Microsoft.NetApp.Caches.createOrUpdate","com.azure.resourcemanager.netapp.fluent.CachesClient.delete":"Microsoft.NetApp.Caches.delete","com.azure.resourcemanager.netapp.fluent.CachesClient.get":"Microsoft.NetApp.Caches.get","com.azure.resourcemanager.netapp.fluent.CachesClient.getWithResponse":"Microsoft.NetApp.Caches.get","com.azure.resourcemanager.netapp.fluent.CachesClient.list":"Microsoft.NetApp.Caches.list","com.azure.resourcemanager.netapp.fluent.CachesClient.listPeeringPassphrases":"Microsoft.NetApp.Caches.listPeeringPassphrases","com.azure.resourcemanager.netapp.fluent.CachesClient.listPeeringPassphrasesWithResponse":"Microsoft.NetApp.Caches.listPeeringPassphrases","com.azure.resourcemanager.netapp.fluent.CachesClient.poolChange":"Microsoft.NetApp.Caches.poolChange","com.azure.resourcemanager.netapp.fluent.CachesClient.resetSmbPassword":"Microsoft.NetApp.Caches.resetSmbPassword","com.azure.resourcemanager.netapp.fluent.CachesClient.update":"Microsoft.NetApp.Caches.update","com.azure.resourcemanager.netapp.fluent.NetAppManagementClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.get":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.getWithResponse":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.list":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.get":"Microsoft.NetApp.SubscriptionQuotaItems.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.getWithResponse":"Microsoft.NetApp.SubscriptionQuotaItems.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.list":"Microsoft.NetApp.SubscriptionQuotaItems.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.get":"Microsoft.NetApp.RegionInfoResources.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.getWithResponse":"Microsoft.NetApp.RegionInfoResources.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.list":"Microsoft.NetApp.RegionInfoResources.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.get":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.getWithResponse":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.list":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.list","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.beginUpdateNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSetWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfo":"Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfoWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.updateNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.OperationsClient":"Microsoft.NetApp.Operations","com.azure.resourcemanager.netapp.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.netapp.fluent.PoolsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginCreateOrUpdate":"Microsoft.NetApp.CapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginDelete":"Microsoft.NetApp.CapacityPools.delete","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginUpdate":"Microsoft.NetApp.CapacityPools.update","com.azure.resourcemanager.netapp.fluent.PoolsClient.createOrUpdate":"Microsoft.NetApp.CapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.PoolsClient.delete":"Microsoft.NetApp.CapacityPools.delete","com.azure.resourcemanager.netapp.fluent.PoolsClient.get":"Microsoft.NetApp.CapacityPools.get","com.azure.resourcemanager.netapp.fluent.PoolsClient.getWithResponse":"Microsoft.NetApp.CapacityPools.get","com.azure.resourcemanager.netapp.fluent.PoolsClient.list":"Microsoft.NetApp.CapacityPools.list","com.azure.resourcemanager.netapp.fluent.PoolsClient.update":"Microsoft.NetApp.CapacityPools.update","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient":"Microsoft.NetApp.RansomwareReports","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.beginClearSuspects":"Microsoft.NetApp.RansomwareReports.clearSuspects","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.clearSuspects":"Microsoft.NetApp.RansomwareReports.clearSuspects","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.get":"Microsoft.NetApp.RansomwareReports.get","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.getWithResponse":"Microsoft.NetApp.RansomwareReports.get","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.list":"Microsoft.NetApp.RansomwareReports.list","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient":"Microsoft.NetApp.SnapshotPolicies","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginDelete":"Microsoft.NetApp.SnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginUpdate":"Microsoft.NetApp.SnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.create":"Microsoft.NetApp.SnapshotPolicies.create","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.createWithResponse":"Microsoft.NetApp.SnapshotPolicies.create","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.delete":"Microsoft.NetApp.SnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.get":"Microsoft.NetApp.SnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.getWithResponse":"Microsoft.NetApp.SnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.list":"Microsoft.NetApp.SnapshotPolicies.list","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumes":"Microsoft.NetApp.SnapshotPolicies.listVolumes","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumesWithResponse":"Microsoft.NetApp.SnapshotPolicies.listVolumes","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.update":"Microsoft.NetApp.SnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.SnapshotsClient":"Microsoft.NetApp.Snapshots","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginCreate":"Microsoft.NetApp.Snapshots.create","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginDelete":"Microsoft.NetApp.Snapshots.delete","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginRestoreFiles":"Microsoft.NetApp.Snapshots.restoreFiles","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.create":"Microsoft.NetApp.Snapshots.create","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.delete":"Microsoft.NetApp.Snapshots.delete","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.get":"Microsoft.NetApp.Snapshots.get","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.getWithResponse":"Microsoft.NetApp.Snapshots.get","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.list":"Microsoft.NetApp.Snapshots.list","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.restoreFiles":"Microsoft.NetApp.Snapshots.restoreFiles","com.azure.resourcemanager.netapp.fluent.SubvolumesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginCreate":"Microsoft.NetApp.SubvolumeInfos.create","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginDelete":"Microsoft.NetApp.SubvolumeInfos.delete","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginGetMetadata":"Microsoft.NetApp.SubvolumeInfos.getMetadata","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginUpdate":"Microsoft.NetApp.SubvolumeInfos.update","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.create":"Microsoft.NetApp.SubvolumeInfos.create","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.delete":"Microsoft.NetApp.SubvolumeInfos.delete","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.get":"Microsoft.NetApp.SubvolumeInfos.get","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getMetadata":"Microsoft.NetApp.SubvolumeInfos.getMetadata","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getWithResponse":"Microsoft.NetApp.SubvolumeInfos.get","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.listByVolume":"Microsoft.NetApp.SubvolumeInfos.listByVolume","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.update":"Microsoft.NetApp.SubvolumeInfos.update","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient":"Microsoft.NetApp.VolumeGroups","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginCreate":"Microsoft.NetApp.VolumeGroups.create","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginDelete":"Microsoft.NetApp.VolumeGroups.delete","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.create":"Microsoft.NetApp.VolumeGroups.create","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.delete":"Microsoft.NetApp.VolumeGroups.delete","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.get":"Microsoft.NetApp.VolumeGroups.get","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.getWithResponse":"Microsoft.NetApp.VolumeGroups.get","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.listByNetAppAccount":"Microsoft.NetApp.NetAppAccounts.listByNetAppAccount","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient":"Microsoft.NetApp.VolumeQuotaRules","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginCreate":"Microsoft.NetApp.VolumeQuotaRules.create","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginDelete":"Microsoft.NetApp.VolumeQuotaRules.delete","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginUpdate":"Microsoft.NetApp.VolumeQuotaRules.update","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.create":"Microsoft.NetApp.VolumeQuotaRules.create","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.delete":"Microsoft.NetApp.VolumeQuotaRules.delete","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.get":"Microsoft.NetApp.VolumeQuotaRules.get","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.getWithResponse":"Microsoft.NetApp.VolumeQuotaRules.get","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.listByVolume":"Microsoft.NetApp.VolumeQuotaRules.listByVolume","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.update":"Microsoft.NetApp.VolumeQuotaRules.update","com.azure.resourcemanager.netapp.fluent.VolumesClient":"Microsoft.NetApp.Volumes","com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeExternalReplication":"Microsoft.NetApp.Volumes.authorizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeReplication":"Microsoft.NetApp.Volumes.authorizeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeExternalReplication":"Microsoft.NetApp.Volumes.authorizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeReplication":"Microsoft.NetApp.Volumes.authorizeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakFileLocks":"Microsoft.NetApp.Volumes.breakFileLocks","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakReplication":"Microsoft.NetApp.Volumes.breakReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginCreateOrUpdate":"Microsoft.NetApp.Volumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDelete":"Microsoft.NetApp.Volumes.delete","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDeleteReplication":"Microsoft.NetApp.Volumes.deleteReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeExternalReplication":"Microsoft.NetApp.Volumes.finalizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeRelocation":"Microsoft.NetApp.Volumes.finalizeRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginListGetGroupIdListForLdapUser":"Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginListQuotaReport":"Microsoft.NetApp.Volumes.listQuotaReport","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPeerExternalCluster":"Microsoft.NetApp.Volumes.peerExternalCluster","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPerformReplicationTransfer":"Microsoft.NetApp.Volumes.performReplicationTransfer","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPoolChange":"Microsoft.NetApp.Volumes.poolChange","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPopulateAvailabilityZone":"Microsoft.NetApp.Volumes.populateAvailabilityZone","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReInitializeReplication":"Microsoft.NetApp.Volumes.reInitializeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReestablishReplication":"Microsoft.NetApp.Volumes.reestablishReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRelocate":"Microsoft.NetApp.Volumes.relocate","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResetCifsPassword":"Microsoft.NetApp.Volumes.resetCifsPassword","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResyncReplication":"Microsoft.NetApp.Volumes.resyncReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevert":"Microsoft.NetApp.Volumes.revert","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevertRelocation":"Microsoft.NetApp.Volumes.revertRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginSplitCloneFromParent":"Microsoft.NetApp.Volumes.splitCloneFromParent","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginUpdate":"Microsoft.NetApp.Volumes.update","com.azure.resourcemanager.netapp.fluent.VolumesClient.breakFileLocks":"Microsoft.NetApp.Volumes.breakFileLocks","com.azure.resourcemanager.netapp.fluent.VolumesClient.breakReplication":"Microsoft.NetApp.Volumes.breakReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.createOrUpdate":"Microsoft.NetApp.Volumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.VolumesClient.delete":"Microsoft.NetApp.Volumes.delete","com.azure.resourcemanager.netapp.fluent.VolumesClient.deleteReplication":"Microsoft.NetApp.Volumes.deleteReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeExternalReplication":"Microsoft.NetApp.Volumes.finalizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeRelocation":"Microsoft.NetApp.Volumes.finalizeRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.get":"Microsoft.NetApp.Volumes.get","com.azure.resourcemanager.netapp.fluent.VolumesClient.getWithResponse":"Microsoft.NetApp.Volumes.get","com.azure.resourcemanager.netapp.fluent.VolumesClient.list":"Microsoft.NetApp.Volumes.list","com.azure.resourcemanager.netapp.fluent.VolumesClient.listGetGroupIdListForLdapUser":"Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser","com.azure.resourcemanager.netapp.fluent.VolumesClient.listQuotaReport":"Microsoft.NetApp.Volumes.listQuotaReport","com.azure.resourcemanager.netapp.fluent.VolumesClient.listReplications":"Microsoft.NetApp.Volumes.listReplications","com.azure.resourcemanager.netapp.fluent.VolumesClient.peerExternalCluster":"Microsoft.NetApp.Volumes.peerExternalCluster","com.azure.resourcemanager.netapp.fluent.VolumesClient.performReplicationTransfer":"Microsoft.NetApp.Volumes.performReplicationTransfer","com.azure.resourcemanager.netapp.fluent.VolumesClient.poolChange":"Microsoft.NetApp.Volumes.poolChange","com.azure.resourcemanager.netapp.fluent.VolumesClient.populateAvailabilityZone":"Microsoft.NetApp.Volumes.populateAvailabilityZone","com.azure.resourcemanager.netapp.fluent.VolumesClient.reInitializeReplication":"Microsoft.NetApp.Volumes.reInitializeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.reestablishReplication":"Microsoft.NetApp.Volumes.reestablishReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.relocate":"Microsoft.NetApp.Volumes.relocate","com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatus":"Microsoft.NetApp.Volumes.replicationStatus","com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatusWithResponse":"Microsoft.NetApp.Volumes.replicationStatus","com.azure.resourcemanager.netapp.fluent.VolumesClient.resetCifsPassword":"Microsoft.NetApp.Volumes.resetCifsPassword","com.azure.resourcemanager.netapp.fluent.VolumesClient.resyncReplication":"Microsoft.NetApp.Volumes.resyncReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.revert":"Microsoft.NetApp.Volumes.revert","com.azure.resourcemanager.netapp.fluent.VolumesClient.revertRelocation":"Microsoft.NetApp.Volumes.revertRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.splitCloneFromParent":"Microsoft.NetApp.Volumes.splitCloneFromParent","com.azure.resourcemanager.netapp.fluent.VolumesClient.update":"Microsoft.NetApp.Volumes.update","com.azure.resourcemanager.netapp.fluent.models.AccountProperties":"Microsoft.NetApp.AccountProperties","com.azure.resourcemanager.netapp.fluent.models.BackupInner":"Microsoft.NetApp.Backup","com.azure.resourcemanager.netapp.fluent.models.BackupPatchProperties":"Microsoft.NetApp.BackupPatchProperties","com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner":"Microsoft.NetApp.BackupPolicy","com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties":"Microsoft.NetApp.BackupPolicyProperties","com.azure.resourcemanager.netapp.fluent.models.BackupProperties":"Microsoft.NetApp.BackupProperties","com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner":"Microsoft.NetApp.BackupStatus","com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner":"Microsoft.NetApp.BackupVault","com.azure.resourcemanager.netapp.fluent.models.BackupVaultProperties":"Microsoft.NetApp.BackupVaultProperties","com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner":"Microsoft.NetApp.BucketGenerateCredentials","com.azure.resourcemanager.netapp.fluent.models.BucketInner":"Microsoft.NetApp.Bucket","com.azure.resourcemanager.netapp.fluent.models.BucketPatchProperties":"Microsoft.NetApp.BucketPatchProperties","com.azure.resourcemanager.netapp.fluent.models.BucketProperties":"Microsoft.NetApp.BucketProperties","com.azure.resourcemanager.netapp.fluent.models.CacheInner":"Microsoft.NetApp.Cache","com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner":"Microsoft.NetApp.CapacityPool","com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner":"Microsoft.NetApp.CheckAvailabilityResponse","com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner":"Microsoft.NetApp.ClusterPeerCommandResponse","com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner":"Microsoft.NetApp.GetGroupIdListForLdapUserResponse","com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseInner":"Microsoft.NetApp.GetKeyVaultStatusResponse","com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseProperties":"Microsoft.NetApp.GetKeyVaultStatusResponseProperties","com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResultInner":"Microsoft.NetApp.ListQuotaReportResult","com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner":"Microsoft.NetApp.NetAppAccount","com.azure.resourcemanager.netapp.fluent.models.NetworkSiblingSetInner":"Microsoft.NetApp.NetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.models.OperationInner":"Microsoft.NetApp.Operation","com.azure.resourcemanager.netapp.fluent.models.OperationProperties":"Microsoft.NetApp.OperationProperties","com.azure.resourcemanager.netapp.fluent.models.PeeringPassphrasesInner":"Microsoft.NetApp.PeeringPassphrases","com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties":"Microsoft.NetApp.PoolPatchProperties","com.azure.resourcemanager.netapp.fluent.models.PoolProperties":"Microsoft.NetApp.PoolProperties","com.azure.resourcemanager.netapp.fluent.models.QuotaItemProperties":"Microsoft.NetApp.QuotaItemProperties","com.azure.resourcemanager.netapp.fluent.models.RansomwareReportInner":"Microsoft.NetApp.RansomwareReport","com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner":"Microsoft.NetApp.RegionInfo","com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner":"Microsoft.NetApp.RegionInfoResource","com.azure.resourcemanager.netapp.fluent.models.ReplicationInner":"Microsoft.NetApp.Replication","com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner":"Microsoft.NetApp.ReplicationStatus","com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner":"Microsoft.NetApp.RestoreStatus","com.azure.resourcemanager.netapp.fluent.models.SnapshotInner":"Microsoft.NetApp.Snapshot","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner":"Microsoft.NetApp.SnapshotPolicy","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties":"Microsoft.NetApp.SnapshotPolicyProperties","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner":"Microsoft.NetApp.SnapshotPolicyVolumeList","com.azure.resourcemanager.netapp.fluent.models.SnapshotProperties":"Microsoft.NetApp.SnapshotProperties","com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner":"Microsoft.NetApp.QuotaItem","com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner":"Microsoft.NetApp.SubvolumeInfo","com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner":"Microsoft.NetApp.SubvolumeModel","com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelProperties":"Microsoft.NetApp.SubvolumeModelProperties","com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams":"Microsoft.NetApp.SubvolumePatchParams","com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties":"Microsoft.NetApp.SubvolumeProperties","com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner":"Microsoft.NetApp.SvmPeerCommandResponse","com.azure.resourcemanager.netapp.fluent.models.UsageProperties":"Microsoft.NetApp.UsageProperties","com.azure.resourcemanager.netapp.fluent.models.UsageResultInner":"Microsoft.NetApp.UsageResult","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner":"Microsoft.NetApp.VolumeGroupDetails","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner":"Microsoft.NetApp.VolumeGroup","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupListProperties":"Microsoft.NetApp.VolumeGroupListProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupProperties":"Microsoft.NetApp.VolumeGroupProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeInner":"Microsoft.NetApp.Volume","com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties":"Microsoft.NetApp.VolumePatchProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeProperties":"Microsoft.NetApp.VolumeProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner":"Microsoft.NetApp.VolumeQuotaRule","com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRulesProperties":"Microsoft.NetApp.VolumeQuotaRulesProperties","com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder":"Microsoft.NetApp","com.azure.resourcemanager.netapp.implementation.models.BackupPoliciesList":"Microsoft.NetApp.BackupPoliciesList","com.azure.resourcemanager.netapp.implementation.models.BackupVaultsList":"Microsoft.NetApp.BackupVaultsList","com.azure.resourcemanager.netapp.implementation.models.BackupsList":"Microsoft.NetApp.BackupsList","com.azure.resourcemanager.netapp.implementation.models.BucketList":"Microsoft.NetApp.BucketList","com.azure.resourcemanager.netapp.implementation.models.CacheList":"Microsoft.NetApp.CacheList","com.azure.resourcemanager.netapp.implementation.models.CapacityPoolList":"Microsoft.NetApp.CapacityPoolList","com.azure.resourcemanager.netapp.implementation.models.ListReplications":"Microsoft.NetApp.ListReplications","com.azure.resourcemanager.netapp.implementation.models.NetAppAccountList":"Microsoft.NetApp.NetAppAccountList","com.azure.resourcemanager.netapp.implementation.models.OperationListResult":"Microsoft.NetApp.OperationListResult","com.azure.resourcemanager.netapp.implementation.models.QuotaItemList":"Microsoft.NetApp.QuotaItemList","com.azure.resourcemanager.netapp.implementation.models.RansomwareReportsList":"Microsoft.NetApp.RansomwareReportsList","com.azure.resourcemanager.netapp.implementation.models.RegionInfosList":"Microsoft.NetApp.RegionInfosList","com.azure.resourcemanager.netapp.implementation.models.SnapshotPoliciesList":"Microsoft.NetApp.SnapshotPoliciesList","com.azure.resourcemanager.netapp.implementation.models.SnapshotsList":"Microsoft.NetApp.SnapshotsList","com.azure.resourcemanager.netapp.implementation.models.SubvolumesList":"Microsoft.NetApp.SubvolumesList","com.azure.resourcemanager.netapp.implementation.models.UsagesListResult":"Microsoft.NetApp.UsagesListResult","com.azure.resourcemanager.netapp.implementation.models.VolumeGroupList":"Microsoft.NetApp.VolumeGroupList","com.azure.resourcemanager.netapp.implementation.models.VolumeList":"Microsoft.NetApp.VolumeList","com.azure.resourcemanager.netapp.implementation.models.VolumeQuotaRulesList":"Microsoft.NetApp.VolumeQuotaRulesList","com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit":"Microsoft.NetApp.AcceptGrowCapacityPoolForShortTermCloneSplit","com.azure.resourcemanager.netapp.models.AccountEncryption":"Microsoft.NetApp.AccountEncryption","com.azure.resourcemanager.netapp.models.ActiveDirectory":"Microsoft.NetApp.ActiveDirectory","com.azure.resourcemanager.netapp.models.ActiveDirectoryStatus":"Microsoft.NetApp.ActiveDirectoryStatus","com.azure.resourcemanager.netapp.models.ActualRansomwareProtectionState":"Microsoft.NetApp.ActualRansomwareProtectionState","com.azure.resourcemanager.netapp.models.ApplicationType":"Microsoft.NetApp.ApplicationType","com.azure.resourcemanager.netapp.models.AuthorizeRequest":"Microsoft.NetApp.AuthorizeRequest","com.azure.resourcemanager.netapp.models.AvsDataStore":"Microsoft.NetApp.AvsDataStore","com.azure.resourcemanager.netapp.models.AzureKeyVaultDetails":"Microsoft.NetApp.AzureKeyVaultDetails","com.azure.resourcemanager.netapp.models.BackupPatch":"Microsoft.NetApp.BackupPatch","com.azure.resourcemanager.netapp.models.BackupPolicyPatch":"Microsoft.NetApp.BackupPolicyPatch","com.azure.resourcemanager.netapp.models.BackupRestoreFiles":"Microsoft.NetApp.BackupRestoreFiles","com.azure.resourcemanager.netapp.models.BackupType":"Microsoft.NetApp.BackupType","com.azure.resourcemanager.netapp.models.BackupVaultPatch":"Microsoft.NetApp.BackupVaultPatch","com.azure.resourcemanager.netapp.models.BackupsMigrationRequest":"Microsoft.NetApp.BackupsMigrationRequest","com.azure.resourcemanager.netapp.models.BreakFileLocksRequest":"Microsoft.NetApp.BreakFileLocksRequest","com.azure.resourcemanager.netapp.models.BreakReplicationRequest":"Microsoft.NetApp.BreakReplicationRequest","com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry":"Microsoft.NetApp.BucketCredentialsExpiry","com.azure.resourcemanager.netapp.models.BucketPatch":"Microsoft.NetApp.BucketPatch","com.azure.resourcemanager.netapp.models.BucketPatchPermissions":"Microsoft.NetApp.BucketPatchPermissions","com.azure.resourcemanager.netapp.models.BucketPermissions":"Microsoft.NetApp.BucketPermissions","com.azure.resourcemanager.netapp.models.BucketServerPatchProperties":"Microsoft.NetApp.BucketServerPatchProperties","com.azure.resourcemanager.netapp.models.BucketServerProperties":"Microsoft.NetApp.BucketServerProperties","com.azure.resourcemanager.netapp.models.CacheLifeCycleState":"Microsoft.NetApp.CacheLifeCycleState","com.azure.resourcemanager.netapp.models.CacheMountTargetProperties":"Microsoft.NetApp.CacheMountTargetProperties","com.azure.resourcemanager.netapp.models.CacheProperties":"Microsoft.NetApp.CacheProperties","com.azure.resourcemanager.netapp.models.CachePropertiesExportPolicy":"Microsoft.NetApp.CachePropertiesExportPolicy","com.azure.resourcemanager.netapp.models.CacheProvisioningState":"Microsoft.NetApp.CacheProvisioningState","com.azure.resourcemanager.netapp.models.CacheUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.CacheUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.CapacityPoolPatch":"Microsoft.NetApp.CapacityPoolPatch","com.azure.resourcemanager.netapp.models.CertificateAkvDetails":"Microsoft.NetApp.CertificateAkvDetails","com.azure.resourcemanager.netapp.models.ChangeKeyVault":"Microsoft.NetApp.ChangeKeyVault","com.azure.resourcemanager.netapp.models.CheckNameResourceTypes":"Microsoft.NetApp.CheckNameResourceTypes","com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes":"Microsoft.NetApp.CheckQuotaNameResourceTypes","com.azure.resourcemanager.netapp.models.ChownMode":"Microsoft.NetApp.ChownMode","com.azure.resourcemanager.netapp.models.CifsChangeNotifyState":"Microsoft.NetApp.CifsChangeNotifyState","com.azure.resourcemanager.netapp.models.CifsUser":"Microsoft.NetApp.CifsUser","com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponseProperties":"Microsoft.NetApp.ClusterPeerCommandResponseProperties","com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy":"Microsoft.NetApp.CoolAccessRetrievalPolicy","com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy":"Microsoft.NetApp.CoolAccessTieringPolicy","com.azure.resourcemanager.netapp.models.CredentialsAkvDetails":"Microsoft.NetApp.CredentialsAkvDetails","com.azure.resourcemanager.netapp.models.CredentialsStatus":"Microsoft.NetApp.CredentialsStatus","com.azure.resourcemanager.netapp.models.DailySchedule":"Microsoft.NetApp.DailySchedule","com.azure.resourcemanager.netapp.models.DesiredRansomwareProtectionState":"Microsoft.NetApp.DesiredRansomwareProtectionState","com.azure.resourcemanager.netapp.models.DestinationReplication":"Microsoft.NetApp.DestinationReplication","com.azure.resourcemanager.netapp.models.Dimension":"Microsoft.NetApp.Dimension","com.azure.resourcemanager.netapp.models.EnableSubvolumes":"Microsoft.NetApp.EnableSubvolumes","com.azure.resourcemanager.netapp.models.EnableWriteBackState":"Microsoft.NetApp.EnableWriteBackState","com.azure.resourcemanager.netapp.models.EncryptionIdentity":"Microsoft.NetApp.EncryptionIdentity","com.azure.resourcemanager.netapp.models.EncryptionKeySource":"Microsoft.NetApp.EncryptionKeySource","com.azure.resourcemanager.netapp.models.EncryptionState":"Microsoft.NetApp.EncryptionState","com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest":"Microsoft.NetApp.EncryptionTransitionRequest","com.azure.resourcemanager.netapp.models.EncryptionType":"Microsoft.NetApp.EncryptionType","com.azure.resourcemanager.netapp.models.EndpointType":"Microsoft.NetApp.EndpointType","com.azure.resourcemanager.netapp.models.Exclude":"Microsoft.NetApp.Exclude","com.azure.resourcemanager.netapp.models.ExportPolicyRule":"Microsoft.NetApp.ExportPolicyRule","com.azure.resourcemanager.netapp.models.ExternalReplicationSetupStatus":"Microsoft.NetApp.ExternalReplicationSetupStatus","com.azure.resourcemanager.netapp.models.FileAccessLogs":"Microsoft.NetApp.FileAccessLogs","com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest":"Microsoft.NetApp.FilePathAvailabilityRequest","com.azure.resourcemanager.netapp.models.FileSystemUser":"Microsoft.NetApp.FileSystemUser","com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest":"Microsoft.NetApp.GetGroupIdListForLdapUserRequest","com.azure.resourcemanager.netapp.models.GlobalFileLockingState":"Microsoft.NetApp.GlobalFileLockingState","com.azure.resourcemanager.netapp.models.HourlySchedule":"Microsoft.NetApp.HourlySchedule","com.azure.resourcemanager.netapp.models.InAvailabilityReasonType":"Microsoft.NetApp.InAvailabilityReasonType","com.azure.resourcemanager.netapp.models.KerberosState":"Microsoft.NetApp.KerberosState","com.azure.resourcemanager.netapp.models.KeySource":"Microsoft.NetApp.KeySource","com.azure.resourcemanager.netapp.models.KeyVaultPrivateEndpoint":"Microsoft.NetApp.KeyVaultPrivateEndpoint","com.azure.resourcemanager.netapp.models.KeyVaultProperties":"Microsoft.NetApp.KeyVaultProperties","com.azure.resourcemanager.netapp.models.KeyVaultStatus":"Microsoft.NetApp.KeyVaultStatus","com.azure.resourcemanager.netapp.models.LdapSearchScopeOpt":"Microsoft.NetApp.LdapSearchScopeOpt","com.azure.resourcemanager.netapp.models.LdapServerType":"Microsoft.NetApp.LdapServerType","com.azure.resourcemanager.netapp.models.LdapState":"Microsoft.NetApp.LdapState","com.azure.resourcemanager.netapp.models.ListQuotaReportResponse":"Microsoft.NetApp.ListQuotaReportResponse","com.azure.resourcemanager.netapp.models.ListReplicationsRequest":"Microsoft.NetApp.ListReplicationsRequest","com.azure.resourcemanager.netapp.models.LogSpecification":"Microsoft.NetApp.LogSpecification","com.azure.resourcemanager.netapp.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.netapp.models.MetricAggregationType":"Microsoft.NetApp.MetricAggregationType","com.azure.resourcemanager.netapp.models.MetricSpecification":"Microsoft.NetApp.MetricSpecification","com.azure.resourcemanager.netapp.models.MirrorState":"Microsoft.NetApp.MirrorState","com.azure.resourcemanager.netapp.models.MonthlySchedule":"Microsoft.NetApp.MonthlySchedule","com.azure.resourcemanager.netapp.models.MountTargetProperties":"Microsoft.NetApp.MountTargetProperties","com.azure.resourcemanager.netapp.models.MultiAdStatus":"Microsoft.NetApp.MultiAdStatus","com.azure.resourcemanager.netapp.models.NetAppAccountPatch":"Microsoft.NetApp.NetAppAccountPatch","com.azure.resourcemanager.netapp.models.NetworkFeatures":"Microsoft.NetApp.NetworkFeatures","com.azure.resourcemanager.netapp.models.NetworkSiblingSetProvisioningState":"Microsoft.NetApp.NetworkSiblingSetProvisioningState","com.azure.resourcemanager.netapp.models.NfsUser":"Microsoft.NetApp.NfsUser","com.azure.resourcemanager.netapp.models.NicInfo":"Microsoft.NetApp.NicInfo","com.azure.resourcemanager.netapp.models.OnCertificateConflictAction":"Microsoft.NetApp.OnCertificateConflictAction","com.azure.resourcemanager.netapp.models.OperationDisplay":"Microsoft.NetApp.OperationDisplay","com.azure.resourcemanager.netapp.models.OriginClusterInformation":"Microsoft.NetApp.OriginClusterInformation","com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest":"Microsoft.NetApp.PeerClusterForVolumeMigrationRequest","com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs":"Microsoft.NetApp.PlacementKeyValuePairs","com.azure.resourcemanager.netapp.models.PoolChangeRequest":"Microsoft.NetApp.PoolChangeRequest","com.azure.resourcemanager.netapp.models.ProtocolTypes":"Microsoft.NetApp.ProtocolTypes","com.azure.resourcemanager.netapp.models.ProvisioningState":"Microsoft.NetApp.NetAppProvisioningState","com.azure.resourcemanager.netapp.models.QosType":"Microsoft.NetApp.QosType","com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest":"Microsoft.NetApp.QueryNetworkSiblingSetRequest","com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest":"Microsoft.NetApp.QuotaAvailabilityRequest","com.azure.resourcemanager.netapp.models.QuotaReport":"Microsoft.NetApp.QuotaReport","com.azure.resourcemanager.netapp.models.QuotaReportFilterRequest":"Microsoft.NetApp.QuotaReportFilterRequest","com.azure.resourcemanager.netapp.models.QuotaType":"Microsoft.NetApp.QuotaType","com.azure.resourcemanager.netapp.models.RansomwareProtectionPatchSettings":"Microsoft.NetApp.RansomwareProtectionPatchSettings","com.azure.resourcemanager.netapp.models.RansomwareProtectionSettings":"Microsoft.NetApp.RansomwareProtectionSettings","com.azure.resourcemanager.netapp.models.RansomwareReportProperties":"Microsoft.NetApp.RansomwareReportProperties","com.azure.resourcemanager.netapp.models.RansomwareReportSeverity":"Microsoft.NetApp.RansomwareReportSeverity","com.azure.resourcemanager.netapp.models.RansomwareReportState":"Microsoft.NetApp.RansomwareReportState","com.azure.resourcemanager.netapp.models.RansomwareSuspectResolution":"Microsoft.NetApp.RansomwareSuspectResolution","com.azure.resourcemanager.netapp.models.RansomwareSuspects":"Microsoft.NetApp.RansomwareSuspects","com.azure.resourcemanager.netapp.models.RansomwareSuspectsClearRequest":"Microsoft.NetApp.RansomwareSuspectsClearRequest","com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest":"Microsoft.NetApp.ReestablishReplicationRequest","com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem":"Microsoft.NetApp.RegionInfoAvailabilityZoneMappingsItem","com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity":"Microsoft.NetApp.RegionStorageToNetworkProximity","com.azure.resourcemanager.netapp.models.RelocateVolumeRequest":"Microsoft.NetApp.RelocateVolumeRequest","com.azure.resourcemanager.netapp.models.RemotePath":"Microsoft.NetApp.RemotePath","com.azure.resourcemanager.netapp.models.ReplicationMirrorState":"Microsoft.NetApp.ReplicationMirrorState","com.azure.resourcemanager.netapp.models.ReplicationObject":"Microsoft.NetApp.ReplicationObject","com.azure.resourcemanager.netapp.models.ReplicationSchedule":"Microsoft.NetApp.ReplicationSchedule","com.azure.resourcemanager.netapp.models.ReplicationType":"Microsoft.NetApp.ReplicationType","com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest":"Microsoft.NetApp.ResourceNameAvailabilityRequest","com.azure.resourcemanager.netapp.models.SecurityStyle":"Microsoft.NetApp.SecurityStyle","com.azure.resourcemanager.netapp.models.ServiceLevel":"Microsoft.NetApp.ServiceLevel","com.azure.resourcemanager.netapp.models.ServiceSpecification":"Microsoft.NetApp.ServiceSpecification","com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration":"Microsoft.NetApp.SmbAccessBasedEnumeration","com.azure.resourcemanager.netapp.models.SmbEncryptionState":"Microsoft.NetApp.SmbEncryptionState","com.azure.resourcemanager.netapp.models.SmbNonBrowsable":"Microsoft.NetApp.SmbNonBrowsable","com.azure.resourcemanager.netapp.models.SmbSettings":"Microsoft.NetApp.SmbSettings","com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch":"Microsoft.NetApp.SnapshotPolicyPatch","com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles":"Microsoft.NetApp.SnapshotRestoreFiles","com.azure.resourcemanager.netapp.models.SubvolumePatchRequest":"Microsoft.NetApp.SubvolumePatchRequest","com.azure.resourcemanager.netapp.models.SuspectFile":"Microsoft.NetApp.SuspectFile","com.azure.resourcemanager.netapp.models.SvmPeerCommandResponseProperties":"Microsoft.NetApp.SvmPeerCommandResponseProperties","com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest":"Microsoft.NetApp.UpdateNetworkSiblingSetRequest","com.azure.resourcemanager.netapp.models.UsageName":"Microsoft.NetApp.UsageName","com.azure.resourcemanager.netapp.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.netapp.models.VolumeBackupProperties":"Microsoft.NetApp.VolumeBackupProperties","com.azure.resourcemanager.netapp.models.VolumeBackupRelationshipStatus":"Microsoft.NetApp.VolumeBackupRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeBackups":"Microsoft.NetApp.VolumeBackups","com.azure.resourcemanager.netapp.models.VolumeGroupMetadata":"Microsoft.NetApp.VolumeGroupMetaData","com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties":"Microsoft.NetApp.VolumeGroupVolumeProperties","com.azure.resourcemanager.netapp.models.VolumeLanguage":"Microsoft.NetApp.VolumeLanguage","com.azure.resourcemanager.netapp.models.VolumePatch":"Microsoft.NetApp.VolumePatch","com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection":"Microsoft.NetApp.VolumePatchPropertiesDataProtection","com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy":"Microsoft.NetApp.VolumePatchPropertiesExportPolicy","com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection":"Microsoft.NetApp.VolumePropertiesDataProtection","com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy":"Microsoft.NetApp.VolumePropertiesExportPolicy","com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch":"Microsoft.NetApp.VolumeQuotaRulePatch","com.azure.resourcemanager.netapp.models.VolumeRelocationProperties":"Microsoft.NetApp.VolumeRelocationProperties","com.azure.resourcemanager.netapp.models.VolumeReplicationRelationshipStatus":"Microsoft.NetApp.VolumeReplicationRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeRestoreRelationshipStatus":"Microsoft.NetApp.VolumeRestoreRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeRevert":"Microsoft.NetApp.VolumeRevert","com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties":"Microsoft.NetApp.VolumeSnapshotProperties","com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity":"Microsoft.NetApp.VolumeStorageToNetworkProximity","com.azure.resourcemanager.netapp.models.WeeklySchedule":"Microsoft.NetApp.WeeklySchedule"},"generatedFiles":["src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java","src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/CachesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/RansomwareReportsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CacheInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ClusterPeerCommandResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetGroupIdListForLdapUserResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PeeringPassphrasesInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RansomwareReportInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SvmPeerCommandResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java","src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CacheImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CachesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CachesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/GetKeyVaultStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PeeringPassphrasesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoResourceImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupPoliciesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupVaultsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BucketList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/CacheList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/CapacityPoolList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ListReplications.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/NetAppAccountList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/QuotaItemList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/RansomwareReportsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/RegionInfosList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotPoliciesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SubvolumesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/UsagesListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeGroupList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeQuotaRulesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java","src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java","src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java","src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ActualRansomwareProtectionState.java","src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java","src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java","src/main/java/com/azure/resourcemanager/netapp/models/AzureKeyVaultDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/Backup.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupRestoreFiles.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupType.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVault.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/Backups.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsMigrationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderBackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderVolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPatchPermissions.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPermissions.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java","src/main/java/com/azure/resourcemanager/netapp/models/Cache.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheLifeCycleState.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheMountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CachePropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/Caches.java","src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java","src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/CertificateAkvDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/ChangeKeyVault.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckQuotaNameResourceTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/ChownMode.java","src/main/java/com/azure/resourcemanager/netapp/models/CifsChangeNotifyState.java","src/main/java/com/azure/resourcemanager/netapp/models/CifsUser.java","src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessTieringPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CredentialsAkvDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/DesiredRansomwareProtectionState.java","src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java","src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java","src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/EnableWriteBackState.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionKeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionState.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionTransitionRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java","src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java","src/main/java/com/azure/resourcemanager/netapp/models/Exclude.java","src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java","src/main/java/com/azure/resourcemanager/netapp/models/ExternalReplicationSetupStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java","src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java","src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/GetKeyVaultStatusResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/GlobalFileLockingState.java","src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java","src/main/java/com/azure/resourcemanager/netapp/models/KerberosState.java","src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPrivateEndpoint.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapState.java","src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResult.java","src/main/java/com/azure/resourcemanager/netapp/models/ListReplicationsRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java","src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java","src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/MultiAdStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceRegionInfos.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java","src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/OnCertificateConflictAction.java","src/main/java/com/azure/resourcemanager/netapp/models/Operation.java","src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/netapp/models/Operations.java","src/main/java/com/azure/resourcemanager/netapp/models/OriginClusterInformation.java","src/main/java/com/azure/resourcemanager/netapp/models/PeerClusterForVolumeMigrationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/PeeringPassphrases.java","src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java","src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Pools.java","src/main/java/com/azure/resourcemanager/netapp/models/ProtocolTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/QosType.java","src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaReportFilterRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaType.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareProtectionPatchSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareProtectionSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReport.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportSeverity.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportState.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReports.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspectResolution.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspects.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspectsClearRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoResource.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java","src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RemotePath.java","src/main/java/com/azure/resourcemanager/netapp/models/Replication.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationMirrorState.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java","src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java","src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java","src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbEncryptionState.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java","src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java","src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/SuspectFile.java","src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java","src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java","src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/Volume.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeReplicationRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRestoreRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java","src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java","src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/package-info.java","src/main/java/com/azure/resourcemanager/netapp/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json index fdbabe6bdace..c411aa3bf0d7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.netapp.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.netapp.implementation.ActiveDirectoryConfigsClientImpl$ActiveDirectoryConfigsService"],["com.azure.resourcemanager.netapp.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.netapp.implementation.BackupVaultsClientImpl$BackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsClientImpl$BackupsUnderAccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsClientImpl$BackupsUnderBackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesClientImpl$BackupsUnderVolumesService"],["com.azure.resourcemanager.netapp.implementation.BucketsClientImpl$BucketsService"],["com.azure.resourcemanager.netapp.implementation.CachesClientImpl$CachesService"],["com.azure.resourcemanager.netapp.implementation.ElasticAccountsClientImpl$ElasticAccountsService"],["com.azure.resourcemanager.netapp.implementation.ElasticBackupPoliciesClientImpl$ElasticBackupPoliciesService"],["com.azure.resourcemanager.netapp.implementation.ElasticBackupVaultsClientImpl$ElasticBackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.ElasticBackupsClientImpl$ElasticBackupsService"],["com.azure.resourcemanager.netapp.implementation.ElasticCapacityPoolsClientImpl$ElasticCapacityPoolsService"],["com.azure.resourcemanager.netapp.implementation.ElasticSnapshotPoliciesClientImpl$ElasticSnapshotPoliciesService"],["com.azure.resourcemanager.netapp.implementation.ElasticSnapshotsClientImpl$ElasticSnapshotsService"],["com.azure.resourcemanager.netapp.implementation.ElasticVolumesClientImpl$ElasticVolumesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsClientImpl$NetAppResourceQuotaLimitsAccountsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsClientImpl$NetAppResourceQuotaLimitsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosClientImpl$NetAppResourceRegionInfosService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceUsagesClientImpl$NetAppResourceUsagesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourcesClientImpl$NetAppResourcesService"],["com.azure.resourcemanager.netapp.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.netapp.implementation.PoolsClientImpl$PoolsService"],["com.azure.resourcemanager.netapp.implementation.RansomwareReportsClientImpl$RansomwareReportsService"],["com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesClientImpl$SnapshotPoliciesService"],["com.azure.resourcemanager.netapp.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.netapp.implementation.SubvolumesClientImpl$SubvolumesService"],["com.azure.resourcemanager.netapp.implementation.VolumeGroupsClientImpl$VolumeGroupsService"],["com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesClientImpl$VolumeQuotaRulesService"],["com.azure.resourcemanager.netapp.implementation.VolumesClientImpl$VolumesService"]] \ No newline at end of file +[["com.azure.resourcemanager.netapp.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.netapp.implementation.BackupVaultsClientImpl$BackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsClientImpl$BackupsUnderAccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsClientImpl$BackupsUnderBackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesClientImpl$BackupsUnderVolumesService"],["com.azure.resourcemanager.netapp.implementation.BucketsClientImpl$BucketsService"],["com.azure.resourcemanager.netapp.implementation.CachesClientImpl$CachesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsClientImpl$NetAppResourceQuotaLimitsAccountsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsClientImpl$NetAppResourceQuotaLimitsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosClientImpl$NetAppResourceRegionInfosService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceUsagesClientImpl$NetAppResourceUsagesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourcesClientImpl$NetAppResourcesService"],["com.azure.resourcemanager.netapp.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.netapp.implementation.PoolsClientImpl$PoolsService"],["com.azure.resourcemanager.netapp.implementation.RansomwareReportsClientImpl$RansomwareReportsService"],["com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesClientImpl$SnapshotPoliciesService"],["com.azure.resourcemanager.netapp.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.netapp.implementation.SubvolumesClientImpl$SubvolumesService"],["com.azure.resourcemanager.netapp.implementation.VolumeGroupsClientImpl$VolumeGroupsService"],["com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesClientImpl$VolumeQuotaRulesService"],["com.azure.resourcemanager.netapp.implementation.VolumesClientImpl$VolumesService"]] \ No newline at end of file diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java index 4c661cb8cb35..615817e53865 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java @@ -13,7 +13,7 @@ */ public final class AccountsChangeKeyVaultSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_ChangeKeyVault.json + * x-ms-original-file: 2026-01-01/Accounts_ChangeKeyVault.json */ /** * Sample code: Accounts_ChangeKeyVault. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java index a802862f0d1c..e1f6ac0ae03e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.netapp.generated; import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.azure.resourcemanager.netapp.models.LdapConfiguration; import java.util.Arrays; /** @@ -13,7 +12,7 @@ */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -25,7 +24,7 @@ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: 2025-12-15-preview/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: 2026-01-01/Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. @@ -50,23 +49,4 @@ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAp .withLdapOverTls(false))) .create(); } - - /* - * x-ms-original-file: 2025-12-15-preview/Accounts_CreateOrUpdateLdapConfig.json - */ - /** - * Sample code: Accounts_CreateOrUpdateLdapConfig. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountsCreateOrUpdateLdapConfig(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.accounts() - .define("account1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withLdapConfiguration(new LdapConfiguration().withDomain("example.com") - .withLdapServers(Arrays.asList("192.0.2.1", "192.0.2.2")) - .withLdapOverTLS(false)) - .create(); - } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java index 432f0b7011cd..9be0df64cdb5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_Delete.json + * x-ms-original-file: 2026-01-01/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java index 261ad7d12e31..9c9d556c1974 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_Get.json + * x-ms-original-file: 2026-01-01/Accounts_Get.json */ /** * Sample code: Accounts_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java index 1ff0a695874a..f77d16fad988 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsGetChangeKeyVaultInformationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_GetChangeKeyVaultInformation.json + * x-ms-original-file: 2026-01-01/Accounts_GetChangeKeyVaultInformation.json */ /** * Sample code: Accounts_GetChangeKeyVaultInformation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java index 1753cd6258ef..7fa219b2b162 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_List.json + * x-ms-original-file: 2026-01-01/Accounts_List.json */ /** * Sample code: Accounts_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java index a405991e3997..4e632fd6ab03 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_ListBySubscription.json + * x-ms-original-file: 2026-01-01/Accounts_ListBySubscription.json */ /** * Sample code: Accounts_ListBySubscription. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java index 5332b00797b3..6fed9ed4dd47 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_RenewCredentials.json + * x-ms-original-file: 2026-01-01/Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java index b422d4c2e66c..60ac3b85f949 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java @@ -11,7 +11,7 @@ */ public final class AccountsTransitionToCmkSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_TransitionEncryptionKey.json + * x-ms-original-file: 2026-01-01/Accounts_TransitionEncryptionKey.json */ /** * Sample code: Accounts_MigrateEncryptionKey. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java index 15c30e362792..3a4d08177ebb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Accounts_Update.json + * x-ms-original-file: 2026-01-01/Accounts_Update.json */ /** * Sample code: Accounts_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsCreateOrUpdateSamples.java deleted file mode 100644 index 16200b593f9c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsCreateOrUpdateSamples.java +++ /dev/null @@ -1,70 +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.generated; - -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: 2025-12-15-preview/ActiveDirectoryConfigs_CreateOrUpdate.json - */ - /** - * Sample code: ActiveDirectoryConfigs_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - activeDirectoryConfigsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs() - .define("adconfig1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withTags(mapOf("ac-tag1", "activeDirectoryConfig1")) - .withProperties(new ActiveDirectoryConfigProperties().withUserName("admin1") - .withDns(Arrays.asList("10.10.10.4", "10.10.10.5")) - .withSmbServerName("smbServer") - .withOrganizationalUnit("OU=Computers,DC=corp,DC=contoso,DC=com") - .withSite("Default-First-Site-Name") - .withBackupOperators(Arrays.asList("backupOp1")) - .withAdministrators(Arrays.asList("admin1")) - .withSecurityOperators(Arrays.asList("secOp1")) - .withDomain("example.net") - .withSecretPassword(new SecretPassword() - .withKeyVaultProperties( - new SecretPasswordKeyVaultProperties().withKeyVaultUri("fakeTokenPlaceholder") - .withSecretName("fakeTokenPlaceholder")) - .withIdentity(new SecretPasswordIdentity().withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity1")))) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity1", - new UserAssignedIdentity()))) - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsDeleteSamples.java deleted file mode 100644 index b57128153371..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsDeleteSamples.java +++ /dev/null @@ -1,22 +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.generated; - -/** - * Samples for ActiveDirectoryConfigs Delete. - */ -public final class ActiveDirectoryConfigsDeleteSamples { - /* - * x-ms-original-file: 2025-12-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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsGetByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsGetByResourceGroupSamples.java deleted file mode 100644 index f052d1f2f7b0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsGetByResourceGroupSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ActiveDirectoryConfigs GetByResourceGroup. - */ -public final class ActiveDirectoryConfigsGetByResourceGroupSamples { - /* - * x-ms-original-file: 2025-12-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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListByResourceGroupSamples.java deleted file mode 100644 index b0ebbecc0d25..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListByResourceGroupSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ActiveDirectoryConfigs ListByResourceGroup. - */ -public final class ActiveDirectoryConfigsListByResourceGroupSamples { - /* - * x-ms-original-file: 2025-12-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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListSamples.java deleted file mode 100644 index 593e124d0a03..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ActiveDirectoryConfigs List. - */ -public final class ActiveDirectoryConfigsListSamples { - /* - * x-ms-original-file: 2025-12-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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsUpdateSamples.java deleted file mode 100644 index fea1ac9e9c6f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsUpdateSamples.java +++ /dev/null @@ -1,30 +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.generated; - -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: 2025-12-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(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java index e4084c5f512d..d64d48fd35d8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java @@ -9,7 +9,7 @@ */ public final class BackupPoliciesCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupPolicies_Create.json + * x-ms-original-file: 2026-01-01/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java index 100c00d92a11..d2902d39a518 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupPolicies_Delete.json + * x-ms-original-file: 2026-01-01/BackupPolicies_Delete.json */ /** * Sample code: BackupPolicies_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java index 669b912ea178..167faa67bfdf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupPolicies_Get.json + * x-ms-original-file: 2026-01-01/BackupPolicies_Get.json */ /** * Sample code: BackupPolicies_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java index c0ef185e487b..85d7f69ef23c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupPolicies_List.json + * x-ms-original-file: 2026-01-01/BackupPolicies_List.json */ /** * Sample code: BackupPolicies_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java index b595ba245411..1eb106e6ebc9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class BackupPoliciesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupPolicies_Update.json + * x-ms-original-file: 2026-01-01/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java index aec8b7b6807f..dcf0e75d4c13 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ */ public final class BackupVaultsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupVaults_Create.json + * x-ms-original-file: 2026-01-01/BackupVaults_Create.json */ /** * Sample code: BackupVault_CreateOrUpdate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java index e7a185190780..1381cc1fc149 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class BackupVaultsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupVaults_Delete.json + * x-ms-original-file: 2026-01-01/BackupVaults_Delete.json */ /** * Sample code: BackupVaults_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java index 22cbae53a34b..9a2f7b480655 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupVaultsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupVaults_Get.json + * x-ms-original-file: 2026-01-01/BackupVaults_Get.json */ /** * Sample code: BackupVaults_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java index 4545dad917cf..66a1edd45c55 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java @@ -9,7 +9,7 @@ */ public final class BackupVaultsListByNetAppAccountSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupVaults_List.json + * x-ms-original-file: 2026-01-01/BackupVaults_List.json */ /** * Sample code: BackupVaults_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java index dd2115e39c72..17c94c20959d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class BackupVaultsUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupVaults_Update.json + * x-ms-original-file: 2026-01-01/BackupVaults_Update.json */ /** * Sample code: BackupVaults_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java index 0a295ba7f914..bc51d26f9016 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderBackupVault_Create.json + * x-ms-original-file: 2026-01-01/BackupsUnderBackupVault_Create.json */ /** * Sample code: BackupsUnderBackupVault_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java index 10aae5a2432c..eb696c3df812 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderBackupVault_Delete.json + * x-ms-original-file: 2026-01-01/BackupsUnderBackupVault_Delete.json */ /** * Sample code: BackupsUnderBackupVault_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java index 6a0fd7f093fe..bb9bca69a51e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsGetLatestStatusSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_LatestBackupStatus.json + * x-ms-original-file: 2026-01-01/Volumes_LatestBackupStatus.json */ /** * Sample code: Volumes_BackupStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java index ca6fdae47278..a31a894662e5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderBackupVault_Get.json + * x-ms-original-file: 2026-01-01/BackupsUnderBackupVault_Get.json */ /** * Sample code: BackupsUnderBackupVault_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java index 49b21f9b3940..461f6c829097 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsGetVolumeLatestRestoreStatusSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_LatestRestoreStatus.json + * x-ms-original-file: 2026-01-01/Volumes_LatestRestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java index 702f3eb28cfb..b05a33e8d405 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java @@ -9,14 +9,14 @@ */ public final class BackupsListByVaultSamples { /* - * x-ms-original-file: 2025-12-15-preview/Backups_ListByVault.json + * x-ms-original-file: 2026-01-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); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java index 933ab710b85e..51f9a5e03ca4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java @@ -11,7 +11,7 @@ */ public final class BackupsUnderAccountMigrateBackupsSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderAccount_Migrate.json + * x-ms-original-file: 2026-01-01/BackupsUnderAccount_Migrate.json */ /** * Sample code: BackupsUnderAccount_Migrate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java index ebe822e469fc..ccf52b7bad09 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java @@ -12,7 +12,7 @@ */ public final class BackupsUnderBackupVaultRestoreFilesSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderBackupVault_SingleFileRestore.json + * x-ms-original-file: 2026-01-01/BackupsUnderBackupVault_SingleFileRestore.json */ /** * Sample code: Backups_SingleFileRestore. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java index 83f50f6c6f6e..b02145640f96 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java @@ -11,7 +11,7 @@ */ public final class BackupsUnderVolumeMigrateBackupsSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderVolume_Migrate.json + * x-ms-original-file: 2026-01-01/BackupsUnderVolume_Migrate.json */ /** * Sample code: BackupsUnderVolume_Migrate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java index dd1bc08b36c3..33ac93a9b3c3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/BackupsUnderBackupVault_Update.json + * x-ms-original-file: 2026-01-01/BackupsUnderBackupVault_Update.json */ /** * Sample code: BackupsUnderBackupVault_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java index e202315299be..4b8494501ffe 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java @@ -18,7 +18,7 @@ */ public final class BucketsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Buckets_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Buckets_CreateOrUpdate.json */ /** * Sample code: Buckets_CreateOrUpdate. @@ -39,7 +39,7 @@ public static void bucketsCreateOrUpdate(com.azure.resourcemanager.netapp.NetApp } /* - * x-ms-original-file: 2025-12-15-preview/Buckets_CreateOrUpdateWithAkv.json + * x-ms-original-file: 2026-01-01/Buckets_CreateOrUpdateWithAkv.json */ /** * Sample code: Buckets_CreateOrUpdateWithAkv. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java index 93be674dae06..daa164f59d58 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class BucketsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Buckets_Delete.json + * x-ms-original-file: 2026-01-01/Buckets_Delete.json */ /** * Sample code: Buckets_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateAkvCredentialsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateAkvCredentialsSamples.java index bde7a812e9c0..46b56decfd12 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateAkvCredentialsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateAkvCredentialsSamples.java @@ -11,7 +11,7 @@ */ public final class BucketsGenerateAkvCredentialsSamples { /* - * x-ms-original-file: 2025-12-15-preview/Buckets_GenerateAkvCredentials.json + * x-ms-original-file: 2026-01-01/Buckets_GenerateAkvCredentials.json */ /** * Sample code: Buckets_GenerateAkvCredentials. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java index 5f2f2d0799b5..0e4ed9441389 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java @@ -11,7 +11,7 @@ */ public final class BucketsGenerateCredentialsSamples { /* - * x-ms-original-file: 2025-12-15-preview/Buckets_GenerateCredentials.json + * x-ms-original-file: 2026-01-01/Buckets_GenerateCredentials.json */ /** * Sample code: Buckets_GenerateCredentials. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java index 660b639dc619..92043b080082 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java @@ -9,7 +9,7 @@ */ public final class BucketsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/Buckets_Get.json + * x-ms-original-file: 2026-01-01/Buckets_Get.json */ /** * Sample code: Buckets_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java index 5e2dcaf223e5..098047c364bb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java @@ -9,7 +9,7 @@ */ public final class BucketsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/Buckets_List.json + * x-ms-original-file: 2026-01-01/Buckets_List.json */ /** * Sample code: Buckets_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsRefreshCertificateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsRefreshCertificateSamples.java index d3e5ff1eb03b..00f28a4932a4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsRefreshCertificateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsRefreshCertificateSamples.java @@ -9,7 +9,7 @@ */ public final class BucketsRefreshCertificateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Buckets_RefreshCertificate.json + * x-ms-original-file: 2026-01-01/Buckets_RefreshCertificate.json */ /** * Sample code: Buckets_RefreshCertificate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java index a0c874bb84d6..6b5d1ef72ba8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java @@ -17,7 +17,7 @@ */ public final class BucketsUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Buckets_Update.json + * x-ms-original-file: 2026-01-01/Buckets_Update.json */ /** * Sample code: Buckets_Update. @@ -37,7 +37,7 @@ public static void bucketsUpdate(com.azure.resourcemanager.netapp.NetAppFilesMan } /* - * x-ms-original-file: 2025-12-15-preview/Buckets_UpdateWithAkv.json + * x-ms-original-file: 2026-01-01/Buckets_UpdateWithAkv.json */ /** * Sample code: Buckets_UpdateWithAkv. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesCreateOrUpdateSamples.java index a83e7ba456e8..6c8a9b87fd49 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class CachesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Caches_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Caches_CreateOrUpdate.json */ /** * Sample code: Caches_CreateOrUpdate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesDeleteSamples.java index 242c7adde4a7..b98a81812b6c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class CachesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Caches_Delete.json + * x-ms-original-file: 2026-01-01/Caches_Delete.json */ /** * Sample code: Caches_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesGetSamples.java index c558b74f4074..d306f7d0677f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesGetSamples.java @@ -9,7 +9,7 @@ */ public final class CachesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/Caches_Get.json + * x-ms-original-file: 2026-01-01/Caches_Get.json */ /** * Sample code: Caches_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesSamples.java index fdb3c77ad6e1..3f34e16edf70 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesSamples.java @@ -9,7 +9,7 @@ */ public final class CachesListPeeringPassphrasesSamples { /* - * x-ms-original-file: 2025-12-15-preview/Caches_ListPeeringPassphrases.json + * x-ms-original-file: 2026-01-01/Caches_ListPeeringPassphrases.json */ /** * Sample code: Caches_ListPeeringPassphrases. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListByCapacityPoolsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListSamples.java similarity index 61% rename from sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListByCapacityPoolsSamples.java rename to sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListSamples.java index dd55dcd1f698..283939c07752 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListByCapacityPoolsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListSamples.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.netapp.generated; /** - * Samples for Caches ListByCapacityPools. + * Samples for Caches List. */ -public final class CachesListByCapacityPoolsSamples { +public final class CachesListSamples { /* - * x-ms-original-file: 2025-12-15-preview/Caches_ListByCapacityPools.json + * x-ms-original-file: 2026-01-01/Caches_List.json */ /** * Sample code: Caches_List. @@ -17,6 +17,6 @@ public final class CachesListByCapacityPoolsSamples { * @param manager Entry point to NetAppFilesManager. */ public static void cachesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.caches().listByCapacityPools("myRG", "account1", "pool1", com.azure.core.util.Context.NONE); + manager.caches().list("myRG", "account1", "pool1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeSamples.java index 51a98050cc9d..c09e3b28c7c9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeSamples.java @@ -11,7 +11,7 @@ */ public final class CachesPoolChangeSamples { /* - * x-ms-original-file: 2025-12-15-preview/Caches_PoolChange.json + * x-ms-original-file: 2026-01-01/Caches_PoolChange.json */ /** * Sample code: Caches_PoolChange. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordSamples.java index 11d4cc69f553..cdd5f6d4e6d1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordSamples.java @@ -9,7 +9,7 @@ */ public final class CachesResetSmbPasswordSamples { /* - * x-ms-original-file: 2025-12-15-preview/Caches_ResetSmbPassword.json + * x-ms-original-file: 2026-01-01/Caches_ResetSmbPassword.json */ /** * Sample code: Caches_ResetSmbPassword. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesUpdateSamples.java index 1922e79839cf..66395431caa7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class CachesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Caches_Update.json + * x-ms-original-file: 2026-01-01/Caches_Update.json */ /** * Sample code: Caches_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsCreateOrUpdateSamples.java deleted file mode 100644 index e943f67b968f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsCreateOrUpdateSamples.java +++ /dev/null @@ -1,44 +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.generated; - -import com.azure.resourcemanager.netapp.models.ElasticAccountProperties; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticAccounts CreateOrUpdate. - */ -public final class ElasticAccountsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_CreateOrUpdate.json - */ - /** - * Sample code: ElasticAccounts_CreateOrUpdate. - * - * @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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsDeleteSamples.java deleted file mode 100644 index 5815a815d588..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsDeleteSamples.java +++ /dev/null @@ -1,22 +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.generated; - -/** - * Samples for ElasticAccounts Delete. - */ -public final class ElasticAccountsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_Delete.json - */ - /** - * Sample code: ElasticAccounts_Delete. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsGetByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsGetByResourceGroupSamples.java deleted file mode 100644 index d1f08b838a29..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsGetByResourceGroupSamples.java +++ /dev/null @@ -1,22 +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.generated; - -/** - * Samples for ElasticAccounts GetByResourceGroup. - */ -public final class ElasticAccountsGetByResourceGroupSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_Get.json - */ - /** - * Sample code: ElasticAccounts_Get. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListByResourceGroupSamples.java deleted file mode 100644 index 17c8aa746c82..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListByResourceGroupSamples.java +++ /dev/null @@ -1,22 +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.generated; - -/** - * Samples for ElasticAccounts ListByResourceGroup. - */ -public final class ElasticAccountsListByResourceGroupSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_ListByResourceGroup.json - */ - /** - * Sample code: ElasticAccounts_ListByResourceGroup. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListSamples.java deleted file mode 100644 index 908541462d16..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListSamples.java +++ /dev/null @@ -1,22 +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.generated; - -/** - * Samples for ElasticAccounts List. - */ -public final class ElasticAccountsListSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_ListBySubscription.json - */ - /** - * Sample code: ElasticAccounts_ListBySubscription. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsUpdateSamples.java deleted file mode 100644 index f21e07093684..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsUpdateSamples.java +++ /dev/null @@ -1,41 +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.generated; - -import com.azure.resourcemanager.netapp.models.ElasticAccount; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticAccounts Update. - */ -public final class ElasticAccountsUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticAccounts_Update.json - */ - /** - * Sample code: ElasticAccounts_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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateSamples.java deleted file mode 100644 index 42b614279436..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateSamples.java +++ /dev/null @@ -1,34 +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.generated; - -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; - -/** - * Samples for ElasticBackupPolicies CreateOrUpdate. - */ -public final class ElasticBackupPoliciesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupPolicies_CreateOrUpdate.json - */ - /** - * Sample code: ElasticBackupPolicies_CreateOrUpdate. - * - * @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(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesDeleteSamples.java deleted file mode 100644 index cfd6286b7d1c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesDeleteSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticBackupPolicies Delete. - */ -public final class ElasticBackupPoliciesDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupPolicies_Delete.json - */ - /** - * Sample code: ElasticBackupPolicies_Delete. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetSamples.java deleted file mode 100644 index 312aa3b52b9c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticBackupPolicies Get. - */ -public final class ElasticBackupPoliciesGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupPolicies_Get.json - */ - /** - * Sample code: ElasticBackupPolicies_Get. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountSamples.java deleted file mode 100644 index 60337e1fb944..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticBackupPolicies ListByElasticAccount. - */ -public final class ElasticBackupPoliciesListByElasticAccountSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupPolicies_List.json - */ - /** - * Sample code: ElasticBackupPolicies_ListByElasticAccount. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesUpdateSamples.java deleted file mode 100644 index fe57f9d48779..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesUpdateSamples.java +++ /dev/null @@ -1,34 +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.generated; - -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. - */ -public final class ElasticBackupPoliciesUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupPolicies_Update.json - */ - /** - * Sample code: ElasticBackupPolicies_Update. - * - * @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(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateSamples.java deleted file mode 100644 index 286aefc5bac3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateSamples.java +++ /dev/null @@ -1,26 +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.generated; - -/** - * Samples for ElasticBackupVaults CreateOrUpdate. - */ -public final class ElasticBackupVaultsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupVaults_Create.json - */ - /** - * Sample code: ElasticBackupVaults_CreateOrUpdate. - * - * @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(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsDeleteSamples.java deleted file mode 100644 index a9ae55e5835e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsDeleteSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticBackupVaults Delete. - */ -public final class ElasticBackupVaultsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupVaults_Delete.json - */ - /** - * Sample code: ElasticBackupVaults_Delete. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetSamples.java deleted file mode 100644 index 59ceb53d764f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticBackupVaults Get. - */ -public final class ElasticBackupVaultsGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupVaults_Get.json - */ - /** - * Sample code: ElasticBackupVaults_Get. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountSamples.java deleted file mode 100644 index 019cf6ea4e03..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticBackupVaults ListByElasticAccount. - */ -public final class ElasticBackupVaultsListByElasticAccountSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupVaults_ListByElasticAccount.json - */ - /** - * Sample code: ElasticBackupVaults_ListByElasticAccount. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsUpdateSamples.java deleted file mode 100644 index 135e8cdac633..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsUpdateSamples.java +++ /dev/null @@ -1,41 +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.generated; - -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticBackupVaults Update. - */ -public final class ElasticBackupVaultsUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackupVaults_Update.json - */ - /** - * Sample code: ElasticBackupVaults_Update. - * - * @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(); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateSamples.java deleted file mode 100644 index 7036290f5093..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateSamples.java +++ /dev/null @@ -1,34 +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.generated; - -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; - -/** - * Samples for ElasticBackups CreateOrUpdate. - */ -public final class ElasticBackupsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackups_CreateOrUpdate.json - */ - /** - * Sample code: ElasticBackups_CreateOrUpdate. - * - * @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(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsDeleteSamples.java deleted file mode 100644 index ad5590d28360..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsDeleteSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticBackups Delete. - */ -public final class ElasticBackupsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackups_Delete.json - */ - /** - * Sample code: ElasticBackups_Delete. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetSamples.java deleted file mode 100644 index f7dd748e5e4a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticBackups Get. - */ -public final class ElasticBackupsGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackups_Get.json - */ - /** - * Sample code: ElasticBackups_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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultSamples.java deleted file mode 100644 index 02eea43a6a95..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultSamples.java +++ /dev/null @@ -1,22 +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.generated; - -/** - * Samples for ElasticBackups ListByVault. - */ -public final class ElasticBackupsListByVaultSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackups_ListByVault.json - */ - /** - * Sample code: ElasticBackups_ListByVault. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsUpdateSamples.java deleted file mode 100644 index 7ce8ab0fcb86..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsUpdateSamples.java +++ /dev/null @@ -1,27 +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.generated; - -import com.azure.resourcemanager.netapp.models.ElasticBackup; - -/** - * Samples for ElasticBackups Update. - */ -public final class ElasticBackupsUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticBackups_Update.json - */ - /** - * Sample code: ElasticBackups_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) - .getValue(); - resource.update().apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsChangeZoneSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsChangeZoneSamples.java deleted file mode 100644 index 2d5f1b345841..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsChangeZoneSamples.java +++ /dev/null @@ -1,26 +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.generated; - -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; - -/** - * Samples for ElasticCapacityPools ChangeZone. - */ -public final class ElasticCapacityPoolsChangeZoneSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_ChangeZone.json - */ - /** - * Sample code: ElasticCapacityPools_ChangeZone. - * - * @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"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples.java deleted file mode 100644 index 3cd46c0ef924..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples.java +++ /dev/null @@ -1,28 +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.generated; - -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; - -/** - * Samples for ElasticCapacityPools CheckVolumeFilePathAvailability. - */ -public final class ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_CheckVolumeFilePathAvailability.json - */ - /** - * Sample code: ElasticCapacityPools_CheckVolumeFilePathAvailability. - * - * @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"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCreateOrUpdateSamples.java deleted file mode 100644 index 7fd7414508c7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCreateOrUpdateSamples.java +++ /dev/null @@ -1,66 +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.generated; - -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. - */ -public final class ElasticCapacityPoolsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_CreateOrUpdateCMK.json - */ - /** - * Sample code: ElasticCapacityPools_CreateOrUpdateCMK. - * - * @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(); - } - - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_CreateOrUpdate.json - */ - /** - * Sample code: ElasticCapacityPools_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools() - .define("pool1") - .withRegion("eastus") - .withExistingElasticAccount("myRG", "account1") - .withProperties(new ElasticCapacityPoolProperties().withSize(4398046511104L) - .withServiceLevel(ElasticServiceLevel.ZONE_REDUNDANT) - .withSubnetResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") - .withActiveDirectoryConfigResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1")) - .withZones(Arrays.asList("1", "2", "3")) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsDeleteSamples.java deleted file mode 100644 index fdf6acbf68ee..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsDeleteSamples.java +++ /dev/null @@ -1,22 +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.generated; - -/** - * Samples for ElasticCapacityPools Delete. - */ -public final class ElasticCapacityPoolsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_Delete.json - */ - /** - * Sample code: ElasticCapacityPools_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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsGetSamples.java deleted file mode 100644 index 5180ce31c7e3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsGetSamples.java +++ /dev/null @@ -1,22 +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.generated; - -/** - * Samples for ElasticCapacityPools Get. - */ -public final class ElasticCapacityPoolsGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_Get.json - */ - /** - * Sample code: ElasticCapacityPools_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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsListByElasticAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsListByElasticAccountSamples.java deleted file mode 100644 index 9c8739fd1864..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsListByElasticAccountSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticCapacityPools ListByElasticAccount. - */ -public final class ElasticCapacityPoolsListByElasticAccountSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_ListByElasticAccount.json - */ - /** - * Sample code: ElasticCapacityPools_ListByElasticAccount. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsUpdateSamples.java deleted file mode 100644 index d56bca0d58ed..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsUpdateSamples.java +++ /dev/null @@ -1,32 +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.generated; - -import com.azure.resourcemanager.netapp.models.ElasticCapacityPool; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdateProperties; - -/** - * Samples for ElasticCapacityPools Update. - */ -public final class ElasticCapacityPoolsUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticCapacityPools_Update.json - */ - /** - * Sample code: ElasticCapacityPools_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticCapacityPool resource = manager.elasticCapacityPools() - .getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ElasticCapacityPoolUpdateProperties().withSize(4398046511104L) - .withActiveDirectoryConfigResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1")) - .apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateSamples.java deleted file mode 100644 index 5dedd87c8f2b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateSamples.java +++ /dev/null @@ -1,49 +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.generated; - -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: 2025-12-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(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesDeleteSamples.java deleted file mode 100644 index 45db7f780a44..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesDeleteSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticSnapshotPolicies Delete. - */ -public final class ElasticSnapshotPoliciesDeleteSamples { - /* - * x-ms-original-file: 2025-12-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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetSamples.java deleted file mode 100644 index d5af5049695b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticSnapshotPolicies Get. - */ -public final class ElasticSnapshotPoliciesGetSamples { - /* - * x-ms-original-file: 2025-12-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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountSamples.java deleted file mode 100644 index d55717ec2bb2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticSnapshotPolicies ListByElasticAccount. - */ -public final class ElasticSnapshotPoliciesListByElasticAccountSamples { - /* - * x-ms-original-file: 2025-12-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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesSamples.java deleted file mode 100644 index 5473c078431e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesSamples.java +++ /dev/null @@ -1,24 +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.generated; - -/** - * Samples for ElasticSnapshotPolicies ListElasticVolumes. - */ -public final class ElasticSnapshotPoliciesListElasticVolumesSamples { - /* - * x-ms-original-file: 2025-12-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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesUpdateSamples.java deleted file mode 100644 index 877ecb6bf74e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesUpdateSamples.java +++ /dev/null @@ -1,49 +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.generated; - -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdateProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.util.Arrays; - -/** - * Samples for ElasticSnapshotPolicies Update. - */ -public final class ElasticSnapshotPoliciesUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshotPolicies_Update.json - */ - /** - * Sample code: ElasticSnapshotPolicies_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticSnapshotPolicy resource = manager.elasticSnapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ElasticSnapshotPolicyUpdateProperties() - .withHourlySchedule(new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(2).withMinute(50)) - .withDailySchedule( - new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(3) - .withDays(Arrays.asList(DayOfWeek.WEDNESDAY)) - .withHour(14) - .withMinute(45)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(5) - .withDaysOfMonth(Arrays.asList(10, 11, 12)) - .withHour(14) - .withMinute(15)) - .withPolicyStatus(PolicyStatus.ENABLED)) - .apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateSamples.java deleted file mode 100644 index 48835b8f623f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateSamples.java +++ /dev/null @@ -1,25 +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.generated; - -/** - * Samples for ElasticSnapshots CreateOrUpdate. - */ -public final class ElasticSnapshotsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshots_CreateOrUpdate.json - */ - /** - * Sample code: ElasticSnapshots_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .define("snapshot1") - .withExistingElasticVolume("myRG", "account1", "pool1", "volume1") - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsDeleteSamples.java deleted file mode 100644 index e98023c3b8d6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsDeleteSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticSnapshots Delete. - */ -public final class ElasticSnapshotsDeleteSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshots_Delete.json - */ - /** - * Sample code: ElasticSnapshots_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetSamples.java deleted file mode 100644 index 36516839dc31..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticSnapshots Get. - */ -public final class ElasticSnapshotsGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshots_Get.json - */ - /** - * Sample code: ElasticSnapshots_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeSamples.java deleted file mode 100644 index a92c0de36ad3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeSamples.java +++ /dev/null @@ -1,24 +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.generated; - -/** - * Samples for ElasticSnapshots ListByElasticVolume. - */ -public final class ElasticSnapshotsListByElasticVolumeSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticSnapshots_ListByElasticVolume.json - */ - /** - * Sample code: ElasticSnapshots_ListByElasticVolume. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateSamples.java deleted file mode 100644 index f22226c50c94..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateSamples.java +++ /dev/null @@ -1,58 +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.generated; - -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import java.util.Arrays; - -/** - * Samples for ElasticVolumes CreateOrUpdate. - */ -public final class ElasticVolumesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-12-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(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesDeleteSamples.java deleted file mode 100644 index 450f14c4a41c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesDeleteSamples.java +++ /dev/null @@ -1,22 +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.generated; - -/** - * Samples for ElasticVolumes Delete. - */ -public final class ElasticVolumesDeleteSamples { - /* - * x-ms-original-file: 2025-12-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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetSamples.java deleted file mode 100644 index b850fb4605e1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetSamples.java +++ /dev/null @@ -1,23 +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.generated; - -/** - * Samples for ElasticVolumes Get. - */ -public final class ElasticVolumesGetSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticVolumes_Get.json - */ - /** - * Sample code: ElasticVolumes_Get. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolSamples.java deleted file mode 100644 index 5a3bfe4ed5e1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolSamples.java +++ /dev/null @@ -1,22 +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.generated; - -/** - * Samples for ElasticVolumes ListByElasticPool. - */ -public final class ElasticVolumesListByElasticPoolSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticVolumes_ListByElasticPool.json - */ - /** - * Sample code: ElasticVolumes_ListByElasticPool. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertSamples.java deleted file mode 100644 index 4d1894469186..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertSamples.java +++ /dev/null @@ -1,27 +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.generated; - -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; - -/** - * Samples for ElasticVolumes Revert. - */ -public final class ElasticVolumesRevertSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticVolumes_Revert.json - */ - /** - * Sample code: ElasticVolumes_Revert. - * - * @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); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesUpdateSamples.java deleted file mode 100644 index 147453be07e9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesUpdateSamples.java +++ /dev/null @@ -1,49 +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.generated; - -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. - */ -public final class ElasticVolumesUpdateSamples { - /* - * x-ms-original-file: 2025-12-15-preview/ElasticVolumes_Update.json - */ - /** - * Sample code: ElasticVolumes_Update. - * - * @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(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java index af5285c10094..8732c273a607 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: 2025-12-15-preview/CheckFilePathAvailability.json + * x-ms-original-file: 2026-01-01/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. @@ -21,9 +21,9 @@ public final class NetAppResourceCheckFilePathAvailabilitySamples { public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.netAppResources() .checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest() - .withName("my-exact-filepath") + .withName("my-exact-filepth") .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java index 43a7520b6a9e..85c1bfc1aad1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java @@ -12,7 +12,7 @@ */ public final class NetAppResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2025-12-15-preview/CheckNameAvailability.json + * x-ms-original-file: 2026-01-01/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java index a5f20bc8160a..32f6f9883379 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java @@ -12,7 +12,7 @@ */ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: 2025-12-15-preview/CheckQuotaAvailability.json + * x-ms-original-file: 2026-01-01/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java index 18488f899a95..91dc101c54b7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java @@ -11,7 +11,7 @@ */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetworkSiblingSet_Query.json + * x-ms-original-file: 2026-01-01/NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. @@ -23,7 +23,7 @@ public static void networkSiblingSetQuery(com.azure.resourcemanager.netapp.NetAp .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"), + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java index 9b02439f75aa..0b8b111d4521 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceQueryRegionInfoSamples { /* - * x-ms-original-file: 2025-12-15-preview/RegionInfo.json + * x-ms-original-file: 2026-01-01/RegionInfo.json */ /** * Sample code: RegionInfo_Query. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java index 923fa43cc94e..3f14b929c5a0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceQuotaLimitsAccountGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetAppResourceQuotaLimitsAccount_Get.json + * x-ms-original-file: 2026-01-01/NetAppResourceQuotaLimitsAccount_Get.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java index cc9a9a261402..371148d5578a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceQuotaLimitsAccountListSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetAppResourceQuotaLimitsAccount_List.json + * x-ms-original-file: 2026-01-01/NetAppResourceQuotaLimitsAccount_List.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java index 86f751d05eed..687ad8033e2f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceQuotaLimitsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetAppResourceQuotaLimits_Get.json + * x-ms-original-file: 2026-01-01/NetAppResourceQuotaLimits_Get.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java index ac60ff50aa0e..d6e41c44592b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceQuotaLimitsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetAppResourceQuotaLimits_List.json + * x-ms-original-file: 2026-01-01/NetAppResourceQuotaLimits_List.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java index 10b3325c17ef..5c17ea30a945 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceRegionInfosGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/RegionInfos_Get.json + * x-ms-original-file: 2026-01-01/RegionInfos_Get.json */ /** * Sample code: RegionInfos_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java index 93ae3206db2a..93662d004265 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceRegionInfosListSamples { /* - * x-ms-original-file: 2025-12-15-preview/RegionInfos_List.json + * x-ms-original-file: 2026-01-01/RegionInfos_List.json */ /** * Sample code: RegionInfos_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java index 3b0fe0ba3d24..9e5fe0f4e6ab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java @@ -12,7 +12,7 @@ */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: 2025-12-15-preview/NetworkSiblingSet_Update.json + * x-ms-original-file: 2026-01-01/NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. @@ -24,7 +24,7 @@ public static void networkFeaturesUpdate(com.azure.resourcemanager.netapp.NetApp .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") + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") .withNetworkSiblingSetStateId("12345_44420.8001578125") .withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java index b2d841ac8328..ea87b030f400 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceUsagesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/Usages_Get.json + * x-ms-original-file: 2026-01-01/Usages_Get.json */ /** * Sample code: Usages_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java index 82ed5bab7cdc..4d6ee4a9b594 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceUsagesListSamples { /* - * x-ms-original-file: 2025-12-15-preview/Usages_List.json + * x-ms-original-file: 2026-01-01/Usages_List.json */ /** * Sample code: Usages_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java index d41002165689..7a9c965619e1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/OperationList.json + * x-ms-original-file: 2026-01-01/OperationList.json */ /** * Sample code: OperationList. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java index 370dabb27f6d..9853148ca153 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Pools_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -31,7 +31,7 @@ public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFi } /* - * x-ms-original-file: 2025-12-15-preview/Pools_CreateOrUpdate_CustomThroughput.json + * x-ms-original-file: 2026-01-01/Pools_CreateOrUpdate_CustomThroughput.json */ /** * Sample code: Pools_CreateOrUpdate_CustomThroughput. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java index 09f92b36e9c1..871c1dcfd131 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Pools_Delete.json + * x-ms-original-file: 2026-01-01/Pools_Delete.json */ /** * Sample code: Pools_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java index ea08e56c2966..641597c4596e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java @@ -9,7 +9,7 @@ */ public final class PoolsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/Pools_Get_CustomThroughput.json + * x-ms-original-file: 2026-01-01/Pools_Get_CustomThroughput.json */ /** * Sample code: Pools_Get_CustomThroughput. @@ -21,7 +21,7 @@ public static void poolsGetCustomThroughput(com.azure.resourcemanager.netapp.Net } /* - * x-ms-original-file: 2025-12-15-preview/Pools_Get.json + * x-ms-original-file: 2026-01-01/Pools_Get.json */ /** * Sample code: Pools_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java index 01e9843c3528..a46b200f3cf0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java @@ -9,7 +9,7 @@ */ public final class PoolsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/Pools_List.json + * x-ms-original-file: 2026-01-01/Pools_List.json */ /** * Sample code: Pools_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java index 1d8b5ccb4c8f..3746d8d96ce1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Pools_Update.json + * x-ms-original-file: 2026-01-01/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -25,7 +25,7 @@ public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManag } /* - * x-ms-original-file: 2025-12-15-preview/Pools_Update_CustomThroughput.json + * x-ms-original-file: 2026-01-01/Pools_Update_CustomThroughput.json */ /** * Sample code: Pools_Update_CustomThroughput. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsClearSuspectsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsClearSuspectsSamples.java index b57c75cce5aa..07eb3364500c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsClearSuspectsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsClearSuspectsSamples.java @@ -13,7 +13,7 @@ */ public final class RansomwareReportsClearSuspectsSamples { /* - * x-ms-original-file: 2025-12-15-preview/RansomwareReports_ClearSuspects.json + * x-ms-original-file: 2026-01-01/RansomwareReports_ClearSuspects.json */ /** * Sample code: RansomwareReports_ClearSuspects. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetSamples.java index 13e9b960dbad..1f2a0771e57d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RansomwareReportsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/RansomwareReports_Get.json + * x-ms-original-file: 2026-01-01/RansomwareReports_Get.json */ /** * Sample code: RansomwareReports_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListSamples.java index 83f0e5250b9b..f7d47fe0204d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListSamples.java @@ -9,7 +9,7 @@ */ public final class RansomwareReportsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/RansomwareReports_List.json + * x-ms-original-file: 2026-01-01/RansomwareReports_List.json */ /** * Sample code: RansomwareReports_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java index 78a6e9d5ad97..18e4284bab5c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java @@ -14,7 +14,7 @@ */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_Create.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java index cb65ad30b8cc..6697abb50328 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_Delete.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java index cb92691419f7..686d96fa0b0f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotPoliciesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_Get.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java index e68fbb05cad5..28085ae138b5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotPoliciesListSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_List.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java index 1317803d7ab8..feec4852445a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java index 31af321f90d9..0e0517dd1ef0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/SnapshotPolicies_Update.json + * x-ms-original-file: 2026-01-01/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java index ada972ee7598..8e9443956c97 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Snapshots_Create.json + * x-ms-original-file: 2026-01-01/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java index 3a2ee04a5a4d..1df80eb6de7d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Snapshots_Delete.json + * x-ms-original-file: 2026-01-01/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java index 6b72839e17c6..d28b2a203ea7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/Snapshots_Get.json + * x-ms-original-file: 2026-01-01/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java index 18f1652d3984..dd28bc6234c8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsListSamples { /* - * x-ms-original-file: 2025-12-15-preview/Snapshots_List.json + * x-ms-original-file: 2026-01-01/Snapshots_List.json */ /** * Sample code: Snapshots_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java index cda8efa033e7..ad283cc71929 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java @@ -12,7 +12,7 @@ */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: 2025-12-15-preview/Snapshots_SingleFileRestore.json + * x-ms-original-file: 2026-01-01/Snapshots_SingleFileRestore.json */ /** * Sample code: Snapshots_SingleFileRestore. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java index 260ce1cb0fcf..ef600d85f51d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java @@ -9,7 +9,7 @@ */ public final class SubvolumesCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_Create.json + * x-ms-original-file: 2026-01-01/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java index 20937dfcac4f..262456db38c1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SubvolumesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_Delete.json + * x-ms-original-file: 2026-01-01/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java index 4e8fd3367e34..5ad40eb6a9f2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java @@ -9,7 +9,7 @@ */ public final class SubvolumesGetMetadataSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_Metadata.json + * x-ms-original-file: 2026-01-01/Subvolumes_Metadata.json */ /** * Sample code: Subvolumes_Metadata. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java index 66223fc44746..29eb4360f2a3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java @@ -9,7 +9,7 @@ */ public final class SubvolumesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_Get.json + * x-ms-original-file: 2026-01-01/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java index 187eec9d2a94..b4cd082af3c1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java @@ -9,7 +9,7 @@ */ public final class SubvolumesListByVolumeSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_List.json + * x-ms-original-file: 2026-01-01/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java index 5941dc9089b1..105d8cee79f6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class SubvolumesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Subvolumes_Update.json + * x-ms-original-file: 2026-01-01/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java index c10fa6151334..b295e8dd9da5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java @@ -17,7 +17,7 @@ */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_Create_SapHana.json + * x-ms-original-file: 2026-01-01/VolumeGroups_Create_SapHana.json */ /** * Sample code: VolumeGroups_Create_SapHana. @@ -177,7 +177,7 @@ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.Ne } /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_Create_Oracle.json + * x-ms-original-file: 2026-01-01/VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java index 9605e4daabda..020a2e74382a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeGroupsDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_Delete.json + * x-ms-original-file: 2026-01-01/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java index 90f2a7e22ea3..738330752fc4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_Get_SapHana.json + * x-ms-original-file: 2026-01-01/VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. @@ -21,7 +21,7 @@ public static void volumeGroupsGetSapHana(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_Get_Oracle.json + * x-ms-original-file: 2026-01-01/VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java index 478a4a3b7535..b9f44458cf5e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_List_Oracle.json + * x-ms-original-file: 2026-01-01/VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. @@ -21,7 +21,7 @@ public static void volumeGroupsListOracle(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: 2025-12-15-preview/VolumeGroups_List_SapHana.json + * x-ms-original-file: 2026-01-01/VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java index 85455cebfd89..80c3e95e3bfc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java @@ -11,7 +11,7 @@ */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeQuotaRules_Create.json + * x-ms-original-file: 2026-01-01/VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java index 505a348dbe7e..3068d19d8fbe 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeQuotaRules_Delete.json + * x-ms-original-file: 2026-01-01/VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java index a1441a5e5811..1ef33a9165a5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeQuotaRulesGetSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeQuotaRules_Get.json + * x-ms-original-file: 2026-01-01/VolumeQuotaRules_Get.json */ /** * Sample code: VolumeQuotaRules_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java index c39eb280bd5f..0ff0a613734c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeQuotaRulesListByVolumeSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeQuotaRules_List.json + * x-ms-original-file: 2026-01-01/VolumeQuotaRules_List.json */ /** * Sample code: VolumeQuotaRules_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java index 823a5a638460..8dd93f3104f0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/VolumeQuotaRules_Update.json + * x-ms-original-file: 2026-01-01/VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java index ed0ee701fb90..ae98dd28052d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesAuthorizeExternalReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_AuthorizeExternalReplication.json + * x-ms-original-file: 2026-01-01/Volumes_AuthorizeExternalReplication.json */ /** * Sample code: Volumes_AuthorizeExternalReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java index f680a82d05fe..d20c24a98cb4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_AuthorizeReplication.json + * x-ms-original-file: 2026-01-01/Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java index ab5e0c4b5568..dc5b0c29ae4a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesBreakFileLocksSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_BreakFileLocks.json + * x-ms-original-file: 2026-01-01/Volumes_BreakFileLocks.json */ /** * Sample code: Volumes_BreakFileLocks. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java index 0e0dd8d9671e..65285b03f7cf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_BreakReplication.json + * x-ms-original-file: 2026-01-01/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java index 209fa6c2cd8e..9de94f2fd108 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_CreateOrUpdate.json + * x-ms-original-file: 2026-01-01/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. @@ -26,7 +26,7 @@ public static void volumesCreateOrUpdate(com.azure.resourcemanager.netapp.NetApp .withCreationToken("my-unique-file-path") .withUsageThreshold(107374182400L) .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withServiceLevel(ServiceLevel.PREMIUM) .create(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java index e905aa4a4118..87686c0c2cf4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_DeleteReplication.json + * x-ms-original-file: 2026-01-01/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java index 0838f00c7468..29aa278c7bf5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_Delete.json + * x-ms-original-file: 2026-01-01/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java index 9bd992905043..edf41759830c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesFinalizeExternalReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_FinalizeExternalReplication.json + * x-ms-original-file: 2026-01-01/Volumes_FinalizeExternalReplication.json */ /** * Sample code: Volumes_FinalizeExternalReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java index 6dffa0b4d6bb..7e9c11f3e96e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_FinalizeRelocation.json + * x-ms-original-file: 2026-01-01/Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java index 095ac460cbed..09d7251986f2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java @@ -9,19 +9,7 @@ */ public final class VolumesGetSamples { /* - * x-ms-original-file: 2025-12-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: 2025-12-15-preview/Volumes_Get.json + * x-ms-original-file: 2026-01-01/Volumes_Get.json */ /** * Sample code: Volumes_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java index a37c1a2c8f09..c566725b2178 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesListGetGroupIdListForLdapUserSamples { /* - * x-ms-original-file: 2025-12-15-preview/GroupIdListForLDAPUser.json + * x-ms-original-file: 2026-01-01/GroupIdListForLDAPUser.json */ /** * Sample code: GetGroupIdListForUser. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java index 8eedc8ca1880..520b5ad5bfc3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesListQuotaReportSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ListQuotaReport.json + * x-ms-original-file: 2026-01-01/Volumes_ListQuotaReport.json */ /** * Sample code: ListQuotaReport. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java index 574b36ac7199..c7d6f6c368e0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java @@ -12,7 +12,7 @@ */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ListReplications.json + * x-ms-original-file: 2026-01-01/Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java index 3ae1fbce7b8e..33deabeda8f8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java @@ -9,19 +9,7 @@ */ public final class VolumesListSamples { /* - * x-ms-original-file: 2025-12-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: 2025-12-15-preview/Volumes_List.json + * x-ms-original-file: 2026-01-01/Volumes_List.json */ /** * Sample code: Volumes_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java index 5d2d6511fe86..048a5c8fda85 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java @@ -12,7 +12,7 @@ */ public final class VolumesPeerExternalClusterSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_PeerExternalCluster.json + * x-ms-original-file: 2026-01-01/Volumes_PeerExternalCluster.json */ /** * Sample code: Volumes_PeerExternalCluster. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java index b0e54922fc49..7b640efccb62 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesPerformReplicationTransferSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_PerformReplicationTransfer.json + * x-ms-original-file: 2026-01-01/Volumes_PerformReplicationTransfer.json */ /** * Sample code: Volumes_PerformReplicationTransfer. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java index 46e6bee9fdf7..460c439fd1ef 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesPoolChangeSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_PoolChange.json + * x-ms-original-file: 2026-01-01/Volumes_PoolChange.json */ /** * Sample code: Volumes_PoolChange. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java index eb36653fd1a9..a22239204229 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: 2026-01-01/Volumes_PopulateAvailabilityZones.json */ /** * Sample code: Volumes_PopulateAvailabilityZones. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java index 3b4bb0f4cdb5..f3f35db1b4b2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ReInitializeReplication.json + * x-ms-original-file: 2026-01-01/Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java index 87ebde63bd74..c8617453e182 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ReestablishReplication.json + * x-ms-original-file: 2026-01-01/Volumes_ReestablishReplication.json */ /** * Sample code: Volumes_ReestablishReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java index 5948c86d66e2..71a9e3c34f5b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesRelocateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_Relocate.json + * x-ms-original-file: 2026-01-01/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java index 9a3fb951f154..c569c95dc423 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ReplicationStatus.json + * x-ms-original-file: 2026-01-01/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java index 64e0f59a013f..a60c4b6c7adc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ResetCifsPassword.json + * x-ms-original-file: 2026-01-01/Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java index 3af8b52e1cd1..847c1bab25ed 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_ResyncReplication.json + * x-ms-original-file: 2026-01-01/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java index fa4c9148ab78..afa90de62035 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_RevertRelocation.json + * x-ms-original-file: 2026-01-01/Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java index ea08fbeccb95..9dbe4ebd4ce7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesRevertSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_Revert.json + * x-ms-original-file: 2026-01-01/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java index 4d2f4c72b225..5043f0b66a6d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesSplitCloneFromParentSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_SplitClone.json + * x-ms-original-file: 2026-01-01/Volumes_SplitClone.json */ /** * Sample code: Volumes_SplitClone. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java index 8764d0a7cb1d..8c7350ae6aaa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: 2025-12-15-preview/Volumes_Update.json + * x-ms-original-file: 2026-01-01/Volumes_Update.json */ /** * Sample code: Volumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java index ff72ab761994..11802bb16009 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java @@ -27,7 +27,7 @@ public void testRenewCredentials() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.accounts().renewCredentials("dsaidjanormovdxx", "rntu", com.azure.core.util.Context.NONE); + manager.accounts().renewCredentials("h", "cgqyhleseyq", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java index 41028fdc4480..da5a239dcdab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java @@ -23,7 +23,7 @@ public final class BackupPoliciesCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"backupPolicyId\":\"vwypusuvjsl\",\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":73772123,\"weeklyBackupsToKeep\":1150687421,\"monthlyBackupsToKeep\":1300819103,\"volumesAssigned\":1346568270,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"adqacfrgnawba\",\"volumeResourceId\":\"fbktyjmfczlf\",\"backupsCount\":1442210769,\"policyEnabled\":false},{\"volumeName\":\"bzgowoxqmje\",\"volumeResourceId\":\"cxn\",\"backupsCount\":1764625180,\"policyEnabled\":true},{\"volumeName\":\"usrvx\",\"volumeResourceId\":\"i\",\"backupsCount\":1649166943,\"policyEnabled\":false},{\"volumeName\":\"bjqvls\",\"volumeResourceId\":\"ywzash\",\"backupsCount\":1542636173,\"policyEnabled\":false}]},\"etag\":\"jfqipubyznclkfk\",\"location\":\"bgvopemt\",\"tags\":{\"vn\":\"ujlyegq\",\"lxdbfvabmvms\":\"gflqqbtnyjp\",\"uhvajmailfemjjza\":\"baevwjcnkottl\"},\"id\":\"zwjiqullq\",\"name\":\"bdmvrscmqerndbr\",\"type\":\"yeofltfnnxrkad\"}"; + = "{\"properties\":{\"backupPolicyId\":\"otoihiqa\",\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":1733569114,\"weeklyBackupsToKeep\":995984285,\"monthlyBackupsToKeep\":587303890,\"volumesAssigned\":1264970235,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"podaq\",\"volumeResourceId\":\"sipi\",\"backupsCount\":1379010451,\"policyEnabled\":false},{\"volumeName\":\"jfulbmoic\",\"volumeResourceId\":\"lpnfpubntnb\",\"backupsCount\":750535410,\"policyEnabled\":true},{\"volumeName\":\"sowsaael\",\"volumeResourceId\":\"ttcjuhplrvkmjc\",\"backupsCount\":1748299697,\"policyEnabled\":false}]},\"etag\":\"fggc\",\"location\":\"yylizrz\",\"tags\":{\"ztlvtmvagbwidqlv\":\"sfxsf\",\"rvjfnmjmvlw\":\"ukoveofi\"},\"id\":\"z\",\"name\":\"iblkujr\",\"type\":\"lfojuidjp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,22 +33,22 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupPolicy response = manager.backupPolicies() - .define("akeciqchx") - .withRegion("ka") - .withExistingNetAppAccount("ilfjqqacdmk", "wxdcvjwcyz") - .withTags(mapOf("lwfgziiu", "sxtlg", "lijjjrtvam", "ijjcea", "zknxkv", "a", "k", "cxetyvkunmignoh")) - .withDailyBackupsToKeep(211674107) - .withWeeklyBackupsToKeep(1331398488) - .withMonthlyBackupsToKeep(938896992) + .define("w") + .withRegion("vtrrmhwrbfdpyflu") + .withExistingNetAppAccount("xmycjimryvwgcw", "pbmz") + .withTags(mapOf("ocu", "jgl", "n", "zlwhhmemhooclu", "jk", "qmemc", "rryejylmbkzudnig", "mykyujxsglhs")) + .withDailyBackupsToKeep(2037485409) + .withWeeklyBackupsToKeep(1456843419) + .withMonthlyBackupsToKeep(189675517) .withEnabled(true) .create(); - Assertions.assertEquals("bgvopemt", response.location()); - Assertions.assertEquals("ujlyegq", response.tags().get("vn")); - Assertions.assertEquals(73772123, response.dailyBackupsToKeep()); - Assertions.assertEquals(1150687421, response.weeklyBackupsToKeep()); - Assertions.assertEquals(1300819103, response.monthlyBackupsToKeep()); - Assertions.assertFalse(response.enabled()); + Assertions.assertEquals("yylizrz", response.location()); + Assertions.assertEquals("sfxsf", response.tags().get("ztlvtmvagbwidqlv")); + Assertions.assertEquals(1733569114, response.dailyBackupsToKeep()); + Assertions.assertEquals(995984285, response.weeklyBackupsToKeep()); + Assertions.assertEquals(587303890, response.monthlyBackupsToKeep()); + Assertions.assertTrue(response.enabled()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java index 840f0d6c3893..a4751343cab1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java @@ -27,7 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.backupPolicies().delete("mxcpwzvmdoks", "dt", "wlwxlboncqbazqic", com.azure.core.util.Context.NONE); + manager.backupPolicies() + .delete("ccrrvweyoxoyyu", "phaimmoi", "oqboshbragapyyr", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java index 45b0adbd44e7..a2d847c92255 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class BackupPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"backupPolicyId\":\"xtdisnjevhd\",\"provisioningState\":\"ydidwhepfwwtjf\",\"dailyBackupsToKeep\":1851489333,\"weeklyBackupsToKeep\":246941773,\"monthlyBackupsToKeep\":1986229018,\"volumesAssigned\":359137377,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"yo\",\"volumeResourceId\":\"xkxhnegknjzrbhtm\",\"backupsCount\":342925810,\"policyEnabled\":true}]},\"etag\":\"aobrlbp\",\"location\":\"nbagnchj\",\"tags\":{\"xcgqtagdrclsso\":\"muowakywalhjy\",\"gjco\":\"jomevtfycnlb\",\"ji\":\"kk\"},\"id\":\"ytssikiz\",\"name\":\"cufqbvntnrgmqs\",\"type\":\"rhcekxgnly\"}"; + = "{\"properties\":{\"backupPolicyId\":\"tx\",\"provisioningState\":\"tznapxbannovv\",\"dailyBackupsToKeep\":1885263219,\"weeklyBackupsToKeep\":987390014,\"monthlyBackupsToKeep\":1798677883,\"volumesAssigned\":1728188290,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"ev\",\"volumeResourceId\":\"lyokrrrou\",\"backupsCount\":1321738154,\"policyEnabled\":true},{\"volumeName\":\"sbcrymodizrxklo\",\"volumeResourceId\":\"xnazpmkml\",\"backupsCount\":1941979799,\"policyEnabled\":false}]},\"etag\":\"zopjhbzxliohr\",\"location\":\"dtfgxqbawpcbb\",\"tags\":{\"zb\":\"cyknapqofyuicd\"},\"id\":\"ybww\",\"name\":\"bdvibidmhmwffpl\",\"type\":\"muvapc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,14 +31,14 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupPolicy response = manager.backupPolicies() - .getWithResponse("ocnxz", "mj", "ngxno", com.azure.core.util.Context.NONE) + .getWithResponse("ec", "qct", "xxdtddmflh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("nbagnchj", response.location()); - Assertions.assertEquals("muowakywalhjy", response.tags().get("xcgqtagdrclsso")); - Assertions.assertEquals(1851489333, response.dailyBackupsToKeep()); - Assertions.assertEquals(246941773, response.weeklyBackupsToKeep()); - Assertions.assertEquals(1986229018, response.monthlyBackupsToKeep()); - Assertions.assertFalse(response.enabled()); + Assertions.assertEquals("dtfgxqbawpcbb", response.location()); + Assertions.assertEquals("cyknapqofyuicd", response.tags().get("zb")); + Assertions.assertEquals(1885263219, response.dailyBackupsToKeep()); + Assertions.assertEquals(987390014, response.weeklyBackupsToKeep()); + Assertions.assertEquals(1798677883, response.monthlyBackupsToKeep()); + Assertions.assertTrue(response.enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java index 4c96677bb98a..3e366ab2758e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java @@ -22,7 +22,7 @@ public final class BackupPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"backupPolicyId\":\"detv\",\"provisioningState\":\"kxdxuwsaifmcwn\",\"dailyBackupsToKeep\":1709337276,\"weeklyBackupsToKeep\":17245047,\"monthlyBackupsToKeep\":303129328,\"volumesAssigned\":611173744,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"njolgjyyxpv\",\"volumeResourceId\":\"szerqzevxoqei\",\"backupsCount\":1779891815,\"policyEnabled\":true},{\"volumeName\":\"jglzoblqwaafrq\",\"volumeResourceId\":\"hmzyqbhdvafjrqpj\",\"backupsCount\":258367092,\"policyEnabled\":false}]},\"etag\":\"rgaxwmzwdf\",\"location\":\"nrzorpd\",\"tags\":{\"xsaetg\":\"qctqjfg\"},\"id\":\"dgvpyig\",\"name\":\"aqqilzdcduwjoed\",\"type\":\"ngucaifpaurww\"}]}"; + = "{\"value\":[{\"properties\":{\"backupPolicyId\":\"ppdbwnupgahxkum\",\"provisioningState\":\"jcaacfdmmcpugm\",\"dailyBackupsToKeep\":651798671,\"weeklyBackupsToKeep\":1894610701,\"monthlyBackupsToKeep\":36314711,\"volumesAssigned\":147186923,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"whoqhnlbqnbldxe\",\"volumeResourceId\":\"lgsc\",\"backupsCount\":292039412,\"policyEnabled\":true}]},\"etag\":\"rsrrmoucsofldp\",\"location\":\"iyfc\",\"tags\":{\"qi\":\"eolhbhlvbmx\",\"tkcudfbsfarfsiow\":\"s\"},\"id\":\"kjxnqpvwgfstmhq\",\"name\":\"kizmdksaoafclu\",\"type\":\"v\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.backupPolicies().list("chygtvxbyjane", "ubdpkxyqvgxi", com.azure.core.util.Context.NONE); + = manager.backupPolicies().list("fsv", "pavbo", com.azure.core.util.Context.NONE); - Assertions.assertEquals("nrzorpd", response.iterator().next().location()); - Assertions.assertEquals("qctqjfg", response.iterator().next().tags().get("xsaetg")); - Assertions.assertEquals(1709337276, response.iterator().next().dailyBackupsToKeep()); - Assertions.assertEquals(17245047, response.iterator().next().weeklyBackupsToKeep()); - Assertions.assertEquals(303129328, response.iterator().next().monthlyBackupsToKeep()); + Assertions.assertEquals("iyfc", response.iterator().next().location()); + Assertions.assertEquals("eolhbhlvbmx", response.iterator().next().tags().get("qi")); + Assertions.assertEquals(651798671, response.iterator().next().dailyBackupsToKeep()); + Assertions.assertEquals(1894610701, response.iterator().next().weeklyBackupsToKeep()); + Assertions.assertEquals(36314711, response.iterator().next().monthlyBackupsToKeep()); Assertions.assertFalse(response.iterator().next().enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java index f762bcf52552..9d72b02865f7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java @@ -12,14 +12,14 @@ public final class BackupPoliciesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupPoliciesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"backupPolicyId\":\"zraehtwd\",\"provisioningState\":\"ftswibyrcdlbhsh\",\"dailyBackupsToKeep\":206253573,\"weeklyBackupsToKeep\":137143614,\"monthlyBackupsToKeep\":1289831716,\"volumesAssigned\":1007371026,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"evxccedcp\",\"volumeResourceId\":\"dyodnwzxltj\",\"backupsCount\":424916927,\"policyEnabled\":true},{\"volumeName\":\"iugcxnavvwxq\",\"volumeResourceId\":\"y\",\"backupsCount\":1643458041,\"policyEnabled\":false},{\"volumeName\":\"xwlmdjr\",\"volumeResourceId\":\"fgbvfvpdbo\",\"backupsCount\":2095776205,\"policyEnabled\":false}]},\"etag\":\"j\",\"location\":\"hkr\",\"tags\":{\"kghv\":\"deibqip\",\"pjorwkqnyhg\":\"ndzwmkrefa\",\"jivfxzsjabib\":\"ij\"},\"id\":\"ystawfsdjpvkvp\",\"name\":\"jxbkzbzkdvn\",\"type\":\"jabudurgkakmo\"},{\"properties\":{\"backupPolicyId\":\"hjjklff\",\"provisioningState\":\"ouw\",\"dailyBackupsToKeep\":931521782,\"weeklyBackupsToKeep\":1358338018,\"monthlyBackupsToKeep\":1728733823,\"volumesAssigned\":1485403905,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"ikayuhqlbjbsybb\",\"volumeResourceId\":\"r\",\"backupsCount\":948234782,\"policyEnabled\":false},{\"volumeName\":\"fp\",\"volumeResourceId\":\"mpipaslthaqfxs\",\"backupsCount\":35596652,\"policyEnabled\":true},{\"volumeName\":\"bdsrez\",\"volumeResourceId\":\"rhneuyowq\",\"backupsCount\":638872994,\"policyEnabled\":false}]},\"etag\":\"sibircgpi\",\"location\":\"zimejzanlfzx\",\"tags\":{\"okixrjqcir\":\"rmbzo\",\"szrnwo\":\"zpfrla\"},\"id\":\"indfpwpjyl\",\"name\":\"bt\",\"type\":\"h\"}],\"nextLink\":\"sj\"}") + "{\"value\":[{\"properties\":{\"backupPolicyId\":\"gzd\",\"provisioningState\":\"swe\",\"dailyBackupsToKeep\":151812446,\"weeklyBackupsToKeep\":2076786264,\"monthlyBackupsToKeep\":840450646,\"volumesAssigned\":1308163389,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"qhuexm\",\"volumeResourceId\":\"tlstvlzywem\",\"backupsCount\":218184123,\"policyEnabled\":true}]},\"etag\":\"dtclusiypb\",\"location\":\"gytguslfead\",\"tags\":{\"xgfpelolppv\":\"qukyhejhzi\"},\"id\":\"srp\",\"name\":\"vu\",\"type\":\"zraehtwd\"}],\"nextLink\":\"ftswibyrcdlbhsh\"}") .toObject(BackupPoliciesList.class); - Assertions.assertEquals("hkr", model.value().get(0).location()); - Assertions.assertEquals("deibqip", model.value().get(0).tags().get("kghv")); - Assertions.assertEquals(206253573, model.value().get(0).dailyBackupsToKeep()); - Assertions.assertEquals(137143614, model.value().get(0).weeklyBackupsToKeep()); - Assertions.assertEquals(1289831716, model.value().get(0).monthlyBackupsToKeep()); - Assertions.assertFalse(model.value().get(0).enabled()); - Assertions.assertEquals("sj", model.nextLink()); + Assertions.assertEquals("gytguslfead", model.value().get(0).location()); + Assertions.assertEquals("qukyhejhzi", model.value().get(0).tags().get("xgfpelolppv")); + Assertions.assertEquals(151812446, model.value().get(0).dailyBackupsToKeep()); + Assertions.assertEquals(2076786264, model.value().get(0).weeklyBackupsToKeep()); + Assertions.assertEquals(840450646, model.value().get(0).monthlyBackupsToKeep()); + Assertions.assertTrue(model.value().get(0).enabled()); + Assertions.assertEquals("ftswibyrcdlbhsh", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java index 836e55b6f955..5490f6c90a63 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java @@ -14,31 +14,31 @@ public final class BackupPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"backupPolicyId\":\"cvinvkjjxdxrbuuk\",\"provisioningState\":\"lewyhmlwpaz\",\"dailyBackupsToKeep\":1765730251,\"weeklyBackupsToKeep\":437728645,\"monthlyBackupsToKeep\":1425896475,\"volumesAssigned\":2098727625,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"whxxbuyqax\",\"volumeResourceId\":\"eqz\",\"backupsCount\":1372310139,\"policyEnabled\":false},{\"volumeName\":\"lxorjaltolmncws\",\"volumeResourceId\":\"qwcsdbnwdcfhuc\",\"backupsCount\":895561091,\"policyEnabled\":true},{\"volumeName\":\"glsbjjc\",\"volumeResourceId\":\"vxb\",\"backupsCount\":152007455,\"policyEnabled\":false},{\"volumeName\":\"tncormrlxqtvco\",\"volumeResourceId\":\"dflvkg\",\"backupsCount\":1902610413,\"policyEnabled\":true}]},\"etag\":\"nnqvsa\",\"location\":\"qntorudsgsahmkyc\",\"tags\":{\"s\":\"uwjuetaeburuvdmo\",\"tpuqujmq\":\"zlxwabmqoefkifr\",\"jcntuj\":\"gkfbtndoaong\"},\"id\":\"tcje\",\"name\":\"ftwwaezkojvdc\",\"type\":\"zfoqouicybxar\"}") + "{\"properties\":{\"backupPolicyId\":\"cckwyfzqwhxxbu\",\"provisioningState\":\"a\",\"dailyBackupsToKeep\":804013471,\"weeklyBackupsToKeep\":1280631673,\"monthlyBackupsToKeep\":608343994,\"volumesAssigned\":1372310139,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"or\",\"volumeResourceId\":\"lt\",\"backupsCount\":1325987050,\"policyEnabled\":true},{\"volumeName\":\"sobqw\",\"volumeResourceId\":\"dbnw\",\"backupsCount\":301965904,\"policyEnabled\":true},{\"volumeName\":\"qdpfuvglsbjjca\",\"volumeResourceId\":\"xbvtvudu\",\"backupsCount\":1320056895,\"policyEnabled\":true},{\"volumeName\":\"r\",\"volumeResourceId\":\"qtvcofudflvkgj\",\"backupsCount\":1622767746,\"policyEnabled\":true}]},\"etag\":\"nqvsaznqnto\",\"location\":\"dsg\",\"tags\":{\"wjue\":\"mkycgra\"},\"id\":\"aeburuvdmo\",\"name\":\"s\",\"type\":\"zlxwabmqoefkifr\"}") .toObject(BackupPolicyInner.class); - Assertions.assertEquals("qntorudsgsahmkyc", model.location()); - Assertions.assertEquals("uwjuetaeburuvdmo", model.tags().get("s")); - Assertions.assertEquals(1765730251, model.dailyBackupsToKeep()); - Assertions.assertEquals(437728645, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1425896475, model.monthlyBackupsToKeep()); - Assertions.assertTrue(model.enabled()); + Assertions.assertEquals("dsg", model.location()); + Assertions.assertEquals("mkycgra", model.tags().get("wjue")); + Assertions.assertEquals(804013471, model.dailyBackupsToKeep()); + Assertions.assertEquals(1280631673, model.weeklyBackupsToKeep()); + Assertions.assertEquals(608343994, model.monthlyBackupsToKeep()); + Assertions.assertFalse(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupPolicyInner model = new BackupPolicyInner().withLocation("qntorudsgsahmkyc") - .withTags(mapOf("s", "uwjuetaeburuvdmo", "tpuqujmq", "zlxwabmqoefkifr", "jcntuj", "gkfbtndoaong")) - .withDailyBackupsToKeep(1765730251) - .withWeeklyBackupsToKeep(437728645) - .withMonthlyBackupsToKeep(1425896475) - .withEnabled(true); + BackupPolicyInner model = new BackupPolicyInner().withLocation("dsg") + .withTags(mapOf("wjue", "mkycgra")) + .withDailyBackupsToKeep(804013471) + .withWeeklyBackupsToKeep(1280631673) + .withMonthlyBackupsToKeep(608343994) + .withEnabled(false); model = BinaryData.fromObject(model).toObject(BackupPolicyInner.class); - Assertions.assertEquals("qntorudsgsahmkyc", model.location()); - Assertions.assertEquals("uwjuetaeburuvdmo", model.tags().get("s")); - Assertions.assertEquals(1765730251, model.dailyBackupsToKeep()); - Assertions.assertEquals(437728645, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1425896475, model.monthlyBackupsToKeep()); - Assertions.assertTrue(model.enabled()); + Assertions.assertEquals("dsg", model.location()); + Assertions.assertEquals("mkycgra", model.tags().get("wjue")); + Assertions.assertEquals(804013471, model.dailyBackupsToKeep()); + Assertions.assertEquals(1280631673, model.weeklyBackupsToKeep()); + Assertions.assertEquals(608343994, model.monthlyBackupsToKeep()); + Assertions.assertFalse(model.enabled()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java index 0632cc381937..05d2d253cd2f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java @@ -14,31 +14,30 @@ public final class BackupPolicyPatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupPolicyPatch model = BinaryData.fromString( - "{\"location\":\"ufgmjzrwrdg\",\"id\":\"wae\",\"name\":\"uzkopbminrfd\",\"type\":\"yuhhziu\",\"tags\":{\"oftrmaequia\":\"ozbhdmsmlmzq\",\"z\":\"xicslfao\",\"kaivwit\":\"iyylhalnswhccsp\",\"bwemhairs\":\"scywuggwoluhc\"},\"properties\":{\"backupPolicyId\":\"z\",\"provisioningState\":\"msweypqwdxggicc\",\"dailyBackupsToKeep\":1758343782,\"weeklyBackupsToKeep\":1393765548,\"monthlyBackupsToKeep\":942987228,\"volumesAssigned\":1510973538,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"tvlz\",\"volumeResourceId\":\"emhzrncsdtc\",\"backupsCount\":1367209105,\"policyEnabled\":true},{\"volumeName\":\"bsfgytguslfea\",\"volumeResourceId\":\"ygqukyhejh\",\"backupsCount\":435176888,\"policyEnabled\":true},{\"volumeName\":\"pelol\",\"volumeResourceId\":\"vk\",\"backupsCount\":1892459462,\"policyEnabled\":false}]}}") + "{\"location\":\"nfd\",\"id\":\"oakgtdlmkkzev\",\"name\":\"hewpusdsttwv\",\"type\":\"vbbejdcng\",\"tags\":{\"zr\":\"oakufgm\"},\"properties\":{\"backupPolicyId\":\"grtwae\",\"provisioningState\":\"uzkopbminrfd\",\"dailyBackupsToKeep\":1845390329,\"weeklyBackupsToKeep\":2066310989,\"monthlyBackupsToKeep\":1063741579,\"volumesAssigned\":134697,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"bhdmsmlmzqhof\",\"volumeResourceId\":\"maequiahxicslfa\",\"backupsCount\":243894800,\"policyEnabled\":true},{\"volumeName\":\"ylhalnswhcc\",\"volumeResourceId\":\"hka\",\"backupsCount\":2029124466,\"policyEnabled\":false},{\"volumeName\":\"scywuggwoluhc\",\"volumeResourceId\":\"wem\",\"backupsCount\":19957652,\"policyEnabled\":false}]}}") .toObject(BackupPolicyPatch.class); - Assertions.assertEquals("ufgmjzrwrdg", model.location()); - Assertions.assertEquals("ozbhdmsmlmzq", model.tags().get("oftrmaequia")); - Assertions.assertEquals(1758343782, model.dailyBackupsToKeep()); - Assertions.assertEquals(1393765548, model.weeklyBackupsToKeep()); - Assertions.assertEquals(942987228, model.monthlyBackupsToKeep()); + Assertions.assertEquals("nfd", model.location()); + Assertions.assertEquals("oakufgm", model.tags().get("zr")); + Assertions.assertEquals(1845390329, model.dailyBackupsToKeep()); + Assertions.assertEquals(2066310989, model.weeklyBackupsToKeep()); + Assertions.assertEquals(1063741579, model.monthlyBackupsToKeep()); Assertions.assertTrue(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupPolicyPatch model = new BackupPolicyPatch().withLocation("ufgmjzrwrdg") - .withTags(mapOf("oftrmaequia", "ozbhdmsmlmzq", "z", "xicslfao", "kaivwit", "iyylhalnswhccsp", "bwemhairs", - "scywuggwoluhc")) - .withDailyBackupsToKeep(1758343782) - .withWeeklyBackupsToKeep(1393765548) - .withMonthlyBackupsToKeep(942987228) + BackupPolicyPatch model = new BackupPolicyPatch().withLocation("nfd") + .withTags(mapOf("zr", "oakufgm")) + .withDailyBackupsToKeep(1845390329) + .withWeeklyBackupsToKeep(2066310989) + .withMonthlyBackupsToKeep(1063741579) .withEnabled(true); model = BinaryData.fromObject(model).toObject(BackupPolicyPatch.class); - Assertions.assertEquals("ufgmjzrwrdg", model.location()); - Assertions.assertEquals("ozbhdmsmlmzq", model.tags().get("oftrmaequia")); - Assertions.assertEquals(1758343782, model.dailyBackupsToKeep()); - Assertions.assertEquals(1393765548, model.weeklyBackupsToKeep()); - Assertions.assertEquals(942987228, model.monthlyBackupsToKeep()); + Assertions.assertEquals("nfd", model.location()); + Assertions.assertEquals("oakufgm", model.tags().get("zr")); + Assertions.assertEquals(1845390329, model.dailyBackupsToKeep()); + Assertions.assertEquals(2066310989, model.weeklyBackupsToKeep()); + Assertions.assertEquals(1063741579, model.monthlyBackupsToKeep()); Assertions.assertTrue(model.enabled()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java index e8d430ac8055..8056fa3243bb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java @@ -12,24 +12,24 @@ public final class BackupPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupPolicyProperties model = BinaryData.fromString( - "{\"backupPolicyId\":\"szufoxciqopidoa\",\"provisioningState\":\"iodhkhazxkhnz\",\"dailyBackupsToKeep\":1731617397,\"weeklyBackupsToKeep\":1189025238,\"monthlyBackupsToKeep\":1184830478,\"volumesAssigned\":2021684240,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"bwh\",\"volumeResourceId\":\"z\",\"backupsCount\":793958832,\"policyEnabled\":true},{\"volumeName\":\"xztvbtqgsfraoyzk\",\"volumeResourceId\":\"wtl\",\"backupsCount\":1663606623,\"policyEnabled\":true},{\"volumeName\":\"wqaldsyu\",\"volumeResourceId\":\"imerqfobwyznk\",\"backupsCount\":1383706321,\"policyEnabled\":false},{\"volumeName\":\"pfhpagmhrskdsnfd\",\"volumeResourceId\":\"oakgtdlmkkzev\",\"backupsCount\":973934778,\"policyEnabled\":true}]}") + "{\"backupPolicyId\":\"puqujmqlgkfbtn\",\"provisioningState\":\"aongbj\",\"dailyBackupsToKeep\":626230231,\"weeklyBackupsToKeep\":1376846032,\"monthlyBackupsToKeep\":1062686421,\"volumesAssigned\":635729957,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"waezkojvd\",\"volumeResourceId\":\"zfoqouicybxar\",\"backupsCount\":1685402148,\"policyEnabled\":false},{\"volumeName\":\"oxciqopidoamcio\",\"volumeResourceId\":\"khazxkhnzbonlwn\",\"backupsCount\":2021684240,\"policyEnabled\":false},{\"volumeName\":\"dwbwhkszzcmrvexz\",\"volumeResourceId\":\"bt\",\"backupsCount\":125773376,\"policyEnabled\":false},{\"volumeName\":\"oyzko\",\"volumeResourceId\":\"tlmngu\",\"backupsCount\":1953532777,\"policyEnabled\":false}]}") .toObject(BackupPolicyProperties.class); - Assertions.assertEquals(1731617397, model.dailyBackupsToKeep()); - Assertions.assertEquals(1189025238, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1184830478, model.monthlyBackupsToKeep()); + Assertions.assertEquals(626230231, model.dailyBackupsToKeep()); + Assertions.assertEquals(1376846032, model.weeklyBackupsToKeep()); + Assertions.assertEquals(1062686421, model.monthlyBackupsToKeep()); Assertions.assertFalse(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupPolicyProperties model = new BackupPolicyProperties().withDailyBackupsToKeep(1731617397) - .withWeeklyBackupsToKeep(1189025238) - .withMonthlyBackupsToKeep(1184830478) + BackupPolicyProperties model = new BackupPolicyProperties().withDailyBackupsToKeep(626230231) + .withWeeklyBackupsToKeep(1376846032) + .withMonthlyBackupsToKeep(1062686421) .withEnabled(false); model = BinaryData.fromObject(model).toObject(BackupPolicyProperties.class); - Assertions.assertEquals(1731617397, model.dailyBackupsToKeep()); - Assertions.assertEquals(1189025238, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1184830478, model.monthlyBackupsToKeep()); + Assertions.assertEquals(626230231, model.dailyBackupsToKeep()); + Assertions.assertEquals(1376846032, model.weeklyBackupsToKeep()); + Assertions.assertEquals(1062686421, model.monthlyBackupsToKeep()); Assertions.assertFalse(model.enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java index dbf63a2c3189..054c82eb5ca0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java @@ -13,22 +13,21 @@ public final class BackupRestoreFilesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupRestoreFiles model = BinaryData.fromString( - "{\"fileList\":[\"qyybxubmdnafcbq\",\"remj\",\"laqacigele\"],\"restoreFilePath\":\"d\",\"destinationVolumeId\":\"vqvwzkjopwbe\"}") + "{\"fileList\":[\"dj\",\"syxkyxvxevblb\"],\"restoreFilePath\":\"dnlj\",\"destinationVolumeId\":\"age\"}") .toObject(BackupRestoreFiles.class); - Assertions.assertEquals("qyybxubmdnafcbq", model.fileList().get(0)); - Assertions.assertEquals("d", model.restoreFilePath()); - Assertions.assertEquals("vqvwzkjopwbe", model.destinationVolumeId()); + Assertions.assertEquals("dj", model.fileList().get(0)); + Assertions.assertEquals("dnlj", model.restoreFilePath()); + Assertions.assertEquals("age", model.destinationVolumeId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupRestoreFiles model - = new BackupRestoreFiles().withFileList(Arrays.asList("qyybxubmdnafcbq", "remj", "laqacigele")) - .withRestoreFilePath("d") - .withDestinationVolumeId("vqvwzkjopwbe"); + BackupRestoreFiles model = new BackupRestoreFiles().withFileList(Arrays.asList("dj", "syxkyxvxevblb")) + .withRestoreFilePath("dnlj") + .withDestinationVolumeId("age"); model = BinaryData.fromObject(model).toObject(BackupRestoreFiles.class); - Assertions.assertEquals("qyybxubmdnafcbq", model.fileList().get(0)); - Assertions.assertEquals("d", model.restoreFilePath()); - Assertions.assertEquals("vqvwzkjopwbe", model.destinationVolumeId()); + Assertions.assertEquals("dj", model.fileList().get(0)); + Assertions.assertEquals("dnlj", model.restoreFilePath()); + Assertions.assertEquals("age", model.destinationVolumeId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java index 28178bceeee0..83080c35e54b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java @@ -14,19 +14,19 @@ public final class BackupVaultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupVaultInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"ujviylwdshfs\"},\"location\":\"rbgyefry\",\"tags\":{\"nc\":\"aojfm\",\"hirctymoxoftpipi\":\"tmr\"},\"id\":\"yczuhxacpq\",\"name\":\"lihhyuspskasdvlm\",\"type\":\"wdgzxulucv\"}") + "{\"properties\":{\"provisioningState\":\"qmt\"},\"location\":\"ltmm\",\"tags\":{\"upkvipmdsc\":\"yeozphvwauyqncy\",\"totxhojujb\":\"xqupevzhf\",\"n\":\"pelmcuvhixbjxyf\"},\"id\":\"lrcoolsttpki\",\"name\":\"kkbnu\",\"type\":\"rywvtylbfpn\"}") .toObject(BackupVaultInner.class); - Assertions.assertEquals("rbgyefry", model.location()); - Assertions.assertEquals("aojfm", model.tags().get("nc")); + Assertions.assertEquals("ltmm", model.location()); + Assertions.assertEquals("yeozphvwauyqncy", model.tags().get("upkvipmdsc")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupVaultInner model - = new BackupVaultInner().withLocation("rbgyefry").withTags(mapOf("nc", "aojfm", "hirctymoxoftpipi", "tmr")); + BackupVaultInner model = new BackupVaultInner().withLocation("ltmm") + .withTags(mapOf("upkvipmdsc", "yeozphvwauyqncy", "totxhojujb", "xqupevzhf", "n", "pelmcuvhixbjxyf")); model = BinaryData.fromObject(model).toObject(BackupVaultInner.class); - Assertions.assertEquals("rbgyefry", model.location()); - Assertions.assertEquals("aojfm", model.tags().get("nc")); + Assertions.assertEquals("ltmm", model.location()); + Assertions.assertEquals("yeozphvwauyqncy", model.tags().get("upkvipmdsc")); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java index cd38e87a9055..87f30fccbb0c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java @@ -13,16 +13,18 @@ public final class BackupVaultPatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BackupVaultPatch model = BinaryData.fromString("{\"tags\":{\"hu\":\"xifqjzgxm\",\"cesutrgjupauut\":\"lw\"}}") + BackupVaultPatch model = BinaryData + .fromString("{\"tags\":{\"xcbihw\":\"iithtywu\",\"twjchrdg\":\"knfd\",\"uu\":\"ihxumwctondzj\"}}") .toObject(BackupVaultPatch.class); - Assertions.assertEquals("xifqjzgxm", model.tags().get("hu")); + Assertions.assertEquals("iithtywu", model.tags().get("xcbihw")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupVaultPatch model = new BackupVaultPatch().withTags(mapOf("hu", "xifqjzgxm", "cesutrgjupauut", "lw")); + BackupVaultPatch model + = new BackupVaultPatch().withTags(mapOf("xcbihw", "iithtywu", "twjchrdg", "knfd", "uu", "ihxumwctondzj")); model = BinaryData.fromObject(model).toObject(BackupVaultPatch.class); - Assertions.assertEquals("xifqjzgxm", model.tags().get("hu")); + Assertions.assertEquals("iithtywu", model.tags().get("xcbihw")); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java index a19a9d867315..eca63b25a3e7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java @@ -10,8 +10,8 @@ public final class BackupVaultPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BackupVaultProperties model = BinaryData.fromString("{\"provisioningState\":\"mrsreuzvxurisjnh\"}") - .toObject(BackupVaultProperties.class); + BackupVaultProperties model + = BinaryData.fromString("{\"provisioningState\":\"rd\"}").toObject(BackupVaultProperties.class); } @org.junit.jupiter.api.Test diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java index 88f782b125ca..103db67552ac 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java @@ -23,7 +23,7 @@ public final class BackupVaultsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"rdexyio\",\"tags\":{\"pcbbprtugav\":\"ninbdbzsxcwqqrs\",\"fogdrtbfcm\":\"zbcyksiv\",\"mb\":\"rftsjcwjjxs\"},\"id\":\"wvif\",\"name\":\"xkecifhocj\",\"type\":\"wkloozr\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"ypxrx\",\"tags\":{\"m\":\"ihwuhvctafsrbxrb\",\"spnxwqagnepzw\":\"iowxi\"},\"id\":\"klsbsbqqqagw\",\"name\":\"rxaomzisglrrcze\",\"type\":\"k\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,15 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupVault response = manager.backupVaults() - .define("vesk") - .withRegion("pbcbcpzar") - .withExistingNetAppAccount("uiylpc", "aewse") - .withTags(mapOf("ypefcpczshnuqnda", "qacdldtzm", "vtvegwqiukvzw", "zupfkhuytuszxhm")) + .define("xtwbta") + .withRegion("hpxycphdrwjjk") + .withExistingNetAppAccount("lzgaufcshhvnew", "nxkympqanxrjk") + .withTags(mapOf("qpd", "omacluzvxnqmhr", "ssffxuifmc", "wmkoisq", "zsylollgt", "ypobkdqzr", "vuaurk", + "czzydmxzjij")) .create(); - Assertions.assertEquals("rdexyio", response.location()); - Assertions.assertEquals("ninbdbzsxcwqqrs", response.tags().get("pcbbprtugav")); + Assertions.assertEquals("ypxrx", response.location()); + Assertions.assertEquals("ihwuhvctafsrbxrb", response.tags().get("m")); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java index 1b511b45e327..8154226b959b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class BackupVaultsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"dskjhhxdlaj\"},\"location\":\"xcxscvslxlh\",\"tags\":{\"slojfkqidnqt\":\"krmukmyjmkxett\",\"rngl\":\"qxjhqxcsqhtkbtnq\",\"nxhhl\":\"mbiipsnawwlqk\"},\"id\":\"xricctkwmuqq\",\"name\":\"ajxeiygle\",\"type\":\"rwvaexhdc\"}"; + = "{\"properties\":{\"provisioningState\":\"frdbiqmrjgeihf\"},\"location\":\"ggwfiwz\",\"tags\":{\"j\":\"jpbyephmgtv\"},\"id\":\"rc\",\"name\":\"yfqi\",\"type\":\"gxhnpomyqwcabv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupVault response = manager.backupVaults() - .getWithResponse("hmtybkcgsuthhll", "mwynefxexlfciatx", "jrr", com.azure.core.util.Context.NONE) + .getWithResponse("phavpmhbrb", "gvgovpbbttefjo", "nssqyzqed", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xcxscvslxlh", response.location()); - Assertions.assertEquals("krmukmyjmkxett", response.tags().get("slojfkqidnqt")); + Assertions.assertEquals("ggwfiwz", response.location()); + Assertions.assertEquals("jpbyephmgtv", response.tags().get("j")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java index c898470b44ac..cb00ffbbf61d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java @@ -22,7 +22,7 @@ public final class BackupVaultsListByNetAppAccountMockTests { @Test public void testListByNetAppAccount() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"umepjpbibn\"},\"location\":\"phepifexleqirc\",\"tags\":{\"cgxvrpj\":\"ly\"},\"id\":\"vczuodacpune\",\"name\":\"tepdjxqes\",\"type\":\"oy\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"gm\"},\"location\":\"fjlrxwtoauk\",\"tags\":{\"oaedsxjwuivedwcg\":\"vcisiz\"},\"id\":\"eewxeiqbpsmg\",\"name\":\"mguaml\",\"type\":\"dlrgms\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testListByNetAppAccount() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.backupVaults().listByNetAppAccount("rceqnkbrupob", "hdmljz", com.azure.core.util.Context.NONE); + = manager.backupVaults().listByNetAppAccount("ui", "eeyaswl", com.azure.core.util.Context.NONE); - Assertions.assertEquals("phepifexleqirc", response.iterator().next().location()); - Assertions.assertEquals("ly", response.iterator().next().tags().get("cgxvrpj")); + Assertions.assertEquals("fjlrxwtoauk", response.iterator().next().location()); + Assertions.assertEquals("vcisiz", response.iterator().next().tags().get("oaedsxjwuivedwcg")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java index 987154cd9008..c32f8213549d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java @@ -12,10 +12,10 @@ public final class BackupVaultsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupVaultsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"hihejqgwzpnfqn\"},\"location\":\"ypsxjvfoim\",\"tags\":{\"zjxvydfcea\":\"lirc\",\"gdyftumrtwna\":\"vlhv\"},\"id\":\"jslb\",\"name\":\"wkojgcyztsfmzn\",\"type\":\"aeqphchqnr\"},{\"properties\":{\"provisioningState\":\"x\"},\"location\":\"uwrykqgaifmvikl\",\"tags\":{\"vdsrhnjiv\":\"vkhbejdznx\"},\"id\":\"lvtno\",\"name\":\"qfzgemjdftul\",\"type\":\"ltducea\"}],\"nextLink\":\"mczuo\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"wggytsbwtovvt\"},\"location\":\"einqf\",\"tags\":{\"knpirgnepttwq\":\"x\",\"mqnrojlpijnkr\":\"sniffc\",\"zronasxift\":\"frddhcrati\",\"zh\":\"zq\"},\"id\":\"tw\",\"name\":\"sgogczhonnxk\",\"type\":\"lgnyhmo\"},{\"properties\":{\"provisioningState\":\"kkgthr\"},\"location\":\"hxjbdhqxvc\",\"tags\":{\"shrnsvbuswdvz\":\"rpdsof\",\"rtkfawnopq\":\"ybycnunvj\",\"x\":\"ikyzirtxdy\",\"sewgioilqukr\":\"ejnt\"},\"id\":\"dxtqmieoxo\",\"name\":\"ggufhyaomtb\",\"type\":\"hhavgrvkffovjz\"}],\"nextLink\":\"jbibg\"}") .toObject(BackupVaultsList.class); - Assertions.assertEquals("ypsxjvfoim", model.value().get(0).location()); - Assertions.assertEquals("lirc", model.value().get(0).tags().get("zjxvydfcea")); - Assertions.assertEquals("mczuo", model.nextLink()); + Assertions.assertEquals("einqf", model.value().get(0).location()); + Assertions.assertEquals("x", model.value().get(0).tags().get("knpirgnepttwq")); + Assertions.assertEquals("jbibg", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java index 196b7d34a648..e482afb52d8d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java @@ -21,7 +21,7 @@ public final class BackupsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"backupId\":\"iqyhgfse\",\"creationDate\":\"2021-11-02T16:29:47Z\",\"snapshotCreationDate\":\"2020-12-25T20:56:32Z\",\"completionDate\":\"2021-03-07T03:10:17Z\",\"provisioningState\":\"Succeeded\",\"size\":8701632845657462193,\"label\":\"zkkdtnhqs\",\"backupType\":\"Manual\",\"failureReason\":\"selpkpbaf\",\"volumeResourceId\":\"afhlbyl\",\"useExistingSnapshot\":true,\"snapshotName\":\"vxrh\",\"backupPolicyResourceId\":\"d\",\"isLargeVolume\":true},\"id\":\"ofpltdbm\",\"name\":\"irrhv\",\"type\":\"fnrac\"}"; + = "{\"properties\":{\"backupId\":\"gsxgnxfyqon\",\"creationDate\":\"2021-01-30T13:57:25Z\",\"snapshotCreationDate\":\"2021-05-25T17:04:08Z\",\"completionDate\":\"2021-08-14T04:57:20Z\",\"provisioningState\":\"Succeeded\",\"size\":6298866182092373777,\"label\":\"inheh\",\"backupType\":\"Manual\",\"failureReason\":\"fvwbcb\",\"volumeResourceId\":\"embnkbw\",\"useExistingSnapshot\":true,\"snapshotName\":\"kdi\",\"backupPolicyResourceId\":\"ihebwtsw\",\"isLargeVolume\":true},\"id\":\"fmd\",\"name\":\"ragegi\",\"type\":\"vcjfelisdjubggb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,17 +31,17 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Backup response = manager.backups() - .define("bkjbz") - .withExistingBackupVault("xeslkhhustcpoqm", "vnwqjwgo", "nlejjjkxybwf") - .withVolumeResourceId("aykmmf") - .withLabel("rmgjfbpkuwx") - .withUseExistingSnapshot(false) - .withSnapshotName("wxrzxmdewsrsxkrp") + .define("zvcpopm") + .withExistingBackupVault("vigorqjbttzhragl", "afhonqj", "jeick") + .withVolumeResourceId("wakoihkn") + .withLabel("wabzxrvxcushsp") + .withUseExistingSnapshot(true) + .withSnapshotName("lmljhlnymzotq") .create(); - Assertions.assertEquals("zkkdtnhqs", response.label()); - Assertions.assertEquals("afhlbyl", response.volumeResourceId()); + Assertions.assertEquals("inheh", response.label()); + Assertions.assertEquals("embnkbw", response.volumeResourceId()); Assertions.assertTrue(response.useExistingSnapshot()); - Assertions.assertEquals("vxrh", response.snapshotName()); + Assertions.assertEquals("kdi", response.snapshotName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java index 9ea2a97e9700..05841911790c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class BackupsGetLatestStatusWithResponseMockTests { @Test public void testGetLatestStatusWithResponse() throws Exception { String responseStr - = "{\"healthy\":true,\"relationshipStatus\":\"Unknown\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"qgdgkkile\",\"errorMessage\":\"kcsmk\",\"lastTransferSize\":6085666218887745809,\"lastTransferType\":\"baedorvvmqfl\",\"totalTransferBytes\":4165178416571787712,\"transferProgressBytes\":4180963914269164805}"; + = "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"nzrdpsovwxz\",\"errorMessage\":\"tgoe\",\"lastTransferSize\":4927977649510547079,\"lastTransferType\":\"bp\",\"totalTransferBytes\":2067611322394528178,\"transferProgressBytes\":3863385123536090602}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,7 @@ public void testGetLatestStatusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupStatus response = manager.backups() - .getLatestStatusWithResponse("zrrryv", "imipskdyzatvfuz", "aftjvvruxwigsy", "ip", - com.azure.core.util.Context.NONE) + .getLatestStatusWithResponse("bjwgnyfus", "zsvtuikzhajqgl", "fh", "l", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java index 52db29725026..39cf047ecd25 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class BackupsGetVolumeLatestRestoreStatusWithResponseMockTests { @Test public void testGetVolumeLatestRestoreStatusWithResponse() throws Exception { String responseStr - = "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Uninitialized\",\"unhealthyReason\":\"ljnhvlqj\",\"errorMessage\":\"kpeeksnbksdqhj\",\"totalTransferBytes\":6481704232770043352}"; + = "{\"healthy\":false,\"relationshipStatus\":\"Failed\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"xieixynllxec\",\"errorMessage\":\"rojphslhcawjutif\",\"totalTransferBytes\":6724347549696563054}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetVolumeLatestRestoreStatusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RestoreStatus response = manager.backups() - .getVolumeLatestRestoreStatusWithResponse("umgxdgdhpab", "dexjddvjs", "qwotmmwllcol", "rsxaptefh", + .getVolumeLatestRestoreStatusWithResponse("vntjlrigjk", "kyrioovzid", "xwaabzmifrygznmm", "xrizkzobgop", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java index cfe703dd8d93..4ea136e7abf6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class BackupsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"backupId\":\"y\",\"creationDate\":\"2021-03-23T12:51:27Z\",\"snapshotCreationDate\":\"2021-04-08T02:57:16Z\",\"completionDate\":\"2021-07-29T16:27:13Z\",\"provisioningState\":\"kwiswskukjtas\",\"size\":7596247185393491388,\"label\":\"pkxkdtxfk\",\"backupType\":\"Manual\",\"failureReason\":\"vtwknvgmmbugt\",\"volumeResourceId\":\"watmqa\",\"useExistingSnapshot\":false,\"snapshotName\":\"atgr\",\"backupPolicyResourceId\":\"shoygzcby\",\"isLargeVolume\":false},\"id\":\"faoytehqpuv\",\"name\":\"mvqmtdwckygroej\",\"type\":\"ndljdjuskbr\"}"; + = "{\"properties\":{\"backupId\":\"d\",\"creationDate\":\"2021-10-26T21:49:23Z\",\"snapshotCreationDate\":\"2021-09-29T08:46:02Z\",\"completionDate\":\"2021-04-08T06:17:43Z\",\"provisioningState\":\"d\",\"size\":2317307583598027540,\"label\":\"hewjptmcgsbost\",\"backupType\":\"Manual\",\"failureReason\":\"dlat\",\"volumeResourceId\":\"tmzlbiojlv\",\"useExistingSnapshot\":true,\"snapshotName\":\"bpneqvcwwyyurm\",\"backupPolicyResourceId\":\"hppr\",\"isLargeVolume\":true},\"id\":\"mo\",\"name\":\"ayzejnhlbkpbz\",\"type\":\"cpilj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Backup response = manager.backups() - .getWithResponse("wow", "tptnuwjtk", "chgcgqyh", "eseyqr", com.azure.core.util.Context.NONE) + .getWithResponse("vkzqk", "jeokbzefezrxccz", "rtle", "pqxbkwvzgnzvdf", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pkxkdtxfk", response.label()); - Assertions.assertEquals("watmqa", response.volumeResourceId()); - Assertions.assertFalse(response.useExistingSnapshot()); - Assertions.assertEquals("atgr", response.snapshotName()); + Assertions.assertEquals("hewjptmcgsbost", response.label()); + Assertions.assertEquals("tmzlbiojlv", response.volumeResourceId()); + Assertions.assertTrue(response.useExistingSnapshot()); + Assertions.assertEquals("bpneqvcwwyyurm", response.snapshotName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java index 8cb36a74a89b..4993b9c4ca27 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java @@ -22,7 +22,7 @@ public final class BackupsListByVaultMockTests { @Test public void testListByVault() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"backupId\":\"bwptdacarvvlf\",\"creationDate\":\"2021-09-09T02:05:09Z\",\"snapshotCreationDate\":\"2021-06-19T06:36:12Z\",\"completionDate\":\"2021-04-02T07:07:37Z\",\"provisioningState\":\"wenaz\",\"size\":1687931055724115736,\"label\":\"rs\",\"backupType\":\"Manual\",\"failureReason\":\"xkdnwqapf\",\"volumeResourceId\":\"sdpcvess\",\"useExistingSnapshot\":false,\"snapshotName\":\"kuui\",\"backupPolicyResourceId\":\"dqq\",\"isLargeVolume\":true},\"id\":\"valblhtjqv\",\"name\":\"yvwehtaemxh\",\"type\":\"zysevusxi\"}]}"; + = "{\"value\":[{\"properties\":{\"backupId\":\"bwefqsfapaqtfer\",\"creationDate\":\"2021-03-29T04:36:42Z\",\"snapshotCreationDate\":\"2021-10-04T18:51:58Z\",\"completionDate\":\"2021-02-26T13:58:55Z\",\"provisioningState\":\"fxapjwogqqnobpu\",\"size\":7703831539492858115,\"label\":\"tqwpwya\",\"backupType\":\"Scheduled\",\"failureReason\":\"sqbuc\",\"volumeResourceId\":\"jg\",\"useExistingSnapshot\":false,\"snapshotName\":\"aoguyaipids\",\"backupPolicyResourceId\":\"ultxijjumfq\",\"isLargeVolume\":false},\"id\":\"nqnm\",\"name\":\"jng\",\"type\":\"qdqx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testListByVault() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.backups() - .listByVault("eqy", "kceysfaqegplw", "ysh", "ddkvbxgkqu", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.backups().listByVault("a", "zv", "chndbnwie", "olewjwi", com.azure.core.util.Context.NONE); - Assertions.assertEquals("rs", response.iterator().next().label()); - Assertions.assertEquals("sdpcvess", response.iterator().next().volumeResourceId()); + Assertions.assertEquals("tqwpwya", response.iterator().next().label()); + Assertions.assertEquals("jg", response.iterator().next().volumeResourceId()); Assertions.assertFalse(response.iterator().next().useExistingSnapshot()); - Assertions.assertEquals("kuui", response.iterator().next().snapshotName()); + Assertions.assertEquals("aoguyaipids", response.iterator().next().snapshotName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java index aad537ab3d82..f47a9804f370 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java @@ -12,14 +12,14 @@ public final class BackupsMigrationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupsMigrationRequest model - = BinaryData.fromString("{\"backupVaultId\":\"znabaobns\"}").toObject(BackupsMigrationRequest.class); - Assertions.assertEquals("znabaobns", model.backupVaultId()); + = BinaryData.fromString("{\"backupVaultId\":\"jhlfzswpchwahf\"}").toObject(BackupsMigrationRequest.class); + Assertions.assertEquals("jhlfzswpchwahf", model.backupVaultId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupsMigrationRequest model = new BackupsMigrationRequest().withBackupVaultId("znabaobns"); + BackupsMigrationRequest model = new BackupsMigrationRequest().withBackupVaultId("jhlfzswpchwahf"); model = BinaryData.fromObject(model).toObject(BackupsMigrationRequest.class); - Assertions.assertEquals("znabaobns", model.backupVaultId()); + Assertions.assertEquals("jhlfzswpchwahf", model.backupVaultId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPatchPropertiesTests.java index 6da47c17eb56..53bb846cac43 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPatchPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPatchPropertiesTests.java @@ -12,23 +12,22 @@ public final class BucketServerPatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BucketServerPatchProperties model = BinaryData - .fromString( - "{\"fqdn\":\"zauorsuk\",\"certificateObject\":\"wbqpl\",\"onCertificateConflictAction\":\"Update\"}") + BucketServerPatchProperties model = BinaryData.fromString( + "{\"fqdn\":\"p\",\"certificateObject\":\"prvkwcfzqljyxgtc\",\"onCertificateConflictAction\":\"Update\"}") .toObject(BucketServerPatchProperties.class); - Assertions.assertEquals("zauorsuk", model.fqdn()); - Assertions.assertEquals("wbqpl", model.certificateObject()); + Assertions.assertEquals("p", model.fqdn()); + Assertions.assertEquals("prvkwcfzqljyxgtc", model.certificateObject()); Assertions.assertEquals(OnCertificateConflictAction.UPDATE, model.onCertificateConflictAction()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BucketServerPatchProperties model = new BucketServerPatchProperties().withFqdn("zauorsuk") - .withCertificateObject("wbqpl") + BucketServerPatchProperties model = new BucketServerPatchProperties().withFqdn("p") + .withCertificateObject("prvkwcfzqljyxgtc") .withOnCertificateConflictAction(OnCertificateConflictAction.UPDATE); model = BinaryData.fromObject(model).toObject(BucketServerPatchProperties.class); - Assertions.assertEquals("zauorsuk", model.fqdn()); - Assertions.assertEquals("wbqpl", model.certificateObject()); + Assertions.assertEquals("p", model.fqdn()); + Assertions.assertEquals("prvkwcfzqljyxgtc", model.certificateObject()); Assertions.assertEquals(OnCertificateConflictAction.UPDATE, model.onCertificateConflictAction()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPropertiesTests.java index a8d744bbc3fe..63b3dd33a04c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPropertiesTests.java @@ -13,21 +13,21 @@ public final class BucketServerPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BucketServerProperties model = BinaryData.fromString( - "{\"fqdn\":\"rfmluiqtq\",\"certificateCommonName\":\"avyvnqqyba\",\"certificateExpiryDate\":\"2021-03-17T00:26:12Z\",\"ipAddress\":\"ayjkqa\",\"certificateObject\":\"gzslesjcbhernnti\",\"onCertificateConflictAction\":\"Update\"}") + "{\"fqdn\":\"qntcypsxjvfoimwk\",\"certificateCommonName\":\"ircizjxvy\",\"certificateExpiryDate\":\"2021-07-27T07:50:33Z\",\"ipAddress\":\"acvlhv\",\"certificateObject\":\"dyftumrtwna\",\"onCertificateConflictAction\":\"Update\"}") .toObject(BucketServerProperties.class); - Assertions.assertEquals("rfmluiqtq", model.fqdn()); - Assertions.assertEquals("gzslesjcbhernnti", model.certificateObject()); + Assertions.assertEquals("qntcypsxjvfoimwk", model.fqdn()); + Assertions.assertEquals("dyftumrtwna", model.certificateObject()); Assertions.assertEquals(OnCertificateConflictAction.UPDATE, model.onCertificateConflictAction()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BucketServerProperties model = new BucketServerProperties().withFqdn("rfmluiqtq") - .withCertificateObject("gzslesjcbhernnti") + BucketServerProperties model = new BucketServerProperties().withFqdn("qntcypsxjvfoimwk") + .withCertificateObject("dyftumrtwna") .withOnCertificateConflictAction(OnCertificateConflictAction.UPDATE); model = BinaryData.fromObject(model).toObject(BucketServerProperties.class); - Assertions.assertEquals("rfmluiqtq", model.fqdn()); - Assertions.assertEquals("gzslesjcbhernnti", model.certificateObject()); + Assertions.assertEquals("qntcypsxjvfoimwk", model.fqdn()); + Assertions.assertEquals("dyftumrtwna", model.certificateObject()); Assertions.assertEquals(OnCertificateConflictAction.UPDATE, model.onCertificateConflictAction()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CacheMountTargetPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CacheMountTargetPropertiesTests.java index b114e14e55cc..0e969581c560 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CacheMountTargetPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CacheMountTargetPropertiesTests.java @@ -10,9 +10,8 @@ public final class CacheMountTargetPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CacheMountTargetProperties model = BinaryData - .fromString( - "{\"mountTargetId\":\"ogtqxepnylbf\",\"ipAddress\":\"jlyjtlvofq\",\"smbServerFqdn\":\"vfcibyfmowux\"}") + CacheMountTargetProperties model = BinaryData.fromString( + "{\"mountTargetId\":\"azivjlfrqttbajl\",\"ipAddress\":\"tnwxy\",\"smbServerFqdn\":\"pidkqqfkuvscxkdm\"}") .toObject(CacheMountTargetProperties.class); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachePropertiesExportPolicyTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachePropertiesExportPolicyTests.java index bbb6c96aca4c..d4bb17aac746 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachePropertiesExportPolicyTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachePropertiesExportPolicyTests.java @@ -15,21 +15,21 @@ public final class CachePropertiesExportPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CachePropertiesExportPolicy model = BinaryData.fromString( - "{\"rules\":[{\"ruleIndex\":1536225579,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"drihpfhoqcaaewda\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1847086770,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"dxonbzoggculap\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"}]}") + "{\"rules\":[{\"ruleIndex\":1854784529,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"oqytibyowbblgy\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1322513595,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"xxlxsffgcvizq\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"},{\"ruleIndex\":946666624,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"owzfttsttkt\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":520028629,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"rxcpjuisavo\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"}]}") .toObject(CachePropertiesExportPolicy.class); - Assertions.assertEquals(1536225579, model.rules().get(0).ruleIndex()); + Assertions.assertEquals(1854784529, model.rules().get(0).ruleIndex()); Assertions.assertFalse(model.rules().get(0).unixReadOnly()); - Assertions.assertFalse(model.rules().get(0).unixReadWrite()); - Assertions.assertTrue(model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertTrue(model.rules().get(0).kerberos5ReadWrite()); + Assertions.assertTrue(model.rules().get(0).unixReadWrite()); + Assertions.assertFalse(model.rules().get(0).kerberos5ReadOnly()); + Assertions.assertFalse(model.rules().get(0).kerberos5ReadWrite()); Assertions.assertTrue(model.rules().get(0).kerberos5IReadOnly()); Assertions.assertFalse(model.rules().get(0).kerberos5IReadWrite()); Assertions.assertFalse(model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertFalse(model.rules().get(0).kerberos5PReadWrite()); + Assertions.assertTrue(model.rules().get(0).kerberos5PReadWrite()); Assertions.assertFalse(model.rules().get(0).cifs()); Assertions.assertFalse(model.rules().get(0).nfsv3()); - Assertions.assertTrue(model.rules().get(0).nfsv41()); - Assertions.assertEquals("drihpfhoqcaaewda", model.rules().get(0).allowedClients()); + Assertions.assertFalse(model.rules().get(0).nfsv41()); + Assertions.assertEquals("oqytibyowbblgy", model.rules().get(0).allowedClients()); Assertions.assertFalse(model.rules().get(0).hasRootAccess()); Assertions.assertEquals(ChownMode.RESTRICTED, model.rules().get(0).chownMode()); } @@ -37,50 +37,80 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CachePropertiesExportPolicy model = new CachePropertiesExportPolicy().withRules(Arrays.asList( - new ExportPolicyRule().withRuleIndex(1536225579) + new ExportPolicyRule().withRuleIndex(1854784529) .withUnixReadOnly(false) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) + .withUnixReadWrite(true) + .withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false) .withKerberos5IReadOnly(true) .withKerberos5IReadWrite(false) .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) + .withKerberos5PReadWrite(true) .withCifs(false) .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("drihpfhoqcaaewda") + .withNfsv41(false) + .withAllowedClients("oqytibyowbblgy") .withHasRootAccess(false) .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule().withRuleIndex(1847086770) + new ExportPolicyRule().withRuleIndex(1322513595) + .withUnixReadOnly(true) + .withUnixReadWrite(true) + .withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false) + .withKerberos5IReadOnly(false) + .withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false) + .withKerberos5PReadWrite(false) + .withCifs(true) + .withNfsv3(true) + .withNfsv41(false) + .withAllowedClients("xxlxsffgcvizq") + .withHasRootAccess(true) + .withChownMode(ChownMode.RESTRICTED), + new ExportPolicyRule().withRuleIndex(946666624) .withUnixReadOnly(false) .withUnixReadWrite(true) + .withKerberos5ReadOnly(true) + .withKerberos5ReadWrite(true) + .withKerberos5IReadOnly(false) + .withKerberos5IReadWrite(true) + .withKerberos5PReadOnly(false) + .withKerberos5PReadWrite(false) + .withCifs(true) + .withNfsv3(false) + .withNfsv41(false) + .withAllowedClients("owzfttsttkt") + .withHasRootAccess(false) + .withChownMode(ChownMode.UNRESTRICTED), + new ExportPolicyRule().withRuleIndex(520028629) + .withUnixReadOnly(true) + .withUnixReadWrite(true) .withKerberos5ReadOnly(false) .withKerberos5ReadWrite(true) .withKerberos5IReadOnly(true) .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(true) + .withKerberos5PReadOnly(false) .withKerberos5PReadWrite(true) .withCifs(false) .withNfsv3(false) .withNfsv41(false) - .withAllowedClients("dxonbzoggculap") + .withAllowedClients("rxcpjuisavo") .withHasRootAccess(false) .withChownMode(ChownMode.UNRESTRICTED))); model = BinaryData.fromObject(model).toObject(CachePropertiesExportPolicy.class); - Assertions.assertEquals(1536225579, model.rules().get(0).ruleIndex()); + Assertions.assertEquals(1854784529, model.rules().get(0).ruleIndex()); Assertions.assertFalse(model.rules().get(0).unixReadOnly()); - Assertions.assertFalse(model.rules().get(0).unixReadWrite()); - Assertions.assertTrue(model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertTrue(model.rules().get(0).kerberos5ReadWrite()); + Assertions.assertTrue(model.rules().get(0).unixReadWrite()); + Assertions.assertFalse(model.rules().get(0).kerberos5ReadOnly()); + Assertions.assertFalse(model.rules().get(0).kerberos5ReadWrite()); Assertions.assertTrue(model.rules().get(0).kerberos5IReadOnly()); Assertions.assertFalse(model.rules().get(0).kerberos5IReadWrite()); Assertions.assertFalse(model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertFalse(model.rules().get(0).kerberos5PReadWrite()); + Assertions.assertTrue(model.rules().get(0).kerberos5PReadWrite()); Assertions.assertFalse(model.rules().get(0).cifs()); Assertions.assertFalse(model.rules().get(0).nfsv3()); - Assertions.assertTrue(model.rules().get(0).nfsv41()); - Assertions.assertEquals("drihpfhoqcaaewda", model.rules().get(0).allowedClients()); + Assertions.assertFalse(model.rules().get(0).nfsv41()); + Assertions.assertEquals("oqytibyowbblgy", model.rules().get(0).allowedClients()); Assertions.assertFalse(model.rules().get(0).hasRootAccess()); Assertions.assertEquals(ChownMode.RESTRICTED, model.rules().get(0).chownMode()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesWithResponseMockTests.java index 90f25211f4fc..40dbea5ddc00 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class CachesListPeeringPassphrasesWithResponseMockTests { @Test public void testListPeeringPassphrasesWithResponse() throws Exception { String responseStr - = "{\"clusterPeeringCommand\":\"e\",\"clusterPeeringPassphrase\":\"niiwllbvgwz\",\"vserverPeeringCommand\":\"fftedousnktj\",\"criticalWarning\":\"ravaq\"}"; + = "{\"clusterPeeringCommand\":\"qkyojwyvf\",\"clusterPeeringPassphrase\":\"mbtsuahxsg\",\"vserverPeeringCommand\":\"jcmmzrrscub\",\"criticalWarning\":\"sd\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testListPeeringPassphrasesWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PeeringPassphrases response = manager.caches() - .listPeeringPassphrasesWithResponse("bdbfgrlp", "nytjlk", "smmpathubt", "h", + .listPeeringPassphrasesWithResponse("qb", "jhvefgwbmqjchnt", "sf", "ymxbulpzealb", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("e", response.clusterPeeringCommand()); - Assertions.assertEquals("niiwllbvgwz", response.clusterPeeringPassphrase()); - Assertions.assertEquals("fftedousnktj", response.vserverPeeringCommand()); + Assertions.assertEquals("qkyojwyvf", response.clusterPeeringCommand()); + Assertions.assertEquals("mbtsuahxsg", response.clusterPeeringPassphrase()); + Assertions.assertEquals("jcmmzrrscub", response.vserverPeeringCommand()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeMockTests.java index 91707318d64b..6e1418b1d2f2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeMockTests.java @@ -29,8 +29,8 @@ public void testPoolChange() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.caches() - .poolChange("gfkbebauzlqbtxx", "pfhnjzudrt", "zkg", "eboywhczzqrhm", - new PoolChangeRequest().withNewPoolResourceId("gqbedygi"), com.azure.core.util.Context.NONE); + .poolChange("npxqwodi", "fjxcjrmmuabwibv", "ogjo", "mcyefoyzbam", + new PoolChangeRequest().withNewPoolResourceId("in"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordMockTests.java index ec481c2aba83..c35115ba1b30 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordMockTests.java @@ -27,7 +27,9 @@ public void testResetSmbPassword() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.caches().resetSmbPassword("rzwnyk", "id", "chl", "mpwctoflds", com.azure.core.util.Context.NONE); + manager.caches() + .resetSmbPassword("ofvfkakpoldtve", "boclzhzjknyuxgv", "txpnrupza", "mrdixtreki", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java index 8910245a464f..3364d6ad5dde 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java @@ -17,38 +17,37 @@ public final class CapacityPoolInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityPoolInner model = BinaryData.fromString( - "{\"properties\":{\"poolId\":\"jdjltymkmvgui\",\"size\":5645981995080994628,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"tspphkixkykxdssj\",\"totalThroughputMibps\":23.73566,\"utilizedThroughputMibps\":20.824932,\"customThroughputMibps\":1510283924,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"etag\":\"rmymyincqlhr\",\"location\":\"wslmiiiovgqcg\",\"tags\":{\"dptjgwdtgukranb\":\"gqkctotiowlxte\",\"hoi\":\"wphqlkccuzgygqw\",\"z\":\"lwgniiprglvawu\",\"sbbjpmcu\":\"ufypiv\"},\"id\":\"kmifoxxkub\",\"name\":\"phavpmhbrb\",\"type\":\"gvgovpbbttefjo\"}") + "{\"properties\":{\"poolId\":\"usnfepgfewet\",\"size\":690089407396712859,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"ncxykxhdjhlimm\",\"totalThroughputMibps\":2.8574824,\"utilizedThroughputMibps\":3.6473155,\"customThroughputMibps\":507931039,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"etag\":\"jzh\",\"location\":\"zxfpxtgqsc\",\"tags\":{\"qaz\":\"ftjuh\",\"pijrajcivmmghf\":\"mtggu\"},\"id\":\"fiwrxgkn\",\"name\":\"uvyinzqodfvpgs\",\"type\":\"oxgsgbpfgzdjtx\"}") .toObject(CapacityPoolInner.class); - Assertions.assertEquals("wslmiiiovgqcg", model.location()); - Assertions.assertEquals("gqkctotiowlxte", model.tags().get("dptjgwdtgukranb")); - Assertions.assertEquals(5645981995080994628L, model.size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.serviceLevel()); - Assertions.assertEquals(1510283924, model.customThroughputMibps()); + Assertions.assertEquals("zxfpxtgqsc", model.location()); + Assertions.assertEquals("ftjuh", model.tags().get("qaz")); + Assertions.assertEquals(690089407396712859L, model.size()); + Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.serviceLevel()); + Assertions.assertEquals(507931039, model.customThroughputMibps()); Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); + Assertions.assertFalse(model.coolAccess()); + Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapacityPoolInner model = new CapacityPoolInner().withLocation("wslmiiiovgqcg") - .withTags(mapOf("dptjgwdtgukranb", "gqkctotiowlxte", "hoi", "wphqlkccuzgygqw", "z", "lwgniiprglvawu", - "sbbjpmcu", "ufypiv")) - .withSize(5645981995080994628L) - .withServiceLevel(ServiceLevel.STANDARD_ZRS) - .withCustomThroughputMibps(1510283924) + CapacityPoolInner model = new CapacityPoolInner().withLocation("zxfpxtgqsc") + .withTags(mapOf("qaz", "ftjuh", "pijrajcivmmghf", "mtggu")) + .withSize(690089407396712859L) + .withServiceLevel(ServiceLevel.FLEXIBLE) + .withCustomThroughputMibps(507931039) .withQosType(QosType.MANUAL) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.SINGLE); + .withCoolAccess(false) + .withEncryptionType(EncryptionType.DOUBLE); model = BinaryData.fromObject(model).toObject(CapacityPoolInner.class); - Assertions.assertEquals("wslmiiiovgqcg", model.location()); - Assertions.assertEquals("gqkctotiowlxte", model.tags().get("dptjgwdtgukranb")); - Assertions.assertEquals(5645981995080994628L, model.size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.serviceLevel()); - Assertions.assertEquals(1510283924, model.customThroughputMibps()); + Assertions.assertEquals("zxfpxtgqsc", model.location()); + Assertions.assertEquals("ftjuh", model.tags().get("qaz")); + Assertions.assertEquals(690089407396712859L, model.size()); + Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.serviceLevel()); + Assertions.assertEquals(507931039, model.customThroughputMibps()); Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); + Assertions.assertFalse(model.coolAccess()); + Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java index 0567f8e450a5..d6429ea38429 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java @@ -15,16 +15,16 @@ public final class CapacityPoolListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityPoolList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"poolId\":\"ypnyghshxc\",\"size\":1239416894946993126,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"mnsghpxycphdr\",\"totalThroughputMibps\":98.48952,\"utilizedThroughputMibps\":31.367851,\"customThroughputMibps\":1170887139,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"etag\":\"vxnqmhrpqpd\",\"location\":\"mkoisqcssf\",\"tags\":{\"zsylollgt\":\"ifmcsypobkdqzr\",\"vuaurk\":\"czzydmxzjij\"},\"id\":\"hci\",\"name\":\"ldefxrdcoxn\",\"type\":\"kkjanurnnqbnqbp\"},{\"properties\":{\"poolId\":\"xqltgrd\",\"size\":9009223800330831633,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"rxvbfihwuh\",\"totalThroughputMibps\":95.03055,\"utilizedThroughputMibps\":20.380814,\"customThroughputMibps\":2067540968,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"etag\":\"iowxi\",\"location\":\"p\",\"tags\":{\"bsbqqqag\":\"qagnepzwakl\",\"rrczezkhhltnj\":\"wrxaomzisg\",\"oyueayfbpcmsp\":\"dhqoawj\"},\"id\":\"byrrueqth\",\"name\":\"mg\",\"type\":\"mbscbbx\"}],\"nextLink\":\"dhxiidlopedbwd\"}") + "{\"value\":[{\"properties\":{\"poolId\":\"y\",\"size\":9043452615401881021,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"gqdnfwqzd\",\"totalThroughputMibps\":36.99752,\"utilizedThroughputMibps\":8.435321,\"customThroughputMibps\":1958428525,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"etag\":\"vi\",\"location\":\"uwivkxoy\",\"tags\":{\"kvcpwpgclr\":\"bixxrt\",\"yefrpmpdnqqska\":\"ivtsoxfrkenxpm\"},\"id\":\"ao\",\"name\":\"vmm\",\"type\":\"npqfrtqlkzmeg\"},{\"properties\":{\"poolId\":\"tgvkxlzyqd\",\"size\":6287019732891771770,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"ealzxwhcansymoyq\",\"totalThroughputMibps\":30.94446,\"utilizedThroughputMibps\":53.61342,\"customThroughputMibps\":817771171,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"etag\":\"mf\",\"location\":\"uwasqvd\",\"tags\":{\"uxakjsqzhzbezk\":\"y\"},\"id\":\"imsidxasicddyvvj\",\"name\":\"kgfmocwahpq\",\"type\":\"atjeaahh\"}],\"nextLink\":\"hhnakzybbj\"}") .toObject(CapacityPoolList.class); - Assertions.assertEquals("mkoisqcssf", model.value().get(0).location()); - Assertions.assertEquals("ifmcsypobkdqzr", model.value().get(0).tags().get("zsylollgt")); - Assertions.assertEquals(1239416894946993126L, model.value().get(0).size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.value().get(0).serviceLevel()); - Assertions.assertEquals(1170887139, model.value().get(0).customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, model.value().get(0).qosType()); + Assertions.assertEquals("uwivkxoy", model.value().get(0).location()); + Assertions.assertEquals("bixxrt", model.value().get(0).tags().get("kvcpwpgclr")); + Assertions.assertEquals(9043452615401881021L, model.value().get(0).size()); + Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.value().get(0).serviceLevel()); + Assertions.assertEquals(1958428525, model.value().get(0).customThroughputMibps()); + Assertions.assertEquals(QosType.MANUAL, model.value().get(0).qosType()); Assertions.assertFalse(model.value().get(0).coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.value().get(0).encryptionType()); - Assertions.assertEquals("dhxiidlopedbwd", model.nextLink()); + Assertions.assertEquals(EncryptionType.DOUBLE, model.value().get(0).encryptionType()); + Assertions.assertEquals("hhnakzybbj", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java index e1c7b571bf18..9340fad8d104 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java @@ -15,32 +15,31 @@ public final class CapacityPoolPatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityPoolPatch model = BinaryData.fromString( - "{\"location\":\"mgtvlj\",\"id\":\"cmyfqipgxhnpo\",\"name\":\"qwcabvnui\",\"type\":\"ey\",\"tags\":{\"jlrxwtoaukhfk\":\"lpaugmrm\",\"oaedsxjwuivedwcg\":\"cisiz\",\"mguaml\":\"eewxeiqbpsmg\",\"lzgaufcshhvnew\":\"dlrgms\"},\"properties\":{\"size\":7283254554944912845,\"qosType\":\"Manual\",\"coolAccess\":false,\"customThroughputMibps\":174040727}}") + "{\"location\":\"duy\",\"id\":\"uzhyrmewipmvekdx\",\"name\":\"uqgsj\",\"type\":\"undxgketw\",\"tags\":{\"uvgp\":\"zjhfjmhvv\",\"uzjyihsasbhudypo\":\"uneqsxvmhf\"},\"properties\":{\"size\":2798000155301001189,\"qosType\":\"Manual\",\"coolAccess\":true,\"customThroughputMibps\":968834448}}") .toObject(CapacityPoolPatch.class); - Assertions.assertEquals("mgtvlj", model.location()); - Assertions.assertEquals("lpaugmrm", model.tags().get("jlrxwtoaukhfk")); - Assertions.assertEquals(7283254554944912845L, model.size()); + Assertions.assertEquals("duy", model.location()); + Assertions.assertEquals("zjhfjmhvv", model.tags().get("uvgp")); + Assertions.assertEquals(2798000155301001189L, model.size()); Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(174040727, model.customThroughputMibps()); + Assertions.assertTrue(model.coolAccess()); + Assertions.assertEquals(968834448, model.customThroughputMibps()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapacityPoolPatch model = new CapacityPoolPatch().withLocation("mgtvlj") - .withTags(mapOf("jlrxwtoaukhfk", "lpaugmrm", "oaedsxjwuivedwcg", "cisiz", "mguaml", "eewxeiqbpsmg", - "lzgaufcshhvnew", "dlrgms")) - .withSize(7283254554944912845L) + CapacityPoolPatch model = new CapacityPoolPatch().withLocation("duy") + .withTags(mapOf("uvgp", "zjhfjmhvv", "uzjyihsasbhudypo", "uneqsxvmhf")) + .withSize(2798000155301001189L) .withQosType(QosType.MANUAL) - .withCoolAccess(false) - .withCustomThroughputMibps(174040727); + .withCoolAccess(true) + .withCustomThroughputMibps(968834448); model = BinaryData.fromObject(model).toObject(CapacityPoolPatch.class); - Assertions.assertEquals("mgtvlj", model.location()); - Assertions.assertEquals("lpaugmrm", model.tags().get("jlrxwtoaukhfk")); - Assertions.assertEquals(7283254554944912845L, model.size()); + Assertions.assertEquals("duy", model.location()); + Assertions.assertEquals("zjhfjmhvv", model.tags().get("uvgp")); + Assertions.assertEquals(2798000155301001189L, model.size()); Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(174040727, model.customThroughputMibps()); + Assertions.assertTrue(model.coolAccess()); + Assertions.assertEquals(968834448, model.customThroughputMibps()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ChangeZoneRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ChangeZoneRequestTests.java deleted file mode 100644 index dcec569592eb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ChangeZoneRequestTests.java +++ /dev/null @@ -1,24 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; -import org.junit.jupiter.api.Assertions; - -public final class ChangeZoneRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeZoneRequest model = BinaryData.fromString("{\"newZone\":\"xjjs\"}").toObject(ChangeZoneRequest.class); - Assertions.assertEquals("xjjs", model.newZone()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeZoneRequest model = new ChangeZoneRequest().withNewZone("xjjs"); - model = BinaryData.fromObject(model).toObject(ChangeZoneRequest.class); - Assertions.assertEquals("xjjs", model.newZone()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java index 788cefb3abe0..03f4231f3a35 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java @@ -13,10 +13,10 @@ public final class CheckAvailabilityResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CheckAvailabilityResponseInner model - = BinaryData.fromString("{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"vensrpm\"}") + = BinaryData.fromString("{\"isAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"p\"}") .toObject(CheckAvailabilityResponseInner.class); Assertions.assertTrue(model.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.INVALID, model.reason()); - Assertions.assertEquals("vensrpm", model.message()); + Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, model.reason()); + Assertions.assertEquals("p", model.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticResourceAvailabilityResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticResourceAvailabilityResponseInnerTests.java deleted file mode 100644 index 8920afab50d0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticResourceAvailabilityResponseInnerTests.java +++ /dev/null @@ -1,23 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityReason; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityStatus; -import org.junit.jupiter.api.Assertions; - -public final class CheckElasticResourceAvailabilityResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckElasticResourceAvailabilityResponseInner model - = BinaryData.fromString("{\"isAvailable\":\"True\",\"reason\":\"Invalid\",\"message\":\"ft\"}") - .toObject(CheckElasticResourceAvailabilityResponseInner.class); - Assertions.assertEquals(CheckElasticResourceAvailabilityStatus.TRUE, model.isAvailable()); - Assertions.assertEquals(CheckElasticResourceAvailabilityReason.INVALID, model.reason()); - Assertions.assertEquals("ft", model.message()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticVolumeFilePathAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticVolumeFilePathAvailabilityRequestTests.java deleted file mode 100644 index d4229793e6d0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticVolumeFilePathAvailabilityRequestTests.java +++ /dev/null @@ -1,26 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class CheckElasticVolumeFilePathAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckElasticVolumeFilePathAvailabilityRequest model = BinaryData.fromString("{\"filePath\":\"oqbeitpkxzt\"}") - .toObject(CheckElasticVolumeFilePathAvailabilityRequest.class); - Assertions.assertEquals("oqbeitpkxzt", model.filePath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckElasticVolumeFilePathAvailabilityRequest model - = new CheckElasticVolumeFilePathAvailabilityRequest().withFilePath("oqbeitpkxzt"); - model = BinaryData.fromObject(model).toObject(CheckElasticVolumeFilePathAvailabilityRequest.class); - Assertions.assertEquals("oqbeitpkxzt", model.filePath()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CifsUserTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CifsUserTests.java index 719aad46128f..91998b296b06 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CifsUserTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CifsUserTests.java @@ -11,14 +11,14 @@ public final class CifsUserTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CifsUser model = BinaryData.fromString("{\"username\":\"kqfqjbvl\"}").toObject(CifsUser.class); - Assertions.assertEquals("kqfqjbvl", model.username()); + CifsUser model = BinaryData.fromString("{\"username\":\"jqgwzp\"}").toObject(CifsUser.class); + Assertions.assertEquals("jqgwzp", model.username()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CifsUser model = new CifsUser().withUsername("kqfqjbvl"); + CifsUser model = new CifsUser().withUsername("jqgwzp"); model = BinaryData.fromObject(model).toObject(CifsUser.class); - Assertions.assertEquals("kqfqjbvl", model.username()); + Assertions.assertEquals("jqgwzp", model.username()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java index f8892b032c79..d4e95ca82ea7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java @@ -11,8 +11,10 @@ public final class ClusterPeerCommandResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ClusterPeerCommandResponseInner model = BinaryData.fromString("{\"peerAcceptCommand\":\"dagxtibqd\"}") - .toObject(ClusterPeerCommandResponseInner.class); - Assertions.assertEquals("dagxtibqd", model.peerAcceptCommand()); + ClusterPeerCommandResponseInner model + = BinaryData.fromString("{\"properties\":{\"clusterPeeringCommand\":\"agxti\",\"passphrase\":\"dxbx\"}}") + .toObject(ClusterPeerCommandResponseInner.class); + Assertions.assertEquals("agxti", model.properties().clusterPeeringCommand()); + Assertions.assertEquals("dxbx", model.properties().passphrase()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponsePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponsePropertiesTests.java new file mode 100644 index 000000000000..a759edaaa060 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponsePropertiesTests.java @@ -0,0 +1,20 @@ +// 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.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponseProperties; +import org.junit.jupiter.api.Assertions; + +public final class ClusterPeerCommandResponsePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ClusterPeerCommandResponseProperties model + = BinaryData.fromString("{\"clusterPeeringCommand\":\"kbogqxndlkzgx\",\"passphrase\":\"ripl\"}") + .toObject(ClusterPeerCommandResponseProperties.class); + Assertions.assertEquals("kbogqxndlkzgx", model.clusterPeeringCommand()); + Assertions.assertEquals("ripl", model.passphrase()); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java index 475ba92d34d2..5011d63e4cf8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java @@ -12,24 +12,24 @@ public final class DailyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DailySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":1759738487,\"hour\":863114887,\"minute\":1915861757,\"usedBytes\":8507752572019268432}") + "{\"snapshotsToKeep\":1905366329,\"hour\":2104888829,\"minute\":457558251,\"usedBytes\":7823520654951769433}") .toObject(DailySchedule.class); - Assertions.assertEquals(1759738487, model.snapshotsToKeep()); - Assertions.assertEquals(863114887, model.hour()); - Assertions.assertEquals(1915861757, model.minute()); - Assertions.assertEquals(8507752572019268432L, model.usedBytes()); + Assertions.assertEquals(1905366329, model.snapshotsToKeep()); + Assertions.assertEquals(2104888829, model.hour()); + Assertions.assertEquals(457558251, model.minute()); + Assertions.assertEquals(7823520654951769433L, model.usedBytes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DailySchedule model = new DailySchedule().withSnapshotsToKeep(1759738487) - .withHour(863114887) - .withMinute(1915861757) - .withUsedBytes(8507752572019268432L); + DailySchedule model = new DailySchedule().withSnapshotsToKeep(1905366329) + .withHour(2104888829) + .withMinute(457558251) + .withUsedBytes(7823520654951769433L); model = BinaryData.fromObject(model).toObject(DailySchedule.class); - Assertions.assertEquals(1759738487, model.snapshotsToKeep()); - Assertions.assertEquals(863114887, model.hour()); - Assertions.assertEquals(1915861757, model.minute()); - Assertions.assertEquals(8507752572019268432L, model.usedBytes()); + Assertions.assertEquals(1905366329, model.snapshotsToKeep()); + Assertions.assertEquals(2104888829, model.hour()); + Assertions.assertEquals(457558251, model.minute()); + Assertions.assertEquals(7823520654951769433L, model.usedBytes()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupInnerTests.java deleted file mode 100644 index 93e0395a5485..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupInnerTests.java +++ /dev/null @@ -1,38 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupInner model = BinaryData.fromString( - "{\"properties\":{\"creationDate\":\"2021-03-12T20:12:26Z\",\"snapshotCreationDate\":\"2021-09-16T21:13:37Z\",\"completionDate\":\"2021-05-10T03:21:21Z\",\"provisioningState\":\"Updating\",\"size\":8704016164056262603,\"label\":\"nulaiywzejywhsl\",\"backupType\":\"Scheduled\",\"failureReason\":\"pllndnp\",\"elasticVolumeResourceId\":\"wrpqafgfugsnnf\",\"snapshotUsage\":\"UseExistingSnapshot\",\"elasticSnapshotResourceId\":\"efy\",\"elasticBackupPolicyResourceId\":\"coc\",\"volumeSize\":\"Large\"},\"id\":\"tixr\",\"name\":\"vzuyturmlmu\",\"type\":\"wolba\"}") - .toObject(ElasticBackupInner.class); - Assertions.assertEquals("nulaiywzejywhsl", model.properties().label()); - Assertions.assertEquals("wrpqafgfugsnnf", model.properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.USE_EXISTING_SNAPSHOT, model.properties().snapshotUsage()); - Assertions.assertEquals("efy", model.properties().elasticSnapshotResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupInner model - = new ElasticBackupInner().withProperties(new ElasticBackupProperties().withLabel("nulaiywzejywhsl") - .withElasticVolumeResourceId("wrpqafgfugsnnf") - .withSnapshotUsage(SnapshotUsage.USE_EXISTING_SNAPSHOT) - .withElasticSnapshotResourceId("efy")); - model = BinaryData.fromObject(model).toObject(ElasticBackupInner.class); - Assertions.assertEquals("nulaiywzejywhsl", model.properties().label()); - Assertions.assertEquals("wrpqafgfugsnnf", model.properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.USE_EXISTING_SNAPSHOT, model.properties().snapshotUsage()); - Assertions.assertEquals("efy", model.properties().elasticSnapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupListResultTests.java deleted file mode 100644 index 7827c1da3840..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupListResultTests.java +++ /dev/null @@ -1,24 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupListResult; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"creationDate\":\"2021-03-05T12:08:12Z\",\"snapshotCreationDate\":\"2021-02-03T20:51:35Z\",\"completionDate\":\"2021-07-14T10:52:31Z\",\"provisioningState\":\"Succeeded\",\"size\":2153193005537260833,\"label\":\"s\",\"backupType\":\"Manual\",\"failureReason\":\"sfuughtuqfecjx\",\"elasticVolumeResourceId\":\"ygtuhx\",\"snapshotUsage\":\"CreateNewSnapshot\",\"elasticSnapshotResourceId\":\"uewmrswnjlxuzrhw\",\"elasticBackupPolicyResourceId\":\"sxjb\",\"volumeSize\":\"Regular\"},\"id\":\"gpdohzj\",\"name\":\"atucoigebxncn\",\"type\":\"fepbnwgfmxjgc\"},{\"properties\":{\"creationDate\":\"2021-09-03T22:46:11Z\",\"snapshotCreationDate\":\"2021-05-02T03:25:22Z\",\"completionDate\":\"2021-05-07T12:13:37Z\",\"provisioningState\":\"Moving\",\"size\":900706865834950533,\"label\":\"aquflqbctqha\",\"backupType\":\"Manual\",\"failureReason\":\"wdkqzeqy\",\"elasticVolumeResourceId\":\"leziunjxdfzant\",\"snapshotUsage\":\"CreateNewSnapshot\",\"elasticSnapshotResourceId\":\"gyamlbnseqacjjv\",\"elasticBackupPolicyResourceId\":\"lguooqjagmd\",\"volumeSize\":\"Regular\"},\"id\":\"eiookjbsah\",\"name\":\"tdtpdelqacslmo\",\"type\":\"oebn\"}],\"nextLink\":\"o\"}") - .toObject(ElasticBackupListResult.class); - Assertions.assertEquals("s", model.value().get(0).properties().label()); - Assertions.assertEquals("ygtuhx", model.value().get(0).properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.CREATE_NEW_SNAPSHOT, model.value().get(0).properties().snapshotUsage()); - Assertions.assertEquals("uewmrswnjlxuzrhw", model.value().get(0).properties().elasticSnapshotResourceId()); - Assertions.assertEquals("o", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateMockTests.java deleted file mode 100644 index 267927df5773..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,68 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupPoliciesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":1831546038,\"weeklyBackupsToKeep\":1504490636,\"monthlyBackupsToKeep\":604993754,\"assignedVolumesCount\":1406765711,\"policyState\":\"Enabled\"},\"eTag\":\"ecrsnh\",\"location\":\"selqxov\",\"tags\":{\"lvzrlrmlcc\":\"ibuk\",\"dsyenzsieuscpl\":\"etjsczivfqbqna\",\"itdshezsvkolru\":\"yvdgxlyzk\"},\"id\":\"jovmozsaye\",\"name\":\"razwzlpzbt\",\"type\":\"uykykipfsd\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackupPolicy response = manager.elasticBackupPolicies() - .define("sffofwanmhksca") - .withRegion("llixdgbyfgw") - .withExistingElasticAccount("ubjtvgjsxmtyjjv", "vdpwwobtdphti") - .withTags(mapOf("vxprwpxsoohu", "k", "ugggzlfbgrdcgu", "xlcskltez", "zgczfcmfpfbode", "srtmdylperpiltt", - "ai", "resrgvtshuvft")) - .withProperties(new ElasticBackupPolicyProperties().withDailyBackupsToKeep(603038180) - .withWeeklyBackupsToKeep(214397009) - .withMonthlyBackupsToKeep(1920775491) - .withPolicyState(ElasticBackupPolicyState.DISABLED)) - .create(); - - Assertions.assertEquals("selqxov", response.location()); - Assertions.assertEquals("ibuk", response.tags().get("lvzrlrmlcc")); - Assertions.assertEquals(1831546038, response.properties().dailyBackupsToKeep()); - Assertions.assertEquals(1504490636, response.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(604993754, response.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, response.properties().policyState()); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetWithResponseMockTests.java deleted file mode 100644 index c0ffe2a97481..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,45 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Moving\",\"dailyBackupsToKeep\":413791119,\"weeklyBackupsToKeep\":297181437,\"monthlyBackupsToKeep\":199362651,\"assignedVolumesCount\":655285646,\"policyState\":\"Disabled\"},\"eTag\":\"wriuomzczfkic\",\"location\":\"vsaaxwsp\",\"tags\":{\"gzzromv\":\"ikhfjqebglcxk\",\"sem\":\"g\"},\"id\":\"mesrfsvpi\",\"name\":\"kzpatqtdi\",\"type\":\"wxspvckojaz\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackupPolicy response = manager.elasticBackupPolicies() - .getWithResponse("sjrclrvtzq", "rbctbhpjhxpcvrd", "y", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vsaaxwsp", response.location()); - Assertions.assertEquals("ikhfjqebglcxk", response.tags().get("gzzromv")); - Assertions.assertEquals(413791119, response.properties().dailyBackupsToKeep()); - Assertions.assertEquals(297181437, response.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(199362651, response.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.DISABLED, response.properties().policyState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountMockTests.java deleted file mode 100644 index 7eecfeee072c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountMockTests.java +++ /dev/null @@ -1,46 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupPoliciesListByElasticAccountMockTests { - @Test - public void testListByElasticAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"dailyBackupsToKeep\":2036502743,\"weeklyBackupsToKeep\":1372387461,\"monthlyBackupsToKeep\":1680234692,\"assignedVolumesCount\":1003090045,\"policyState\":\"Enabled\"},\"eTag\":\"j\",\"location\":\"xzfxn\",\"tags\":{\"uoswkjmdih\":\"b\",\"yzlwhbwzjnufzrf\":\"cy\"},\"id\":\"m\",\"name\":\"qgnnbz\",\"type\":\"tftedz\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticBackupPolicies() - .listByElasticAccount("bgspf", "esubzpvpv", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xzfxn", response.iterator().next().location()); - Assertions.assertEquals("b", response.iterator().next().tags().get("uoswkjmdih")); - Assertions.assertEquals(2036502743, response.iterator().next().properties().dailyBackupsToKeep()); - Assertions.assertEquals(1372387461, response.iterator().next().properties().weeklyBackupsToKeep()); - Assertions.assertEquals(1680234692, response.iterator().next().properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, - response.iterator().next().properties().policyState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyInnerTests.java deleted file mode 100644 index ee2554e2df5a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyInnerTests.java +++ /dev/null @@ -1,57 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Creating\",\"dailyBackupsToKeep\":417013973,\"weeklyBackupsToKeep\":438034725,\"monthlyBackupsToKeep\":187127133,\"assignedVolumesCount\":1432603704,\"policyState\":\"Enabled\"},\"eTag\":\"kyjpmspbps\",\"location\":\"fppyogtieyujtvcz\",\"tags\":{\"xvglnkvxlxp\":\"yxrxmunj\"},\"id\":\"glqivbgkcv\",\"name\":\"hpzvuqdflvoniyp\",\"type\":\"pubcpzgpxtivhjk\"}") - .toObject(ElasticBackupPolicyInner.class); - Assertions.assertEquals("fppyogtieyujtvcz", model.location()); - Assertions.assertEquals("yxrxmunj", model.tags().get("xvglnkvxlxp")); - Assertions.assertEquals(417013973, model.properties().dailyBackupsToKeep()); - Assertions.assertEquals(438034725, model.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(187127133, model.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.properties().policyState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupPolicyInner model = new ElasticBackupPolicyInner().withLocation("fppyogtieyujtvcz") - .withTags(mapOf("xvglnkvxlxp", "yxrxmunj")) - .withProperties(new ElasticBackupPolicyProperties().withDailyBackupsToKeep(417013973) - .withWeeklyBackupsToKeep(438034725) - .withMonthlyBackupsToKeep(187127133) - .withPolicyState(ElasticBackupPolicyState.ENABLED)); - model = BinaryData.fromObject(model).toObject(ElasticBackupPolicyInner.class); - Assertions.assertEquals("fppyogtieyujtvcz", model.location()); - Assertions.assertEquals("yxrxmunj", model.tags().get("xvglnkvxlxp")); - Assertions.assertEquals(417013973, model.properties().dailyBackupsToKeep()); - Assertions.assertEquals(438034725, model.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(187127133, model.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.properties().policyState()); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyListResultTests.java deleted file mode 100644 index e972079d2dab..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyListResultTests.java +++ /dev/null @@ -1,26 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupPolicyListResult; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPolicyListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupPolicyListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"dailyBackupsToKeep\":1409620818,\"weeklyBackupsToKeep\":1972611629,\"monthlyBackupsToKeep\":13695929,\"assignedVolumesCount\":91533505,\"policyState\":\"Disabled\"},\"eTag\":\"cbfrm\",\"location\":\"dths\",\"tags\":{\"xousxauzl\":\"vriibakclacjfr\",\"wohqfzizvu\":\"vsg\",\"vmribiat\":\"mmkjsvthnwpztek\"},\"id\":\"gplucfotangcfhny\",\"name\":\"zcugswvxwlmzqw\",\"type\":\"vtxnjmxmcuqud\"},{\"properties\":{\"provisioningState\":\"Patching\",\"dailyBackupsToKeep\":21303775,\"weeklyBackupsToKeep\":1115734201,\"monthlyBackupsToKeep\":1944925015,\"assignedVolumesCount\":1087876109,\"policyState\":\"Disabled\"},\"eTag\":\"buiyji\",\"location\":\"zphdugneiknp\",\"tags\":{\"ipq\":\"gjiuqhibto\",\"tvqylkmqpzoyhlfb\":\"jedmurrxxgewp\"},\"id\":\"gwgcl\",\"name\":\"xoe\",\"type\":\"qinjipnwjf\"},{\"properties\":{\"provisioningState\":\"Updating\",\"dailyBackupsToKeep\":1724104669,\"weeklyBackupsToKeep\":1462565656,\"monthlyBackupsToKeep\":1454671377,\"assignedVolumesCount\":295372470,\"policyState\":\"Enabled\"},\"eTag\":\"foiyjwpfilk\",\"location\":\"kholvd\",\"tags\":{\"iukyefchnmna\":\"iauogphuartv\",\"xffi\":\"mnxhkxjqirwrweo\",\"rsnewmozqvbubqma\":\"hx\"},\"id\":\"hsycxhxzgaz\",\"name\":\"taboidvmf\",\"type\":\"hppubowsepdfgkmt\"}],\"nextLink\":\"erngbtcjuahokqto\"}") - .toObject(ElasticBackupPolicyListResult.class); - Assertions.assertEquals("dths", model.value().get(0).location()); - Assertions.assertEquals("vriibakclacjfr", model.value().get(0).tags().get("xousxauzl")); - Assertions.assertEquals(1409620818, model.value().get(0).properties().dailyBackupsToKeep()); - Assertions.assertEquals(1972611629, model.value().get(0).properties().weeklyBackupsToKeep()); - Assertions.assertEquals(13695929, model.value().get(0).properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.DISABLED, model.value().get(0).properties().policyState()); - Assertions.assertEquals("erngbtcjuahokqto", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyPropertiesTests.java deleted file mode 100644 index 95b0fc84787a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyPropertiesTests.java +++ /dev/null @@ -1,36 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupPolicyProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":1003924316,\"weeklyBackupsToKeep\":1404757265,\"monthlyBackupsToKeep\":1339436767,\"assignedVolumesCount\":134630925,\"policyState\":\"Enabled\"}") - .toObject(ElasticBackupPolicyProperties.class); - Assertions.assertEquals(1003924316, model.dailyBackupsToKeep()); - Assertions.assertEquals(1404757265, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1339436767, model.monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.policyState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupPolicyProperties model = new ElasticBackupPolicyProperties().withDailyBackupsToKeep(1003924316) - .withWeeklyBackupsToKeep(1404757265) - .withMonthlyBackupsToKeep(1339436767) - .withPolicyState(ElasticBackupPolicyState.ENABLED); - model = BinaryData.fromObject(model).toObject(ElasticBackupPolicyProperties.class); - Assertions.assertEquals(1003924316, model.dailyBackupsToKeep()); - Assertions.assertEquals(1404757265, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1339436767, model.monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.policyState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdatePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdatePropertiesTests.java deleted file mode 100644 index 6da1b08481c3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdatePropertiesTests.java +++ /dev/null @@ -1,37 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPolicyUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupPolicyUpdateProperties model = BinaryData.fromString( - "{\"dailyBackupsToKeep\":1438070602,\"weeklyBackupsToKeep\":1334509935,\"monthlyBackupsToKeep\":1857867991,\"policyState\":\"Enabled\"}") - .toObject(ElasticBackupPolicyUpdateProperties.class); - Assertions.assertEquals(1438070602, model.dailyBackupsToKeep()); - Assertions.assertEquals(1334509935, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1857867991, model.monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.policyState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupPolicyUpdateProperties model - = new ElasticBackupPolicyUpdateProperties().withDailyBackupsToKeep(1438070602) - .withWeeklyBackupsToKeep(1334509935) - .withMonthlyBackupsToKeep(1857867991) - .withPolicyState(ElasticBackupPolicyState.ENABLED); - model = BinaryData.fromObject(model).toObject(ElasticBackupPolicyUpdateProperties.class); - Assertions.assertEquals(1438070602, model.dailyBackupsToKeep()); - Assertions.assertEquals(1334509935, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1857867991, model.monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.policyState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdateTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdateTests.java deleted file mode 100644 index 35016b499124..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdateTests.java +++ /dev/null @@ -1,55 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdate; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPolicyUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupPolicyUpdate model = BinaryData.fromString( - "{\"tags\":{\"gpikqmh\":\"ov\",\"jrmzvupor\":\"ao\",\"qpswokmvkhlggdhb\":\"zdfuydzvkfvxcnqm\",\"zu\":\"mzqkz\"},\"properties\":{\"dailyBackupsToKeep\":1115368168,\"weeklyBackupsToKeep\":1977172976,\"monthlyBackupsToKeep\":556178422,\"policyState\":\"Enabled\"}}") - .toObject(ElasticBackupPolicyUpdate.class); - Assertions.assertEquals("ov", model.tags().get("gpikqmh")); - Assertions.assertEquals(1115368168, model.properties().dailyBackupsToKeep()); - Assertions.assertEquals(1977172976, model.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(556178422, model.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.properties().policyState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupPolicyUpdate model = new ElasticBackupPolicyUpdate() - .withTags(mapOf("gpikqmh", "ov", "jrmzvupor", "ao", "qpswokmvkhlggdhb", "zdfuydzvkfvxcnqm", "zu", "mzqkz")) - .withProperties(new ElasticBackupPolicyUpdateProperties().withDailyBackupsToKeep(1115368168) - .withWeeklyBackupsToKeep(1977172976) - .withMonthlyBackupsToKeep(556178422) - .withPolicyState(ElasticBackupPolicyState.ENABLED)); - model = BinaryData.fromObject(model).toObject(ElasticBackupPolicyUpdate.class); - Assertions.assertEquals("ov", model.tags().get("gpikqmh")); - Assertions.assertEquals(1115368168, model.properties().dailyBackupsToKeep()); - Assertions.assertEquals(1977172976, model.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(556178422, model.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.properties().policyState()); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPropertiesTests.java deleted file mode 100644 index 3e0174fb09d4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPropertiesTests.java +++ /dev/null @@ -1,36 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupProperties model = BinaryData.fromString( - "{\"creationDate\":\"2021-07-06T06:01Z\",\"snapshotCreationDate\":\"2021-04-01T11:02:42Z\",\"completionDate\":\"2021-07-21T06:19:54Z\",\"provisioningState\":\"Failed\",\"size\":7439641289820148849,\"label\":\"pngajin\",\"backupType\":\"Manual\",\"failureReason\":\"awrtmjfjmyccxlz\",\"elasticVolumeResourceId\":\"coxovn\",\"snapshotUsage\":\"CreateNewSnapshot\",\"elasticSnapshotResourceId\":\"nlusfnrd\",\"elasticBackupPolicyResourceId\":\"xtxrdcqtjvidt\",\"volumeSize\":\"Large\"}") - .toObject(ElasticBackupProperties.class); - Assertions.assertEquals("pngajin", model.label()); - Assertions.assertEquals("coxovn", model.elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.CREATE_NEW_SNAPSHOT, model.snapshotUsage()); - Assertions.assertEquals("nlusfnrd", model.elasticSnapshotResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupProperties model = new ElasticBackupProperties().withLabel("pngajin") - .withElasticVolumeResourceId("coxovn") - .withSnapshotUsage(SnapshotUsage.CREATE_NEW_SNAPSHOT) - .withElasticSnapshotResourceId("nlusfnrd"); - model = BinaryData.fromObject(model).toObject(ElasticBackupProperties.class); - Assertions.assertEquals("pngajin", model.label()); - Assertions.assertEquals("coxovn", model.elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.CREATE_NEW_SNAPSHOT, model.snapshotUsage()); - Assertions.assertEquals("nlusfnrd", model.elasticSnapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultInnerTests.java deleted file mode 100644 index 5ebcc5cd35dd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultInnerTests.java +++ /dev/null @@ -1,45 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupVaultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupVaultInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\"},\"eTag\":\"eudzqavbpd\",\"location\":\"jxlyyzglgouwtlm\",\"tags\":{\"baxk\":\"uojqt\",\"lbfjkwr\":\"eytu\",\"hsyrqunj\":\"snkq\"},\"id\":\"hdenxaulk\",\"name\":\"akdkifmjnnawtqab\",\"type\":\"xuckpggqoweyir\"}") - .toObject(ElasticBackupVaultInner.class); - Assertions.assertEquals("jxlyyzglgouwtlm", model.location()); - Assertions.assertEquals("uojqt", model.tags().get("baxk")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupVaultInner model = new ElasticBackupVaultInner().withLocation("jxlyyzglgouwtlm") - .withTags(mapOf("baxk", "uojqt", "lbfjkwr", "eytu", "hsyrqunj", "snkq")) - .withProperties(new ElasticBackupVaultProperties()); - model = BinaryData.fromObject(model).toObject(ElasticBackupVaultInner.class); - Assertions.assertEquals("jxlyyzglgouwtlm", model.location()); - Assertions.assertEquals("uojqt", model.tags().get("baxk")); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultListResultTests.java deleted file mode 100644 index 50f42189c629..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultListResultTests.java +++ /dev/null @@ -1,21 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupVaultListResult; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupVaultListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupVaultListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"eTag\":\"kzjv\",\"location\":\"iirhgfgrwsd\",\"tags\":{\"bglbyvict\":\"atzv\"},\"id\":\"tbrxkjz\",\"name\":\"rgxffmshkw\",\"type\":\"bkgozxwopdbydpi\"},{\"properties\":{\"provisioningState\":\"Succeeded\"},\"eTag\":\"napxbiygnug\",\"location\":\"nfsm\",\"tags\":{\"iquvrehm\":\"tuxuuyilflq\",\"ytqj\":\"njhvsujztc\",\"auunfprnjletlx\":\"w\",\"ddoui\":\"mr\"},\"id\":\"amowaziynknlqwzd\",\"name\":\"piwhxqs\",\"type\":\"dtmaa\"}],\"nextLink\":\"uhuxylrjvmtyg\"}") - .toObject(ElasticBackupVaultListResult.class); - Assertions.assertEquals("iirhgfgrwsd", model.value().get(0).location()); - Assertions.assertEquals("atzv", model.value().get(0).tags().get("bglbyvict")); - Assertions.assertEquals("uhuxylrjvmtyg", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultPropertiesTests.java deleted file mode 100644 index 45a54f96ef10..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultPropertiesTests.java +++ /dev/null @@ -1,22 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties; - -public final class ElasticBackupVaultPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupVaultProperties model = BinaryData.fromString("{\"provisioningState\":\"Creating\"}") - .toObject(ElasticBackupVaultProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupVaultProperties model = new ElasticBackupVaultProperties(); - model = BinaryData.fromObject(model).toObject(ElasticBackupVaultProperties.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultUpdateTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultUpdateTests.java deleted file mode 100644 index bc7809e30e78..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultUpdateTests.java +++ /dev/null @@ -1,40 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultUpdate; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupVaultUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupVaultUpdate model = BinaryData.fromString("{\"tags\":{\"qxpxiwfcngjsaa\":\"ngwflqqmpizruwn\"}}") - .toObject(ElasticBackupVaultUpdate.class); - Assertions.assertEquals("ngwflqqmpizruwn", model.tags().get("qxpxiwfcngjsaa")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupVaultUpdate model - = new ElasticBackupVaultUpdate().withTags(mapOf("qxpxiwfcngjsaa", "ngwflqqmpizruwn")); - model = BinaryData.fromObject(model).toObject(ElasticBackupVaultUpdate.class); - Assertions.assertEquals("ngwflqqmpizruwn", model.tags().get("qxpxiwfcngjsaa")); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateMockTests.java deleted file mode 100644 index 83966429dc35..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,59 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupVaultsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"eTag\":\"usmmor\",\"location\":\"zhwilzzh\",\"tags\":{\"neyttl\":\"mriprlk\",\"bkut\":\"cxiv\",\"ynbpvzlqywauy\":\"umltwjflu\",\"hmocgjshg\":\"njc\"},\"id\":\"u\",\"name\":\"rhwv\",\"type\":\"xqqggljky\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackupVault response = manager.elasticBackupVaults() - .define("ieswhddzydisn") - .withRegion("pxottd") - .withExistingElasticAccount("qiipsejb", "vsi") - .withTags(mapOf("ihweeb", "ocqibz", "yv", "ph", "w", "jw")) - .withProperties(new ElasticBackupVaultProperties()) - .create(); - - Assertions.assertEquals("zhwilzzh", response.location()); - Assertions.assertEquals("mriprlk", response.tags().get("neyttl")); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetWithResponseMockTests.java deleted file mode 100644 index 5eef4514043c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupVaultsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Patching\"},\"eTag\":\"fxrk\",\"location\":\"ammgmqfmefgv\",\"tags\":{\"quxweyslandkd\":\"dwj\"},\"id\":\"djhunhghcgawnr\",\"name\":\"nquoxsotireimse\",\"type\":\"bfsx\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackupVault response = manager.elasticBackupVaults() - .getWithResponse("cdpreyxelyicg", "flr", "fss", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ammgmqfmefgv", response.location()); - Assertions.assertEquals("dwj", response.tags().get("quxweyslandkd")); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountMockTests.java deleted file mode 100644 index 88485fca5b0e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountMockTests.java +++ /dev/null @@ -1,40 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupVaultsListByElasticAccountMockTests { - @Test - public void testListByElasticAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Patching\"},\"eTag\":\"zinzabwmvogljsvl\",\"location\":\"idnwceha\",\"tags\":{\"iomqoqpepiaea\":\"oyzlt\"},\"id\":\"fsergdtpeqnacy\",\"name\":\"eqwbpqqncjubkhj\",\"type\":\"zfymcwmbupyvqyvl\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticBackupVaults() - .listByElasticAccount("tcyilbvz", "mxcjzlquzexokjx", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("idnwceha", response.iterator().next().location()); - Assertions.assertEquals("oyzlt", response.iterator().next().tags().get("iomqoqpepiaea")); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateMockTests.java deleted file mode 100644 index 4c3c086a2726..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,49 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackup; -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"creationDate\":\"2021-01-19T07:15Z\",\"snapshotCreationDate\":\"2021-02-06T10:38:17Z\",\"completionDate\":\"2021-02-20T09:04:09Z\",\"provisioningState\":\"Succeeded\",\"size\":6690353869242646802,\"label\":\"pbpgnrholhujbfwx\",\"backupType\":\"Scheduled\",\"failureReason\":\"ysolsy\",\"elasticVolumeResourceId\":\"p\",\"snapshotUsage\":\"CreateNewSnapshot\",\"elasticSnapshotResourceId\":\"whdmcvhtbbz\",\"elasticBackupPolicyResourceId\":\"f\",\"volumeSize\":\"Large\"},\"id\":\"zb\",\"name\":\"pcqzg\",\"type\":\"hotjec\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackup response = manager.elasticBackups() - .define("atsdohzniucbdaom") - .withExistingElasticBackupVault("zolgjzmicuydocc", "xshanzb", "iadhbatec") - .withProperties(new ElasticBackupProperties().withLabel("pow") - .withElasticVolumeResourceId("jgcq") - .withSnapshotUsage(SnapshotUsage.CREATE_NEW_SNAPSHOT) - .withElasticSnapshotResourceId("nkgfcfdr")) - .create(); - - Assertions.assertEquals("pbpgnrholhujbfwx", response.properties().label()); - Assertions.assertEquals("p", response.properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.CREATE_NEW_SNAPSHOT, response.properties().snapshotUsage()); - Assertions.assertEquals("whdmcvhtbbz", response.properties().elasticSnapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetWithResponseMockTests.java deleted file mode 100644 index 8f80e84aeae3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetWithResponseMockTests.java +++ /dev/null @@ -1,43 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackup; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"creationDate\":\"2020-12-21T20:29:30Z\",\"snapshotCreationDate\":\"2021-03-13T00:05:46Z\",\"completionDate\":\"2021-09-23T21:21:14Z\",\"provisioningState\":\"Creating\",\"size\":7932179261327484654,\"label\":\"vhoej\",\"backupType\":\"Manual\",\"failureReason\":\"tgwrmkahpqha\",\"elasticVolumeResourceId\":\"yntacihnco\",\"snapshotUsage\":\"CreateNewSnapshot\",\"elasticSnapshotResourceId\":\"nmliqmvlbhi\",\"elasticBackupPolicyResourceId\":\"aqgrv\",\"volumeSize\":\"Large\"},\"id\":\"xpupdtsdf\",\"name\":\"yies\",\"type\":\"cwiqbuout\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackup response = manager.elasticBackups() - .getWithResponse("epfnoc", "bezacfpztga", "wyqejgaao", "ctgkppgkqzkcyzmf", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vhoej", response.properties().label()); - Assertions.assertEquals("yntacihnco", response.properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.CREATE_NEW_SNAPSHOT, response.properties().snapshotUsage()); - Assertions.assertEquals("nmliqmvlbhi", response.properties().elasticSnapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultMockTests.java deleted file mode 100644 index be638cfdf5d1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultMockTests.java +++ /dev/null @@ -1,44 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackup; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupsListByVaultMockTests { - @Test - public void testListByVault() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"creationDate\":\"2021-01-20T10:35:06Z\",\"snapshotCreationDate\":\"2020-12-24T03:50:18Z\",\"completionDate\":\"2021-03-24T17:28:13Z\",\"provisioningState\":\"Accepted\",\"size\":2908535745622940584,\"label\":\"wixvtbouguxtndop\",\"backupType\":\"Manual\",\"failureReason\":\"bas\",\"elasticVolumeResourceId\":\"alapdlndbe\",\"snapshotUsage\":\"CreateNewSnapshot\",\"elasticSnapshotResourceId\":\"ixv\",\"elasticBackupPolicyResourceId\":\"wy\",\"volumeSize\":\"Large\"},\"id\":\"fqvz\",\"name\":\"jmspugzfeuzjlj\",\"type\":\"phfky\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticBackups() - .listByVault("py", "gleofjsbgbw", "zvdajfwnncf", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wixvtbouguxtndop", response.iterator().next().properties().label()); - Assertions.assertEquals("alapdlndbe", response.iterator().next().properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.CREATE_NEW_SNAPSHOT, - response.iterator().next().properties().snapshotUsage()); - Assertions.assertEquals("ixv", response.iterator().next().properties().elasticSnapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilityWithResponseMockTests.java deleted file mode 100644 index e4ed9e5e083b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,45 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityReason; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityStatus; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticCapacityPoolsCheckVolumeFilePathAvailabilityWithResponseMockTests { - @Test - public void testCheckVolumeFilePathAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":\"True\",\"reason\":\"Invalid\",\"message\":\"gjqafkmkrokzr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CheckElasticResourceAvailabilityResponse response = manager.elasticCapacityPools() - .checkVolumeFilePathAvailabilityWithResponse("vmakxhysowljuxl", "bectvtfjmskdch", "aiubavlzwpvgmfa", - new CheckElasticVolumeFilePathAvailabilityRequest().withFilePath("kzaz"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(CheckElasticResourceAvailabilityStatus.TRUE, response.isAvailable()); - Assertions.assertEquals(CheckElasticResourceAvailabilityReason.INVALID, response.reason()); - Assertions.assertEquals("gjqafkmkrokzr", response.message()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticEncryptionIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticEncryptionIdentityTests.java deleted file mode 100644 index 22447d528a42..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticEncryptionIdentityTests.java +++ /dev/null @@ -1,30 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticEncryptionIdentity; -import org.junit.jupiter.api.Assertions; - -public final class ElasticEncryptionIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticEncryptionIdentity model = BinaryData - .fromString( - "{\"principalId\":\"xylfsb\",\"userAssignedIdentity\":\"adpysownbt\",\"federatedClientId\":\"bugrj\"}") - .toObject(ElasticEncryptionIdentity.class); - Assertions.assertEquals("adpysownbt", model.userAssignedIdentity()); - Assertions.assertEquals("bugrj", model.federatedClientId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticEncryptionIdentity model - = new ElasticEncryptionIdentity().withUserAssignedIdentity("adpysownbt").withFederatedClientId("bugrj"); - model = BinaryData.fromObject(model).toObject(ElasticEncryptionIdentity.class); - Assertions.assertEquals("adpysownbt", model.userAssignedIdentity()); - Assertions.assertEquals("bugrj", model.federatedClientId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyRuleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyRuleTests.java deleted file mode 100644 index bd03c4a35b94..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyRuleTests.java +++ /dev/null @@ -1,46 +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.generated; - -import com.azure.core.util.BinaryData; -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 java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticExportPolicyRuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticExportPolicyRule model = BinaryData.fromString( - "{\"ruleIndex\":1699732408,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"ijpxtx\"],\"rootAccess\":\"Enabled\"}") - .toObject(ElasticExportPolicyRule.class); - Assertions.assertEquals(1699732408, model.ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.nfsv4()); - Assertions.assertEquals("ijpxtx", model.allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, model.rootAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticExportPolicyRule model = new ElasticExportPolicyRule().withRuleIndex(1699732408) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("ijpxtx")) - .withRootAccess(ElasticRootAccess.ENABLED); - model = BinaryData.fromObject(model).toObject(ElasticExportPolicyRule.class); - Assertions.assertEquals(1699732408, model.ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.nfsv4()); - Assertions.assertEquals("ijpxtx", model.allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, model.rootAccess()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyTests.java deleted file mode 100644 index 33ca9c14cd45..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyTests.java +++ /dev/null @@ -1,60 +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.generated; - -import com.azure.core.util.BinaryData; -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 java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticExportPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticExportPolicy model = BinaryData.fromString( - "{\"rules\":[{\"ruleIndex\":1663251507,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"dnlj\",\"age\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":850967127,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"ppxynenls\",\"xeizzg\",\"klnsrmffey\",\"xcktpiymerteeamm\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":435737024,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"g\",\"ojbmxv\"],\"rootAccess\":\"Enabled\"}]}") - .toObject(ElasticExportPolicy.class); - Assertions.assertEquals(1663251507, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_WRITE, model.rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.rules().get(0).nfsv4()); - Assertions.assertEquals("dnlj", model.rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, model.rules().get(0).rootAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticExportPolicy model = new ElasticExportPolicy().withRules(Arrays.asList( - new ElasticExportPolicyRule().withRuleIndex(1663251507) - .withUnixAccessRule(ElasticUnixAccessRule.READ_WRITE) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("dnlj", "age")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(850967127) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("ppxynenls", "xeizzg", "klnsrmffey", "xcktpiymerteeamm")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(435737024) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("g", "ojbmxv")) - .withRootAccess(ElasticRootAccess.ENABLED))); - model = BinaryData.fromObject(model).toObject(ElasticExportPolicy.class); - Assertions.assertEquals(1663251507, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_WRITE, model.rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.rules().get(0).nfsv4()); - Assertions.assertEquals("dnlj", model.rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, model.rules().get(0).rootAccess()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticMountTargetPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticMountTargetPropertiesTests.java deleted file mode 100644 index 03286d5c4260..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticMountTargetPropertiesTests.java +++ /dev/null @@ -1,17 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticMountTargetProperties; - -public final class ElasticMountTargetPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticMountTargetProperties model - = BinaryData.fromString("{\"ipAddress\":\"rtujwsawddjibab\",\"smbServerFqdn\":\"ititvtzeexavoxt\"}") - .toObject(ElasticMountTargetProperties.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPatchPropertiesTests.java deleted file mode 100644 index de0774d53372..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPatchPropertiesTests.java +++ /dev/null @@ -1,27 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbPatchProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSmbPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSmbPatchProperties model - = BinaryData.fromString("{\"smbEncryption\":\"Enabled\"}").toObject(ElasticSmbPatchProperties.class); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.smbEncryption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSmbPatchProperties model - = new ElasticSmbPatchProperties().withSmbEncryption(ElasticSmbEncryption.ENABLED); - model = BinaryData.fromObject(model).toObject(ElasticSmbPatchProperties.class); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.smbEncryption()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPropertiesTests.java deleted file mode 100644 index d5aad72609b4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPropertiesTests.java +++ /dev/null @@ -1,26 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSmbPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSmbProperties model - = BinaryData.fromString("{\"smbEncryption\":\"Disabled\"}").toObject(ElasticSmbProperties.class); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.smbEncryption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSmbProperties model = new ElasticSmbProperties().withSmbEncryption(ElasticSmbEncryption.DISABLED); - model = BinaryData.fromObject(model).toObject(ElasticSmbProperties.class); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.smbEncryption()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotInnerTests.java deleted file mode 100644 index fc97fedc3dc8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotInnerTests.java +++ /dev/null @@ -1,24 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties; - -public final class ElasticSnapshotInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"eyzihgrky\",\"name\":\"i\",\"type\":\"absnmfpp\"}") - .toObject(ElasticSnapshotInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotInner model = new ElasticSnapshotInner().withProperties(new ElasticSnapshotProperties()); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotInner.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotListResultTests.java deleted file mode 100644 index 704a856e588c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotListResultTests.java +++ /dev/null @@ -1,19 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotListResult; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Moving\"},\"id\":\"yhsgz\",\"name\":\"czbgomfgbeg\",\"type\":\"qgleohibetnluank\"}],\"nextLink\":\"fxeeebtijvacvbm\"}") - .toObject(ElasticSnapshotListResult.class); - Assertions.assertEquals("fxeeebtijvacvbm", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateMockTests.java deleted file mode 100644 index bad8016cb472..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,95 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -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.ElasticSnapshotPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotPoliciesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":198981818,\"minute\":1401128045},\"dailySchedule\":{\"snapshotsToKeep\":1299436949,\"hour\":1778690652,\"minute\":229809172},\"weeklySchedule\":{\"snapshotsToKeep\":1412707963,\"days\":[\"Thursday\"],\"hour\":119102126,\"minute\":1825512947},\"monthlySchedule\":{\"snapshotsToKeep\":1343673693,\"daysOfMonth\":[1708768845,1884473053,319967168,974901936],\"hour\":894617338,\"minute\":1555817929},\"policyStatus\":\"Disabled\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"ycqsxr\",\"location\":\"vewuyqaeoh\",\"tags\":{\"aurghooxa\":\"gejkbvhh\",\"hxjxjoezlqxrkdkn\":\"xb\",\"tzamicbig\":\"obektmbozo\",\"euairaabmdlqjb\":\"cdgzseznux\"},\"id\":\"dp\",\"name\":\"ixlhupm\",\"type\":\"mihzbdnpxp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticSnapshotPolicy response = manager.elasticSnapshotPolicies() - .define("xjoshohtotryegpk") - .withRegion("qnhttwdowrczfj") - .withExistingElasticAccount("eq", "zfz") - .withTags(mapOf("cifrhjulrsulwzpf", "uxxrkkmhmnulwemp", "hhgzotf", "usnaw")) - .withProperties(new ElasticSnapshotPolicyProperties() - .withHourlySchedule( - new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(1971199048).withMinute(1069904883)) - .withDailySchedule(new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(1447130983) - .withHour(2084690732) - .withMinute(508063907)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(900116199) - .withDays( - Arrays.asList(DayOfWeek.THURSDAY, DayOfWeek.THURSDAY, DayOfWeek.THURSDAY, DayOfWeek.SUNDAY)) - .withHour(1699514376) - .withMinute(1717585521)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(771895250) - .withDaysOfMonth(Arrays.asList(1012745534, 2135163704)) - .withHour(1595592115) - .withMinute(1613638320)) - .withPolicyStatus(PolicyStatus.ENABLED)) - .create(); - - Assertions.assertEquals("vewuyqaeoh", response.location()); - Assertions.assertEquals("gejkbvhh", response.tags().get("aurghooxa")); - Assertions.assertEquals(198981818, response.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1401128045, response.properties().hourlySchedule().minute()); - Assertions.assertEquals(1299436949, response.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1778690652, response.properties().dailySchedule().hour()); - Assertions.assertEquals(229809172, response.properties().dailySchedule().minute()); - Assertions.assertEquals(1412707963, response.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.THURSDAY, response.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(119102126, response.properties().weeklySchedule().hour()); - Assertions.assertEquals(1825512947, response.properties().weeklySchedule().minute()); - Assertions.assertEquals(1343673693, response.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1708768845, response.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(894617338, response.properties().monthlySchedule().hour()); - Assertions.assertEquals(1555817929, response.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.DISABLED, response.properties().policyStatus()); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetWithResponseMockTests.java deleted file mode 100644 index 506f00b2941d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,56 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":293027787,\"minute\":1347646978},\"dailySchedule\":{\"snapshotsToKeep\":825444665,\"hour\":558826863,\"minute\":1665055697},\"weeklySchedule\":{\"snapshotsToKeep\":1587000231,\"days\":[\"Thursday\"],\"hour\":2097526024,\"minute\":2120303935},\"monthlySchedule\":{\"snapshotsToKeep\":1978269094,\"daysOfMonth\":[428415018,2023896878,1762837945],\"hour\":1234819449,\"minute\":1445178910},\"policyStatus\":\"Enabled\",\"provisioningState\":\"Failed\"},\"eTag\":\"cwrase\",\"location\":\"efcvo\",\"tags\":{\"wyxqiclad\":\"oqar\",\"ob\":\"atdavuqmcbyms\"},\"id\":\"lquvjezcjumvp\",\"name\":\"imioyo\",\"type\":\"glkmiqwnnr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticSnapshotPolicy response = manager.elasticSnapshotPolicies() - .getWithResponse("nfee", "gpkrie", "bgnixxoww", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("efcvo", response.location()); - Assertions.assertEquals("oqar", response.tags().get("wyxqiclad")); - Assertions.assertEquals(293027787, response.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1347646978, response.properties().hourlySchedule().minute()); - Assertions.assertEquals(825444665, response.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(558826863, response.properties().dailySchedule().hour()); - Assertions.assertEquals(1665055697, response.properties().dailySchedule().minute()); - Assertions.assertEquals(1587000231, response.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.THURSDAY, response.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(2097526024, response.properties().weeklySchedule().hour()); - Assertions.assertEquals(2120303935, response.properties().weeklySchedule().minute()); - Assertions.assertEquals(1978269094, response.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(428415018, response.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1234819449, response.properties().monthlySchedule().hour()); - Assertions.assertEquals(1445178910, response.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, response.properties().policyStatus()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountMockTests.java deleted file mode 100644 index 8f0ed6cb47ad..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountMockTests.java +++ /dev/null @@ -1,58 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotPoliciesListByElasticAccountMockTests { - @Test - public void testListByElasticAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":2077374206,\"minute\":566453426},\"dailySchedule\":{\"snapshotsToKeep\":625385540,\"hour\":1932851471,\"minute\":426145183},\"weeklySchedule\":{\"snapshotsToKeep\":1109451921,\"days\":[\"Monday\",\"Friday\",\"Tuesday\"],\"hour\":673266266,\"minute\":1024186603},\"monthlySchedule\":{\"snapshotsToKeep\":923929907,\"daysOfMonth\":[192806540],\"hour\":1015326145,\"minute\":843143298},\"policyStatus\":\"Enabled\",\"provisioningState\":\"Updating\"},\"eTag\":\"xbsmtbljje\",\"location\":\"ci\",\"tags\":{\"tbrekqhsqhtf\":\"dv\"},\"id\":\"wpq\",\"name\":\"yejuwyqwdqigmghg\",\"type\":\"nztxlujkh\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticSnapshotPolicies() - .listByElasticAccount("clibbfqpsp", "ladydgnhautwu", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ci", response.iterator().next().location()); - Assertions.assertEquals("dv", response.iterator().next().tags().get("tbrekqhsqhtf")); - Assertions.assertEquals(2077374206, response.iterator().next().properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(566453426, response.iterator().next().properties().hourlySchedule().minute()); - Assertions.assertEquals(625385540, response.iterator().next().properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1932851471, response.iterator().next().properties().dailySchedule().hour()); - Assertions.assertEquals(426145183, response.iterator().next().properties().dailySchedule().minute()); - Assertions.assertEquals(1109451921, response.iterator().next().properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.MONDAY, - response.iterator().next().properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(673266266, response.iterator().next().properties().weeklySchedule().hour()); - Assertions.assertEquals(1024186603, response.iterator().next().properties().weeklySchedule().minute()); - Assertions.assertEquals(923929907, response.iterator().next().properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(192806540, - response.iterator().next().properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1015326145, response.iterator().next().properties().monthlySchedule().hour()); - Assertions.assertEquals(843143298, response.iterator().next().properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, response.iterator().next().properties().policyStatus()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesMockTests.java deleted file mode 100644 index 7abf04185be4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesMockTests.java +++ /dev/null @@ -1,79 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -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.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotPoliciesListElasticVolumesMockTests { - @Test - public void testListElasticVolumes() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"filePath\":\"vragpokddx\",\"size\":5574172898394508867,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":956584733,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"wkqyns\"],\"rootAccess\":\"Enabled\"}]},\"protocolTypes\":[\"SMB\",\"SMB\",\"SMB\",\"NFSv4\"],\"provisioningState\":\"Patching\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"xaexqokmyrljial\",\"mountTargets\":[{\"ipAddress\":\"brqlpbcjtrpz\",\"smbServerFqdn\":\"udivbxnhsqeaeonq\"},{\"ipAddress\":\"wgdhu\",\"smbServerFqdn\":\"zytzarogatmolj\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"pinm\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"kneerzztrknsj\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"dybnh\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"hkeizcp\",\"restorationState\":\"Restoring\"},\"eTag\":\"miw\",\"zones\":[\"p\"],\"location\":\"caydbjzcqymlcfnz\",\"tags\":{\"pmmzps\":\"surlgwq\",\"momsgvvj\":\"auolawiu\"},\"id\":\"vvlrlohewjjmajn\",\"name\":\"dfl\",\"type\":\"ionsw\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticSnapshotPolicies() - .listElasticVolumes("jcmrnkfm", "h", "qtwmlmhjnqtqeahj", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("caydbjzcqymlcfnz", response.iterator().next().location()); - Assertions.assertEquals("surlgwq", response.iterator().next().tags().get("pmmzps")); - Assertions.assertEquals("vragpokddx", response.iterator().next().properties().filePath()); - Assertions.assertEquals(5574172898394508867L, response.iterator().next().properties().size()); - Assertions.assertEquals(956584733, - response.iterator().next().properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, - response.iterator().next().properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("wkqyns", - response.iterator().next().properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.SMB, - response.iterator().next().properties().protocolTypes().get(0)); - Assertions.assertEquals("xaexqokmyrljial", response.iterator().next().properties().snapshotResourceId()); - Assertions.assertEquals("pinm", - response.iterator().next().properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("kneerzztrknsj", - response.iterator().next().properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - response.iterator().next().properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("dybnh", - response.iterator().next().properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, - response.iterator().next().properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, - response.iterator().next().properties().smbProperties().smbEncryption()); - Assertions.assertEquals("hkeizcp", response.iterator().next().properties().backupResourceId()); - Assertions.assertEquals("p", response.iterator().next().zones().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyDailyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyDailyScheduleTests.java deleted file mode 100644 index 3f1b6e8ec2e6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyDailyScheduleTests.java +++ /dev/null @@ -1,33 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyDailyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyDailySchedule model - = BinaryData.fromString("{\"snapshotsToKeep\":195751887,\"hour\":351038276,\"minute\":1244387227}") - .toObject(ElasticSnapshotPolicyDailySchedule.class); - Assertions.assertEquals(195751887, model.snapshotsToKeep()); - Assertions.assertEquals(351038276, model.hour()); - Assertions.assertEquals(1244387227, model.minute()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyDailySchedule model - = new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(195751887) - .withHour(351038276) - .withMinute(1244387227); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyDailySchedule.class); - Assertions.assertEquals(195751887, model.snapshotsToKeep()); - Assertions.assertEquals(351038276, model.hour()); - Assertions.assertEquals(1244387227, model.minute()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyHourlyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyHourlyScheduleTests.java deleted file mode 100644 index 786a7777dd9f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyHourlyScheduleTests.java +++ /dev/null @@ -1,29 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyHourlyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyHourlySchedule model - = BinaryData.fromString("{\"snapshotsToKeep\":1679181375,\"minute\":284348485}") - .toObject(ElasticSnapshotPolicyHourlySchedule.class); - Assertions.assertEquals(1679181375, model.snapshotsToKeep()); - Assertions.assertEquals(284348485, model.minute()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyHourlySchedule model - = new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(1679181375).withMinute(284348485); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyHourlySchedule.class); - Assertions.assertEquals(1679181375, model.snapshotsToKeep()); - Assertions.assertEquals(284348485, model.minute()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyInnerTests.java deleted file mode 100644 index d9cbbed7f6cd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyInnerTests.java +++ /dev/null @@ -1,94 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner; -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; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":32108213,\"minute\":1374420811},\"dailySchedule\":{\"snapshotsToKeep\":2093325150,\"hour\":99469711,\"minute\":799727678},\"weeklySchedule\":{\"snapshotsToKeep\":648300753,\"days\":[\"Tuesday\"],\"hour\":1432643181,\"minute\":1322140273},\"monthlySchedule\":{\"snapshotsToKeep\":1175028140,\"daysOfMonth\":[1859068640,1682333045,517079921],\"hour\":955736847,\"minute\":543934665},\"policyStatus\":\"Enabled\",\"provisioningState\":\"Accepted\"},\"eTag\":\"fgvxirpghriypoqe\",\"location\":\"lqhykprlpyz\",\"tags\":{\"smexiitdf\":\"iq\",\"nustgnljh\":\"xtyasiibmiyb\"},\"id\":\"mgixhcmavmqfou\",\"name\":\"or\",\"type\":\"cgyypro\"}") - .toObject(ElasticSnapshotPolicyInner.class); - Assertions.assertEquals("lqhykprlpyz", model.location()); - Assertions.assertEquals("iq", model.tags().get("smexiitdf")); - Assertions.assertEquals(32108213, model.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1374420811, model.properties().hourlySchedule().minute()); - Assertions.assertEquals(2093325150, model.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(99469711, model.properties().dailySchedule().hour()); - Assertions.assertEquals(799727678, model.properties().dailySchedule().minute()); - Assertions.assertEquals(648300753, model.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(1432643181, model.properties().weeklySchedule().hour()); - Assertions.assertEquals(1322140273, model.properties().weeklySchedule().minute()); - Assertions.assertEquals(1175028140, model.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1859068640, model.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(955736847, model.properties().monthlySchedule().hour()); - Assertions.assertEquals(543934665, model.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.properties().policyStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyInner model = new ElasticSnapshotPolicyInner().withLocation("lqhykprlpyz") - .withTags(mapOf("smexiitdf", "iq", "nustgnljh", "xtyasiibmiyb")) - .withProperties(new ElasticSnapshotPolicyProperties() - .withHourlySchedule( - new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(32108213).withMinute(1374420811)) - .withDailySchedule(new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(2093325150) - .withHour(99469711) - .withMinute(799727678)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(648300753) - .withDays(Arrays.asList(DayOfWeek.TUESDAY)) - .withHour(1432643181) - .withMinute(1322140273)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1175028140) - .withDaysOfMonth(Arrays.asList(1859068640, 1682333045, 517079921)) - .withHour(955736847) - .withMinute(543934665)) - .withPolicyStatus(PolicyStatus.ENABLED)); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyInner.class); - Assertions.assertEquals("lqhykprlpyz", model.location()); - Assertions.assertEquals("iq", model.tags().get("smexiitdf")); - Assertions.assertEquals(32108213, model.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1374420811, model.properties().hourlySchedule().minute()); - Assertions.assertEquals(2093325150, model.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(99469711, model.properties().dailySchedule().hour()); - Assertions.assertEquals(799727678, model.properties().dailySchedule().minute()); - Assertions.assertEquals(648300753, model.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(1432643181, model.properties().weeklySchedule().hour()); - Assertions.assertEquals(1322140273, model.properties().weeklySchedule().minute()); - Assertions.assertEquals(1175028140, model.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1859068640, model.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(955736847, model.properties().monthlySchedule().hour()); - Assertions.assertEquals(543934665, model.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.properties().policyStatus()); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyListResultTests.java deleted file mode 100644 index 4204c4bbc055..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyListResultTests.java +++ /dev/null @@ -1,37 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyListResult; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1401279651,\"minute\":1236103657},\"dailySchedule\":{\"snapshotsToKeep\":512397755,\"hour\":204772746,\"minute\":1829804009},\"weeklySchedule\":{\"snapshotsToKeep\":488183187,\"days\":[\"Saturday\"],\"hour\":2056787,\"minute\":1402000127},\"monthlySchedule\":{\"snapshotsToKeep\":405825776,\"daysOfMonth\":[1320824273,765217570,51098214,429988434],\"hour\":2064090558,\"minute\":202407711},\"policyStatus\":\"Disabled\",\"provisioningState\":\"Updating\"},\"eTag\":\"pnodawopqhe\",\"location\":\"ptmcgsbostzelnd\",\"tags\":{\"neqvcwwyyurmo\":\"utmzlbiojlvfhrbb\",\"rsnm\":\"hppr\"},\"id\":\"k\",\"name\":\"yzejnhlbk\",\"type\":\"bzpcpiljhahzvec\"},{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":771946842,\"minute\":320038857},\"dailySchedule\":{\"snapshotsToKeep\":1717475306,\"hour\":36238226,\"minute\":1944558428},\"weeklySchedule\":{\"snapshotsToKeep\":848413713,\"days\":[\"Sunday\",\"Tuesday\",\"Thursday\",\"Saturday\"],\"hour\":47628840,\"minute\":659521357},\"monthlySchedule\":{\"snapshotsToKeep\":407191024,\"daysOfMonth\":[1895381601],\"hour\":53099782,\"minute\":334650465},\"policyStatus\":\"Disabled\",\"provisioningState\":\"Failed\"},\"eTag\":\"xap\",\"location\":\"og\",\"tags\":{\"pud\":\"o\",\"yawbzasqbu\":\"dabtqwp\",\"oguyaip\":\"ljgkyex\",\"waz\":\"dsdaultxijjumf\"},\"id\":\"nqnm\",\"name\":\"jng\",\"type\":\"qdqx\"}],\"nextLink\":\"jw\"}") - .toObject(ElasticSnapshotPolicyListResult.class); - Assertions.assertEquals("ptmcgsbostzelnd", model.value().get(0).location()); - Assertions.assertEquals("utmzlbiojlvfhrbb", model.value().get(0).tags().get("neqvcwwyyurmo")); - Assertions.assertEquals(1401279651, model.value().get(0).properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1236103657, model.value().get(0).properties().hourlySchedule().minute()); - Assertions.assertEquals(512397755, model.value().get(0).properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(204772746, model.value().get(0).properties().dailySchedule().hour()); - Assertions.assertEquals(1829804009, model.value().get(0).properties().dailySchedule().minute()); - Assertions.assertEquals(488183187, model.value().get(0).properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.value().get(0).properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(2056787, model.value().get(0).properties().weeklySchedule().hour()); - Assertions.assertEquals(1402000127, model.value().get(0).properties().weeklySchedule().minute()); - Assertions.assertEquals(405825776, model.value().get(0).properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1320824273, model.value().get(0).properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(2064090558, model.value().get(0).properties().monthlySchedule().hour()); - Assertions.assertEquals(202407711, model.value().get(0).properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.DISABLED, model.value().get(0).properties().policyStatus()); - Assertions.assertEquals("jw", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyMonthlyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyMonthlyScheduleTests.java deleted file mode 100644 index 2e72c1e1e42d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyMonthlyScheduleTests.java +++ /dev/null @@ -1,37 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyMonthlyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyMonthlySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":1023774420,\"daysOfMonth\":[1410759489,975407039,952311189],\"hour\":2048724944,\"minute\":1770973346}") - .toObject(ElasticSnapshotPolicyMonthlySchedule.class); - Assertions.assertEquals(1023774420, model.snapshotsToKeep()); - Assertions.assertEquals(1410759489, model.daysOfMonth().get(0)); - Assertions.assertEquals(2048724944, model.hour()); - Assertions.assertEquals(1770973346, model.minute()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyMonthlySchedule model - = new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1023774420) - .withDaysOfMonth(Arrays.asList(1410759489, 975407039, 952311189)) - .withHour(2048724944) - .withMinute(1770973346); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyMonthlySchedule.class); - Assertions.assertEquals(1023774420, model.snapshotsToKeep()); - Assertions.assertEquals(1410759489, model.daysOfMonth().get(0)); - Assertions.assertEquals(2048724944, model.hour()); - Assertions.assertEquals(1770973346, model.minute()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyPropertiesTests.java deleted file mode 100644 index e083c825e24c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyPropertiesTests.java +++ /dev/null @@ -1,73 +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.generated; - -import com.azure.core.util.BinaryData; -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; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyProperties model = BinaryData.fromString( - "{\"hourlySchedule\":{\"snapshotsToKeep\":495460912,\"minute\":677853893},\"dailySchedule\":{\"snapshotsToKeep\":2095396733,\"hour\":384308231,\"minute\":2095603265},\"weeklySchedule\":{\"snapshotsToKeep\":1106032172,\"days\":[\"Friday\"],\"hour\":90361491,\"minute\":519028408},\"monthlySchedule\":{\"snapshotsToKeep\":1220118900,\"daysOfMonth\":[1074216267,1138245525],\"hour\":1503356934,\"minute\":1649651263},\"policyStatus\":\"Enabled\",\"provisioningState\":\"Updating\"}") - .toObject(ElasticSnapshotPolicyProperties.class); - Assertions.assertEquals(495460912, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(677853893, model.hourlySchedule().minute()); - Assertions.assertEquals(2095396733, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(384308231, model.dailySchedule().hour()); - Assertions.assertEquals(2095603265, model.dailySchedule().minute()); - Assertions.assertEquals(1106032172, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.weeklySchedule().days().get(0)); - Assertions.assertEquals(90361491, model.weeklySchedule().hour()); - Assertions.assertEquals(519028408, model.weeklySchedule().minute()); - Assertions.assertEquals(1220118900, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1074216267, model.monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1503356934, model.monthlySchedule().hour()); - Assertions.assertEquals(1649651263, model.monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.policyStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyProperties model = new ElasticSnapshotPolicyProperties() - .withHourlySchedule( - new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(495460912).withMinute(677853893)) - .withDailySchedule(new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(2095396733) - .withHour(384308231) - .withMinute(2095603265)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(1106032172) - .withDays(Arrays.asList(DayOfWeek.FRIDAY)) - .withHour(90361491) - .withMinute(519028408)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1220118900) - .withDaysOfMonth(Arrays.asList(1074216267, 1138245525)) - .withHour(1503356934) - .withMinute(1649651263)) - .withPolicyStatus(PolicyStatus.ENABLED); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyProperties.class); - Assertions.assertEquals(495460912, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(677853893, model.hourlySchedule().minute()); - Assertions.assertEquals(2095396733, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(384308231, model.dailySchedule().hour()); - Assertions.assertEquals(2095603265, model.dailySchedule().minute()); - Assertions.assertEquals(1106032172, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.weeklySchedule().days().get(0)); - Assertions.assertEquals(90361491, model.weeklySchedule().hour()); - Assertions.assertEquals(519028408, model.weeklySchedule().minute()); - Assertions.assertEquals(1220118900, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1074216267, model.monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1503356934, model.monthlySchedule().hour()); - Assertions.assertEquals(1649651263, model.monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.policyStatus()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdatePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdatePropertiesTests.java deleted file mode 100644 index ddf86434c124..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdatePropertiesTests.java +++ /dev/null @@ -1,73 +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.generated; - -import com.azure.core.util.BinaryData; -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.ElasticSnapshotPolicyUpdateProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyUpdateProperties model = BinaryData.fromString( - "{\"hourlySchedule\":{\"snapshotsToKeep\":524378384,\"minute\":297502436},\"dailySchedule\":{\"snapshotsToKeep\":55870102,\"hour\":76576423,\"minute\":2010398263},\"weeklySchedule\":{\"snapshotsToKeep\":1582753325,\"days\":[\"Thursday\",\"Monday\",\"Friday\"],\"hour\":1298991349,\"minute\":815140204},\"monthlySchedule\":{\"snapshotsToKeep\":1971838421,\"daysOfMonth\":[250653832,1423111949,1084063720],\"hour\":1276136416,\"minute\":1965691709},\"policyStatus\":\"Disabled\"}") - .toObject(ElasticSnapshotPolicyUpdateProperties.class); - Assertions.assertEquals(524378384, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(297502436, model.hourlySchedule().minute()); - Assertions.assertEquals(55870102, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(76576423, model.dailySchedule().hour()); - Assertions.assertEquals(2010398263, model.dailySchedule().minute()); - Assertions.assertEquals(1582753325, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.weeklySchedule().days().get(0)); - Assertions.assertEquals(1298991349, model.weeklySchedule().hour()); - Assertions.assertEquals(815140204, model.weeklySchedule().minute()); - Assertions.assertEquals(1971838421, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(250653832, model.monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1276136416, model.monthlySchedule().hour()); - Assertions.assertEquals(1965691709, model.monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.DISABLED, model.policyStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyUpdateProperties model = new ElasticSnapshotPolicyUpdateProperties() - .withHourlySchedule( - new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(524378384).withMinute(297502436)) - .withDailySchedule(new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(55870102) - .withHour(76576423) - .withMinute(2010398263)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(1582753325) - .withDays(Arrays.asList(DayOfWeek.THURSDAY, DayOfWeek.MONDAY, DayOfWeek.FRIDAY)) - .withHour(1298991349) - .withMinute(815140204)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1971838421) - .withDaysOfMonth(Arrays.asList(250653832, 1423111949, 1084063720)) - .withHour(1276136416) - .withMinute(1965691709)) - .withPolicyStatus(PolicyStatus.DISABLED); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyUpdateProperties.class); - Assertions.assertEquals(524378384, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(297502436, model.hourlySchedule().minute()); - Assertions.assertEquals(55870102, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(76576423, model.dailySchedule().hour()); - Assertions.assertEquals(2010398263, model.dailySchedule().minute()); - Assertions.assertEquals(1582753325, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.weeklySchedule().days().get(0)); - Assertions.assertEquals(1298991349, model.weeklySchedule().hour()); - Assertions.assertEquals(815140204, model.weeklySchedule().minute()); - Assertions.assertEquals(1971838421, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(250653832, model.monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1276136416, model.monthlySchedule().hour()); - Assertions.assertEquals(1965691709, model.monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.DISABLED, model.policyStatus()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdateTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdateTests.java deleted file mode 100644 index e28a25eb3ab6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdateTests.java +++ /dev/null @@ -1,91 +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.generated; - -import com.azure.core.util.BinaryData; -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.ElasticSnapshotPolicyUpdate; -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 java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyUpdate model = BinaryData.fromString( - "{\"tags\":{\"ihsgq\":\"yibcy\"},\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1889253771,\"minute\":1916069806},\"dailySchedule\":{\"snapshotsToKeep\":1436394090,\"hour\":1603035621,\"minute\":1235671059},\"weeklySchedule\":{\"snapshotsToKeep\":1084867898,\"days\":[\"Thursday\",\"Wednesday\"],\"hour\":1206774170,\"minute\":1817960219},\"monthlySchedule\":{\"snapshotsToKeep\":1679543424,\"daysOfMonth\":[879403543,923687836,1828890303,1303035802],\"hour\":1202963506,\"minute\":111762942},\"policyStatus\":\"Enabled\"}}") - .toObject(ElasticSnapshotPolicyUpdate.class); - Assertions.assertEquals("yibcy", model.tags().get("ihsgq")); - Assertions.assertEquals(1889253771, model.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1916069806, model.properties().hourlySchedule().minute()); - Assertions.assertEquals(1436394090, model.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1603035621, model.properties().dailySchedule().hour()); - Assertions.assertEquals(1235671059, model.properties().dailySchedule().minute()); - Assertions.assertEquals(1084867898, model.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(1206774170, model.properties().weeklySchedule().hour()); - Assertions.assertEquals(1817960219, model.properties().weeklySchedule().minute()); - Assertions.assertEquals(1679543424, model.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(879403543, model.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1202963506, model.properties().monthlySchedule().hour()); - Assertions.assertEquals(111762942, model.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.properties().policyStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyUpdate model = new ElasticSnapshotPolicyUpdate().withTags(mapOf("ihsgq", "yibcy")) - .withProperties(new ElasticSnapshotPolicyUpdateProperties() - .withHourlySchedule( - new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(1889253771).withMinute(1916069806)) - .withDailySchedule(new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(1436394090) - .withHour(1603035621) - .withMinute(1235671059)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(1084867898) - .withDays(Arrays.asList(DayOfWeek.THURSDAY, DayOfWeek.WEDNESDAY)) - .withHour(1206774170) - .withMinute(1817960219)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1679543424) - .withDaysOfMonth(Arrays.asList(879403543, 923687836, 1828890303, 1303035802)) - .withHour(1202963506) - .withMinute(111762942)) - .withPolicyStatus(PolicyStatus.ENABLED)); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyUpdate.class); - Assertions.assertEquals("yibcy", model.tags().get("ihsgq")); - Assertions.assertEquals(1889253771, model.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1916069806, model.properties().hourlySchedule().minute()); - Assertions.assertEquals(1436394090, model.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1603035621, model.properties().dailySchedule().hour()); - Assertions.assertEquals(1235671059, model.properties().dailySchedule().minute()); - Assertions.assertEquals(1084867898, model.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(1206774170, model.properties().weeklySchedule().hour()); - Assertions.assertEquals(1817960219, model.properties().weeklySchedule().minute()); - Assertions.assertEquals(1679543424, model.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(879403543, model.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1202963506, model.properties().monthlySchedule().hour()); - Assertions.assertEquals(111762942, model.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.properties().policyStatus()); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyVolumeListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyVolumeListTests.java deleted file mode 100644 index b3f5552246dc..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyVolumeListTests.java +++ /dev/null @@ -1,43 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyVolumeList; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyVolumeListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyVolumeList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"filePath\":\"fusfzsvtuikzhajq\",\"size\":3788300585704298114,\"exportPolicy\":{\"rules\":[{},{},{}]},\"protocolTypes\":[\"SMB\"],\"provisioningState\":\"Deleting\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"nqnzrd\",\"mountTargets\":[{\"ipAddress\":\"wxznptgoei\",\"smbServerFqdn\":\"b\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"hv\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"kvntjlrigjkskyri\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"idsxwaabzmifry\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"ri\",\"restorationState\":\"Failed\"},\"eTag\":\"bgopxlhslnel\",\"zones\":[\"ixynllxecwcrojp\",\"slhcawjutifd\",\"fmvigorqjbttzh\",\"aglkafhon\"],\"location\":\"ujeickp\",\"tags\":{\"pmxelnwcltyje\":\"p\",\"mlfmkqs\":\"ex\"},\"id\":\"azuawx\",\"name\":\"z\",\"type\":\"puamwabzxr\"},{\"properties\":{\"filePath\":\"cush\",\"size\":4071060705023044970,\"exportPolicy\":{\"rules\":[{}]},\"protocolTypes\":[\"SMB\",\"SMB\",\"NFSv4\",\"NFSv4\"],\"provisioningState\":\"Failed\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"gzwywak\",\"mountTargets\":[{\"ipAddress\":\"nsmjbl\",\"smbServerFqdn\":\"jhlnymzotqyryu\"},{\"ipAddress\":\"bmqqvxmvw\",\"smbServerFqdn\":\"tayx\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"peujlzqn\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"sqltnzo\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"xgnxfyqonmpqoxwd\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"xeiiq\",\"restorationState\":\"Restored\"},\"eTag\":\"tmwwi\",\"zones\":[\"hfqpofv\",\"bcblemb\",\"kbwvqvxkdiv\"],\"location\":\"heb\",\"tags\":{\"izvcjfe\":\"wbzuwfmdurage\",\"ggbqi\":\"isdju\",\"m\":\"kxkbsazgakgacyr\",\"pv\":\"dmspof\"},\"id\":\"hryl\",\"name\":\"iofrzgbzjedmstk\",\"type\":\"nlvxbcuii\"},{\"properties\":{\"filePath\":\"ktwfa\",\"size\":250383910704724497,\"exportPolicy\":{\"rules\":[{},{},{},{}]},\"protocolTypes\":[\"SMB\",\"SMB\",\"SMB\"],\"provisioningState\":\"Deleting\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"z\",\"mountTargets\":[{\"ipAddress\":\"buqny\",\"smbServerFqdn\":\"hzfylsgcrpfbc\"},{\"ipAddress\":\"ezzcez\",\"smbServerFqdn\":\"fwyfwlwxjwet\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"hclafzvaylptrs\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"ztcmwq\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"xwaxfewzjkj\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"hpsylkksh\",\"restorationState\":\"Restored\"},\"eTag\":\"mbmxzjrgywwpgj\",\"zones\":[\"ptfujgicgaaoept\",\"aqutdewemxswvruu\"],\"location\":\"zjgehkfkim\",\"tags\":{\"jqepqwhi\":\"xokffqyin\",\"fclduccbirdsv\":\"monstshiyxgve\",\"stmninwjizcilng\":\"wcobie\"},\"id\":\"gshejjtbxqmulux\",\"name\":\"xqzv\",\"type\":\"ers\"},{\"properties\":{\"filePath\":\"cucrwnamikze\",\"size\":1725483024927981139,\"exportPolicy\":{\"rules\":[{},{}]},\"protocolTypes\":[\"SMB\",\"SMB\"],\"provisioningState\":\"Deleting\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"hokzrusw\",\"mountTargets\":[{\"ipAddress\":\"zznvfbyc\",\"smbServerFqdn\":\"xjww\"},{\"ipAddress\":\"z\",\"smbServerFqdn\":\"mwmxqhndvnoamld\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"ohdjhhflzok\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"xpelnjetagltsx\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"tgzpnpb\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"ccsrmozihmipgaw\",\"restorationState\":\"Failed\"},\"eTag\":\"ky\",\"zones\":[\"cjxgrytf\",\"pcycilrmcaykg\",\"noxuztrksx\",\"pndfcpfnznt\"],\"location\":\"twk\",\"tags\":{\"tcqiosmg\":\"srxuzvoam\",\"xqdlyrtltlapr\":\"zah\",\"atbhjmznn\":\"tz\"},\"id\":\"s\",\"name\":\"qeqala\",\"type\":\"vlagun\"}],\"nextLink\":\"gfebwlnb\"}") - .toObject(ElasticSnapshotPolicyVolumeList.class); - Assertions.assertEquals("ujeickp", model.value().get(0).location()); - Assertions.assertEquals("p", model.value().get(0).tags().get("pmxelnwcltyje")); - Assertions.assertEquals("fusfzsvtuikzhajq", model.value().get(0).properties().filePath()); - Assertions.assertEquals(3788300585704298114L, model.value().get(0).properties().size()); - Assertions.assertEquals(ElasticProtocolType.SMB, model.value().get(0).properties().protocolTypes().get(0)); - Assertions.assertEquals("nqnzrd", model.value().get(0).properties().snapshotResourceId()); - Assertions.assertEquals("hv", - model.value().get(0).properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("kvntjlrigjkskyri", - model.value().get(0).properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.value().get(0).properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("idsxwaabzmifry", - model.value().get(0).properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, - model.value().get(0).properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, - model.value().get(0).properties().smbProperties().smbEncryption()); - Assertions.assertEquals("ri", model.value().get(0).properties().backupResourceId()); - Assertions.assertEquals("ixynllxecwcrojp", model.value().get(0).zones().get(0)); - Assertions.assertEquals("gfebwlnb", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyWeeklyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyWeeklyScheduleTests.java deleted file mode 100644 index 51982e378a8f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyWeeklyScheduleTests.java +++ /dev/null @@ -1,38 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyWeeklyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyWeeklySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":1964877049,\"days\":[\"Saturday\",\"Thursday\",\"Saturday\"],\"hour\":2096051855,\"minute\":1486108612}") - .toObject(ElasticSnapshotPolicyWeeklySchedule.class); - Assertions.assertEquals(1964877049, model.snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.days().get(0)); - Assertions.assertEquals(2096051855, model.hour()); - Assertions.assertEquals(1486108612, model.minute()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyWeeklySchedule model - = new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(1964877049) - .withDays(Arrays.asList(DayOfWeek.SATURDAY, DayOfWeek.THURSDAY, DayOfWeek.SATURDAY)) - .withHour(2096051855) - .withMinute(1486108612); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyWeeklySchedule.class); - Assertions.assertEquals(1964877049, model.snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.days().get(0)); - Assertions.assertEquals(2096051855, model.hour()); - Assertions.assertEquals(1486108612, model.minute()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPropertiesTests.java deleted file mode 100644 index d502127a3fb2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPropertiesTests.java +++ /dev/null @@ -1,22 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties; - -public final class ElasticSnapshotPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotProperties model - = BinaryData.fromString("{\"provisioningState\":\"Creating\"}").toObject(ElasticSnapshotProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotProperties model = new ElasticSnapshotProperties(); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotProperties.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateMockTests.java deleted file mode 100644 index 46f70e090170..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,40 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticSnapshot; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"zangprbfaxyxzlbc\",\"name\":\"phmsexroq\",\"type\":\"ndktxfv\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticSnapshot response = manager.elasticSnapshots() - .define("mhzcgkrepdqh") - .withExistingElasticVolume("owtjo", "ztfwfqchvcz", "vjnn", "tagfyvrtpqp") - .withProperties(new ElasticSnapshotProperties()) - .create(); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetWithResponseMockTests.java deleted file mode 100644 index ecf5b0e1e06f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetWithResponseMockTests.java +++ /dev/null @@ -1,37 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticSnapshot; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"vczld\",\"name\":\"g\",\"type\":\"zoutb\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticSnapshot response = manager.elasticSnapshots() - .getWithResponse("rkjd", "vrg", "iegftc", "biiftksdwgdnk", "fgmwd", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeMockTests.java deleted file mode 100644 index 38973743a742..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeMockTests.java +++ /dev/null @@ -1,38 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticSnapshot; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotsListByElasticVolumeMockTests { - @Test - public void testListByElasticVolume() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Moving\"},\"id\":\"uiyuosnu\",\"name\":\"dtelvhyibdrqrs\",\"type\":\"hbuubpy\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticSnapshots() - .listByElasticVolume("aqgzekajclyzgs", "orbjg", "nzjotvmr", "khlobvvjbhvhdi", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeBackupPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeBackupPropertiesTests.java deleted file mode 100644 index a9777ffa6767..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeBackupPropertiesTests.java +++ /dev/null @@ -1,34 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeBackupPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeBackupProperties model = BinaryData.fromString( - "{\"elasticBackupPolicyResourceId\":\"mes\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"pagzrcxfailcfxwm\"}") - .toObject(ElasticVolumeBackupProperties.class); - Assertions.assertEquals("mes", model.elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, model.policyEnforcement()); - Assertions.assertEquals("pagzrcxfailcfxwm", model.elasticBackupVaultResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeBackupProperties model - = new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("mes") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.NOT_ENFORCED) - .withElasticBackupVaultResourceId("pagzrcxfailcfxwm"); - model = BinaryData.fromObject(model).toObject(ElasticVolumeBackupProperties.class); - Assertions.assertEquals("mes", model.elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, model.policyEnforcement()); - Assertions.assertEquals("pagzrcxfailcfxwm", model.elasticBackupVaultResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPatchPropertiesTests.java deleted file mode 100644 index b03d4e5ada06..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPatchPropertiesTests.java +++ /dev/null @@ -1,39 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeDataProtectionPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeDataProtectionPatchProperties model = BinaryData.fromString( - "{\"snapshot\":{\"snapshotPolicyResourceId\":\"wm\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"ebwjscjpahlxvea\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"nmwmqtibx\"}}") - .toObject(ElasticVolumeDataProtectionPatchProperties.class); - Assertions.assertEquals("wm", model.snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("ebwjscjpahlxvea", model.backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, model.backup().policyEnforcement()); - Assertions.assertEquals("nmwmqtibx", model.backup().elasticBackupVaultResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeDataProtectionPatchProperties model = new ElasticVolumeDataProtectionPatchProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("wm")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("ebwjscjpahlxvea") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED) - .withElasticBackupVaultResourceId("nmwmqtibx")); - model = BinaryData.fromObject(model).toObject(ElasticVolumeDataProtectionPatchProperties.class); - Assertions.assertEquals("wm", model.snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("ebwjscjpahlxvea", model.backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, model.backup().policyEnforcement()); - Assertions.assertEquals("nmwmqtibx", model.backup().elasticBackupVaultResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPropertiesTests.java deleted file mode 100644 index 1f978e160d71..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPropertiesTests.java +++ /dev/null @@ -1,39 +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.generated; - -import com.azure.core.util.BinaryData; -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.ElasticVolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeDataProtectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeDataProtectionProperties model = BinaryData.fromString( - "{\"snapshot\":{\"snapshotPolicyResourceId\":\"ecdmdqbwpy\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"gsfjac\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"hxudbxvodht\"}}") - .toObject(ElasticVolumeDataProtectionProperties.class); - Assertions.assertEquals("ecdmdqbwpy", model.snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("gsfjac", model.backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, model.backup().policyEnforcement()); - Assertions.assertEquals("hxudbxvodht", model.backup().elasticBackupVaultResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeDataProtectionProperties model = new ElasticVolumeDataProtectionProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("ecdmdqbwpy")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("gsfjac") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.NOT_ENFORCED) - .withElasticBackupVaultResourceId("hxudbxvodht")); - model = BinaryData.fromObject(model).toObject(ElasticVolumeDataProtectionProperties.class); - Assertions.assertEquals("ecdmdqbwpy", model.snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("gsfjac", model.backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, model.backup().policyEnforcement()); - Assertions.assertEquals("hxudbxvodht", model.backup().elasticBackupVaultResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeInnerTests.java deleted file mode 100644 index 558d9eecc784..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeInnerTests.java +++ /dev/null @@ -1,128 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -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.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbProperties; -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.SnapshotDirectoryVisibility; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeInner model = BinaryData.fromString( - "{\"properties\":{\"filePath\":\"gfcwqmpimaqxzhem\",\"size\":9134524586835820812,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":444207915,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"culkbawpfaj\",\"jwltlwtjjgu\"],\"rootAccess\":\"Enabled\"}]},\"protocolTypes\":[\"NFSv4\",\"NFSv3\",\"NFSv4\"],\"provisioningState\":\"Failed\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"xzrpo\",\"mountTargets\":[{\"ipAddress\":\"nwiaaomyl\",\"smbServerFqdn\":\"azul\"},{\"ipAddress\":\"ethwwnpjhlfz\",\"smbServerFqdn\":\"pchwa\"},{\"ipAddress\":\"bousn\",\"smbServerFqdn\":\"pgfewetwlyx\"},{\"ipAddress\":\"cxy\",\"smbServerFqdn\":\"hdjhlimmbcx\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"po\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"xcjzhqizxfpxt\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"javftjuhdqa\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"wpijrajci\",\"restorationState\":\"Failed\"},\"eTag\":\"hfcf\",\"zones\":[\"xgkn\",\"uvyinzqodfvpgs\"],\"location\":\"xgsg\",\"tags\":{\"bqvgaqv\":\"gzdjtxvzf\",\"rdve\":\"gafcqu\",\"uzhyrmewipmvekdx\":\"nwsdtutnwlduyc\"},\"id\":\"kuqgsjjxundxgket\",\"name\":\"zhhzjhfjmhvvmu\",\"type\":\"gpmuneqsxvmhfbuz\"}") - .toObject(ElasticVolumeInner.class); - Assertions.assertEquals("xgsg", model.location()); - Assertions.assertEquals("gzdjtxvzf", model.tags().get("bqvgaqv")); - Assertions.assertEquals("gfcwqmpimaqxzhem", model.properties().filePath()); - Assertions.assertEquals(9134524586835820812L, model.properties().size()); - Assertions.assertEquals(444207915, model.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, - model.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("culkbawpfaj", - model.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, - model.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV4, model.properties().protocolTypes().get(0)); - Assertions.assertEquals("xzrpo", model.properties().snapshotResourceId()); - Assertions.assertEquals("po", model.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("xcjzhqizxfpxt", - model.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("javftjuhdqa", - model.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, model.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.properties().smbProperties().smbEncryption()); - Assertions.assertEquals("wpijrajci", model.properties().backupResourceId()); - Assertions.assertEquals("xgkn", model.zones().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeInner model = new ElasticVolumeInner().withLocation("xgsg") - .withTags(mapOf("bqvgaqv", "gzdjtxvzf", "rdve", "gafcqu", "uzhyrmewipmvekdx", "nwsdtutnwlduyc")) - .withProperties(new ElasticVolumeProperties().withFilePath("gfcwqmpimaqxzhem") - .withSize(9134524586835820812L) - .withExportPolicy(new ElasticExportPolicy() - .withRules(Arrays.asList(new ElasticExportPolicyRule().withRuleIndex(444207915) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("culkbawpfaj", "jwltlwtjjgu")) - .withRootAccess(ElasticRootAccess.ENABLED)))) - .withProtocolTypes( - Arrays.asList(ElasticProtocolType.NFSV4, ElasticProtocolType.NFSV3, ElasticProtocolType.NFSV4)) - .withSnapshotResourceId("xzrpo") - .withDataProtection(new ElasticVolumeDataProtectionProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("po")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("xcjzhqizxfpxt") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.NOT_ENFORCED) - .withElasticBackupVaultResourceId("javftjuhdqa"))) - .withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility.HIDDEN) - .withSmbProperties(new ElasticSmbProperties().withSmbEncryption(ElasticSmbEncryption.ENABLED)) - .withBackupResourceId("wpijrajci")) - .withZones(Arrays.asList("xgkn", "uvyinzqodfvpgs")); - model = BinaryData.fromObject(model).toObject(ElasticVolumeInner.class); - Assertions.assertEquals("xgsg", model.location()); - Assertions.assertEquals("gzdjtxvzf", model.tags().get("bqvgaqv")); - Assertions.assertEquals("gfcwqmpimaqxzhem", model.properties().filePath()); - Assertions.assertEquals(9134524586835820812L, model.properties().size()); - Assertions.assertEquals(444207915, model.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, - model.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("culkbawpfaj", - model.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, - model.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV4, model.properties().protocolTypes().get(0)); - Assertions.assertEquals("xzrpo", model.properties().snapshotResourceId()); - Assertions.assertEquals("po", model.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("xcjzhqizxfpxt", - model.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("javftjuhdqa", - model.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, model.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.properties().smbProperties().smbEncryption()); - Assertions.assertEquals("wpijrajci", model.properties().backupResourceId()); - Assertions.assertEquals("xgkn", model.zones().get(0)); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeListResultTests.java deleted file mode 100644 index 332a0cbe5a3d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeListResultTests.java +++ /dev/null @@ -1,43 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticVolumeListResult; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"filePath\":\"tvqcttadijaeu\",\"size\":8092412337575637077,\"exportPolicy\":{\"rules\":[{},{}]},\"protocolTypes\":[\"NFSv3\",\"SMB\",\"NFSv3\",\"SMB\"],\"provisioningState\":\"Creating\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"udqmeqwigpibudq\",\"mountTargets\":[{\"ipAddress\":\"beybpmzznrtffyaq\",\"smbServerFqdn\":\"mhh\"},{\"ipAddress\":\"oqaqhvseufuq\",\"smbServerFqdn\":\"xpdlcgqlsis\"},{\"ipAddress\":\"qfrddgam\",\"smbServerFqdn\":\"hiosrsjuiv\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"syirnx\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"zexrxzbujrt\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"wrevkhgnlnzon\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"wncvjtszcofiz\",\"restorationState\":\"Restored\"},\"eTag\":\"hgbjkvrelje\",\"zones\":[\"rvzmlovuana\",\"hcxlpm\",\"erbdk\",\"lvidizozs\"],\"location\":\"ccxjm\",\"tags\":{\"uqj\":\"dgnwncypuuwwlt\",\"if\":\"tzenk\",\"xcudchxgsr\":\"zhmkdasvflyh\",\"lvizb\":\"oldforobw\"},\"id\":\"hfovvacqpbtu\",\"name\":\"dxe\",\"type\":\"zab\"},{\"properties\":{\"filePath\":\"l\",\"size\":741706840028604356,\"exportPolicy\":{\"rules\":[{},{}]},\"protocolTypes\":[\"SMB\",\"SMB\",\"NFSv3\",\"NFSv3\"],\"provisioningState\":\"Moving\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"cqucwyhahnom\",\"mountTargets\":[{\"ipAddress\":\"wuhpsvfuur\",\"smbServerFqdn\":\"lwexxwl\"},{\"ipAddress\":\"niexzsrzpgepq\",\"smbServerFqdn\":\"bb\"},{\"ipAddress\":\"pgdakchzyvli\",\"smbServerFqdn\":\"nrkcxkj\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"mysu\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"qrntv\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"psttexoq\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"fmhruncuwm\",\"restorationState\":\"Restoring\"},\"eTag\":\"cdqzhlctddu\",\"zones\":[\"dyfpchrqbnj\"],\"location\":\"cgegydcwbo\",\"tags\":{\"raiouaubrjtl\":\"mvqqolih\"},\"id\":\"qxfuojrngif\",\"name\":\"rzpasccbiuimzdly\",\"type\":\"dfqwmkyoq\"}],\"nextLink\":\"dvruzslzojhpctf\"}") - .toObject(ElasticVolumeListResult.class); - Assertions.assertEquals("ccxjm", model.value().get(0).location()); - Assertions.assertEquals("dgnwncypuuwwlt", model.value().get(0).tags().get("uqj")); - Assertions.assertEquals("tvqcttadijaeu", model.value().get(0).properties().filePath()); - Assertions.assertEquals(8092412337575637077L, model.value().get(0).properties().size()); - Assertions.assertEquals(ElasticProtocolType.NFSV3, model.value().get(0).properties().protocolTypes().get(0)); - Assertions.assertEquals("udqmeqwigpibudq", model.value().get(0).properties().snapshotResourceId()); - Assertions.assertEquals("syirnx", - model.value().get(0).properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("zexrxzbujrt", - model.value().get(0).properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - model.value().get(0).properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("wrevkhgnlnzon", - model.value().get(0).properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, - model.value().get(0).properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, - model.value().get(0).properties().smbProperties().smbEncryption()); - Assertions.assertEquals("wncvjtszcofiz", model.value().get(0).properties().backupResourceId()); - Assertions.assertEquals("rvzmlovuana", model.value().get(0).zones().get(0)); - Assertions.assertEquals("dvruzslzojhpctf", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumePropertiesTests.java deleted file mode 100644 index a8e65d4c654e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumePropertiesTests.java +++ /dev/null @@ -1,118 +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.generated; - -import com.azure.core.util.BinaryData; -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.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbProperties; -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.SnapshotDirectoryVisibility; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeProperties model = BinaryData.fromString( - "{\"filePath\":\"yihsasbhudypohyu\",\"size\":1888195599155417388,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":968834448,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"lttymsjn\",\"gqdnfwqzd\",\"gtilax\",\"nfhqlyvijouwivk\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":490725767,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"kvcpwpgclr\",\"ivtsoxfrkenxpm\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":892788506,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"ka\",\"ao\",\"vmm\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":483847293,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"gnitgvkxlzyq\",\"rfe\"],\"rootAccess\":\"Disabled\"}]},\"protocolTypes\":[\"NFSv3\",\"SMB\",\"NFSv3\"],\"provisioningState\":\"Patching\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"symoyq\",\"mountTargets\":[{\"ipAddress\":\"gdivbkbxg\",\"smbServerFqdn\":\"fajuwas\"},{\"ipAddress\":\"daeyygux\",\"smbServerFqdn\":\"jsqzhzbezk\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"idxas\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"dyvvjskgfmocwahp\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"jeaahhvjhh\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"jjidjk\",\"restorationState\":\"Restoring\"}") - .toObject(ElasticVolumeProperties.class); - Assertions.assertEquals("yihsasbhudypohyu", model.filePath()); - Assertions.assertEquals(1888195599155417388L, model.size()); - Assertions.assertEquals(968834448, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("lttymsjn", model.exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, model.exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV3, model.protocolTypes().get(0)); - Assertions.assertEquals("symoyq", model.snapshotResourceId()); - Assertions.assertEquals("idxas", model.dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("dyvvjskgfmocwahp", model.dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - model.dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("jeaahhvjhh", model.dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, model.snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.smbProperties().smbEncryption()); - Assertions.assertEquals("jjidjk", model.backupResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeProperties model - = new ElasticVolumeProperties().withFilePath("yihsasbhudypohyu") - .withSize(1888195599155417388L) - .withExportPolicy( - new ElasticExportPolicy() - .withRules( - Arrays.asList( - new ElasticExportPolicyRule().withRuleIndex(968834448) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients( - Arrays.asList("lttymsjn", "gqdnfwqzd", "gtilax", "nfhqlyvijouwivk")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(490725767) - .withUnixAccessRule(ElasticUnixAccessRule.READ_WRITE) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("kvcpwpgclr", "ivtsoxfrkenxpm")) - .withRootAccess(ElasticRootAccess.ENABLED), - new ElasticExportPolicyRule().withRuleIndex(892788506) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("ka", "ao", "vmm")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(483847293) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("gnitgvkxlzyq", "rfe")) - .withRootAccess(ElasticRootAccess.DISABLED)))) - .withProtocolTypes( - Arrays.asList(ElasticProtocolType.NFSV3, ElasticProtocolType.SMB, ElasticProtocolType.NFSV3)) - .withSnapshotResourceId("symoyq") - .withDataProtection(new ElasticVolumeDataProtectionProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("idxas")) - .withBackup( - new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("dyvvjskgfmocwahp") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED) - .withElasticBackupVaultResourceId("jeaahhvjhh"))) - .withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility.HIDDEN) - .withSmbProperties(new ElasticSmbProperties().withSmbEncryption(ElasticSmbEncryption.DISABLED)) - .withBackupResourceId("jjidjk"); - model = BinaryData.fromObject(model).toObject(ElasticVolumeProperties.class); - Assertions.assertEquals("yihsasbhudypohyu", model.filePath()); - Assertions.assertEquals(1888195599155417388L, model.size()); - Assertions.assertEquals(968834448, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("lttymsjn", model.exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, model.exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV3, model.protocolTypes().get(0)); - Assertions.assertEquals("symoyq", model.snapshotResourceId()); - Assertions.assertEquals("idxas", model.dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("dyvvjskgfmocwahp", model.dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - model.dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("jeaahhvjhh", model.dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, model.snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.smbProperties().smbEncryption()); - Assertions.assertEquals("jjidjk", model.backupResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeRevertTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeRevertTests.java deleted file mode 100644 index 8fdabb3d79d3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeRevertTests.java +++ /dev/null @@ -1,25 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeRevertTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeRevert model - = BinaryData.fromString("{\"snapshotResourceId\":\"dxotng\"}").toObject(ElasticVolumeRevert.class); - Assertions.assertEquals("dxotng", model.snapshotResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeRevert model = new ElasticVolumeRevert().withSnapshotResourceId("dxotng"); - model = BinaryData.fromObject(model).toObject(ElasticVolumeRevert.class); - Assertions.assertEquals("dxotng", model.snapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeSnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeSnapshotPropertiesTests.java deleted file mode 100644 index a34badb595cd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeSnapshotPropertiesTests.java +++ /dev/null @@ -1,26 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeSnapshotPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeSnapshotProperties model = BinaryData.fromString("{\"snapshotPolicyResourceId\":\"irudh\"}") - .toObject(ElasticVolumeSnapshotProperties.class); - Assertions.assertEquals("irudh", model.snapshotPolicyResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeSnapshotProperties model - = new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("irudh"); - model = BinaryData.fromObject(model).toObject(ElasticVolumeSnapshotProperties.class); - Assertions.assertEquals("irudh", model.snapshotPolicyResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdatePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdatePropertiesTests.java deleted file mode 100644 index 5c301c432b1f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdatePropertiesTests.java +++ /dev/null @@ -1,86 +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.generated; - -import com.azure.core.util.BinaryData; -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.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeUpdateProperties model = BinaryData.fromString( - "{\"size\":9116012821608992093,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1883095042,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"rhptilluc\",\"iqtgdqoh\",\"cwsldri\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":1725340246,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"phbqz\",\"izakak\",\"nkjpdnjzha\",\"oylhjlmuoyxprimr\"],\"rootAccess\":\"Enabled\"}]},\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"cjmeislstvasy\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"dzaumweooh\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"uzboyjathw\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"}}") - .toObject(ElasticVolumeUpdateProperties.class); - Assertions.assertEquals(9116012821608992093L, model.size()); - Assertions.assertEquals(1883095042, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("rhptilluc", model.exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, model.exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals("cjmeislstvasy", model.dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("dzaumweooh", model.dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - model.dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("uzboyjathw", model.dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, model.snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.smbProperties().smbEncryption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeUpdateProperties model = new ElasticVolumeUpdateProperties().withSize(9116012821608992093L) - .withExportPolicy(new ElasticExportPolicy().withRules(Arrays.asList( - new ElasticExportPolicyRule().withRuleIndex(1883095042) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("rhptilluc", "iqtgdqoh", "cwsldri")) - .withRootAccess(ElasticRootAccess.ENABLED), - new ElasticExportPolicyRule().withRuleIndex(1725340246) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("phbqz", "izakak", "nkjpdnjzha", "oylhjlmuoyxprimr")) - .withRootAccess(ElasticRootAccess.ENABLED)))) - .withDataProtection(new ElasticVolumeDataProtectionPatchProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("cjmeislstvasy")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("dzaumweooh") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED) - .withElasticBackupVaultResourceId("uzboyjathw"))) - .withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility.VISIBLE) - .withSmbProperties(new ElasticSmbPatchProperties().withSmbEncryption(ElasticSmbEncryption.ENABLED)); - model = BinaryData.fromObject(model).toObject(ElasticVolumeUpdateProperties.class); - Assertions.assertEquals(9116012821608992093L, model.size()); - Assertions.assertEquals(1883095042, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("rhptilluc", model.exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, model.exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals("cjmeislstvasy", model.dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("dzaumweooh", model.dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - model.dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("uzboyjathw", model.dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, model.snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.smbProperties().smbEncryption()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdateTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdateTests.java deleted file mode 100644 index 1765fd19fc84..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdateTests.java +++ /dev/null @@ -1,124 +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.generated; - -import com.azure.core.util.BinaryData; -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.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdate; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeUpdate model = BinaryData.fromString( - "{\"tags\":{\"jln\":\"fgsftufqob\",\"rzvul\":\"cgcckknhxkizvyt\",\"aeranokqgukkjqnv\":\"r\",\"cdisd\":\"roylaxxu\"},\"properties\":{\"size\":1780260345090786386,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":2108712904,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"ytdc\",\"xgccknfnw\",\"btmvpdvjdhttza\",\"fedxihchrphkm\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":1151973506,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"tg\",\"ylkdghrje\",\"utlwxezwzhok\"],\"rootAccess\":\"Disabled\"}]},\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"tqlgehgppi\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"hpfeoajvgcxtxjc\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"fidltug\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"}}}") - .toObject(ElasticVolumeUpdate.class); - Assertions.assertEquals("fgsftufqob", model.tags().get("jln")); - Assertions.assertEquals(1780260345090786386L, model.properties().size()); - Assertions.assertEquals(2108712904, model.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, - model.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("ytdc", model.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, - model.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals("tqlgehgppi", - model.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("hpfeoajvgcxtxjc", - model.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("fidltug", model.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, model.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.properties().smbProperties().smbEncryption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeUpdate model - = new ElasticVolumeUpdate() - .withTags(mapOf("jln", "fgsftufqob", "rzvul", "cgcckknhxkizvyt", "aeranokqgukkjqnv", "r", "cdisd", - "roylaxxu")) - .withProperties( - new ElasticVolumeUpdateProperties().withSize(1780260345090786386L) - .withExportPolicy( - new ElasticExportPolicy() - .withRules( - Arrays - .asList( - new ElasticExportPolicyRule().withRuleIndex(2108712904) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("ytdc", "xgccknfnw", "btmvpdvjdhttza", - "fedxihchrphkm")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(1151973506) - .withUnixAccessRule(ElasticUnixAccessRule.READ_WRITE) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("tg", "ylkdghrje", "utlwxezwzhok")) - .withRootAccess(ElasticRootAccess.DISABLED)))) - .withDataProtection(new ElasticVolumeDataProtectionPatchProperties() - .withSnapshot( - new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("tqlgehgppi")) - .withBackup( - new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("hpfeoajvgcxtxjc") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.NOT_ENFORCED) - .withElasticBackupVaultResourceId("fidltug"))) - .withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility.VISIBLE) - .withSmbProperties( - new ElasticSmbPatchProperties().withSmbEncryption(ElasticSmbEncryption.DISABLED))); - model = BinaryData.fromObject(model).toObject(ElasticVolumeUpdate.class); - Assertions.assertEquals("fgsftufqob", model.tags().get("jln")); - Assertions.assertEquals(1780260345090786386L, model.properties().size()); - Assertions.assertEquals(2108712904, model.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, - model.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("ytdc", model.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, - model.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals("tqlgehgppi", - model.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("hpfeoajvgcxtxjc", - model.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("fidltug", model.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, model.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.properties().smbProperties().smbEncryption()); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateMockTests.java deleted file mode 100644 index ed45fd281e6b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,138 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -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.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbProperties; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -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.SnapshotDirectoryVisibility; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticVolumesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"filePath\":\"bvriaqgvtojrulfu\",\"size\":7851172282125769194,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1844859967,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"bqjr\",\"stvrjeqmt\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":2146803784,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"rdhabsr\"],\"rootAccess\":\"Enabled\"}]},\"protocolTypes\":[\"SMB\",\"NFSv3\",\"SMB\"],\"provisioningState\":\"Succeeded\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"kkvyanxk\",\"mountTargets\":[{\"ipAddress\":\"ems\",\"smbServerFqdn\":\"v\"},{\"ipAddress\":\"kqxetqmmliv\",\"smbServerFqdn\":\"jxnw\"},{\"ipAddress\":\"chp\",\"smbServerFqdn\":\"xlehzlxpgfquwzp\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"elwcerwkwb\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"ljtxbus\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"xniu\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"d\",\"restorationState\":\"Restored\"},\"eTag\":\"gsecnadbuwqrgx\",\"zones\":[\"mqiyn\",\"zoellnkkiiwvmtum\",\"pymdjfuax\"],\"location\":\"qvqpilrg\",\"tags\":{\"x\":\"anlduwzorxsb\",\"xym\":\"qk\",\"qepdx\":\"kqv\"},\"id\":\"ltuubw\",\"name\":\"vpjbowcpjqduq\",\"type\":\"ixexkydfbwljavhu\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticVolume response = manager.elasticVolumes() - .define("klzmijajw") - .withRegion("zhpabac") - .withExistingElasticCapacityPool("nkfscjfn", "jwvuag", "qwtltngvmreupt") - .withTags(mapOf("enmvcebxeetq", "yotgkwsxnsrqorc", "dcqjkedwqurc", "jxcxxq")) - .withProperties(new ElasticVolumeProperties().withFilePath("xfsv") - .withSize(3584876522043941136L) - .withExportPolicy(new ElasticExportPolicy().withRules(Arrays.asList( - new ElasticExportPolicyRule().withRuleIndex(297293023) - .withUnixAccessRule(ElasticUnixAccessRule.READ_WRITE) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("zjc", "bxqla", "snsso")) - .withRootAccess(ElasticRootAccess.ENABLED), - new ElasticExportPolicyRule().withRuleIndex(1161952747) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("ffcvvyezslpuxgcb", "svalpnptwtrkxgpa")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(159653844) - .withUnixAccessRule(ElasticUnixAccessRule.READ_WRITE) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("elhldi", "hzzgqlmfa", "wz", "iudjp")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(1441635563) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("ezsdsuxheq", "gcruxspinym", "qgwokmikp")) - .withRootAccess(ElasticRootAccess.DISABLED)))) - .withProtocolTypes( - Arrays.asList(ElasticProtocolType.NFSV4, ElasticProtocolType.NFSV4, ElasticProtocolType.SMB)) - .withSnapshotResourceId("fdvhaxdvwzae") - .withDataProtection(new ElasticVolumeDataProtectionProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("giksbbvto")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("p") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED) - .withElasticBackupVaultResourceId("hchgjtnhtukf"))) - .withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility.VISIBLE) - .withSmbProperties(new ElasticSmbProperties().withSmbEncryption(ElasticSmbEncryption.DISABLED)) - .withBackupResourceId("ntumeezbxvq")) - .withZones(Arrays.asList("mtmjzw", "uqgovsxpwwztjfm", "khtgfredmlscgrll", "cnaovjo")) - .create(); - - Assertions.assertEquals("qvqpilrg", response.location()); - Assertions.assertEquals("anlduwzorxsb", response.tags().get("x")); - Assertions.assertEquals("bvriaqgvtojrulfu", response.properties().filePath()); - Assertions.assertEquals(7851172282125769194L, response.properties().size()); - Assertions.assertEquals(1844859967, response.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_ONLY, - response.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, - response.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, - response.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("bqjr", response.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, - response.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.SMB, response.properties().protocolTypes().get(0)); - Assertions.assertEquals("kkvyanxk", response.properties().snapshotResourceId()); - Assertions.assertEquals("elwcerwkwb", - response.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("ljtxbus", - response.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - response.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("xniu", response.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, - response.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, response.properties().smbProperties().smbEncryption()); - Assertions.assertEquals("d", response.properties().backupResourceId()); - Assertions.assertEquals("mqiyn", response.zones().get(0)); - } - - // 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetWithResponseMockTests.java deleted file mode 100644 index ac6f9dcb38a4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetWithResponseMockTests.java +++ /dev/null @@ -1,74 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -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.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticVolumesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"filePath\":\"zvsgeafgfosehxlz\",\"size\":6065756030017557439,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1652204548,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"jlpzeqtoyrp\",\"ixlajmllpquevham\"],\"rootAccess\":\"Enabled\"}]},\"protocolTypes\":[\"NFSv3\"],\"provisioningState\":\"Creating\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"kxpkzwaq\",\"mountTargets\":[{\"ipAddress\":\"ovchiqbplvfid\",\"smbServerFqdn\":\"ztekxbyjgmsfep\"},{\"ipAddress\":\"ihpq\",\"smbServerFqdn\":\"agr\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"cx\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"jfowxwy\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"j\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"kdveksb\",\"restorationState\":\"Restoring\"},\"eTag\":\"uchvlscrd\",\"zones\":[\"fdyjdu\",\"spyszekbhwl\",\"aaggkre\"],\"location\":\"frnuybffljfi\",\"tags\":{\"dusr\":\"eoagsqta\",\"nl\":\"xxfavsqwudohzilf\",\"bh\":\"kpsimsfeypofqp\",\"mttjxophgerh\":\"qgsdr\"},\"id\":\"mvgohtwz\",\"name\":\"qilrixysfn\",\"type\":\"msqywwwmhkruwae\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticVolume response = manager.elasticVolumes() - .getWithResponse("hfpjstlzmbls", "jdeolctae", "fsyrledjc", "stbvtqig", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("frnuybffljfi", response.location()); - Assertions.assertEquals("eoagsqta", response.tags().get("dusr")); - Assertions.assertEquals("zvsgeafgfosehxlz", response.properties().filePath()); - Assertions.assertEquals(6065756030017557439L, response.properties().size()); - Assertions.assertEquals(1652204548, response.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_WRITE, - response.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, - response.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, - response.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("jlpzeqtoyrp", - response.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, - response.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV3, response.properties().protocolTypes().get(0)); - Assertions.assertEquals("kxpkzwaq", response.properties().snapshotResourceId()); - Assertions.assertEquals("cx", response.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("jfowxwy", - response.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - response.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("j", response.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, - response.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, response.properties().smbProperties().smbEncryption()); - Assertions.assertEquals("kdveksb", response.properties().backupResourceId()); - Assertions.assertEquals("fdyjdu", response.zones().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolMockTests.java deleted file mode 100644 index 1de32d80c1a1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolMockTests.java +++ /dev/null @@ -1,79 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -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.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticVolumesListByElasticPoolMockTests { - @Test - public void testListByElasticPool() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"filePath\":\"jdiq\",\"size\":7061379740762587742,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":339629555,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"wceivbvz\",\"pbwxgoooxz\",\"rad\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":779585791,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"sugswhgsaod\",\"wwnbafoctohz\",\"aquvwsxbgnvkervq\"],\"rootAccess\":\"Disabled\"}]},\"protocolTypes\":[\"NFSv3\",\"SMB\",\"NFSv3\",\"NFSv3\"],\"provisioningState\":\"Moving\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"spabdsrgfa\",\"mountTargets\":[{\"ipAddress\":\"rsubklrxhjnl\",\"smbServerFqdn\":\"etjdvqydieqqkwa\"},{\"ipAddress\":\"wdxvqzxoebwg\",\"smbServerFqdn\":\"bibanbau\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"vpaklozkxbz\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"jplssan\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"kgsuxunrswgk\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"kebhuhkslgw\",\"restorationState\":\"Restoring\"},\"eTag\":\"ue\",\"zones\":[\"yzcqypzqzufg\"],\"location\":\"fejyvdwtfxptpqa\",\"tags\":{\"cf\":\"k\",\"nxocuul\":\"ybmx\",\"wwdjuxdbdl\":\"ojkpoyh\",\"zlrqhbjnqogdx\":\"zgdyrcvuqbs\"},\"id\":\"bsfp\",\"name\":\"xxtjlflecomi\",\"type\":\"xojjl\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticVolumes() - .listByElasticPool("rympmlq", "in", "zduewihapfjii", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("fejyvdwtfxptpqa", response.iterator().next().location()); - Assertions.assertEquals("k", response.iterator().next().tags().get("cf")); - Assertions.assertEquals("jdiq", response.iterator().next().properties().filePath()); - Assertions.assertEquals(7061379740762587742L, response.iterator().next().properties().size()); - Assertions.assertEquals(339629555, - response.iterator().next().properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_ONLY, - response.iterator().next().properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("wceivbvz", - response.iterator().next().properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV3, - response.iterator().next().properties().protocolTypes().get(0)); - Assertions.assertEquals("spabdsrgfa", response.iterator().next().properties().snapshotResourceId()); - Assertions.assertEquals("vpaklozkxbz", - response.iterator().next().properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("jplssan", - response.iterator().next().properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - response.iterator().next().properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("kgsuxunrswgk", - response.iterator().next().properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, - response.iterator().next().properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, - response.iterator().next().properties().smbProperties().smbEncryption()); - Assertions.assertEquals("kebhuhkslgw", response.iterator().next().properties().backupResourceId()); - Assertions.assertEquals("yzcqypzqzufg", response.iterator().next().zones().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertMockTests.java deleted file mode 100644 index ed1f4b9d74c1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertMockTests.java +++ /dev/null @@ -1,76 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -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.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticVolumesRevertMockTests { - @Test - public void testRevert() throws Exception { - String responseStr - = "{\"properties\":{\"filePath\":\"jssmctsnldkpwo\",\"size\":9114126543982861368,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1808212582,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"ij\",\"ykwlefksxqceazf\",\"xgnmqvzvluyq\",\"aiossscyvaifp\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":838955449,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"x\",\"jdhsoy\",\"hpvtyqftteh\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":1172847496,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"shxcdedsuenygnxc\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":2115933258,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"s\",\"nlrxsmyltrwntfmt\",\"g\",\"jdxwnazkurrdre\"],\"rootAccess\":\"Enabled\"}]},\"protocolTypes\":[\"NFSv3\",\"NFSv3\",\"SMB\",\"NFSv4\"],\"provisioningState\":\"Succeeded\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"zqs\",\"mountTargets\":[{\"ipAddress\":\"ukykcyqh\",\"smbServerFqdn\":\"qzzdcykeyste\"},{\"ipAddress\":\"opazdazgbs\",\"smbServerFqdn\":\"pew\"},{\"ipAddress\":\"fut\",\"smbServerFqdn\":\"pvozglqjbknlzc\"},{\"ipAddress\":\"tzeyowmndcovd\",\"smbServerFqdn\":\"qauxzan\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"fruwkud\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"pftxudqyeme\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"ucmci\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"jauwcgxefnohaitr\",\"restorationState\":\"Restoring\"},\"eTag\":\"erwguda\",\"zones\":[\"ubvf\",\"ngfcocefhpriyl\"],\"location\":\"pztraudsvhl\",\"tags\":{\"egpqtmo\":\"ul\",\"shqrdgrt\":\"hvrztnvg\",\"fa\":\"mewjzlpyk\"},\"id\":\"zwjcaye\",\"name\":\"zrransyb\",\"type\":\"lpolwzrghsrle\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticVolume response = manager.elasticVolumes() - .revert("xxdhilzzdzzqjm", "ezay", "vribqlotokht", "wtaznkcqw", - new ElasticVolumeRevert().withSnapshotResourceId("wjyofgwhnkbtl"), com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pztraudsvhl", response.location()); - Assertions.assertEquals("ul", response.tags().get("egpqtmo")); - Assertions.assertEquals("jssmctsnldkpwo", response.properties().filePath()); - Assertions.assertEquals(9114126543982861368L, response.properties().size()); - Assertions.assertEquals(1808212582, response.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_ONLY, - response.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, - response.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, - response.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("ij", response.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, - response.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV3, response.properties().protocolTypes().get(0)); - Assertions.assertEquals("zqs", response.properties().snapshotResourceId()); - Assertions.assertEquals("fruwkud", - response.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("pftxudqyeme", - response.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - response.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("ucmci", - response.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, - response.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, response.properties().smbProperties().smbEncryption()); - Assertions.assertEquals("jauwcgxefnohaitr", response.properties().backupResourceId()); - Assertions.assertEquals("ubvf", response.zones().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java index 099e95873479..e053514b1b74 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java @@ -11,20 +11,19 @@ public final class EncryptionIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - EncryptionIdentity model = BinaryData - .fromString( - "{\"principalId\":\"iqge\",\"userAssignedIdentity\":\"rbgjekglkl\",\"federatedClientId\":\"ulidwc\"}") + EncryptionIdentity model = BinaryData.fromString( + "{\"principalId\":\"fgmvecactxmwo\",\"userAssignedIdentity\":\"yowc\",\"federatedClientId\":\"qovekqvgqou\"}") .toObject(EncryptionIdentity.class); - Assertions.assertEquals("rbgjekglkl", model.userAssignedIdentity()); - Assertions.assertEquals("ulidwc", model.federatedClientId()); + Assertions.assertEquals("yowc", model.userAssignedIdentity()); + Assertions.assertEquals("qovekqvgqou", model.federatedClientId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EncryptionIdentity model - = new EncryptionIdentity().withUserAssignedIdentity("rbgjekglkl").withFederatedClientId("ulidwc"); + = new EncryptionIdentity().withUserAssignedIdentity("yowc").withFederatedClientId("qovekqvgqou"); model = BinaryData.fromObject(model).toObject(EncryptionIdentity.class); - Assertions.assertEquals("rbgjekglkl", model.userAssignedIdentity()); - Assertions.assertEquals("ulidwc", model.federatedClientId()); + Assertions.assertEquals("yowc", model.userAssignedIdentity()); + Assertions.assertEquals("qovekqvgqou", model.federatedClientId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java index 69f2abccb795..07221934efbf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java @@ -12,18 +12,18 @@ public final class EncryptionTransitionRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EncryptionTransitionRequest model - = BinaryData.fromString("{\"virtualNetworkId\":\"jks\",\"privateEndpointId\":\"lsmdesqplpvmjc\"}") + = BinaryData.fromString("{\"virtualNetworkId\":\"wtwko\",\"privateEndpointId\":\"zwculkbawpfajnj\"}") .toObject(EncryptionTransitionRequest.class); - Assertions.assertEquals("jks", model.virtualNetworkId()); - Assertions.assertEquals("lsmdesqplpvmjc", model.privateEndpointId()); + Assertions.assertEquals("wtwko", model.virtualNetworkId()); + Assertions.assertEquals("zwculkbawpfajnj", model.privateEndpointId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EncryptionTransitionRequest model - = new EncryptionTransitionRequest().withVirtualNetworkId("jks").withPrivateEndpointId("lsmdesqplpvmjc"); + = new EncryptionTransitionRequest().withVirtualNetworkId("wtwko").withPrivateEndpointId("zwculkbawpfajnj"); model = BinaryData.fromObject(model).toObject(EncryptionTransitionRequest.class); - Assertions.assertEquals("jks", model.virtualNetworkId()); - Assertions.assertEquals("lsmdesqplpvmjc", model.privateEndpointId()); + Assertions.assertEquals("wtwko", model.virtualNetworkId()); + Assertions.assertEquals("zwculkbawpfajnj", model.privateEndpointId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java index 0fed0e6cfb6e..c1dd28df087e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java @@ -11,22 +11,22 @@ public final class FilePathAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - FilePathAvailabilityRequest model = BinaryData - .fromString("{\"name\":\"yyvpkpatlb\",\"subnetId\":\"jp\",\"availabilityZone\":\"sksrfhfvolmknbn\"}") - .toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("yyvpkpatlb", model.name()); - Assertions.assertEquals("jp", model.subnetId()); - Assertions.assertEquals("sksrfhfvolmknbn", model.availabilityZone()); + FilePathAvailabilityRequest model + = BinaryData.fromString("{\"name\":\"n\",\"subnetId\":\"zhajoylhjlmuo\",\"availabilityZone\":\"primr\"}") + .toObject(FilePathAvailabilityRequest.class); + Assertions.assertEquals("n", model.name()); + Assertions.assertEquals("zhajoylhjlmuo", model.subnetId()); + Assertions.assertEquals("primr", model.availabilityZone()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FilePathAvailabilityRequest model = new FilePathAvailabilityRequest().withName("yyvpkpatlb") - .withSubnetId("jp") - .withAvailabilityZone("sksrfhfvolmknbn"); + FilePathAvailabilityRequest model = new FilePathAvailabilityRequest().withName("n") + .withSubnetId("zhajoylhjlmuo") + .withAvailabilityZone("primr"); model = BinaryData.fromObject(model).toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("yyvpkpatlb", model.name()); - Assertions.assertEquals("jp", model.subnetId()); - Assertions.assertEquals("sksrfhfvolmknbn", model.availabilityZone()); + Assertions.assertEquals("n", model.name()); + Assertions.assertEquals("zhajoylhjlmuo", model.subnetId()); + Assertions.assertEquals("primr", model.availabilityZone()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FileSystemUserTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FileSystemUserTests.java index 0f551850e91c..b0f1df714e5f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FileSystemUserTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FileSystemUserTests.java @@ -14,21 +14,21 @@ public final class FileSystemUserTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileSystemUser model = BinaryData.fromString( - "{\"nfsUser\":{\"userId\":5744786061005129903,\"groupId\":5373165762406096070},\"cifsUser\":{\"username\":\"kh\"}}") + "{\"nfsUser\":{\"userId\":6352328391564368443,\"groupId\":3920970361798969582},\"cifsUser\":{\"username\":\"cesutrgjupauut\"}}") .toObject(FileSystemUser.class); - Assertions.assertEquals(5744786061005129903L, model.nfsUser().userId()); - Assertions.assertEquals(5373165762406096070L, model.nfsUser().groupId()); - Assertions.assertEquals("kh", model.cifsUser().username()); + Assertions.assertEquals(6352328391564368443L, model.nfsUser().userId()); + Assertions.assertEquals(3920970361798969582L, model.nfsUser().groupId()); + Assertions.assertEquals("cesutrgjupauut", model.cifsUser().username()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FileSystemUser model = new FileSystemUser() - .withNfsUser(new NfsUser().withUserId(5744786061005129903L).withGroupId(5373165762406096070L)) - .withCifsUser(new CifsUser().withUsername("kh")); + .withNfsUser(new NfsUser().withUserId(6352328391564368443L).withGroupId(3920970361798969582L)) + .withCifsUser(new CifsUser().withUsername("cesutrgjupauut")); model = BinaryData.fromObject(model).toObject(FileSystemUser.class); - Assertions.assertEquals(5744786061005129903L, model.nfsUser().userId()); - Assertions.assertEquals(5373165762406096070L, model.nfsUser().groupId()); - Assertions.assertEquals("kh", model.cifsUser().username()); + Assertions.assertEquals(6352328391564368443L, model.nfsUser().userId()); + Assertions.assertEquals(3920970361798969582L, model.nfsUser().groupId()); + Assertions.assertEquals("cesutrgjupauut", model.cifsUser().username()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java index 550d222c3f94..daf3ccd5fb19 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java @@ -12,21 +12,21 @@ public final class HourlyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HourlySchedule model = BinaryData - .fromString("{\"snapshotsToKeep\":1015065537,\"minute\":596393327,\"usedBytes\":2347535510676514797}") + .fromString("{\"snapshotsToKeep\":1309534736,\"minute\":2001921074,\"usedBytes\":7831439414407354845}") .toObject(HourlySchedule.class); - Assertions.assertEquals(1015065537, model.snapshotsToKeep()); - Assertions.assertEquals(596393327, model.minute()); - Assertions.assertEquals(2347535510676514797L, model.usedBytes()); + Assertions.assertEquals(1309534736, model.snapshotsToKeep()); + Assertions.assertEquals(2001921074, model.minute()); + Assertions.assertEquals(7831439414407354845L, model.usedBytes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - HourlySchedule model = new HourlySchedule().withSnapshotsToKeep(1015065537) - .withMinute(596393327) - .withUsedBytes(2347535510676514797L); + HourlySchedule model = new HourlySchedule().withSnapshotsToKeep(1309534736) + .withMinute(2001921074) + .withUsedBytes(7831439414407354845L); model = BinaryData.fromObject(model).toObject(HourlySchedule.class); - Assertions.assertEquals(1015065537, model.snapshotsToKeep()); - Assertions.assertEquals(596393327, model.minute()); - Assertions.assertEquals(2347535510676514797L, model.usedBytes()); + Assertions.assertEquals(1309534736, model.snapshotsToKeep()); + Assertions.assertEquals(2001921074, model.minute()); + Assertions.assertEquals(7831439414407354845L, model.usedBytes()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java index 145c0bd11349..ff91e8bf119b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java @@ -12,18 +12,18 @@ public final class KeyVaultPrivateEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { KeyVaultPrivateEndpoint model - = BinaryData.fromString("{\"virtualNetworkId\":\"sxze\",\"privateEndpointId\":\"axwk\"}") + = BinaryData.fromString("{\"virtualNetworkId\":\"aimlnwiaaom\",\"privateEndpointId\":\"weazul\"}") .toObject(KeyVaultPrivateEndpoint.class); - Assertions.assertEquals("sxze", model.virtualNetworkId()); - Assertions.assertEquals("axwk", model.privateEndpointId()); + Assertions.assertEquals("aimlnwiaaom", model.virtualNetworkId()); + Assertions.assertEquals("weazul", model.privateEndpointId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { KeyVaultPrivateEndpoint model - = new KeyVaultPrivateEndpoint().withVirtualNetworkId("sxze").withPrivateEndpointId("axwk"); + = new KeyVaultPrivateEndpoint().withVirtualNetworkId("aimlnwiaaom").withPrivateEndpointId("weazul"); model = BinaryData.fromObject(model).toObject(KeyVaultPrivateEndpoint.class); - Assertions.assertEquals("sxze", model.virtualNetworkId()); - Assertions.assertEquals("axwk", model.privateEndpointId()); + Assertions.assertEquals("aimlnwiaaom", model.virtualNetworkId()); + Assertions.assertEquals("weazul", model.privateEndpointId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapConfigurationPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapConfigurationPatchTests.java deleted file mode 100644 index cd3b58e5a741..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapConfigurationPatchTests.java +++ /dev/null @@ -1,39 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.LdapConfigurationPatch; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LdapConfigurationPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LdapConfigurationPatch model = BinaryData.fromString( - "{\"domain\":\"th\",\"ldapServers\":[\"mnaoy\"],\"ldapOverTLS\":true,\"serverCACertificate\":\"oe\",\"certificateCNHost\":\"wankltytmhdroznn\"}") - .toObject(LdapConfigurationPatch.class); - Assertions.assertEquals("th", model.domain()); - Assertions.assertEquals("mnaoy", model.ldapServers().get(0)); - Assertions.assertTrue(model.ldapOverTLS()); - Assertions.assertEquals("oe", model.serverCACertificate()); - Assertions.assertEquals("wankltytmhdroznn", model.certificateCNHost()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LdapConfigurationPatch model = new LdapConfigurationPatch().withDomain("th") - .withLdapServers(Arrays.asList("mnaoy")) - .withLdapOverTLS(true) - .withServerCACertificate("oe") - .withCertificateCNHost("wankltytmhdroznn"); - model = BinaryData.fromObject(model).toObject(LdapConfigurationPatch.class); - Assertions.assertEquals("th", model.domain()); - Assertions.assertEquals("mnaoy", model.ldapServers().get(0)); - Assertions.assertTrue(model.ldapOverTLS()); - Assertions.assertEquals("oe", model.serverCACertificate()); - Assertions.assertEquals("wankltytmhdroznn", model.certificateCNHost()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapConfigurationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapConfigurationTests.java deleted file mode 100644 index 36d4ea052b3d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapConfigurationTests.java +++ /dev/null @@ -1,39 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.LdapConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LdapConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LdapConfiguration model = BinaryData.fromString( - "{\"domain\":\"mzegjon\",\"ldapServers\":[\"irwgdnqzbrf\",\"spzhzmtksjc\",\"tdigsxcdglj\",\"lkeuac\"],\"ldapOverTLS\":true,\"serverCACertificate\":\"flrytswfpfm\",\"certificateCNHost\":\"ycxnmskw\"}") - .toObject(LdapConfiguration.class); - Assertions.assertEquals("mzegjon", model.domain()); - Assertions.assertEquals("irwgdnqzbrf", model.ldapServers().get(0)); - Assertions.assertTrue(model.ldapOverTLS()); - Assertions.assertEquals("flrytswfpfm", model.serverCACertificate()); - Assertions.assertEquals("ycxnmskw", model.certificateCNHost()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LdapConfiguration model = new LdapConfiguration().withDomain("mzegjon") - .withLdapServers(Arrays.asList("irwgdnqzbrf", "spzhzmtksjc", "tdigsxcdglj", "lkeuac")) - .withLdapOverTLS(true) - .withServerCACertificate("flrytswfpfm") - .withCertificateCNHost("ycxnmskw"); - model = BinaryData.fromObject(model).toObject(LdapConfiguration.class); - Assertions.assertEquals("mzegjon", model.domain()); - Assertions.assertEquals("irwgdnqzbrf", model.ldapServers().get(0)); - Assertions.assertTrue(model.ldapOverTLS()); - Assertions.assertEquals("flrytswfpfm", model.serverCACertificate()); - Assertions.assertEquals("ycxnmskw", model.certificateCNHost()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java index 4d0254bd3503..a1255021b243 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java @@ -12,22 +12,21 @@ public final class LdapSearchScopeOptTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LdapSearchScopeOpt model = BinaryData - .fromString( - "{\"userDN\":\"agpgdph\",\"groupDN\":\"dulajvlejchcs\",\"groupMembershipFilter\":\"zknmzlanrupd\"}") + .fromString("{\"userDN\":\"efojyqdhcupl\",\"groupDN\":\"lcwkhihihlhz\",\"groupMembershipFilter\":\"qtz\"}") .toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("agpgdph", model.userDN()); - Assertions.assertEquals("dulajvlejchcs", model.groupDN()); - Assertions.assertEquals("zknmzlanrupd", model.groupMembershipFilter()); + Assertions.assertEquals("efojyqdhcupl", model.userDN()); + Assertions.assertEquals("lcwkhihihlhz", model.groupDN()); + Assertions.assertEquals("qtz", model.groupMembershipFilter()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LdapSearchScopeOpt model = new LdapSearchScopeOpt().withUserDN("agpgdph") - .withGroupDN("dulajvlejchcs") - .withGroupMembershipFilter("zknmzlanrupd"); + LdapSearchScopeOpt model = new LdapSearchScopeOpt().withUserDN("efojyqdhcupl") + .withGroupDN("lcwkhihihlhz") + .withGroupMembershipFilter("qtz"); model = BinaryData.fromObject(model).toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("agpgdph", model.userDN()); - Assertions.assertEquals("dulajvlejchcs", model.groupDN()); - Assertions.assertEquals("zknmzlanrupd", model.groupMembershipFilter()); + Assertions.assertEquals("efojyqdhcupl", model.userDN()); + Assertions.assertEquals("lcwkhihihlhz", model.groupDN()); + Assertions.assertEquals("qtz", model.groupMembershipFilter()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResponseTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResponseTests.java index f21c5b4a6fd9..b9c64f90e238 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResponseTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResponseTests.java @@ -13,13 +13,13 @@ public final class ListQuotaReportResponseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ListQuotaReportResponse model = BinaryData.fromString( - "{\"quotaReportRecords\":[{\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"xzxcl\",\"quotaLimitUsedInKiBs\":5272627491576584483,\"quotaLimitTotalInKiBs\":6465268745370114488,\"percentageUsed\":61.626118,\"isDerivedQuota\":false},{\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"hcohfwdsjnk\",\"quotaLimitUsedInKiBs\":3066467447521502887,\"quotaLimitTotalInKiBs\":6428361523980078393,\"percentageUsed\":21.926403,\"isDerivedQuota\":true},{\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"dkzzewkfvhqcrail\",\"quotaLimitUsedInKiBs\":301709848939782514,\"quotaLimitTotalInKiBs\":3573007686021676222,\"percentageUsed\":67.456726,\"isDerivedQuota\":true}]}") + "{\"quotaReportRecords\":[{\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"fgohdneuelfphs\",\"quotaLimitUsedInKiBs\":1349537857571177270,\"quotaLimitTotalInKiBs\":5565577585562531934,\"percentageUsed\":8.611751,\"isDerivedQuota\":true},{\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"uuvxz\",\"quotaLimitUsedInKiBs\":6214959618688242083,\"quotaLimitTotalInKiBs\":5272627491576584483,\"percentageUsed\":85.04829,\"isDerivedQuota\":false}]}") .toObject(ListQuotaReportResponse.class); - Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, model.quotaReportRecords().get(0).quotaType()); - Assertions.assertEquals("xzxcl", model.quotaReportRecords().get(0).quotaTarget()); - Assertions.assertEquals(5272627491576584483L, model.quotaReportRecords().get(0).quotaLimitUsedInKiBs()); - Assertions.assertEquals(6465268745370114488L, model.quotaReportRecords().get(0).quotaLimitTotalInKiBs()); - Assertions.assertEquals(61.626118F, model.quotaReportRecords().get(0).percentageUsed()); - Assertions.assertFalse(model.quotaReportRecords().get(0).isDerivedQuota()); + Assertions.assertEquals(QuotaType.DEFAULT_USER_QUOTA, model.quotaReportRecords().get(0).quotaType()); + Assertions.assertEquals("fgohdneuelfphs", model.quotaReportRecords().get(0).quotaTarget()); + Assertions.assertEquals(1349537857571177270L, model.quotaReportRecords().get(0).quotaLimitUsedInKiBs()); + Assertions.assertEquals(5565577585562531934L, model.quotaReportRecords().get(0).quotaLimitTotalInKiBs()); + Assertions.assertEquals(8.611751F, model.quotaReportRecords().get(0).percentageUsed()); + Assertions.assertTrue(model.quotaReportRecords().get(0).isDerivedQuota()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResultInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResultInnerTests.java index 50a3d8c611eb..564ef4fac109 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResultInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResultInnerTests.java @@ -13,16 +13,16 @@ public final class ListQuotaReportResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ListQuotaReportResultInner model = BinaryData.fromString( - "{\"properties\":{\"quotaReportRecords\":[{\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"ltmuwlauwzizx\",\"quotaLimitUsedInKiBs\":4578052563947171687,\"quotaLimitTotalInKiBs\":8518549902129986259,\"percentageUsed\":1.9927979,\"isDerivedQuota\":false},{\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"bttdumorppxe\",\"quotaLimitUsedInKiBs\":7314064083806104439,\"quotaLimitTotalInKiBs\":8235910358584380291,\"percentageUsed\":71.2293,\"isDerivedQuota\":false},{\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"gohdneuelfphsd\",\"quotaLimitUsedInKiBs\":250164414285445387,\"quotaLimitTotalInKiBs\":960595332999400866,\"percentageUsed\":94.95779,\"isDerivedQuota\":true}]}}") + "{\"properties\":{\"quotaReportRecords\":[{\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"rp\",\"quotaLimitUsedInKiBs\":6658700841087644517,\"quotaLimitTotalInKiBs\":7314064083806104439,\"percentageUsed\":94.64696,\"isDerivedQuota\":false}]}}") .toObject(ListQuotaReportResultInner.class); Assertions.assertEquals(QuotaType.INDIVIDUAL_GROUP_QUOTA, model.properties().quotaReportRecords().get(0).quotaType()); - Assertions.assertEquals("ltmuwlauwzizx", model.properties().quotaReportRecords().get(0).quotaTarget()); - Assertions.assertEquals(4578052563947171687L, + Assertions.assertEquals("rp", model.properties().quotaReportRecords().get(0).quotaTarget()); + Assertions.assertEquals(6658700841087644517L, model.properties().quotaReportRecords().get(0).quotaLimitUsedInKiBs()); - Assertions.assertEquals(8518549902129986259L, + Assertions.assertEquals(7314064083806104439L, model.properties().quotaReportRecords().get(0).quotaLimitTotalInKiBs()); - Assertions.assertEquals(1.9927979F, model.properties().quotaReportRecords().get(0).percentageUsed()); + Assertions.assertEquals(94.64696F, model.properties().quotaReportRecords().get(0).percentageUsed()); Assertions.assertFalse(model.properties().quotaReportRecords().get(0).isDerivedQuota()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java index 9fa0b5bc8688..132a16de8320 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java @@ -16,18 +16,18 @@ public final class ManagedServiceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"0802cfa2-6855-4f39-b030-c804f815268c\",\"tenantId\":\"0dcf002c-332c-4224-a451-2522169e9d7b\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"sofieypefojyqd\":{\"principalId\":\"81080780-1e1b-435e-8484-4465009c816b\",\"clientId\":\"00799e23-7190-4836-85ad-45710e4bbf36\"},\"plcplcwkhi\":{\"principalId\":\"40afca20-635a-4010-9e1e-0f40f6864893\",\"clientId\":\"3b0dab41-e4be-48da-ae6d-4810984f89e1\"}}}") + "{\"principalId\":\"1baa9bc7-d73f-4f52-b2e8-0415cf9b1dc9\",\"tenantId\":\"595c29f0-98f3-4198-8444-eb6ce5b4fd77\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"yivqikfxcvhrfsp\":{\"principalId\":\"6a62a353-1ea1-47b3-a451-90fe3b68b098\",\"clientId\":\"2a1bc4b3-64c3-412d-aee9-4926cc9f80d8\"},\"grttikteusqczk\":{\"principalId\":\"3c444939-0a83-423b-91ff-744960f01c74\",\"clientId\":\"71f732f9-c4fe-4926-8f52-5f6a5855fcec\"}}}") .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) .withUserAssignedIdentities( - mapOf("sofieypefojyqd", new UserAssignedIdentity(), "plcplcwkhi", new UserAssignedIdentity())); + mapOf("yivqikfxcvhrfsp", new UserAssignedIdentity(), "grttikteusqczk", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java index ccbc5e851c64..a4385ecf97a8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java @@ -12,27 +12,27 @@ public final class MonthlyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MonthlySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":1849555195,\"daysOfMonth\":\"c\",\"hour\":922265533,\"minute\":1433491809,\"usedBytes\":5315844148711312933}") + "{\"snapshotsToKeep\":931393503,\"daysOfMonth\":\"fsynljphuop\",\"hour\":1015065537,\"minute\":596393327,\"usedBytes\":2347535510676514797}") .toObject(MonthlySchedule.class); - Assertions.assertEquals(1849555195, model.snapshotsToKeep()); - Assertions.assertEquals("c", model.daysOfMonth()); - Assertions.assertEquals(922265533, model.hour()); - Assertions.assertEquals(1433491809, model.minute()); - Assertions.assertEquals(5315844148711312933L, model.usedBytes()); + Assertions.assertEquals(931393503, model.snapshotsToKeep()); + Assertions.assertEquals("fsynljphuop", model.daysOfMonth()); + Assertions.assertEquals(1015065537, model.hour()); + Assertions.assertEquals(596393327, model.minute()); + Assertions.assertEquals(2347535510676514797L, model.usedBytes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MonthlySchedule model = new MonthlySchedule().withSnapshotsToKeep(1849555195) - .withDaysOfMonth("c") - .withHour(922265533) - .withMinute(1433491809) - .withUsedBytes(5315844148711312933L); + MonthlySchedule model = new MonthlySchedule().withSnapshotsToKeep(931393503) + .withDaysOfMonth("fsynljphuop") + .withHour(1015065537) + .withMinute(596393327) + .withUsedBytes(2347535510676514797L); model = BinaryData.fromObject(model).toObject(MonthlySchedule.class); - Assertions.assertEquals(1849555195, model.snapshotsToKeep()); - Assertions.assertEquals("c", model.daysOfMonth()); - Assertions.assertEquals(922265533, model.hour()); - Assertions.assertEquals(1433491809, model.minute()); - Assertions.assertEquals(5315844148711312933L, model.usedBytes()); + Assertions.assertEquals(931393503, model.snapshotsToKeep()); + Assertions.assertEquals("fsynljphuop", model.daysOfMonth()); + Assertions.assertEquals(1015065537, model.hour()); + Assertions.assertEquals(596393327, model.minute()); + Assertions.assertEquals(2347535510676514797L, model.usedBytes()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java index 2779fd6e571b..149d50e1b9d9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"current\":935954000,\"default\":78894942,\"usage\":233348624},\"id\":\"xud\",\"name\":\"nhgookrtalvnbw\",\"type\":\"pbeme\"}"; + = "{\"properties\":{\"current\":1109468062,\"default\":1922509434,\"usage\":1354580304},\"id\":\"czbgomfgbeg\",\"name\":\"qgleohibetnluank\",\"type\":\"rfxeeebtij\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SubscriptionQuotaItem response = manager.netAppResourceQuotaLimitsAccounts() - .getWithResponse("ztwhghmupg", "yjtcdxabbujftab", "nbbklqpxzucafed", com.azure.core.util.Context.NONE) + .getWithResponse("fdgugeyzi", "grkyuizabsnmfpph", "jee", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java index 7f31f82967f0..0146aa90f4ba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java @@ -21,7 +21,7 @@ public final class NetAppResourceQuotaLimitsAccountsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"current\":950767079,\"default\":318386162,\"usage\":1931668946},\"id\":\"nvzoqgyipemch\",\"name\":\"avsczuejdtxp\",\"type\":\"lghwzhome\"}]}"; + = "{\"value\":[{\"properties\":{\"current\":799727678,\"default\":960314765,\"usage\":1206650787},\"id\":\"jkuyxoafgaoq\",\"name\":\"tfaeyl\",\"type\":\"nm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,8 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.netAppResourceQuotaLimitsAccounts() - .list("uclvdjj", "kyrdnqodx", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.netAppResourceQuotaLimitsAccounts().list("acvbmqz", "qqxlajr", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java index 71cf72e1ac6d..84a8b720c1c5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class NetAppResourceQuotaLimitsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"current\":1296821847,\"default\":1484462734,\"usage\":861762470},\"id\":\"zcqy\",\"name\":\"mq\",\"type\":\"fuiocuselq\"}"; + = "{\"properties\":{\"current\":645366042,\"default\":47000180,\"usage\":1380857562},\"id\":\"jhhhqxu\",\"name\":\"yvca\",\"type\":\"oyvivbsiz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SubscriptionQuotaItem response = manager.netAppResourceQuotaLimits() - .getWithResponse("ceyjnc", "mlfuyfjbp", com.azure.core.util.Context.NONE) + .getWithResponse("zv", "qxfx", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java index 36383ec36745..29658b7bb409 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java @@ -21,7 +21,7 @@ public final class NetAppResourceQuotaLimitsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"current\":1317940260,\"default\":1749268627,\"usage\":831669966},\"id\":\"jmr\",\"name\":\"khmwdmd\",\"type\":\"gyqi\"}]}"; + = "{\"value\":[{\"properties\":{\"current\":1323201789,\"default\":13178569,\"usage\":575257538},\"id\":\"jiu\",\"name\":\"ehgmvflnwyv\",\"type\":\"kxrerlniylylyfwx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.netAppResourceQuotaLimits().list("rsazrhxud", com.azure.core.util.Context.NONE); + = manager.netAppResourceQuotaLimits().list("sjsz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java index 2e04c8840705..055c689b1973 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class NetAppResourceRegionInfosGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"lcaymjchtv\",\"isAvailable\":true},{\"availabilityZone\":\"aqdnzyzawatuwq\",\"isAvailable\":true},{\"availabilityZone\":\"czothymgo\",\"isAvailable\":false},{\"availabilityZone\":\"snwgwimaa\",\"isAvailable\":true}]},\"id\":\"htmhobcyanrf\",\"name\":\"qtvkh\",\"type\":\"voogxkfna\"}"; + = "{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"yjtcdxabbujftab\",\"isAvailable\":true}]},\"id\":\"klqpx\",\"name\":\"ucafedd\",\"type\":\"wnlzafwxu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RegionInfoResource response = manager.netAppResourceRegionInfos() - .getWithResponse("okwtjawhvagnqfqq", com.azure.core.util.Context.NONE) + .getWithResponse("utgqztwh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2, response.storageToNetworkProximity()); - Assertions.assertEquals("lcaymjchtv", response.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, + response.storageToNetworkProximity()); + Assertions.assertEquals("yjtcdxabbujftab", response.availabilityZoneMappings().get(0).availabilityZone()); Assertions.assertTrue(response.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java index 68a7a09870e0..15c4a7dd2508 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java @@ -23,7 +23,7 @@ public final class NetAppResourceRegionInfosListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"T2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"uhczy\",\"isAvailable\":false},{\"availabilityZone\":\"ajpxecxqnwhscoza\",\"isAvailable\":false},{\"availabilityZone\":\"xsm\",\"isAvailable\":true},{\"availabilityZone\":\"wirfljf\",\"isAvailable\":false}]},\"id\":\"ou\",\"name\":\"xudnmckap\",\"type\":\"hknqiijge\"}]}"; + = "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"wgpbemeluclv\",\"isAvailable\":false},{\"availabilityZone\":\"kyrdnqodx\",\"isAvailable\":false},{\"availabilityZone\":\"hqfaqnvz\",\"isAvailable\":false},{\"availabilityZone\":\"ipemchgavscz\",\"isAvailable\":true}]},\"id\":\"txptlghw\",\"name\":\"homewjjstliu\",\"type\":\"qawmoaianc\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,11 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.netAppResourceRegionInfos().list("aqymhcctopuowyr", com.azure.core.util.Context.NONE); + = manager.netAppResourceRegionInfos().list("gnhgook", com.azure.core.util.Context.NONE); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2AND_ACROSS_T2, + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, response.iterator().next().storageToNetworkProximity()); - Assertions.assertEquals("uhczy", + Assertions.assertEquals("wgpbemeluclv", response.iterator().next().availabilityZoneMappings().get(0).availabilityZone()); Assertions.assertFalse(response.iterator().next().availabilityZoneMappings().get(0).isAvailable()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java index 3cbce63004da..76e6de3aa327 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class NetAppResourceUsagesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"id\":\"erdqqigd\",\"name\":{\"value\":\"ghpcvrwqirvt\",\"localizedValue\":\"yhhmvfxl\"},\"properties\":{\"currentValue\":1884813523,\"limit\":960872895,\"unit\":\"mkrrwepgqvqok\"}}"; + = "{\"id\":\"vdihoynkrx\",\"name\":{\"value\":\"wkd\",\"localizedValue\":\"yrucpcunnuzdq\"},\"properties\":{\"currentValue\":1559267660,\"limit\":1693571674,\"unit\":\"naie\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); UsageResult response = manager.netAppResourceUsages() - .getWithResponse("mglrouigdm", "ivj", com.azure.core.util.Context.NONE) + .getWithResponse("l", "ytoithgygvfl", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java index 563c92b4f000..ecfcc97300c7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java @@ -21,7 +21,7 @@ public final class NetAppResourceUsagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"id\":\"f\",\"name\":{\"value\":\"agxsurej\",\"localizedValue\":\"shzz\"},\"properties\":{\"currentValue\":439119969,\"limit\":1328602727,\"unit\":\"iqqzjkoxdupn\"}}]}"; + = "{\"value\":[{\"id\":\"noytzposewxigp\",\"name\":{\"value\":\"qm\",\"localizedValue\":\"pxvpifdfaif\"},\"properties\":{\"currentValue\":960563368,\"limit\":1468365324,\"unit\":\"ubeids\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.netAppResourceUsages().list("ssdpjeyoqxded", com.azure.core.util.Context.NONE); + = manager.netAppResourceUsages().list("xa", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java index 0ef6ee373829..c811cddf065c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests { @Test public void testCheckFilePathAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"awkgy\"}"; + String responseStr = "{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"ttmvmmagoaqylkjz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,15 @@ public void testCheckFilePathAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CheckAvailabilityResponse response = manager.netAppResources() - .checkFilePathAvailabilityWithResponse("fixcnpcfykkpy", - new FilePathAvailabilityRequest().withName("cpawmp") - .withSubnetId("prdpwrpc") - .withAvailabilityZone("cfj"), + .checkFilePathAvailabilityWithResponse("bqxvhcsyhzlwxae", + new FilePathAvailabilityRequest().withName("ov") + .withSubnetId("rexdndsbd") + .withAvailabilityZone("aderzmw"), com.azure.core.util.Context.NONE) .getValue(); Assertions.assertTrue(response.isAvailable()); Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); - Assertions.assertEquals("awkgy", response.message()); + Assertions.assertEquals("ttmvmmagoaqylkjz", response.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java index 6a1772d83aac..b3b71c585550 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class NetAppResourcesCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"u\"}"; + String responseStr = "{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"rkdlb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,16 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CheckAvailabilityResponse response = manager.netAppResources() - .checkNameAvailabilityWithResponse("lgsrgkrfizrpywlp", - new ResourceNameAvailabilityRequest().withName("yuqh") + .checkNameAvailabilityWithResponse("byubhiqdxyurnpn", + new ResourceNameAvailabilityRequest().withName("hza") .withType( CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS) - .withResourceGroup("mc"), + .withResourceGroup("cnuhiigbylbuigv"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertFalse(response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("u", response.message()); + Assertions.assertTrue(response.isAvailable()); + Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); + Assertions.assertEquals("rkdlb", response.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java index a7230fdef02a..147d25dfa238 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests { @Test public void testCheckQuotaAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":false,\"reason\":\"Invalid\",\"message\":\"azihq\"}"; + String responseStr = "{\"isAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"qgu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testCheckQuotaAvailabilityWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - CheckAvailabilityResponse response = manager.netAppResources() - .checkQuotaAvailabilityWithResponse("peyamnnidmdiaw", - new QuotaAvailabilityRequest().withName("zxkzrntmkct") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS) - .withResourceGroup("uos"), - com.azure.core.util.Context.NONE) - .getValue(); + CheckAvailabilityResponse response + = manager.netAppResources() + .checkQuotaAvailabilityWithResponse("jiuazjc", new QuotaAvailabilityRequest().withName("mxitpfinzcpd") + .withType( + CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_BACKUPS) + .withResourceGroup("krlgjm"), com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertFalse(response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); - Assertions.assertEquals("azihq", response.message()); + Assertions.assertTrue(response.isAvailable()); + Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); + Assertions.assertEquals("qgu", response.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java index 737667f87884..119835a7e171 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests { @Test public void testQueryNetworkSiblingSetWithResponse() throws Exception { String responseStr - = "{\"networkSiblingSetId\":\"fogxhcxnw\",\"subnetId\":\"pfdzxcouzfwofw\",\"networkSiblingSetStateId\":\"ukz\",\"networkFeatures\":\"Standard_Basic\",\"provisioningState\":\"Failed\",\"nicInfoList\":[{\"ipAddress\":\"dnlwglihezomuc\",\"volumeResourceIds\":[\"isnionetbzdrdpue\"]},{\"ipAddress\":\"kgtlzl\",\"volumeResourceIds\":[\"lxcznn\",\"zkbnbmxl\",\"mwt\"]},{\"ipAddress\":\"eqzusitoqcahfs\",\"volumeResourceIds\":[\"mlree\",\"rfwss\",\"vlcwlisolntfxxc\",\"qmipfj\"]},{\"ipAddress\":\"oygizmsh\",\"volumeResourceIds\":[\"aizabu\",\"nvgskjtoxjd\",\"jsjznv\",\"xqqm\"]}]}"; + = "{\"networkSiblingSetId\":\"btxjeaoqaqbzg\",\"subnetId\":\"fwwvuatbwbqam\",\"networkSiblingSetStateId\":\"uliyslpkcv\",\"networkFeatures\":\"Basic\",\"provisioningState\":\"Succeeded\",\"nicInfoList\":[{\"ipAddress\":\"pmywbormcq\",\"volumeResourceIds\":[\"iijq\",\"kzfbojxjmcsmyq\",\"ixvcpwnkwywzwo\",\"alickduoi\"]}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testQueryNetworkSiblingSetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSiblingSet response = manager.netAppResources() - .queryNetworkSiblingSetWithResponse("ogjrhskbwgm", - new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("g").withSubnetId("u"), + .queryNetworkSiblingSetWithResponse("ycijoclxiutgj", + new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("yzyzjd").withSubnetId("r"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("fogxhcxnw", response.networkSiblingSetId()); - Assertions.assertEquals("pfdzxcouzfwofw", response.subnetId()); - Assertions.assertEquals("ukz", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, response.networkFeatures()); - Assertions.assertEquals("isnionetbzdrdpue", response.nicInfoList().get(0).volumeResourceIds().get(0)); + Assertions.assertEquals("btxjeaoqaqbzg", response.networkSiblingSetId()); + Assertions.assertEquals("fwwvuatbwbqam", response.subnetId()); + Assertions.assertEquals("uliyslpkcv", response.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.BASIC, response.networkFeatures()); + Assertions.assertEquals("iijq", response.nicInfoList().get(0).volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java index 955c7fa76765..9c9fcc5a72f8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class NetAppResourcesQueryRegionInfoWithResponseMockTests { @Test public void testQueryRegionInfoWithResponse() throws Exception { String responseStr - = "{\"storageToNetworkProximity\":\"Default\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"ntsxjmfmeftvh\",\"isAvailable\":false}]}"; + = "{\"storageToNetworkProximity\":\"T1AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"ujlfyoumpcky\",\"isAvailable\":false},{\"availabilityZone\":\"digp\",\"isAvailable\":true},{\"availabilityZone\":\"rzmq\",\"isAvailable\":true}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testQueryRegionInfoWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RegionInfo response = manager.netAppResources() - .queryRegionInfoWithResponse("dvqgcnbhcbmjkz", com.azure.core.util.Context.NONE) + .queryRegionInfoWithResponse("fzhompheq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(RegionStorageToNetworkProximity.DEFAULT, response.storageToNetworkProximity()); - Assertions.assertEquals("ntsxjmfmeftvh", response.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_ACROSS_T2, response.storageToNetworkProximity()); + Assertions.assertEquals("ujlfyoumpcky", response.availabilityZoneMappings().get(0).availabilityZone()); Assertions.assertFalse(response.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java index ce1c4c3a3d75..71f981defa35 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java @@ -23,7 +23,7 @@ public final class NetAppResourcesUpdateNetworkSiblingSetMockTests { @Test public void testUpdateNetworkSiblingSet() throws Exception { String responseStr - = "{\"networkSiblingSetId\":\"lslcefiqdktwtkvi\",\"subnetId\":\"pfliwo\",\"networkSiblingSetStateId\":\"guuzh\",\"networkFeatures\":\"Basic_Standard\",\"provisioningState\":\"Failed\",\"nicInfoList\":[{\"ipAddress\":\"hjhausy\",\"volumeResourceIds\":[\"kymffztsils\",\"v\",\"syeiih\",\"ymkouih\"]},{\"ipAddress\":\"seuugcig\",\"volumeResourceIds\":[\"gsmgb\",\"mt\",\"wrqbebjnfv\"]},{\"ipAddress\":\"labt\",\"volumeResourceIds\":[\"iwznht\",\"gficud\",\"hizpaczmuh\",\"cakznhokhoitwhrj\"]},{\"ipAddress\":\"mmazdnckid\",\"volumeResourceIds\":[\"glhzqp\",\"zbawkikcdgfh\"]}]}"; + = "{\"networkSiblingSetId\":\"wrzregzgyufu\",\"subnetId\":\"wpwerye\",\"networkSiblingSetStateId\":\"kdhmeottawjyosx\",\"networkFeatures\":\"Standard_Basic\",\"provisioningState\":\"Succeeded\",\"nicInfoList\":[{\"ipAddress\":\"vpndp\",\"volumeResourceIds\":[\"jpnwynudql\",\"zsauzp\",\"lxeehuxiq\"]},{\"ipAddress\":\"lraymezxlskih\",\"volumeResourceIds\":[\"fdsajred\",\"wyyshtuwgm\",\"vuafpwzyifr\"]},{\"ipAddress\":\"wltxeqipxgzdyims\",\"volumeResourceIds\":[\"orpravkjoges\",\"abnsmj\"]},{\"ipAddress\":\"ynq\",\"volumeResourceIds\":[\"kqsykvwjtqpke\",\"myltj\",\"rspxklur\",\"clf\"]}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testUpdateNetworkSiblingSet() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSiblingSet response = manager.netAppResources() - .updateNetworkSiblingSet("i", - new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("aydhf") - .withSubnetId("zocxmtfshksnyzm") - .withNetworkSiblingSetStateId("pamwbw") - .withNetworkFeatures(NetworkFeatures.BASIC), + .updateNetworkSiblingSet("tamtyv", + new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("kn") + .withSubnetId("rwzawnvs") + .withNetworkSiblingSetStateId("cfhzagxnvhycv") + .withNetworkFeatures(NetworkFeatures.STANDARD_BASIC), com.azure.core.util.Context.NONE); - Assertions.assertEquals("lslcefiqdktwtkvi", response.networkSiblingSetId()); - Assertions.assertEquals("pfliwo", response.subnetId()); - Assertions.assertEquals("guuzh", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, response.networkFeatures()); - Assertions.assertEquals("kymffztsils", response.nicInfoList().get(0).volumeResourceIds().get(0)); + Assertions.assertEquals("wrzregzgyufu", response.networkSiblingSetId()); + Assertions.assertEquals("wpwerye", response.subnetId()); + Assertions.assertEquals("kdhmeottawjyosx", response.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, response.networkFeatures()); + Assertions.assertEquals("jpnwynudql", response.nicInfoList().get(0).volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java index 16486f03a894..2786dce4a1ea 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java @@ -13,12 +13,12 @@ public final class NetworkSiblingSetInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSiblingSetInner model = BinaryData.fromString( - "{\"networkSiblingSetId\":\"pvn\",\"subnetId\":\"wmtxkyctwwgz\",\"networkSiblingSetStateId\":\"jlmec\",\"networkFeatures\":\"Standard\",\"provisioningState\":\"Failed\",\"nicInfoList\":[{\"ipAddress\":\"neezaifg\",\"volumeResourceIds\":[\"oqqtl\",\"fhzbkr\",\"jjjavfqnvhnq\"]},{\"ipAddress\":\"wdogiyetesyp\",\"volumeResourceIds\":[\"bztjhqtfbovnynkb\",\"etnjuhpsprkz\",\"aupia\"]}]}") + "{\"networkSiblingSetId\":\"yjathwtzo\",\"subnetId\":\"a\",\"networkSiblingSetStateId\":\"wm\",\"networkFeatures\":\"Basic_Standard\",\"provisioningState\":\"Updating\",\"nicInfoList\":[{\"ipAddress\":\"cjpahl\",\"volumeResourceIds\":[\"a\",\"f\"]},{\"ipAddress\":\"nmwmqtibx\",\"volumeResourceIds\":[\"ddtvqctt\",\"dija\"]}]}") .toObject(NetworkSiblingSetInner.class); - Assertions.assertEquals("pvn", model.networkSiblingSetId()); - Assertions.assertEquals("wmtxkyctwwgz", model.subnetId()); - Assertions.assertEquals("jlmec", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD, model.networkFeatures()); - Assertions.assertEquals("oqqtl", model.nicInfoList().get(0).volumeResourceIds().get(0)); + Assertions.assertEquals("yjathwtzo", model.networkSiblingSetId()); + Assertions.assertEquals("a", model.subnetId()); + Assertions.assertEquals("wm", model.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); + Assertions.assertEquals("a", model.nicInfoList().get(0).volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NfsUserTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NfsUserTests.java index e7cce0dad327..807323aedd6c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NfsUserTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NfsUserTests.java @@ -11,17 +11,17 @@ public final class NfsUserTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NfsUser model = BinaryData.fromString("{\"userId\":2846291659760253765,\"groupId\":3689639500291816317}") + NfsUser model = BinaryData.fromString("{\"userId\":2888604604095787464,\"groupId\":1984567885441821225}") .toObject(NfsUser.class); - Assertions.assertEquals(2846291659760253765L, model.userId()); - Assertions.assertEquals(3689639500291816317L, model.groupId()); + Assertions.assertEquals(2888604604095787464L, model.userId()); + Assertions.assertEquals(1984567885441821225L, model.groupId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NfsUser model = new NfsUser().withUserId(2846291659760253765L).withGroupId(3689639500291816317L); + NfsUser model = new NfsUser().withUserId(2888604604095787464L).withGroupId(1984567885441821225L); model = BinaryData.fromObject(model).toObject(NfsUser.class); - Assertions.assertEquals(2846291659760253765L, model.userId()); - Assertions.assertEquals(3689639500291816317L, model.groupId()); + Assertions.assertEquals(2888604604095787464L, model.userId()); + Assertions.assertEquals(1984567885441821225L, model.groupId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java index d29c790a1564..ab510ca996ca 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java @@ -11,10 +11,9 @@ public final class NicInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NicInfo model = BinaryData - .fromString( - "{\"ipAddress\":\"xnafbw\",\"volumeResourceIds\":[\"ohtuovmaonur\",\"tu\",\"ghihpvecms\",\"clbl\"]}") - .toObject(NicInfo.class); - Assertions.assertEquals("ohtuovmaonur", model.volumeResourceIds().get(0)); + NicInfo model + = BinaryData.fromString("{\"ipAddress\":\"kmr\",\"volumeResourceIds\":[\"ekpndzaapmudq\",\"eqw\"]}") + .toObject(NicInfo.class); + Assertions.assertEquals("ekpndzaapmudq", model.volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java index 3ad35910984f..7db0dddffd49 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java @@ -23,7 +23,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"hntasfaymx\",\"display\":{\"provider\":\"pzealbmqkyojw\",\"resource\":\"fkmbtsuahxsgxj\",\"operation\":\"mzrrscubiwsdrn\",\"description\":\"qwodiffjx\"},\"origin\":\"rmmuabwibvjo\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"yefoyzbamwineo\",\"displayName\":\"fkak\",\"displayDescription\":\"ldtve\",\"unit\":\"oclzhz\",\"supportedAggregationTypes\":[\"Average\"],\"supportedTimeGrainTypes\":[\"gvttx\",\"nrup\"],\"internalMetricName\":\"amrdixtrekidswys\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"ffg\",\"sourceMdmNamespace\":\"ukkutvl\",\"dimensions\":[{}],\"aggregationType\":\"qhvmblcouqe\",\"fillGapWithZero\":true,\"category\":\"cdsziryrand\",\"resourceIdDimensionNameOverride\":\"pmbltoormkfql\",\"isInternal\":true},{\"name\":\"ykalsyga\",\"displayName\":\"njpnnbmj\",\"displayDescription\":\"ibjgsjjxxahm\",\"unit\":\"ad\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"vpinbmhwbj\"],\"internalMetricName\":\"kgqxn\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"eznjaujv\",\"sourceMdmNamespace\":\"nnggiycwkdtaawxw\",\"dimensions\":[{}],\"aggregationType\":\"umrrqmbzm\",\"fillGapWithZero\":true,\"category\":\"tbnxwbjsid\",\"resourceIdDimensionNameOverride\":\"rkfpks\",\"isInternal\":false},{\"name\":\"ogewij\",\"displayName\":\"rhbguzozkyewnfn\",\"displayDescription\":\"hhqosmffjku\",\"unit\":\"cyar\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"zoghktdpyczhc\"],\"internalMetricName\":\"ocnhzqrottjzcfyj\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"rl\",\"sourceMdmNamespace\":\"apqinf\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"glqdhm\",\"fillGapWithZero\":true,\"category\":\"alcxpjbyy\",\"resourceIdDimensionNameOverride\":\"joqcjenkyhfqzvsq\",\"isInternal\":false}],\"logSpecifications\":[{\"name\":\"gcm\",\"displayName\":\"qjhhhqxuwyvc\"},{\"name\":\"oyvivbsiz\",\"displayName\":\"jszlb\"},{\"name\":\"mnlzijiufehgmvf\",\"displayName\":\"wyvq\"},{\"name\":\"rerlniy\",\"displayName\":\"lyfwxzutg\"}]}}}]}"; + = "{\"value\":[{\"name\":\"izbfhfovvacq\",\"display\":{\"provider\":\"uodxesza\",\"resource\":\"elawumu\",\"operation\":\"lzkwrrwoy\",\"description\":\"ucwyhahno\"},\"origin\":\"rkywuhpsvfuu\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"xxwla\",\"displayName\":\"iexzsrzpge\",\"displayDescription\":\"tybbwwpgda\",\"unit\":\"hzyvlixqnrkcx\",\"supportedAggregationTypes\":[\"Average\"],\"supportedTimeGrainTypes\":[\"mysu\",\"swqrntvlwijp\",\"ttexoqqpwcyyufmh\",\"uncuw\"],\"internalMetricName\":\"spkcdqzh\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"dunqnd\",\"sourceMdmNamespace\":\"pchrqbn\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"gegydcwboxjum\",\"fillGapWithZero\":false,\"category\":\"lihrraiouaubr\",\"resourceIdDimensionNameOverride\":\"loqxfuojrngif\",\"isInternal\":false}],\"logSpecifications\":[{\"name\":\"ccbiuimzdlyjdfq\",\"displayName\":\"kyoqufdv\"},{\"name\":\"zslzojhp\",\"displayName\":\"fnmdxotn\"}]}}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,19 +34,19 @@ public void testList() throws Exception { PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("hntasfaymx", response.iterator().next().name()); - Assertions.assertEquals("pzealbmqkyojw", response.iterator().next().display().provider()); - Assertions.assertEquals("fkmbtsuahxsgxj", response.iterator().next().display().resource()); - Assertions.assertEquals("mzrrscubiwsdrn", response.iterator().next().display().operation()); - Assertions.assertEquals("qwodiffjx", response.iterator().next().display().description()); - Assertions.assertEquals("rmmuabwibvjo", response.iterator().next().origin()); - Assertions.assertEquals("yefoyzbamwineo", + Assertions.assertEquals("izbfhfovvacq", response.iterator().next().name()); + Assertions.assertEquals("uodxesza", response.iterator().next().display().provider()); + Assertions.assertEquals("elawumu", response.iterator().next().display().resource()); + Assertions.assertEquals("lzkwrrwoy", response.iterator().next().display().operation()); + Assertions.assertEquals("ucwyhahno", response.iterator().next().display().description()); + Assertions.assertEquals("rkywuhpsvfuu", response.iterator().next().origin()); + Assertions.assertEquals("xxwla", response.iterator().next().serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("fkak", + Assertions.assertEquals("iexzsrzpge", response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("ldtve", + Assertions.assertEquals("tybbwwpgda", response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("oclzhz", + Assertions.assertEquals("hzyvlixqnrkcx", response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit()); Assertions.assertEquals(MetricAggregationType.AVERAGE, response.iterator() @@ -56,7 +56,7 @@ public void testList() throws Exception { .get(0) .supportedAggregationTypes() .get(0)); - Assertions.assertEquals("gvttx", + Assertions.assertEquals("mysu", response.iterator() .next() .serviceSpecification() @@ -64,21 +64,21 @@ public void testList() throws Exception { .get(0) .supportedTimeGrainTypes() .get(0)); - Assertions.assertEquals("amrdixtrekidswys", + Assertions.assertEquals("spkcdqzh", response.iterator().next().serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertTrue( + Assertions.assertFalse( response.iterator().next().serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("ffg", + Assertions.assertEquals("dunqnd", response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("ukkutvl", + Assertions.assertEquals("pchrqbn", response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("qhvmblcouqe", + Assertions.assertEquals("gegydcwboxjum", response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertTrue( + Assertions.assertFalse( response.iterator().next().serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("cdsziryrand", + Assertions.assertEquals("lihrraiouaubr", response.iterator().next().serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("pmbltoormkfql", + Assertions.assertEquals("loqxfuojrngif", response.iterator() .next() .serviceSpecification() @@ -86,10 +86,10 @@ public void testList() throws Exception { .get(0) .resourceIdDimensionNameOverride()); Assertions - .assertTrue(response.iterator().next().serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("gcm", + .assertFalse(response.iterator().next().serviceSpecification().metricSpecifications().get(0).isInternal()); + Assertions.assertEquals("ccbiuimzdlyjdfq", response.iterator().next().serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("qjhhhqxuwyvc", + Assertions.assertEquals("kyoqufdv", response.iterator().next().serviceSpecification().logSpecifications().get(0).displayName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OriginClusterInformationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OriginClusterInformationTests.java index 4a9b4bf1ab32..7ea22ef39d34 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OriginClusterInformationTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OriginClusterInformationTests.java @@ -13,24 +13,24 @@ public final class OriginClusterInformationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OriginClusterInformation model = BinaryData.fromString( - "{\"peerClusterName\":\"xfzwi\",\"peerAddresses\":[\"wzjbh\",\"zsxjrkambtrneg\"],\"peerVserverName\":\"mnvuqe\",\"peerVolumeName\":\"vldspa\"}") + "{\"peerClusterName\":\"rxkpmloazuruoc\",\"peerAddresses\":[\"oorb\",\"eoybfhjxakvvjgs\"],\"peerVserverName\":\"ordilmywwtkgkxny\",\"peerVolumeName\":\"dabg\"}") .toObject(OriginClusterInformation.class); - Assertions.assertEquals("xfzwi", model.peerClusterName()); - Assertions.assertEquals("wzjbh", model.peerAddresses().get(0)); - Assertions.assertEquals("mnvuqe", model.peerVserverName()); - Assertions.assertEquals("vldspa", model.peerVolumeName()); + Assertions.assertEquals("rxkpmloazuruoc", model.peerClusterName()); + Assertions.assertEquals("oorb", model.peerAddresses().get(0)); + Assertions.assertEquals("ordilmywwtkgkxny", model.peerVserverName()); + Assertions.assertEquals("dabg", model.peerVolumeName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OriginClusterInformation model = new OriginClusterInformation().withPeerClusterName("xfzwi") - .withPeerAddresses(Arrays.asList("wzjbh", "zsxjrkambtrneg")) - .withPeerVserverName("mnvuqe") - .withPeerVolumeName("vldspa"); + OriginClusterInformation model = new OriginClusterInformation().withPeerClusterName("rxkpmloazuruoc") + .withPeerAddresses(Arrays.asList("oorb", "eoybfhjxakvvjgs")) + .withPeerVserverName("ordilmywwtkgkxny") + .withPeerVolumeName("dabg"); model = BinaryData.fromObject(model).toObject(OriginClusterInformation.class); - Assertions.assertEquals("xfzwi", model.peerClusterName()); - Assertions.assertEquals("wzjbh", model.peerAddresses().get(0)); - Assertions.assertEquals("mnvuqe", model.peerVserverName()); - Assertions.assertEquals("vldspa", model.peerVolumeName()); + Assertions.assertEquals("rxkpmloazuruoc", model.peerClusterName()); + Assertions.assertEquals("oorb", model.peerAddresses().get(0)); + Assertions.assertEquals("ordilmywwtkgkxny", model.peerVserverName()); + Assertions.assertEquals("dabg", model.peerVolumeName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeeringPassphrasesInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeeringPassphrasesInnerTests.java index c32c480703cb..166a868ce787 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeeringPassphrasesInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeeringPassphrasesInnerTests.java @@ -12,10 +12,10 @@ public final class PeeringPassphrasesInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PeeringPassphrasesInner model = BinaryData.fromString( - "{\"clusterPeeringCommand\":\"zqlqhyc\",\"clusterPeeringPassphrase\":\"vodggxdbee\",\"vserverPeeringCommand\":\"mieknlraria\",\"criticalWarning\":\"iuagydwqfbylyrfg\"}") + "{\"clusterPeeringCommand\":\"qedcgzulwm\",\"clusterPeeringPassphrase\":\"rqzz\",\"vserverPeeringCommand\":\"rjvpglydzgkrvqee\",\"criticalWarning\":\"oepry\"}") .toObject(PeeringPassphrasesInner.class); - Assertions.assertEquals("zqlqhyc", model.clusterPeeringCommand()); - Assertions.assertEquals("vodggxdbee", model.clusterPeeringPassphrase()); - Assertions.assertEquals("mieknlraria", model.vserverPeeringCommand()); + Assertions.assertEquals("qedcgzulwm", model.clusterPeeringCommand()); + Assertions.assertEquals("rqzz", model.clusterPeeringPassphrase()); + Assertions.assertEquals("rjvpglydzgkrvqee", model.vserverPeeringCommand()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java index 959027f5603a..9352e87a7f9a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java @@ -12,14 +12,14 @@ public final class PoolChangeRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PoolChangeRequest model - = BinaryData.fromString("{\"newPoolResourceId\":\"ogqxndlkzgxhuri\"}").toObject(PoolChangeRequest.class); - Assertions.assertEquals("ogqxndlkzgxhuri", model.newPoolResourceId()); + = BinaryData.fromString("{\"newPoolResourceId\":\"tkoievseotgq\"}").toObject(PoolChangeRequest.class); + Assertions.assertEquals("tkoievseotgq", model.newPoolResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PoolChangeRequest model = new PoolChangeRequest().withNewPoolResourceId("ogqxndlkzgxhuri"); + PoolChangeRequest model = new PoolChangeRequest().withNewPoolResourceId("tkoievseotgq"); model = BinaryData.fromObject(model).toObject(PoolChangeRequest.class); - Assertions.assertEquals("ogqxndlkzgxhuri", model.newPoolResourceId()); + Assertions.assertEquals("tkoievseotgq", model.newPoolResourceId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java index a121490142f5..f1221a945a13 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java @@ -13,24 +13,24 @@ public final class PoolPatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PoolPatchProperties model = BinaryData.fromString( - "{\"size\":2106740942363678235,\"qosType\":\"Auto\",\"coolAccess\":false,\"customThroughputMibps\":1323012266}") + "{\"size\":7808085382692454438,\"qosType\":\"Manual\",\"coolAccess\":true,\"customThroughputMibps\":2084317491}") .toObject(PoolPatchProperties.class); - Assertions.assertEquals(2106740942363678235L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(1323012266, model.customThroughputMibps()); + Assertions.assertEquals(7808085382692454438L, model.size()); + Assertions.assertEquals(QosType.MANUAL, model.qosType()); + Assertions.assertTrue(model.coolAccess()); + Assertions.assertEquals(2084317491, model.customThroughputMibps()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PoolPatchProperties model = new PoolPatchProperties().withSize(2106740942363678235L) - .withQosType(QosType.AUTO) - .withCoolAccess(false) - .withCustomThroughputMibps(1323012266); + PoolPatchProperties model = new PoolPatchProperties().withSize(7808085382692454438L) + .withQosType(QosType.MANUAL) + .withCoolAccess(true) + .withCustomThroughputMibps(2084317491); model = BinaryData.fromObject(model).toObject(PoolPatchProperties.class); - Assertions.assertEquals(2106740942363678235L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(1323012266, model.customThroughputMibps()); + Assertions.assertEquals(7808085382692454438L, model.size()); + Assertions.assertEquals(QosType.MANUAL, model.qosType()); + Assertions.assertTrue(model.coolAccess()); + Assertions.assertEquals(2084317491, model.customThroughputMibps()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java index 82d13a06d151..378dccf92ad4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java @@ -15,30 +15,30 @@ public final class PoolPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PoolProperties model = BinaryData.fromString( - "{\"poolId\":\"ssqyzqedik\",\"size\":6397833713800270751,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"iqmrjgeihfqlggw\",\"totalThroughputMibps\":90.91323,\"utilizedThroughputMibps\":70.12909,\"customThroughputMibps\":813659802,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"}") + "{\"poolId\":\"flbqvgaq\",\"size\":3812707577517120566,\"serviceLevel\":\"Premium\",\"provisioningState\":\"cqusr\",\"totalThroughputMibps\":65.674644,\"utilizedThroughputMibps\":81.41901,\"customThroughputMibps\":999562740,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"}") .toObject(PoolProperties.class); - Assertions.assertEquals(6397833713800270751L, model.size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.serviceLevel()); - Assertions.assertEquals(813659802, model.customThroughputMibps()); + Assertions.assertEquals(3812707577517120566L, model.size()); + Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); + Assertions.assertEquals(999562740, model.customThroughputMibps()); Assertions.assertEquals(QosType.MANUAL, model.qosType()); Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); + Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PoolProperties model = new PoolProperties().withSize(6397833713800270751L) - .withServiceLevel(ServiceLevel.STANDARD_ZRS) - .withCustomThroughputMibps(813659802) + PoolProperties model = new PoolProperties().withSize(3812707577517120566L) + .withServiceLevel(ServiceLevel.PREMIUM) + .withCustomThroughputMibps(999562740) .withQosType(QosType.MANUAL) .withCoolAccess(true) - .withEncryptionType(EncryptionType.DOUBLE); + .withEncryptionType(EncryptionType.SINGLE); model = BinaryData.fromObject(model).toObject(PoolProperties.class); - Assertions.assertEquals(6397833713800270751L, model.size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.serviceLevel()); - Assertions.assertEquals(813659802, model.customThroughputMibps()); + Assertions.assertEquals(3812707577517120566L, model.size()); + Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); + Assertions.assertEquals(999562740, model.customThroughputMibps()); Assertions.assertEquals(QosType.MANUAL, model.qosType()); Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); + Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java index 31606040031d..fa1408892472 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java @@ -26,7 +26,7 @@ public final class PoolsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"poolId\":\"pney\",\"size\":5007486906483862315,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"Succeeded\",\"totalThroughputMibps\":4.138303,\"utilizedThroughputMibps\":11.853588,\"customThroughputMibps\":1629298194,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"etag\":\"fyzavfrbypicdb\",\"location\":\"dj\",\"tags\":{\"h\":\"hsmqazpdgon\"},\"id\":\"shthmgpczqu\",\"name\":\"ptkbvcpxtzhi\",\"type\":\"q\"}"; + = "{\"properties\":{\"poolId\":\"yoyp\",\"size\":2914048506807654049,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"Succeeded\",\"totalThroughputMibps\":99.014145,\"utilizedThroughputMibps\":76.2523,\"customThroughputMibps\":1615280383,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"etag\":\"ozycy\",\"location\":\"qyhgf\",\"tags\":{\"sfledyn\":\"zlex\",\"fbzkk\":\"jpziu\"},\"id\":\"tnhqsycl\",\"name\":\"selpkpbaf\",\"type\":\"afhlbyl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,24 +36,23 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapacityPool response = manager.pools() - .define("dabalfdxaglzfytl") - .withRegion("kszanmhwgpte") - .withExistingNetAppAccount("vydjufbnk", "blaxpegj") - .withSize(9023471614450787306L) - .withServiceLevel(ServiceLevel.STANDARD_ZRS) - .withTags( - mapOf("kwztsdetj", "uwkirk", "ifcqp", "go", "lvoc", "lzkgysdgzyybzo", "gmlilwzghjhjvmab", "tvdxxhe")) - .withCustomThroughputMibps(435666059) + .define("vnwqjwgo") + .withRegion("xeoio") + .withExistingNetAppAccount("eeksnbksdqhjvyk", "xeslkhhustcpoqm") + .withSize(2718077140527760009L) + .withServiceLevel(ServiceLevel.ULTRA) + .withTags(mapOf("jzwfb", "zfav", "mmfz", "yay", "rzx", "bfw")) + .withCustomThroughputMibps(811449935) .withQosType(QosType.AUTO) .withCoolAccess(true) - .withEncryptionType(EncryptionType.SINGLE) + .withEncryptionType(EncryptionType.DOUBLE) .create(); - Assertions.assertEquals("dj", response.location()); - Assertions.assertEquals("hsmqazpdgon", response.tags().get("h")); - Assertions.assertEquals(5007486906483862315L, response.size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, response.serviceLevel()); - Assertions.assertEquals(1629298194, response.customThroughputMibps()); + Assertions.assertEquals("qyhgf", response.location()); + Assertions.assertEquals("zlex", response.tags().get("sfledyn")); + Assertions.assertEquals(2914048506807654049L, response.size()); + Assertions.assertEquals(ServiceLevel.ULTRA, response.serviceLevel()); + Assertions.assertEquals(1615280383, response.customThroughputMibps()); Assertions.assertEquals(QosType.AUTO, response.qosType()); Assertions.assertFalse(response.coolAccess()); Assertions.assertEquals(EncryptionType.SINGLE, response.encryptionType()); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java index 57f73cff7427..cbe7cc87d7f5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class PoolsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"poolId\":\"noejhqlfmsibz\",\"size\":8819514103425991665,\"serviceLevel\":\"Standard\",\"provisioningState\":\"xkyd\",\"totalThroughputMibps\":10.767603,\"utilizedThroughputMibps\":77.30764,\"customThroughputMibps\":598587898,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"etag\":\"a\",\"location\":\"p\",\"tags\":{\"jlfxampqcrzgeuq\":\"ewp\",\"iatwfaujegqdtadr\":\"b\"},\"id\":\"kgd\",\"name\":\"hjkrukizyhgs\",\"type\":\"tnqsktx\"}"; + = "{\"properties\":{\"poolId\":\"br\",\"size\":3097515429370692173,\"serviceLevel\":\"Standard\",\"provisioningState\":\"kceysfaqegplw\",\"totalThroughputMibps\":64.30504,\"utilizedThroughputMibps\":4.3013515,\"customThroughputMibps\":171402042,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"etag\":\"usybwptdaca\",\"location\":\"vlf\",\"tags\":{\"oiwenazerohzrsq\":\"mt\",\"wqapfgsdp\":\"lsxkd\"},\"id\":\"vessm\",\"name\":\"hhkuuip\",\"type\":\"dqq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,16 +34,16 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapacityPool response = manager.pools() - .getWithResponse("inqbdnddbbozs", "vrmkjmyitrchwu", "lxeeiht", com.azure.core.util.Context.NONE) + .getWithResponse("ehqpuvjmvqmt", "wckygr", "ejnndljdju", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("p", response.location()); - Assertions.assertEquals("ewp", response.tags().get("jlfxampqcrzgeuq")); - Assertions.assertEquals(8819514103425991665L, response.size()); + Assertions.assertEquals("vlf", response.location()); + Assertions.assertEquals("mt", response.tags().get("oiwenazerohzrsq")); + Assertions.assertEquals(3097515429370692173L, response.size()); Assertions.assertEquals(ServiceLevel.STANDARD, response.serviceLevel()); - Assertions.assertEquals(598587898, response.customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, response.qosType()); + Assertions.assertEquals(171402042, response.customThroughputMibps()); + Assertions.assertEquals(QosType.MANUAL, response.qosType()); Assertions.assertTrue(response.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, response.encryptionType()); + Assertions.assertEquals(EncryptionType.DOUBLE, response.encryptionType()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java index fb8209462d3f..c085022139a5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java @@ -25,7 +25,7 @@ public final class PoolsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"poolId\":\"stunmlh\",\"size\":3445216584848284303,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"lciichgjs\",\"totalThroughputMibps\":82.94238,\"utilizedThroughputMibps\":28.50325,\"customThroughputMibps\":949029697,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"etag\":\"ifc\",\"location\":\"bdujgcwxvecbb\",\"tags\":{\"kpgdqxwabzrwiq\":\"rdxrizagbbgiarks\",\"kifmmainw\":\"xhaclcdosqkptjq\"},\"id\":\"edxkpbqwuntob\",\"name\":\"izazz\",\"type\":\"lw\"}]}"; + = "{\"value\":[{\"properties\":{\"poolId\":\"yvwehtaemxh\",\"size\":762633184534493630,\"serviceLevel\":\"Standard\",\"provisioningState\":\"vusxiv\",\"totalThroughputMibps\":81.01227,\"utilizedThroughputMibps\":52.934914,\"customThroughputMibps\":2039724327,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"etag\":\"yzatvfuzkaft\",\"location\":\"vru\",\"tags\":{\"qgdgkkile\":\"gsyeipqdsmjtg\",\"orvvmqfloygbdgw\":\"lkcsmknhwtbbae\",\"xjd\":\"mgxdgdhpabgd\",\"wllcolsr\":\"vjsaqwotm\"},\"id\":\"xaptefhexcgjok\",\"name\":\"ljnhvlqj\",\"type\":\"ek\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,15 +35,15 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.pools().list("fpjbqggwe", "iwdhdmncgbfzu", com.azure.core.util.Context.NONE); + = manager.pools().list("tekva", "blhtjq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("bdujgcwxvecbb", response.iterator().next().location()); - Assertions.assertEquals("rdxrizagbbgiarks", response.iterator().next().tags().get("kpgdqxwabzrwiq")); - Assertions.assertEquals(3445216584848284303L, response.iterator().next().size()); - Assertions.assertEquals(ServiceLevel.ULTRA, response.iterator().next().serviceLevel()); - Assertions.assertEquals(949029697, response.iterator().next().customThroughputMibps()); + Assertions.assertEquals("vru", response.iterator().next().location()); + Assertions.assertEquals("gsyeipqdsmjtg", response.iterator().next().tags().get("qgdgkkile")); + Assertions.assertEquals(762633184534493630L, response.iterator().next().size()); + Assertions.assertEquals(ServiceLevel.STANDARD, response.iterator().next().serviceLevel()); + Assertions.assertEquals(2039724327, response.iterator().next().customThroughputMibps()); Assertions.assertEquals(QosType.MANUAL, response.iterator().next().qosType()); - Assertions.assertFalse(response.iterator().next().coolAccess()); + Assertions.assertTrue(response.iterator().next().coolAccess()); Assertions.assertEquals(EncryptionType.DOUBLE, response.iterator().next().encryptionType()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java index 97498d4ed976..8af96c06e7a5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java @@ -12,19 +12,18 @@ public final class QueryNetworkSiblingSetRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QueryNetworkSiblingSetRequest model - = BinaryData.fromString("{\"networkSiblingSetId\":\"uiaclkiexhajlfn\",\"subnetId\":\"hiqfyuttdiy\"}") + = BinaryData.fromString("{\"networkSiblingSetId\":\"sylwxdzaumweooh\",\"subnetId\":\"uufuz\"}") .toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("uiaclkiexhajlfn", model.networkSiblingSetId()); - Assertions.assertEquals("hiqfyuttdiy", model.subnetId()); + Assertions.assertEquals("sylwxdzaumweooh", model.networkSiblingSetId()); + Assertions.assertEquals("uufuz", model.subnetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { QueryNetworkSiblingSetRequest model - = new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("uiaclkiexhajlfn") - .withSubnetId("hiqfyuttdiy"); + = new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("sylwxdzaumweooh").withSubnetId("uufuz"); model = BinaryData.fromObject(model).toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("uiaclkiexhajlfn", model.networkSiblingSetId()); - Assertions.assertEquals("hiqfyuttdiy", model.subnetId()); + Assertions.assertEquals("sylwxdzaumweooh", model.networkSiblingSetId()); + Assertions.assertEquals("uufuz", model.subnetId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java index d2a3d7b0891e..66db7b715239 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java @@ -12,26 +12,23 @@ public final class QuotaAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - QuotaAvailabilityRequest model = BinaryData.fromString( - "{\"name\":\"wcdommpvfqaw\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots\",\"resourceGroup\":\"gbrt\"}") + QuotaAvailabilityRequest model = BinaryData + .fromString( + "{\"name\":\"opteecj\",\"type\":\"Microsoft.NetApp/netAppAccounts\",\"resourceGroup\":\"islstv\"}") .toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("wcdommpvfqaw", model.name()); - Assertions.assertEquals( - CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, - model.type()); - Assertions.assertEquals("gbrt", model.resourceGroup()); + Assertions.assertEquals("opteecj", model.name()); + Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS, model.type()); + Assertions.assertEquals("islstv", model.resourceGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - QuotaAvailabilityRequest model = new QuotaAvailabilityRequest().withName("wcdommpvfqaw") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS) - .withResourceGroup("gbrt"); + QuotaAvailabilityRequest model = new QuotaAvailabilityRequest().withName("opteecj") + .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS) + .withResourceGroup("islstv"); model = BinaryData.fromObject(model).toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("wcdommpvfqaw", model.name()); - Assertions.assertEquals( - CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, - model.type()); - Assertions.assertEquals("gbrt", model.resourceGroup()); + Assertions.assertEquals("opteecj", model.name()); + Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS, model.type()); + Assertions.assertEquals("islstv", model.resourceGroup()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaReportFilterRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaReportFilterRequestTests.java index ddabe270a672..428663975b5c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaReportFilterRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaReportFilterRequestTests.java @@ -13,21 +13,21 @@ public final class QuotaReportFilterRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaReportFilterRequest model = BinaryData.fromString( - "{\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"ntwlrbqtkoie\",\"usageThresholdPercentage\":1053107000}") + "{\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"cjefuzmu\",\"usageThresholdPercentage\":1018285327}") .toObject(QuotaReportFilterRequest.class); - Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("ntwlrbqtkoie", model.quotaTarget()); - Assertions.assertEquals(1053107000, model.usageThresholdPercentage()); + Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("cjefuzmu", model.quotaTarget()); + Assertions.assertEquals(1018285327, model.usageThresholdPercentage()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - QuotaReportFilterRequest model = new QuotaReportFilterRequest().withQuotaType(QuotaType.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("ntwlrbqtkoie") - .withUsageThresholdPercentage(1053107000); + QuotaReportFilterRequest model = new QuotaReportFilterRequest().withQuotaType(QuotaType.INDIVIDUAL_USER_QUOTA) + .withQuotaTarget("cjefuzmu") + .withUsageThresholdPercentage(1018285327); model = BinaryData.fromObject(model).toObject(QuotaReportFilterRequest.class); - Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("ntwlrbqtkoie", model.quotaTarget()); - Assertions.assertEquals(1053107000, model.usageThresholdPercentage()); + Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("cjefuzmu", model.quotaTarget()); + Assertions.assertEquals(1018285327, model.usageThresholdPercentage()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaReportTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaReportTests.java index 103eac586785..31dd62347016 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaReportTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaReportTests.java @@ -13,13 +13,13 @@ public final class QuotaReportTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaReport model = BinaryData.fromString( - "{\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"dlxyjrxs\",\"quotaLimitUsedInKiBs\":6836575686513416637,\"quotaLimitTotalInKiBs\":4521518402246143019,\"percentageUsed\":18.197376,\"isDerivedQuota\":true}") + "{\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"ggbhcohfwds\",\"quotaLimitUsedInKiBs\":1975392080870414152,\"quotaLimitTotalInKiBs\":3066467447521502887,\"percentageUsed\":84.84821,\"isDerivedQuota\":true}") .toObject(QuotaReport.class); - Assertions.assertEquals(QuotaType.DEFAULT_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("dlxyjrxs", model.quotaTarget()); - Assertions.assertEquals(6836575686513416637L, model.quotaLimitUsedInKiBs()); - Assertions.assertEquals(4521518402246143019L, model.quotaLimitTotalInKiBs()); - Assertions.assertEquals(18.197376F, model.percentageUsed()); + Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, model.quotaType()); + Assertions.assertEquals("ggbhcohfwds", model.quotaTarget()); + Assertions.assertEquals(1975392080870414152L, model.quotaLimitUsedInKiBs()); + Assertions.assertEquals(3066467447521502887L, model.quotaLimitTotalInKiBs()); + Assertions.assertEquals(84.84821F, model.percentageUsed()); Assertions.assertTrue(model.isDerivedQuota()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportInnerTests.java index 0e2a54585281..0d6ce8957160 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportInnerTests.java @@ -11,7 +11,7 @@ public final class RansomwareReportInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RansomwareReportInner model = BinaryData.fromString( - "{\"properties\":{\"eventTime\":\"2021-11-05T04:06:51Z\",\"state\":\"Resolved\",\"severity\":\"None\",\"clearedCount\":1828575207,\"reportedCount\":1530472980,\"suspects\":[{\"extension\":\"gplcrpwjxeznoigb\",\"resolution\":\"FalsePositive\",\"fileCount\":509080980,\"suspectFiles\":[{\"suspectFileName\":\"nbsazejjoqkag\",\"fileTimestamp\":\"2021-03-05T04:18:27Z\"}]},{\"extension\":\"ttaugzxnfaazp\",\"resolution\":\"PotentialThreat\",\"fileCount\":1884087819,\"suspectFiles\":[{\"suspectFileName\":\"qjjlwuen\",\"fileTimestamp\":\"2021-04-08T11:28:41Z\"},{\"suspectFileName\":\"yo\",\"fileTimestamp\":\"2021-06-02T18:39:14Z\"}]}],\"provisioningState\":\"rebqaaysjk\"},\"id\":\"qtnqtt\",\"name\":\"zlwfffiakp\",\"type\":\"pqqmted\"}") + "{\"properties\":{\"eventTime\":\"2021-04-17T11:08:20Z\",\"state\":\"Active\",\"severity\":\"High\",\"clearedCount\":1021951816,\"reportedCount\":434335068,\"suspects\":[{\"extension\":\"lvez\",\"resolution\":\"PotentialThreat\",\"fileCount\":69464261,\"suspectFiles\":[{\"suspectFileName\":\"okerqwkyhkobop\",\"fileTimestamp\":\"2021-07-02T06:13:59Z\"}]},{\"extension\":\"k\",\"resolution\":\"FalsePositive\",\"fileCount\":818081451,\"suspectFiles\":[{\"suspectFileName\":\"rfkbwccsnjvcdwxl\",\"fileTimestamp\":\"2021-03-31T08:41:02Z\"}]}],\"provisioningState\":\"ftnkhtj\"},\"id\":\"i\",\"name\":\"gwfqatmt\",\"type\":\"htmdvy\"}") .toObject(RansomwareReportInner.class); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportPropertiesTests.java index 57a92b1a3fd8..46ddf3344087 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportPropertiesTests.java @@ -11,7 +11,7 @@ public final class RansomwareReportPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RansomwareReportProperties model = BinaryData.fromString( - "{\"eventTime\":\"2021-09-01T21:15:43Z\",\"state\":\"Active\",\"severity\":\"Moderate\",\"clearedCount\":1482322760,\"reportedCount\":968506113,\"suspects\":[{\"extension\":\"wau\",\"resolution\":\"PotentialThreat\",\"fileCount\":1587371608,\"suspectFiles\":[{\"suspectFileName\":\"kvi\",\"fileTimestamp\":\"2021-06-16T01:16:58Z\"},{\"suspectFileName\":\"cwxqu\",\"fileTimestamp\":\"2021-09-16T20:46:40Z\"},{\"suspectFileName\":\"hfstotxhojujbyp\",\"fileTimestamp\":\"2021-05-10T17:56:31Z\"}]},{\"extension\":\"uvhixbjxyfwn\",\"resolution\":\"PotentialThreat\",\"fileCount\":729990408,\"suspectFiles\":[{\"suspectFileName\":\"ttpkiwkkbnujrywv\",\"fileTimestamp\":\"2021-04-08T10:27:26Z\"},{\"suspectFileName\":\"fpncurdo\",\"fileTimestamp\":\"2021-04-03T12:46:32Z\"},{\"suspectFileName\":\"thtywub\",\"fileTimestamp\":\"2021-05-27T18:04:18Z\"},{\"suspectFileName\":\"h\",\"fileTimestamp\":\"2021-03-17T00:42:38Z\"}]},{\"extension\":\"fdntwjchrdgoih\",\"resolution\":\"FalsePositive\",\"fileCount\":1518193345,\"suspectFiles\":[{\"suspectFileName\":\"dzjlu\",\"fileTimestamp\":\"2021-10-05T06:38:19Z\"}]}],\"provisioningState\":\"lwg\"}") + "{\"eventTime\":\"2021-01-15T06:50:48Z\",\"state\":\"Resolved\",\"severity\":\"Moderate\",\"clearedCount\":2142197435,\"reportedCount\":968299480,\"suspects\":[{\"extension\":\"ryuzh\",\"resolution\":\"PotentialThreat\",\"fileCount\":904307607,\"suspectFiles\":[{\"suspectFileName\":\"qqaatjinrvgou\",\"fileTimestamp\":\"2021-06-30T07:48:46Z\"},{\"suspectFileName\":\"ib\",\"fileTimestamp\":\"2021-11-16T12:04:42Z\"}]},{\"extension\":\"ioolvrwxkvtkkgll\",\"resolution\":\"FalsePositive\",\"fileCount\":423959041,\"suspectFiles\":[{\"suspectFileName\":\"yvblmhvkzu\",\"fileTimestamp\":\"2021-11-23T11:34:55Z\"},{\"suspectFileName\":\"vyhgs\",\"fileTimestamp\":\"2021-06-13T17:46:53Z\"},{\"suspectFileName\":\"rqufegxuvwz\",\"fileTimestamp\":\"2021-04-02T15:27:05Z\"}]},{\"extension\":\"lmctlpd\",\"resolution\":\"FalsePositive\",\"fileCount\":1360421335,\"suspectFiles\":[{\"suspectFileName\":\"hrixkwmy\",\"fileTimestamp\":\"2021-05-15T07:36:09Z\"},{\"suspectFileName\":\"veg\",\"fileTimestamp\":\"2021-11-23T01:18:41Z\"},{\"suspectFileName\":\"nai\",\"fileTimestamp\":\"2021-09-08T02:56:48Z\"},{\"suspectFileName\":\"cbdreaxhcexd\",\"fileTimestamp\":\"2021-05-26T13:45:49Z\"}]}],\"provisioningState\":\"ahqkg\"}") .toObject(RansomwareReportProperties.class); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetWithResponseMockTests.java index e45c22b875f9..c730535a0a5f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class RansomwareReportsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"eventTime\":\"2021-07-22T22:20:06Z\",\"state\":\"Resolved\",\"severity\":\"None\",\"clearedCount\":1650672637,\"reportedCount\":1355711907,\"suspects\":[{\"extension\":\"sbrcary\",\"resolution\":\"FalsePositive\",\"fileCount\":1833029555,\"suspectFiles\":[{},{},{},{}]},{\"extension\":\"aqaj\",\"resolution\":\"PotentialThreat\",\"fileCount\":359395235,\"suspectFiles\":[{},{},{},{}]},{\"extension\":\"mk\",\"resolution\":\"FalsePositive\",\"fileCount\":1031224807,\"suspectFiles\":[{},{}]}],\"provisioningState\":\"lubefgybpmfbfu\"},\"id\":\"nmpzk\",\"name\":\"vfy\",\"type\":\"fkd\"}"; + = "{\"properties\":{\"eventTime\":\"2020-12-21T22:06:42Z\",\"state\":\"Resolved\",\"severity\":\"None\",\"clearedCount\":303307328,\"reportedCount\":1541422170,\"suspects\":[{\"extension\":\"xzujksrlsm\",\"resolution\":\"FalsePositive\",\"fileCount\":1111002496,\"suspectFiles\":[{},{},{}]}],\"provisioningState\":\"mjc\"},\"id\":\"ewbidyvteowxv\",\"name\":\"piudeugfsxzecpa\",\"type\":\"wkufykhvuhxepm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RansomwareReport response = manager.ransomwareReports() - .getWithResponse("xvztpbnfnqtxj", "omals", "bnfddep", "dwq", "ns", com.azure.core.util.Context.NONE) + .getWithResponse("tmhdroznnhdr", "ktgj", "sggux", "eml", "ywaeeczgf", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListMockTests.java index 5e4aace09cf5..b11eb5963aff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListMockTests.java @@ -21,7 +21,7 @@ public final class RansomwareReportsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"eventTime\":\"2021-12-01T21:57:44Z\",\"state\":\"Active\",\"severity\":\"High\",\"clearedCount\":1189635916,\"reportedCount\":1296559133,\"suspects\":[{\"extension\":\"rxifvqnrx\",\"resolution\":\"FalsePositive\",\"fileCount\":1790264483,\"suspectFiles\":[{}]},{\"extension\":\"vwjhrsidqpxlbt\",\"resolution\":\"PotentialThreat\",\"fileCount\":783487262,\"suspectFiles\":[{},{},{}]},{\"extension\":\"twmykyut\",\"resolution\":\"PotentialThreat\",\"fileCount\":1386969279,\"suspectFiles\":[{}]}],\"provisioningState\":\"hpycvjqdvdwkq\"},\"id\":\"drlefgnaavuag\",\"name\":\"tetaoutnpdctuhs\",\"type\":\"fefyihduyeuyld\"}]}"; + = "{\"value\":[{\"properties\":{\"eventTime\":\"2021-08-13T22:15:03Z\",\"state\":\"Active\",\"severity\":\"None\",\"clearedCount\":1510283924,\"reportedCount\":115970163,\"suspects\":[{\"extension\":\"flrmymyi\",\"resolution\":\"PotentialThreat\",\"fileCount\":521943782,\"suspectFiles\":[{}]},{\"extension\":\"wslmiiiovgqcg\",\"resolution\":\"FalsePositive\",\"fileCount\":1331750565,\"suspectFiles\":[{},{},{}]},{\"extension\":\"otiowlxteqd\",\"resolution\":\"FalsePositive\",\"fileCount\":857680137,\"suspectFiles\":[{},{},{},{}]},{\"extension\":\"ukranblw\",\"resolution\":\"FalsePositive\",\"fileCount\":1668357779,\"suspectFiles\":[{}]}],\"provisioningState\":\"zgygqwahoiulwgni\"},\"id\":\"rglvaw\",\"name\":\"wzdufypivlsbb\",\"type\":\"pmcubkmifoxxkub\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.ransomwareReports() - .list("chlzvfi", "tnkjjwgcwnphb", "gfyrtogmhmjpjsc", "fp", com.azure.core.util.Context.NONE); + .list("utznabaobns", "ujdjltymkmvg", "ihywartspph", "ixkykxd", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListTests.java index a7c1ff1715be..be8cab0453bf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListTests.java @@ -12,8 +12,8 @@ public final class RansomwareReportsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RansomwareReportsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"eventTime\":\"2021-02-17T18:59:40Z\",\"state\":\"Resolved\",\"severity\":\"None\",\"clearedCount\":1523928061,\"reportedCount\":1977365948,\"suspects\":[{\"extension\":\"zhonnxkrlgnyhmo\",\"resolution\":\"PotentialThreat\",\"fileCount\":954408257,\"suspectFiles\":[{},{}]}],\"provisioningState\":\"rrghxjbdhqxvcxgf\"},\"id\":\"dsofbshrns\",\"name\":\"buswdvzyy\",\"type\":\"ycnunvjsrtk\"},{\"properties\":{\"eventTime\":\"2021-01-10T15:25:32Z\",\"state\":\"Active\",\"severity\":\"Moderate\",\"clearedCount\":610729333,\"reportedCount\":1997575188,\"suspects\":[{\"extension\":\"xdyuxzejnt\",\"resolution\":\"FalsePositive\",\"fileCount\":1675293509,\"suspectFiles\":[{}]},{\"extension\":\"l\",\"resolution\":\"PotentialThreat\",\"fileCount\":1456439071,\"suspectFiles\":[{},{},{}]},{\"extension\":\"qmi\",\"resolution\":\"PotentialThreat\",\"fileCount\":1222923392,\"suspectFiles\":[{},{},{}]}],\"provisioningState\":\"f\"},\"id\":\"aomtbghhavgrvkff\",\"name\":\"vjzhpjbib\",\"type\":\"jmfxumvf\"}],\"nextLink\":\"uyovw\"}") + "{\"value\":[{\"properties\":{\"eventTime\":\"2021-07-06T23:25:37Z\",\"state\":\"Active\",\"severity\":\"Moderate\",\"clearedCount\":2072620851,\"reportedCount\":539949394,\"suspects\":[{\"extension\":\"xkmcwaekrrjre\",\"resolution\":\"PotentialThreat\",\"fileCount\":1629743975,\"suspectFiles\":[{}]},{\"extension\":\"hjglikk\",\"resolution\":\"PotentialThreat\",\"fileCount\":1050181050,\"suspectFiles\":[{}]},{\"extension\":\"pvuzlmv\",\"resolution\":\"FalsePositive\",\"fileCount\":1732171023,\"suspectFiles\":[{},{},{},{}]},{\"extension\":\"lcrpw\",\"resolution\":\"PotentialThreat\",\"fileCount\":879908926,\"suspectFiles\":[{},{}]}],\"provisioningState\":\"brnjwmw\"},\"id\":\"nbsazejjoqkag\",\"name\":\"hsxttaugzxnf\",\"type\":\"azpxdtnkdmkqjjl\"}],\"nextLink\":\"envrkpyouaibrebq\"}") .toObject(RansomwareReportsList.class); - Assertions.assertEquals("uyovw", model.nextLink()); + Assertions.assertEquals("envrkpyouaibrebq", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareSuspectsClearRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareSuspectsClearRequestTests.java index 3b6a3ede2c8c..6bb2da05ef24 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareSuspectsClearRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareSuspectsClearRequestTests.java @@ -14,20 +14,19 @@ public final class RansomwareSuspectsClearRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RansomwareSuspectsClearRequest model = BinaryData - .fromString( - "{\"resolution\":\"FalsePositive\",\"extensions\":[\"kfezzxscyhwz\",\"g\",\"rujbzbomvzzbtdc\",\"vp\"]}") + .fromString("{\"resolution\":\"FalsePositive\",\"extensions\":[\"sj\",\"ixqtn\",\"ttezlw\",\"ffiakp\"]}") .toObject(RansomwareSuspectsClearRequest.class); Assertions.assertEquals(RansomwareSuspectResolution.FALSE_POSITIVE, model.resolution()); - Assertions.assertEquals("kfezzxscyhwz", model.extensions().get(0)); + Assertions.assertEquals("sj", model.extensions().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RansomwareSuspectsClearRequest model = new RansomwareSuspectsClearRequest().withResolution(RansomwareSuspectResolution.FALSE_POSITIVE) - .withExtensions(Arrays.asList("kfezzxscyhwz", "g", "rujbzbomvzzbtdc", "vp")); + .withExtensions(Arrays.asList("sj", "ixqtn", "ttezlw", "ffiakp")); model = BinaryData.fromObject(model).toObject(RansomwareSuspectsClearRequest.class); Assertions.assertEquals(RansomwareSuspectResolution.FALSE_POSITIVE, model.resolution()); - Assertions.assertEquals("kfezzxscyhwz", model.extensions().get(0)); + Assertions.assertEquals("sj", model.extensions().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareSuspectsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareSuspectsTests.java index d99421f9fb7c..34341b01a1e7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareSuspectsTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareSuspectsTests.java @@ -11,7 +11,7 @@ public final class RansomwareSuspectsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RansomwareSuspects model = BinaryData.fromString( - "{\"extension\":\"tsbwtovvtgse\",\"resolution\":\"PotentialThreat\",\"fileCount\":405729519,\"suspectFiles\":[{\"suspectFileName\":\"qknp\",\"fileTimestamp\":\"2021-03-12T06:20:37Z\"},{\"suspectFileName\":\"epttwqmsniff\",\"fileTimestamp\":\"2021-10-31T18:45:45Z\"},{\"suspectFileName\":\"nrojlpijnkr\",\"fileTimestamp\":\"2020-12-27T04:23:31Z\"},{\"suspectFileName\":\"dhcrati\",\"fileTimestamp\":\"2021-03-09T16:30:01Z\"}]}") + "{\"extension\":\"pwijnhy\",\"resolution\":\"PotentialThreat\",\"fileCount\":175357143,\"suspectFiles\":[{\"suspectFileName\":\"bfvoowvrv\",\"fileTimestamp\":\"2021-05-22T15:30:25Z\"}]}") .toObject(RansomwareSuspects.class); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java index f596571656f2..72c1ed9d88d7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java @@ -12,9 +12,9 @@ public final class RegionInfoAvailabilityZoneMappingsItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegionInfoAvailabilityZoneMappingsItem model - = BinaryData.fromString("{\"availabilityZone\":\"podaq\",\"isAvailable\":false}") + = BinaryData.fromString("{\"availabilityZone\":\"mdy\",\"isAvailable\":false}") .toObject(RegionInfoAvailabilityZoneMappingsItem.class); - Assertions.assertEquals("podaq", model.availabilityZone()); + Assertions.assertEquals("mdy", model.availabilityZone()); Assertions.assertFalse(model.isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java index 9f6bfddd43ab..d46cc6ff3cf8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java @@ -13,10 +13,11 @@ public final class RegionInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegionInfoInner model = BinaryData.fromString( - "{\"storageToNetworkProximity\":\"T1\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"brkwpzdqt\",\"isAvailable\":true}]}") + "{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"awfvjlboxqvkjl\",\"isAvailable\":false}]}") .toObject(RegionInfoInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1, model.storageToNetworkProximity()); - Assertions.assertEquals("brkwpzdqt", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertTrue(model.availabilityZoneMappings().get(0).isAvailable()); + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, + model.storageToNetworkProximity()); + Assertions.assertEquals("awfvjlboxqvkjl", model.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertFalse(model.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java index 54b977a14d00..e2e8260d9309 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java @@ -13,10 +13,10 @@ public final class RegionInfoResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegionInfoResourceInner model = BinaryData.fromString( - "{\"properties\":{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"mczjkm\",\"isAvailable\":true},{\"availabilityZone\":\"ujxsglhsr\",\"isAvailable\":true},{\"availabilityZone\":\"jylmbkzudnigr\",\"isAvailable\":false}]},\"id\":\"tjewlpxuzzj\",\"name\":\"nrefqyh\",\"type\":\"otoihiqa\"}") + "{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"zdmovzv\",\"isAvailable\":true},{\"availabilityZone\":\"wzqa\",\"isAvailable\":false},{\"availabilityZone\":\"z\",\"isAvailable\":false},{\"availabilityZone\":\"laecxndticok\",\"isAvailable\":true}]},\"id\":\"lqtmldgxob\",\"name\":\"irclnpk\",\"type\":\"iayz\"}") .toObject(RegionInfoResourceInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2, model.storageToNetworkProximity()); - Assertions.assertEquals("mczjkm", model.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2, model.storageToNetworkProximity()); + Assertions.assertEquals("zdmovzv", model.availabilityZoneMappings().get(0).availabilityZone()); Assertions.assertTrue(model.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java index 1e4ef79b988a..b41d1f466b4a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java @@ -13,12 +13,12 @@ public final class RegionInfosListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegionInfosList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"T1AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"eb\",\"isAvailable\":true},{\"availabilityZone\":\"bmoichd\",\"isAvailable\":true}]},\"id\":\"pubntnbatz\",\"name\":\"iqsowsaaelc\",\"type\":\"ttcjuhplrvkmjc\"},{\"properties\":{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"ggcvk\",\"isAvailable\":true},{\"availabilityZone\":\"zrzbjpsfxs\",\"isAvailable\":true},{\"availabilityZone\":\"lvt\",\"isAvailable\":false},{\"availabilityZone\":\"bwidql\",\"isAvailable\":false}]},\"id\":\"oveofizrvjfnmj\",\"name\":\"vlwyzg\",\"type\":\"blkujrllfojuidjp\"}],\"nextLink\":\"yjucejikzoeo\"}") + "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"nraauzz\",\"isAvailable\":true},{\"availabilityZone\":\"zysdzh\",\"isAvailable\":true},{\"availabilityZone\":\"vaiqyuvvf\",\"isAvailable\":false}]},\"id\":\"hhqyi\",\"name\":\"vyl\",\"type\":\"uyav\"},{\"properties\":{\"storageToNetworkProximity\":\"T2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"ttijfybvpoekrs\",\"isAvailable\":true},{\"availabilityZone\":\"dhuzqgnjdgk\",\"isAvailable\":false},{\"availabilityZone\":\"liqhzvhx\",\"isAvailable\":false},{\"availabilityZone\":\"tkubotppn\",\"isAvailable\":false}]},\"id\":\"xhihfrbbcevqagtl\",\"name\":\"dhlfkqojpykvgt\",\"type\":\"dcnifmz\"},{\"properties\":{\"storageToNetworkProximity\":\"T2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"nysuxmprafwgckh\",\"isAvailable\":false}]},\"id\":\"d\",\"name\":\"ffwafq\",\"type\":\"oudaspavehhrvk\"},{\"properties\":{\"storageToNetworkProximity\":\"T1\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"dhcxgkmoy\",\"isAvailable\":false},{\"availabilityZone\":\"uibhmfdnbzydvfv\",\"isAvailable\":false}]},\"id\":\"aeoisrvh\",\"name\":\"gorf\",\"type\":\"ukiscvwmzhw\"}],\"nextLink\":\"efaxvxilc\"}") .toObject(RegionInfosList.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_ACROSS_T2, + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, model.value().get(0).storageToNetworkProximity()); - Assertions.assertEquals("eb", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertEquals("nraauzz", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); Assertions.assertTrue(model.value().get(0).availabilityZoneMappings().get(0).isAvailable()); - Assertions.assertEquals("yjucejikzoeo", model.nextLink()); + Assertions.assertEquals("efaxvxilc", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java index a6c7f7919418..91a33e6d5402 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java @@ -13,23 +13,23 @@ public final class ResourceNameAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceNameAvailabilityRequest model = BinaryData.fromString( - "{\"name\":\"zlpdwwex\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes\",\"resourceGroup\":\"zvlazipbhpwvqsgn\"}") + "{\"name\":\"wsldrizetpwbr\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes\",\"resourceGroup\":\"llibphbqzmizak\"}") .toObject(ResourceNameAvailabilityRequest.class); - Assertions.assertEquals("zlpdwwex", model.name()); + Assertions.assertEquals("wsldrizetpwbr", model.name()); Assertions.assertEquals(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES, model.type()); - Assertions.assertEquals("zvlazipbhpwvqsgn", model.resourceGroup()); + Assertions.assertEquals("llibphbqzmizak", model.resourceGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceNameAvailabilityRequest model = new ResourceNameAvailabilityRequest().withName("zlpdwwex") + ResourceNameAvailabilityRequest model = new ResourceNameAvailabilityRequest().withName("wsldrizetpwbr") .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES) - .withResourceGroup("zvlazipbhpwvqsgn"); + .withResourceGroup("llibphbqzmizak"); model = BinaryData.fromObject(model).toObject(ResourceNameAvailabilityRequest.class); - Assertions.assertEquals("zlpdwwex", model.name()); + Assertions.assertEquals("wsldrizetpwbr", model.name()); Assertions.assertEquals(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES, model.type()); - Assertions.assertEquals("zvlazipbhpwvqsgn", model.resourceGroup()); + Assertions.assertEquals("llibphbqzmizak", model.resourceGroup()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SecretPasswordIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SecretPasswordIdentityTests.java deleted file mode 100644 index 884b1ce9f399..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SecretPasswordIdentityTests.java +++ /dev/null @@ -1,26 +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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.SecretPasswordIdentity; -import org.junit.jupiter.api.Assertions; - -public final class SecretPasswordIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecretPasswordIdentity model - = BinaryData.fromString("{\"principalId\":\"ddbhf\",\"userAssignedIdentity\":\"fpazjzoywjxhpd\"}") - .toObject(SecretPasswordIdentity.class); - Assertions.assertEquals("fpazjzoywjxhpd", model.userAssignedIdentity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecretPasswordIdentity model = new SecretPasswordIdentity().withUserAssignedIdentity("fpazjzoywjxhpd"); - model = BinaryData.fromObject(model).toObject(SecretPasswordIdentity.class); - Assertions.assertEquals("fpazjzoywjxhpd", model.userAssignedIdentity()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SmbSettingsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SmbSettingsTests.java index 1c83e9b36849..6c51bc3761fd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SmbSettingsTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SmbSettingsTests.java @@ -15,21 +15,21 @@ public final class SmbSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SmbSettings model = BinaryData.fromString( - "{\"smbEncryption\":\"Disabled\",\"smbAccessBasedEnumeration\":\"Disabled\",\"smbNonBrowsable\":\"Disabled\"}") + "{\"smbEncryption\":\"Enabled\",\"smbAccessBasedEnumeration\":\"Enabled\",\"smbNonBrowsable\":\"Disabled\"}") .toObject(SmbSettings.class); - Assertions.assertEquals(SmbEncryptionState.DISABLED, model.smbEncryption()); - Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, model.smbAccessBasedEnumeration()); + Assertions.assertEquals(SmbEncryptionState.ENABLED, model.smbEncryption()); + Assertions.assertEquals(SmbAccessBasedEnumeration.ENABLED, model.smbAccessBasedEnumeration()); Assertions.assertEquals(SmbNonBrowsable.DISABLED, model.smbNonBrowsable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SmbSettings model = new SmbSettings().withSmbEncryption(SmbEncryptionState.DISABLED) - .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED) + SmbSettings model = new SmbSettings().withSmbEncryption(SmbEncryptionState.ENABLED) + .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.ENABLED) .withSmbNonBrowsable(SmbNonBrowsable.DISABLED); model = BinaryData.fromObject(model).toObject(SmbSettings.class); - Assertions.assertEquals(SmbEncryptionState.DISABLED, model.smbEncryption()); - Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, model.smbAccessBasedEnumeration()); + Assertions.assertEquals(SmbEncryptionState.ENABLED, model.smbEncryption()); + Assertions.assertEquals(SmbAccessBasedEnumeration.ENABLED, model.smbAccessBasedEnumeration()); Assertions.assertEquals(SmbNonBrowsable.DISABLED, model.smbNonBrowsable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java index 52566fbef665..82c691900c58 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java @@ -12,15 +12,15 @@ public final class SnapshotInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotInner model = BinaryData.fromString( - "{\"properties\":{\"snapshotId\":\"nedgfbc\",\"created\":\"2021-07-29T10:41:12Z\",\"provisioningState\":\"q\"},\"location\":\"pkeqdcvdrhvoo\",\"id\":\"otbobzdopcj\",\"name\":\"vnhdldwmgxcxr\",\"type\":\"lpmutwuoegrpkhj\"}") + "{\"properties\":{\"snapshotId\":\"cffgdkzzewk\",\"created\":\"2021-02-28T03:19:05Z\",\"provisioningState\":\"crailvpn\"},\"location\":\"pfuflrw\",\"id\":\"hdlxyjrxsagafcn\",\"name\":\"hgw\",\"type\":\"apnedgfbcvkc\"}") .toObject(SnapshotInner.class); - Assertions.assertEquals("pkeqdcvdrhvoo", model.location()); + Assertions.assertEquals("pfuflrw", model.location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SnapshotInner model = new SnapshotInner().withLocation("pkeqdcvdrhvoo"); + SnapshotInner model = new SnapshotInner().withLocation("pfuflrw"); model = BinaryData.fromObject(model).toObject(SnapshotInner.class); - Assertions.assertEquals("pkeqdcvdrhvoo", model.location()); + Assertions.assertEquals("pfuflrw", model.location()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java index 4c35a078e69e..27faf66faf14 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java @@ -27,7 +27,7 @@ public final class SnapshotPoliciesCreateWithResponseMockTests { @Test public void testCreateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1551206965,\"minute\":1049623274,\"usedBytes\":1558850688915356045},\"dailySchedule\":{\"snapshotsToKeep\":1585264538,\"hour\":1470824559,\"minute\":1202604969,\"usedBytes\":1218440597443022768},\"weeklySchedule\":{\"snapshotsToKeep\":996698069,\"day\":\"ppc\",\"hour\":1588619588,\"minute\":2061950840,\"usedBytes\":1281520358620814891},\"monthlySchedule\":{\"snapshotsToKeep\":861229573,\"daysOfMonth\":\"xyfukzxuizhyhn\",\"hour\":215122655,\"minute\":1942019203,\"usedBytes\":6858877587731651412},\"enabled\":true,\"provisioningState\":\"iubxdukec\"},\"etag\":\"dazvdhctm\",\"location\":\"os\",\"tags\":{\"ofkbtf\":\"blnsntrpcaqk\",\"ezyquw\":\"hklbnldpvcbh\",\"brruyuuatv\":\"sqxutr\"},\"id\":\"mbjwcolbmxlb\",\"name\":\"w\",\"type\":\"pcpahprzrvxhmtf\"}"; + = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1248753250,\"minute\":442073665,\"usedBytes\":6294969879899092359},\"dailySchedule\":{\"snapshotsToKeep\":652543826,\"hour\":29448951,\"minute\":516078825,\"usedBytes\":1726538896857815587},\"weeklySchedule\":{\"snapshotsToKeep\":1532018074,\"day\":\"zjcpeogk\",\"hour\":1113433595,\"minute\":1612723385,\"usedBytes\":7213187921154412641},\"monthlySchedule\":{\"snapshotsToKeep\":1363231330,\"daysOfMonth\":\"hfhpfp\",\"hour\":359970,\"minute\":1143411594,\"usedBytes\":1251813503563862724},\"enabled\":false,\"provisioningState\":\"dulontacn\"},\"etag\":\"w\",\"location\":\"htuevrhrljy\",\"tags\":{\"duugwbsre\":\"wxhn\",\"nlvhhtklnvnafvv\":\"rfqkfuar\",\"lcqxypokk\":\"yfedevjbo\",\"zng\":\"minqcym\"},\"id\":\"bdxxe\",\"name\":\"unin\",\"type\":\"udbchaqdtv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,51 +37,51 @@ public void testCreateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SnapshotPolicy response = manager.snapshotPolicies() - .define("wrxwhydtl") - .withRegion("fnjyix") - .withExistingNetAppAccount("qodkadppyibngql", "d") - .withTags(mapOf("mzznvalqjrhuzgfx", "ratqxmbjro", "usllywpvtiotz", "njt", "yfqiuasig", "pdbollg", "grmtqjk", - "owsocnequygdjbo")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1122183962) - .withMinute(1449134162) - .withUsedBytes(2508627759141306747L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1437535025) - .withHour(171157881) - .withMinute(1571331551) - .withUsedBytes(7246445823299312308L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(100278507) - .withDay("lnwy") - .withHour(1884184924) - .withMinute(76224736) - .withUsedBytes(8530716350916381610L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(318100229) - .withDaysOfMonth("kltrfow") - .withHour(930453402) - .withMinute(1156069470) - .withUsedBytes(8392049714748412282L)) + .define("usqogsfikayia") + .withRegion("rxhtvso") + .withExistingNetAppAccount("sysidfvclglxnf", "ijtk") + .withTags( + mapOf("ruuuybnch", "wntsjgqrsxy", "qyggagfl", "szizoyuelyetndnb", "byrplrohkpig", "lgmtrwahzjmucf")) + .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1168191195) + .withMinute(149373131) + .withUsedBytes(195909977127480530L)) + .withDailySchedule(new DailySchedule().withSnapshotsToKeep(650202313) + .withHour(1013895282) + .withMinute(9701584) + .withUsedBytes(8625465068511416962L)) + .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1177494573) + .withDay("qhjpenuygbqe") + .withHour(2014474860) + .withMinute(583877472) + .withUsedBytes(6823653244752792674L)) + .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(2041307623) + .withDaysOfMonth("lguaucm") + .withHour(1412442415) + .withMinute(1155433105) + .withUsedBytes(5670018716890506580L)) .withEnabled(false) .create(); - Assertions.assertEquals("os", response.location()); - Assertions.assertEquals("blnsntrpcaqk", response.tags().get("ofkbtf")); - Assertions.assertEquals(1551206965, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1049623274, response.hourlySchedule().minute()); - Assertions.assertEquals(1558850688915356045L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(1585264538, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1470824559, response.dailySchedule().hour()); - Assertions.assertEquals(1202604969, response.dailySchedule().minute()); - Assertions.assertEquals(1218440597443022768L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(996698069, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("ppc", response.weeklySchedule().day()); - Assertions.assertEquals(1588619588, response.weeklySchedule().hour()); - Assertions.assertEquals(2061950840, response.weeklySchedule().minute()); - Assertions.assertEquals(1281520358620814891L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(861229573, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("xyfukzxuizhyhn", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(215122655, response.monthlySchedule().hour()); - Assertions.assertEquals(1942019203, response.monthlySchedule().minute()); - Assertions.assertEquals(6858877587731651412L, response.monthlySchedule().usedBytes()); - Assertions.assertTrue(response.enabled()); + Assertions.assertEquals("htuevrhrljy", response.location()); + Assertions.assertEquals("wxhn", response.tags().get("duugwbsre")); + Assertions.assertEquals(1248753250, response.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(442073665, response.hourlySchedule().minute()); + Assertions.assertEquals(6294969879899092359L, response.hourlySchedule().usedBytes()); + Assertions.assertEquals(652543826, response.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(29448951, response.dailySchedule().hour()); + Assertions.assertEquals(516078825, response.dailySchedule().minute()); + Assertions.assertEquals(1726538896857815587L, response.dailySchedule().usedBytes()); + Assertions.assertEquals(1532018074, response.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("zjcpeogk", response.weeklySchedule().day()); + Assertions.assertEquals(1113433595, response.weeklySchedule().hour()); + Assertions.assertEquals(1612723385, response.weeklySchedule().minute()); + Assertions.assertEquals(7213187921154412641L, response.weeklySchedule().usedBytes()); + Assertions.assertEquals(1363231330, response.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("hfhpfp", response.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(359970, response.monthlySchedule().hour()); + Assertions.assertEquals(1143411594, response.monthlySchedule().minute()); + Assertions.assertEquals(1251813503563862724L, response.monthlySchedule().usedBytes()); + Assertions.assertFalse(response.enabled()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java index e4d949b49378..547075a99c10 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.snapshotPolicies().delete("mqyjgy", "zulo", "saeuzanhsfnhsenw", com.azure.core.util.Context.NONE); + manager.snapshotPolicies().delete("aqehg", "dohzjq", "tu", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java index aa9a2909362f..23b7e2e5598a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SnapshotPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1593194036,\"minute\":1631854769,\"usedBytes\":3059638321741078653},\"dailySchedule\":{\"snapshotsToKeep\":1084900023,\"hour\":1930732264,\"minute\":480995130,\"usedBytes\":2481321484733061545},\"weeklySchedule\":{\"snapshotsToKeep\":461124348,\"day\":\"mnwagltbxoe\",\"hour\":1187567269,\"minute\":558021080,\"usedBytes\":7706504992793634263},\"monthlySchedule\":{\"snapshotsToKeep\":2090782381,\"daysOfMonth\":\"vqdbpbhfck\",\"hour\":1623700642,\"minute\":1080856034,\"usedBytes\":218516695774775441},\"enabled\":false,\"provisioningState\":\"hddubbnqfbl\"},\"etag\":\"alehpav\",\"location\":\"ugiqjtiogqg\",\"tags\":{\"iygspnbonhpczyk\":\"nictteajo\"},\"id\":\"ktpv\",\"name\":\"xqcsehch\",\"type\":\"hufmpq\"}"; + = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":520956012,\"minute\":1575759341,\"usedBytes\":2616370626436727161},\"dailySchedule\":{\"snapshotsToKeep\":1835022726,\"hour\":1860426462,\"minute\":1259433506,\"usedBytes\":6649731725924828463},\"weeklySchedule\":{\"snapshotsToKeep\":1679596835,\"day\":\"fgf\",\"hour\":975113921,\"minute\":87564439,\"usedBytes\":4532159263217364403},\"monthlySchedule\":{\"snapshotsToKeep\":726955046,\"daysOfMonth\":\"ypococtfjgtixr\",\"hour\":868896591,\"minute\":97520193,\"usedBytes\":7262703039995760177},\"enabled\":false,\"provisioningState\":\"uowolbauiropi\"},\"etag\":\"szonwpngajinn\",\"location\":\"jawrtmjfjmyc\",\"tags\":{\"lusfnrdtjxtxrdcq\":\"zhcoxovnekhe\",\"uslvyjtcvuwkasi\":\"jvidttge\",\"tuqfecjxeygtu\":\"iesfuug\"},\"id\":\"xu\",\"name\":\"cbuewmrswnjlxuz\",\"type\":\"hwpusxj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,28 +31,28 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SnapshotPolicy response = manager.snapshotPolicies() - .getWithResponse("nokcv", "lubses", "vcuartrhun", com.azure.core.util.Context.NONE) + .getWithResponse("juahokqto", "kauxof", "hfphwpnulaiywze", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ugiqjtiogqg", response.location()); - Assertions.assertEquals("nictteajo", response.tags().get("iygspnbonhpczyk")); - Assertions.assertEquals(1593194036, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1631854769, response.hourlySchedule().minute()); - Assertions.assertEquals(3059638321741078653L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(1084900023, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1930732264, response.dailySchedule().hour()); - Assertions.assertEquals(480995130, response.dailySchedule().minute()); - Assertions.assertEquals(2481321484733061545L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(461124348, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("mnwagltbxoe", response.weeklySchedule().day()); - Assertions.assertEquals(1187567269, response.weeklySchedule().hour()); - Assertions.assertEquals(558021080, response.weeklySchedule().minute()); - Assertions.assertEquals(7706504992793634263L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(2090782381, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("vqdbpbhfck", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1623700642, response.monthlySchedule().hour()); - Assertions.assertEquals(1080856034, response.monthlySchedule().minute()); - Assertions.assertEquals(218516695774775441L, response.monthlySchedule().usedBytes()); + Assertions.assertEquals("jawrtmjfjmyc", response.location()); + Assertions.assertEquals("zhcoxovnekhe", response.tags().get("lusfnrdtjxtxrdcq")); + Assertions.assertEquals(520956012, response.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(1575759341, response.hourlySchedule().minute()); + Assertions.assertEquals(2616370626436727161L, response.hourlySchedule().usedBytes()); + Assertions.assertEquals(1835022726, response.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(1860426462, response.dailySchedule().hour()); + Assertions.assertEquals(1259433506, response.dailySchedule().minute()); + Assertions.assertEquals(6649731725924828463L, response.dailySchedule().usedBytes()); + Assertions.assertEquals(1679596835, response.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("fgf", response.weeklySchedule().day()); + Assertions.assertEquals(975113921, response.weeklySchedule().hour()); + Assertions.assertEquals(87564439, response.weeklySchedule().minute()); + Assertions.assertEquals(4532159263217364403L, response.weeklySchedule().usedBytes()); + Assertions.assertEquals(726955046, response.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("ypococtfjgtixr", response.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(868896591, response.monthlySchedule().hour()); + Assertions.assertEquals(97520193, response.monthlySchedule().minute()); + Assertions.assertEquals(7262703039995760177L, response.monthlySchedule().usedBytes()); Assertions.assertFalse(response.enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java index ee4fececbf31..629ca4049c2b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java @@ -22,7 +22,7 @@ public final class SnapshotPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":249916804,\"minute\":1366169332,\"usedBytes\":152409327841936561},\"dailySchedule\":{\"snapshotsToKeep\":1778291019,\"hour\":1870712650,\"minute\":1258720981,\"usedBytes\":4552522828124792164},\"weeklySchedule\":{\"snapshotsToKeep\":1453866810,\"day\":\"azcvjyt\",\"hour\":323558985,\"minute\":1822368385,\"usedBytes\":8420377981064941821},\"monthlySchedule\":{\"snapshotsToKeep\":826900900,\"daysOfMonth\":\"ytxtdgu\",\"hour\":1378257495,\"minute\":1753150962,\"usedBytes\":3830512008860247830},\"enabled\":false,\"provisioningState\":\"youambewr\"},\"etag\":\"wmowegmmute\",\"location\":\"eyguq\",\"tags\":{\"jwaiuf\":\"jiitnspxlzdesygr\",\"aybfu\":\"n\"},\"id\":\"qfrojsydgrhyd\",\"name\":\"ygywe\",\"type\":\"skieca\"}]}"; + = "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":612007503,\"minute\":2085427407,\"usedBytes\":9158547227414632311},\"dailySchedule\":{\"snapshotsToKeep\":1145439736,\"hour\":657592284,\"minute\":1395211030,\"usedBytes\":418211033576127424},\"weeklySchedule\":{\"snapshotsToKeep\":1539697071,\"day\":\"lfgtdysnaquflqbc\",\"hour\":862236448,\"minute\":955415760,\"usedBytes\":7268222226283775871},\"monthlySchedule\":{\"snapshotsToKeep\":1644832574,\"daysOfMonth\":\"zeqyjleziun\",\"hour\":822376850,\"minute\":105350426,\"usedBytes\":8179356734367421794},\"enabled\":true,\"provisioningState\":\"eg\"},\"etag\":\"mlbnseq\",\"location\":\"jjvpilguooqja\",\"tags\":{\"hrtdtpdelq\":\"itgueiookjbs\"},\"id\":\"cslmotoebnfxo\",\"name\":\"vcjkgd\",\"type\":\"razftxejwabmdujt\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,27 +32,27 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.snapshotPolicies().list("hpzfngqj", "lidftujwjj", com.azure.core.util.Context.NONE); + = manager.snapshotPolicies().list("o", "gebx", com.azure.core.util.Context.NONE); - Assertions.assertEquals("eyguq", response.iterator().next().location()); - Assertions.assertEquals("jiitnspxlzdesygr", response.iterator().next().tags().get("jwaiuf")); - Assertions.assertEquals(249916804, response.iterator().next().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1366169332, response.iterator().next().hourlySchedule().minute()); - Assertions.assertEquals(152409327841936561L, response.iterator().next().hourlySchedule().usedBytes()); - Assertions.assertEquals(1778291019, response.iterator().next().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1870712650, response.iterator().next().dailySchedule().hour()); - Assertions.assertEquals(1258720981, response.iterator().next().dailySchedule().minute()); - Assertions.assertEquals(4552522828124792164L, response.iterator().next().dailySchedule().usedBytes()); - Assertions.assertEquals(1453866810, response.iterator().next().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("azcvjyt", response.iterator().next().weeklySchedule().day()); - Assertions.assertEquals(323558985, response.iterator().next().weeklySchedule().hour()); - Assertions.assertEquals(1822368385, response.iterator().next().weeklySchedule().minute()); - Assertions.assertEquals(8420377981064941821L, response.iterator().next().weeklySchedule().usedBytes()); - Assertions.assertEquals(826900900, response.iterator().next().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("ytxtdgu", response.iterator().next().monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1378257495, response.iterator().next().monthlySchedule().hour()); - Assertions.assertEquals(1753150962, response.iterator().next().monthlySchedule().minute()); - Assertions.assertEquals(3830512008860247830L, response.iterator().next().monthlySchedule().usedBytes()); - Assertions.assertFalse(response.iterator().next().enabled()); + Assertions.assertEquals("jjvpilguooqja", response.iterator().next().location()); + Assertions.assertEquals("itgueiookjbs", response.iterator().next().tags().get("hrtdtpdelq")); + Assertions.assertEquals(612007503, response.iterator().next().hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(2085427407, response.iterator().next().hourlySchedule().minute()); + Assertions.assertEquals(9158547227414632311L, response.iterator().next().hourlySchedule().usedBytes()); + Assertions.assertEquals(1145439736, response.iterator().next().dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(657592284, response.iterator().next().dailySchedule().hour()); + Assertions.assertEquals(1395211030, response.iterator().next().dailySchedule().minute()); + Assertions.assertEquals(418211033576127424L, response.iterator().next().dailySchedule().usedBytes()); + Assertions.assertEquals(1539697071, response.iterator().next().weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("lfgtdysnaquflqbc", response.iterator().next().weeklySchedule().day()); + Assertions.assertEquals(862236448, response.iterator().next().weeklySchedule().hour()); + Assertions.assertEquals(955415760, response.iterator().next().weeklySchedule().minute()); + Assertions.assertEquals(7268222226283775871L, response.iterator().next().weeklySchedule().usedBytes()); + Assertions.assertEquals(1644832574, response.iterator().next().monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("zeqyjleziun", response.iterator().next().monthlySchedule().daysOfMonth()); + Assertions.assertEquals(822376850, response.iterator().next().monthlySchedule().hour()); + Assertions.assertEquals(105350426, response.iterator().next().monthlySchedule().minute()); + Assertions.assertEquals(8179356734367421794L, response.iterator().next().monthlySchedule().usedBytes()); + Assertions.assertTrue(response.iterator().next().enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java index 0aa78fbab6f2..7fc72c3cf227 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java @@ -12,28 +12,28 @@ public final class SnapshotPoliciesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotPoliciesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":108895877,\"minute\":1925040131,\"usedBytes\":5726286891049833981},\"dailySchedule\":{\"snapshotsToKeep\":2127430069,\"hour\":742564082,\"minute\":1429248323,\"usedBytes\":1003132087876898428},\"weeklySchedule\":{\"snapshotsToKeep\":1199547484,\"day\":\"tchealmf\",\"hour\":149792642,\"minute\":895344141,\"usedBytes\":2951445315314991952},\"monthlySchedule\":{\"snapshotsToKeep\":712155204,\"daysOfMonth\":\"piohgwxrtfu\",\"hour\":301260567,\"minute\":484829518,\"usedBytes\":8172843567981740181},\"enabled\":false,\"provisioningState\":\"rvmnpkukghimdblx\"},\"etag\":\"imfnjhfjx\",\"location\":\"szkkfoqre\",\"tags\":{\"fjawneaivxwczel\":\"zi\",\"r\":\"c\",\"xbjhwuaanozjosph\":\"lsfeaenwabfatkld\",\"ag\":\"oulpjrv\"},\"id\":\"rvimjwosytxitcsk\",\"name\":\"cktqumiekkezzi\",\"type\":\"hlyfjhdgqgg\"},{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":248292806,\"minute\":1747128451,\"usedBytes\":5909328334374777052},\"dailySchedule\":{\"snapshotsToKeep\":277220596,\"hour\":1475802306,\"minute\":1233334035,\"usedBytes\":6620237582798297782},\"weeklySchedule\":{\"snapshotsToKeep\":48002498,\"day\":\"cyjmoadsuvarmy\",\"hour\":1450729079,\"minute\":981222471,\"usedBytes\":21711241553759485},\"monthlySchedule\":{\"snapshotsToKeep\":1682275079,\"daysOfMonth\":\"x\",\"hour\":1337445939,\"minute\":288329779,\"usedBytes\":4790240939770837417},\"enabled\":false,\"provisioningState\":\"kxkgymareqna\"},\"etag\":\"qugjhkycube\",\"location\":\"gssofwq\",\"tags\":{\"i\":\"alkrmn\"},\"id\":\"pxacqqudfn\",\"name\":\"yxbaaabjyvayf\",\"type\":\"imrzrtuzqog\"},{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1754113707,\"minute\":2124595132,\"usedBytes\":3349292627980189663},\"dailySchedule\":{\"snapshotsToKeep\":2065284911,\"hour\":1417389324,\"minute\":473497877,\"usedBytes\":856618567781642953},\"weeklySchedule\":{\"snapshotsToKeep\":1091496648,\"day\":\"soibjudpfrx\",\"hour\":1839855586,\"minute\":747190122,\"usedBytes\":1649253814789212920},\"monthlySchedule\":{\"snapshotsToKeep\":1672690714,\"daysOfMonth\":\"qbrqubpaxhexiili\",\"hour\":1833047663,\"minute\":1539937555,\"usedBytes\":62353218674748426},\"enabled\":false,\"provisioningState\":\"oaxoruzfgsqu\"},\"etag\":\"xrxxlep\",\"location\":\"amxjezwlw\",\"tags\":{\"atdooaojkniod\":\"uqlcvydy\",\"bw\":\"oo\",\"infwjlfltkacjve\":\"ujhemmsbvdkcrodt\"},\"id\":\"kdlfoa\",\"name\":\"ggkfpagaowpul\",\"type\":\"qblylsyxkqj\"}],\"nextLink\":\"jervtia\"}") + "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":980473752,\"minute\":740874462,\"usedBytes\":5279516661370439683},\"dailySchedule\":{\"snapshotsToKeep\":385897981,\"hour\":1130828460,\"minute\":518293394,\"usedBytes\":3768237640733727043},\"weeklySchedule\":{\"snapshotsToKeep\":817024636,\"day\":\"wq\",\"hour\":1018889547,\"minute\":1951861279,\"usedBytes\":416295343158305691},\"monthlySchedule\":{\"snapshotsToKeep\":669500000,\"daysOfMonth\":\"aayg\",\"hour\":2007823107,\"minute\":1689077175,\"usedBytes\":3318683648203687085},\"enabled\":false,\"provisioningState\":\"xrtfudxep\"},\"etag\":\"yqagvrvm\",\"location\":\"k\",\"tags\":{\"gwimfn\":\"himdbl\",\"mszkkfo\":\"hfjx\"},\"id\":\"rey\",\"name\":\"kzikfjawneaivxwc\",\"type\":\"elpcirelsfeaenwa\"},{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":737595664,\"minute\":463401012,\"usedBytes\":5606379961327556346},\"dailySchedule\":{\"snapshotsToKeep\":1025445351,\"hour\":868651284,\"minute\":435205940,\"usedBytes\":1846785403940913881},\"weeklySchedule\":{\"snapshotsToKeep\":1294061553,\"day\":\"hyoulpjr\",\"hour\":326673667,\"minute\":114988444,\"usedBytes\":7929823233181377327},\"monthlySchedule\":{\"snapshotsToKeep\":865448266,\"daysOfMonth\":\"sytxitcskfcktqum\",\"hour\":2056764824,\"minute\":344602824,\"usedBytes\":5669658247927404642},\"enabled\":true,\"provisioningState\":\"yf\"},\"etag\":\"dgqggebdu\",\"location\":\"g\",\"tags\":{\"fatpxllrxcyjmoa\":\"idb\",\"arm\":\"su\",\"rw\":\"wdmjsjqbjhhyx\",\"duhpk\":\"yc\"},\"id\":\"kgymareqnajxqug\",\"name\":\"hky\",\"type\":\"ubeddg\"},{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1063119881,\"minute\":1853639964,\"usedBytes\":4954333149944467067},\"dailySchedule\":{\"snapshotsToKeep\":1862326594,\"hour\":1473869810,\"minute\":1723578922,\"usedBytes\":5045179642883767359},\"weeklySchedule\":{\"snapshotsToKeep\":1400063393,\"day\":\"qudf\",\"hour\":1238431927,\"minute\":891607282,\"usedBytes\":5865744490528977328},\"monthlySchedule\":{\"snapshotsToKeep\":745184435,\"daysOfMonth\":\"ayffim\",\"hour\":1942204263,\"minute\":1007625802,\"usedBytes\":2754369051749669721},\"enabled\":true,\"provisioningState\":\"xnevfdnwn\"},\"etag\":\"ewzsyyceuzsoib\",\"location\":\"dpfrxtrthzvaytdw\",\"tags\":{\"vpdtiirqtdqoa\":\"rqubpaxhexiil\",\"eptra\":\"oruzfgsquyfxrxx\"},\"id\":\"xje\",\"name\":\"wlwnwxuqlcv\",\"type\":\"dy\"},{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1248229075,\"minute\":350928008,\"usedBytes\":6903803366514514016},\"dailySchedule\":{\"snapshotsToKeep\":1614496522,\"hour\":77495916,\"minute\":445064797,\"usedBytes\":9027749367936542516},\"weeklySchedule\":{\"snapshotsToKeep\":2091031438,\"day\":\"hemms\",\"hour\":1756222146,\"minute\":145685509,\"usedBytes\":5259241666780286117},\"monthlySchedule\":{\"snapshotsToKeep\":1740728179,\"daysOfMonth\":\"fw\",\"hour\":2087401910,\"minute\":1139569570,\"usedBytes\":9167541690912774024},\"enabled\":true,\"provisioningState\":\"f\"},\"etag\":\"lfoakg\",\"location\":\"fpagaowpulp\",\"tags\":{\"vti\":\"ylsyxkqjnsje\"},\"id\":\"gxsds\",\"name\":\"uem\",\"type\":\"sbzkf\"}],\"nextLink\":\"eyvpnqicvinvkj\"}") .toObject(SnapshotPoliciesList.class); - Assertions.assertEquals("szkkfoqre", model.value().get(0).location()); - Assertions.assertEquals("zi", model.value().get(0).tags().get("fjawneaivxwczel")); - Assertions.assertEquals(108895877, model.value().get(0).hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1925040131, model.value().get(0).hourlySchedule().minute()); - Assertions.assertEquals(5726286891049833981L, model.value().get(0).hourlySchedule().usedBytes()); - Assertions.assertEquals(2127430069, model.value().get(0).dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(742564082, model.value().get(0).dailySchedule().hour()); - Assertions.assertEquals(1429248323, model.value().get(0).dailySchedule().minute()); - Assertions.assertEquals(1003132087876898428L, model.value().get(0).dailySchedule().usedBytes()); - Assertions.assertEquals(1199547484, model.value().get(0).weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("tchealmf", model.value().get(0).weeklySchedule().day()); - Assertions.assertEquals(149792642, model.value().get(0).weeklySchedule().hour()); - Assertions.assertEquals(895344141, model.value().get(0).weeklySchedule().minute()); - Assertions.assertEquals(2951445315314991952L, model.value().get(0).weeklySchedule().usedBytes()); - Assertions.assertEquals(712155204, model.value().get(0).monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("piohgwxrtfu", model.value().get(0).monthlySchedule().daysOfMonth()); - Assertions.assertEquals(301260567, model.value().get(0).monthlySchedule().hour()); - Assertions.assertEquals(484829518, model.value().get(0).monthlySchedule().minute()); - Assertions.assertEquals(8172843567981740181L, model.value().get(0).monthlySchedule().usedBytes()); + Assertions.assertEquals("k", model.value().get(0).location()); + Assertions.assertEquals("himdbl", model.value().get(0).tags().get("gwimfn")); + Assertions.assertEquals(980473752, model.value().get(0).hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(740874462, model.value().get(0).hourlySchedule().minute()); + Assertions.assertEquals(5279516661370439683L, model.value().get(0).hourlySchedule().usedBytes()); + Assertions.assertEquals(385897981, model.value().get(0).dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(1130828460, model.value().get(0).dailySchedule().hour()); + Assertions.assertEquals(518293394, model.value().get(0).dailySchedule().minute()); + Assertions.assertEquals(3768237640733727043L, model.value().get(0).dailySchedule().usedBytes()); + Assertions.assertEquals(817024636, model.value().get(0).weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("wq", model.value().get(0).weeklySchedule().day()); + Assertions.assertEquals(1018889547, model.value().get(0).weeklySchedule().hour()); + Assertions.assertEquals(1951861279, model.value().get(0).weeklySchedule().minute()); + Assertions.assertEquals(416295343158305691L, model.value().get(0).weeklySchedule().usedBytes()); + Assertions.assertEquals(669500000, model.value().get(0).monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("aayg", model.value().get(0).monthlySchedule().daysOfMonth()); + Assertions.assertEquals(2007823107, model.value().get(0).monthlySchedule().hour()); + Assertions.assertEquals(1689077175, model.value().get(0).monthlySchedule().minute()); + Assertions.assertEquals(3318683648203687085L, model.value().get(0).monthlySchedule().usedBytes()); Assertions.assertFalse(model.value().get(0).enabled()); - Assertions.assertEquals("jervtia", model.nextLink()); + Assertions.assertEquals("eyvpnqicvinvkj", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java index e95105b8401d..bc5442e2924d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java @@ -18,72 +18,73 @@ public final class SnapshotPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1273171944,\"minute\":1584108796,\"usedBytes\":6172214466125881426},\"dailySchedule\":{\"snapshotsToKeep\":1226493160,\"hour\":822004718,\"minute\":1989622567,\"usedBytes\":456816387828721622},\"weeklySchedule\":{\"snapshotsToKeep\":2012667372,\"day\":\"iujwa\",\"hour\":1512461872,\"minute\":320018251,\"usedBytes\":4704412525137839440},\"monthlySchedule\":{\"snapshotsToKeep\":588625153,\"daysOfMonth\":\"erpqlpqwcciuqg\",\"hour\":1924773766,\"minute\":164113652,\"usedBytes\":878238904771000945},\"enabled\":false,\"provisioningState\":\"kuwhh\"},\"etag\":\"ykojoxafnndlpic\",\"location\":\"o\",\"tags\":{\"vvqfovljxyws\":\"cdyhbpkkpwdreqn\",\"yrs\":\"w\"},\"id\":\"dsytgadgvr\",\"name\":\"ea\",\"type\":\"neqn\"}") + "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1598005613,\"minute\":1083170526,\"usedBytes\":5889064558086386603},\"dailySchedule\":{\"snapshotsToKeep\":1838860649,\"hour\":11863753,\"minute\":1364703724,\"usedBytes\":5676956114589904637},\"weeklySchedule\":{\"snapshotsToKeep\":1397433575,\"day\":\"qgxy\",\"hour\":1746293745,\"minute\":1907336189,\"usedBytes\":7994634529123000792},\"monthlySchedule\":{\"snapshotsToKeep\":484454898,\"daysOfMonth\":\"cxozapvhelxp\",\"hour\":599775917,\"minute\":1207488512,\"usedBytes\":1729923694834862702},\"enabled\":false,\"provisioningState\":\"bcuejrjxgci\"},\"etag\":\"brh\",\"location\":\"xsdqrhzoymibmrqy\",\"tags\":{\"zdtmhrkwofy\":\"hwflu\",\"iwbwoenwashrtdtk\":\"voqacpiexpbt\",\"kulpiujwaasi\":\"nqxwbp\",\"qlpqwcciuq\":\"qiiobyuqer\"},\"id\":\"bdbutauvf\",\"name\":\"tkuwhhmhykojo\",\"type\":\"afnn\"}") .toObject(SnapshotPolicyInner.class); - Assertions.assertEquals("o", model.location()); - Assertions.assertEquals("cdyhbpkkpwdreqn", model.tags().get("vvqfovljxyws")); - Assertions.assertEquals(1273171944, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1584108796, model.hourlySchedule().minute()); - Assertions.assertEquals(6172214466125881426L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1226493160, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(822004718, model.dailySchedule().hour()); - Assertions.assertEquals(1989622567, model.dailySchedule().minute()); - Assertions.assertEquals(456816387828721622L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(2012667372, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("iujwa", model.weeklySchedule().day()); - Assertions.assertEquals(1512461872, model.weeklySchedule().hour()); - Assertions.assertEquals(320018251, model.weeklySchedule().minute()); - Assertions.assertEquals(4704412525137839440L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(588625153, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("erpqlpqwcciuqg", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1924773766, model.monthlySchedule().hour()); - Assertions.assertEquals(164113652, model.monthlySchedule().minute()); - Assertions.assertEquals(878238904771000945L, model.monthlySchedule().usedBytes()); + Assertions.assertEquals("xsdqrhzoymibmrqy", model.location()); + Assertions.assertEquals("hwflu", model.tags().get("zdtmhrkwofy")); + Assertions.assertEquals(1598005613, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(1083170526, model.hourlySchedule().minute()); + Assertions.assertEquals(5889064558086386603L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(1838860649, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(11863753, model.dailySchedule().hour()); + Assertions.assertEquals(1364703724, model.dailySchedule().minute()); + Assertions.assertEquals(5676956114589904637L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(1397433575, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("qgxy", model.weeklySchedule().day()); + Assertions.assertEquals(1746293745, model.weeklySchedule().hour()); + Assertions.assertEquals(1907336189, model.weeklySchedule().minute()); + Assertions.assertEquals(7994634529123000792L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(484454898, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("cxozapvhelxp", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(599775917, model.monthlySchedule().hour()); + Assertions.assertEquals(1207488512, model.monthlySchedule().minute()); + Assertions.assertEquals(1729923694834862702L, model.monthlySchedule().usedBytes()); Assertions.assertFalse(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SnapshotPolicyInner model = new SnapshotPolicyInner().withLocation("o") - .withTags(mapOf("vvqfovljxyws", "cdyhbpkkpwdreqn", "yrs", "w")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1273171944) - .withMinute(1584108796) - .withUsedBytes(6172214466125881426L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1226493160) - .withHour(822004718) - .withMinute(1989622567) - .withUsedBytes(456816387828721622L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(2012667372) - .withDay("iujwa") - .withHour(1512461872) - .withMinute(320018251) - .withUsedBytes(4704412525137839440L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(588625153) - .withDaysOfMonth("erpqlpqwcciuqg") - .withHour(1924773766) - .withMinute(164113652) - .withUsedBytes(878238904771000945L)) + SnapshotPolicyInner model = new SnapshotPolicyInner().withLocation("xsdqrhzoymibmrqy") + .withTags(mapOf("zdtmhrkwofy", "hwflu", "iwbwoenwashrtdtk", "voqacpiexpbt", "kulpiujwaasi", "nqxwbp", + "qlpqwcciuq", "qiiobyuqer")) + .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1598005613) + .withMinute(1083170526) + .withUsedBytes(5889064558086386603L)) + .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1838860649) + .withHour(11863753) + .withMinute(1364703724) + .withUsedBytes(5676956114589904637L)) + .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1397433575) + .withDay("qgxy") + .withHour(1746293745) + .withMinute(1907336189) + .withUsedBytes(7994634529123000792L)) + .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(484454898) + .withDaysOfMonth("cxozapvhelxp") + .withHour(599775917) + .withMinute(1207488512) + .withUsedBytes(1729923694834862702L)) .withEnabled(false); model = BinaryData.fromObject(model).toObject(SnapshotPolicyInner.class); - Assertions.assertEquals("o", model.location()); - Assertions.assertEquals("cdyhbpkkpwdreqn", model.tags().get("vvqfovljxyws")); - Assertions.assertEquals(1273171944, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1584108796, model.hourlySchedule().minute()); - Assertions.assertEquals(6172214466125881426L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1226493160, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(822004718, model.dailySchedule().hour()); - Assertions.assertEquals(1989622567, model.dailySchedule().minute()); - Assertions.assertEquals(456816387828721622L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(2012667372, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("iujwa", model.weeklySchedule().day()); - Assertions.assertEquals(1512461872, model.weeklySchedule().hour()); - Assertions.assertEquals(320018251, model.weeklySchedule().minute()); - Assertions.assertEquals(4704412525137839440L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(588625153, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("erpqlpqwcciuqg", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1924773766, model.monthlySchedule().hour()); - Assertions.assertEquals(164113652, model.monthlySchedule().minute()); - Assertions.assertEquals(878238904771000945L, model.monthlySchedule().usedBytes()); + Assertions.assertEquals("xsdqrhzoymibmrqy", model.location()); + Assertions.assertEquals("hwflu", model.tags().get("zdtmhrkwofy")); + Assertions.assertEquals(1598005613, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(1083170526, model.hourlySchedule().minute()); + Assertions.assertEquals(5889064558086386603L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(1838860649, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(11863753, model.dailySchedule().hour()); + Assertions.assertEquals(1364703724, model.dailySchedule().minute()); + Assertions.assertEquals(5676956114589904637L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(1397433575, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("qgxy", model.weeklySchedule().day()); + Assertions.assertEquals(1746293745, model.weeklySchedule().hour()); + Assertions.assertEquals(1907336189, model.weeklySchedule().minute()); + Assertions.assertEquals(7994634529123000792L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(484454898, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("cxozapvhelxp", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(599775917, model.monthlySchedule().hour()); + Assertions.assertEquals(1207488512, model.monthlySchedule().minute()); + Assertions.assertEquals(1729923694834862702L, model.monthlySchedule().usedBytes()); Assertions.assertFalse(model.enabled()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java index a92f3df230a1..cc13d9fa5f6f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java @@ -18,72 +18,72 @@ public final class SnapshotPolicyPatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotPolicyPatch model = BinaryData.fromString( - "{\"location\":\"xiy\",\"id\":\"iizynkedyatrwyh\",\"name\":\"ibzyhwitsmyp\",\"type\":\"npcdpumnzgm\",\"tags\":{\"dtlwwrlkd\":\"mabiknsorgjhxb\",\"lxdy\":\"tncvokot\"},\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1161349380,\"minute\":1150957892,\"usedBytes\":2753799918909834418},\"dailySchedule\":{\"snapshotsToKeep\":1487566659,\"hour\":1263091182,\"minute\":1904743386,\"usedBytes\":681682089814182403},\"weeklySchedule\":{\"snapshotsToKeep\":703261916,\"day\":\"vcikhnvpamqgx\",\"hour\":191460496,\"minute\":1862318440,\"usedBytes\":7805373587347139701},\"monthlySchedule\":{\"snapshotsToKeep\":566556548,\"daysOfMonth\":\"kallatmel\",\"hour\":1138450132,\"minute\":1750624466,\"usedBytes\":4740858947759401461},\"enabled\":true,\"provisioningState\":\"ivgvvcna\"}}") + "{\"location\":\"orzihle\",\"id\":\"jswsrmslyz\",\"name\":\"zbchckqqzqioxiy\",\"type\":\"iizynkedyatrwyh\",\"tags\":{\"itsmypyyn\":\"bzyh\",\"nzgmwznmabik\":\"cdpu\",\"xbldtlwwrlkdmtn\":\"sorgj\"},\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1063361933,\"minute\":1941310787,\"usedBytes\":2765803061420771171},\"dailySchedule\":{\"snapshotsToKeep\":2005759666,\"hour\":36323388,\"minute\":427983093,\"usedBytes\":4877471072225031792},\"weeklySchedule\":{\"snapshotsToKeep\":1628620903,\"day\":\"bnnhadoocrkvcik\",\"hour\":600474862,\"minute\":1533049967,\"usedBytes\":3968582438542794420},\"monthlySchedule\":{\"snapshotsToKeep\":1810691305,\"daysOfMonth\":\"ezikywggxkal\",\"hour\":1147972125,\"minute\":1870481937,\"usedBytes\":5796358058175213416},\"enabled\":true,\"provisioningState\":\"ccjzkzivgvv\"}}") .toObject(SnapshotPolicyPatch.class); - Assertions.assertEquals("xiy", model.location()); - Assertions.assertEquals("mabiknsorgjhxb", model.tags().get("dtlwwrlkd")); - Assertions.assertEquals(1161349380, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1150957892, model.hourlySchedule().minute()); - Assertions.assertEquals(2753799918909834418L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1487566659, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1263091182, model.dailySchedule().hour()); - Assertions.assertEquals(1904743386, model.dailySchedule().minute()); - Assertions.assertEquals(681682089814182403L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(703261916, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("vcikhnvpamqgx", model.weeklySchedule().day()); - Assertions.assertEquals(191460496, model.weeklySchedule().hour()); - Assertions.assertEquals(1862318440, model.weeklySchedule().minute()); - Assertions.assertEquals(7805373587347139701L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(566556548, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("kallatmel", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1138450132, model.monthlySchedule().hour()); - Assertions.assertEquals(1750624466, model.monthlySchedule().minute()); - Assertions.assertEquals(4740858947759401461L, model.monthlySchedule().usedBytes()); + Assertions.assertEquals("orzihle", model.location()); + Assertions.assertEquals("bzyh", model.tags().get("itsmypyyn")); + Assertions.assertEquals(1063361933, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(1941310787, model.hourlySchedule().minute()); + Assertions.assertEquals(2765803061420771171L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(2005759666, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(36323388, model.dailySchedule().hour()); + Assertions.assertEquals(427983093, model.dailySchedule().minute()); + Assertions.assertEquals(4877471072225031792L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(1628620903, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("bnnhadoocrkvcik", model.weeklySchedule().day()); + Assertions.assertEquals(600474862, model.weeklySchedule().hour()); + Assertions.assertEquals(1533049967, model.weeklySchedule().minute()); + Assertions.assertEquals(3968582438542794420L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(1810691305, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("ezikywggxkal", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(1147972125, model.monthlySchedule().hour()); + Assertions.assertEquals(1870481937, model.monthlySchedule().minute()); + Assertions.assertEquals(5796358058175213416L, model.monthlySchedule().usedBytes()); Assertions.assertTrue(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SnapshotPolicyPatch model = new SnapshotPolicyPatch().withLocation("xiy") - .withTags(mapOf("dtlwwrlkd", "mabiknsorgjhxb", "lxdy", "tncvokot")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1161349380) - .withMinute(1150957892) - .withUsedBytes(2753799918909834418L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1487566659) - .withHour(1263091182) - .withMinute(1904743386) - .withUsedBytes(681682089814182403L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(703261916) - .withDay("vcikhnvpamqgx") - .withHour(191460496) - .withMinute(1862318440) - .withUsedBytes(7805373587347139701L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(566556548) - .withDaysOfMonth("kallatmel") - .withHour(1138450132) - .withMinute(1750624466) - .withUsedBytes(4740858947759401461L)) + SnapshotPolicyPatch model = new SnapshotPolicyPatch().withLocation("orzihle") + .withTags(mapOf("itsmypyyn", "bzyh", "nzgmwznmabik", "cdpu", "xbldtlwwrlkdmtn", "sorgj")) + .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1063361933) + .withMinute(1941310787) + .withUsedBytes(2765803061420771171L)) + .withDailySchedule(new DailySchedule().withSnapshotsToKeep(2005759666) + .withHour(36323388) + .withMinute(427983093) + .withUsedBytes(4877471072225031792L)) + .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1628620903) + .withDay("bnnhadoocrkvcik") + .withHour(600474862) + .withMinute(1533049967) + .withUsedBytes(3968582438542794420L)) + .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1810691305) + .withDaysOfMonth("ezikywggxkal") + .withHour(1147972125) + .withMinute(1870481937) + .withUsedBytes(5796358058175213416L)) .withEnabled(true); model = BinaryData.fromObject(model).toObject(SnapshotPolicyPatch.class); - Assertions.assertEquals("xiy", model.location()); - Assertions.assertEquals("mabiknsorgjhxb", model.tags().get("dtlwwrlkd")); - Assertions.assertEquals(1161349380, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1150957892, model.hourlySchedule().minute()); - Assertions.assertEquals(2753799918909834418L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1487566659, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1263091182, model.dailySchedule().hour()); - Assertions.assertEquals(1904743386, model.dailySchedule().minute()); - Assertions.assertEquals(681682089814182403L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(703261916, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("vcikhnvpamqgx", model.weeklySchedule().day()); - Assertions.assertEquals(191460496, model.weeklySchedule().hour()); - Assertions.assertEquals(1862318440, model.weeklySchedule().minute()); - Assertions.assertEquals(7805373587347139701L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(566556548, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("kallatmel", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1138450132, model.monthlySchedule().hour()); - Assertions.assertEquals(1750624466, model.monthlySchedule().minute()); - Assertions.assertEquals(4740858947759401461L, model.monthlySchedule().usedBytes()); + Assertions.assertEquals("orzihle", model.location()); + Assertions.assertEquals("bzyh", model.tags().get("itsmypyyn")); + Assertions.assertEquals(1063361933, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(1941310787, model.hourlySchedule().minute()); + Assertions.assertEquals(2765803061420771171L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(2005759666, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(36323388, model.dailySchedule().hour()); + Assertions.assertEquals(427983093, model.dailySchedule().minute()); + Assertions.assertEquals(4877471072225031792L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(1628620903, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("bnnhadoocrkvcik", model.weeklySchedule().day()); + Assertions.assertEquals(600474862, model.weeklySchedule().hour()); + Assertions.assertEquals(1533049967, model.weeklySchedule().minute()); + Assertions.assertEquals(3968582438542794420L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(1810691305, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("ezikywggxkal", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(1147972125, model.monthlySchedule().hour()); + Assertions.assertEquals(1870481937, model.monthlySchedule().minute()); + Assertions.assertEquals(5796358058175213416L, model.monthlySchedule().usedBytes()); Assertions.assertTrue(model.enabled()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java index 74cacdfc97e5..9b9ca6df0eef 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java @@ -16,67 +16,67 @@ public final class SnapshotPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotPolicyProperties model = BinaryData.fromString( - "{\"hourlySchedule\":{\"snapshotsToKeep\":1261487431,\"minute\":1854977873,\"usedBytes\":1434371829603069361},\"dailySchedule\":{\"snapshotsToKeep\":1024305587,\"hour\":419659092,\"minute\":398350813,\"usedBytes\":8183486072070109381},\"weeklySchedule\":{\"snapshotsToKeep\":457558251,\"day\":\"ubjibww\",\"hour\":1095781686,\"minute\":1856548413,\"usedBytes\":9125422272496243205},\"monthlySchedule\":{\"snapshotsToKeep\":1724138900,\"daysOfMonth\":\"sgplsakn\",\"hour\":792282663,\"minute\":654967336,\"usedBytes\":2482302250486318586},\"enabled\":true,\"provisioningState\":\"op\"}") + "{\"hourlySchedule\":{\"snapshotsToKeep\":1324529031,\"minute\":906567669,\"usedBytes\":735752608656011593},\"dailySchedule\":{\"snapshotsToKeep\":1638328793,\"hour\":1909436106,\"minute\":103737339,\"usedBytes\":5424299492153823992},\"weeklySchedule\":{\"snapshotsToKeep\":426200809,\"day\":\"eqnovvqfovl\",\"hour\":1752726450,\"minute\":450264224,\"usedBytes\":85714511864404008},\"monthlySchedule\":{\"snapshotsToKeep\":188945883,\"daysOfMonth\":\"dsytgadgvr\",\"hour\":890415173,\"minute\":884783389,\"usedBytes\":8790170709983104417},\"enabled\":false,\"provisioningState\":\"rwlqu\"}") .toObject(SnapshotPolicyProperties.class); - Assertions.assertEquals(1261487431, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1854977873, model.hourlySchedule().minute()); - Assertions.assertEquals(1434371829603069361L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1024305587, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(419659092, model.dailySchedule().hour()); - Assertions.assertEquals(398350813, model.dailySchedule().minute()); - Assertions.assertEquals(8183486072070109381L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(457558251, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("ubjibww", model.weeklySchedule().day()); - Assertions.assertEquals(1095781686, model.weeklySchedule().hour()); - Assertions.assertEquals(1856548413, model.weeklySchedule().minute()); - Assertions.assertEquals(9125422272496243205L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(1724138900, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("sgplsakn", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(792282663, model.monthlySchedule().hour()); - Assertions.assertEquals(654967336, model.monthlySchedule().minute()); - Assertions.assertEquals(2482302250486318586L, model.monthlySchedule().usedBytes()); - Assertions.assertTrue(model.enabled()); + Assertions.assertEquals(1324529031, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(906567669, model.hourlySchedule().minute()); + Assertions.assertEquals(735752608656011593L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(1638328793, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(1909436106, model.dailySchedule().hour()); + Assertions.assertEquals(103737339, model.dailySchedule().minute()); + Assertions.assertEquals(5424299492153823992L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(426200809, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("eqnovvqfovl", model.weeklySchedule().day()); + Assertions.assertEquals(1752726450, model.weeklySchedule().hour()); + Assertions.assertEquals(450264224, model.weeklySchedule().minute()); + Assertions.assertEquals(85714511864404008L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(188945883, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("dsytgadgvr", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(890415173, model.monthlySchedule().hour()); + Assertions.assertEquals(884783389, model.monthlySchedule().minute()); + Assertions.assertEquals(8790170709983104417L, model.monthlySchedule().usedBytes()); + Assertions.assertFalse(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SnapshotPolicyProperties model = new SnapshotPolicyProperties() - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1261487431) - .withMinute(1854977873) - .withUsedBytes(1434371829603069361L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1024305587) - .withHour(419659092) - .withMinute(398350813) - .withUsedBytes(8183486072070109381L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(457558251) - .withDay("ubjibww") - .withHour(1095781686) - .withMinute(1856548413) - .withUsedBytes(9125422272496243205L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1724138900) - .withDaysOfMonth("sgplsakn") - .withHour(792282663) - .withMinute(654967336) - .withUsedBytes(2482302250486318586L)) - .withEnabled(true); + .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1324529031) + .withMinute(906567669) + .withUsedBytes(735752608656011593L)) + .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1638328793) + .withHour(1909436106) + .withMinute(103737339) + .withUsedBytes(5424299492153823992L)) + .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(426200809) + .withDay("eqnovvqfovl") + .withHour(1752726450) + .withMinute(450264224) + .withUsedBytes(85714511864404008L)) + .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(188945883) + .withDaysOfMonth("dsytgadgvr") + .withHour(890415173) + .withMinute(884783389) + .withUsedBytes(8790170709983104417L)) + .withEnabled(false); model = BinaryData.fromObject(model).toObject(SnapshotPolicyProperties.class); - Assertions.assertEquals(1261487431, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1854977873, model.hourlySchedule().minute()); - Assertions.assertEquals(1434371829603069361L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1024305587, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(419659092, model.dailySchedule().hour()); - Assertions.assertEquals(398350813, model.dailySchedule().minute()); - Assertions.assertEquals(8183486072070109381L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(457558251, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("ubjibww", model.weeklySchedule().day()); - Assertions.assertEquals(1095781686, model.weeklySchedule().hour()); - Assertions.assertEquals(1856548413, model.weeklySchedule().minute()); - Assertions.assertEquals(9125422272496243205L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(1724138900, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("sgplsakn", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(792282663, model.monthlySchedule().hour()); - Assertions.assertEquals(654967336, model.monthlySchedule().minute()); - Assertions.assertEquals(2482302250486318586L, model.monthlySchedule().usedBytes()); - Assertions.assertTrue(model.enabled()); + Assertions.assertEquals(1324529031, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(906567669, model.hourlySchedule().minute()); + Assertions.assertEquals(735752608656011593L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(1638328793, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(1909436106, model.dailySchedule().hour()); + Assertions.assertEquals(103737339, model.dailySchedule().minute()); + Assertions.assertEquals(5424299492153823992L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(426200809, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("eqnovvqfovl", model.weeklySchedule().day()); + Assertions.assertEquals(1752726450, model.weeklySchedule().hour()); + Assertions.assertEquals(450264224, model.weeklySchedule().minute()); + Assertions.assertEquals(85714511864404008L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(188945883, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("dsytgadgvr", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(890415173, model.monthlySchedule().hour()); + Assertions.assertEquals(884783389, model.monthlySchedule().minute()); + Assertions.assertEquals(8790170709983104417L, model.monthlySchedule().usedBytes()); + Assertions.assertFalse(model.enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java index 03d42ef6be90..9f5d32582bc5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java @@ -10,8 +10,9 @@ public final class SnapshotPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SnapshotProperties model = BinaryData.fromString( - "{\"snapshotId\":\"iyq\",\"created\":\"2021-10-31T18:24:05Z\",\"provisioningState\":\"cpdggkzzlvmbmp\"}") + SnapshotProperties model = BinaryData + .fromString( + "{\"snapshotId\":\"vpk\",\"created\":\"2021-07-30T07:38:12Z\",\"provisioningState\":\"vdrhvoo\"}") .toObject(SnapshotProperties.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java index a2e97c4a9892..4edee4200f05 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java @@ -12,20 +12,19 @@ public final class SnapshotRestoreFilesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SnapshotRestoreFiles model = BinaryData.fromString( - "{\"filePaths\":[\"xsdqrhzoymibmrqy\",\"bahwfl\",\"szdtmhrkwof\",\"yvoqa\"],\"destinationPath\":\"iexpbtgiwbwo\"}") - .toObject(SnapshotRestoreFiles.class); - Assertions.assertEquals("xsdqrhzoymibmrqy", model.filePaths().get(0)); - Assertions.assertEquals("iexpbtgiwbwo", model.destinationPath()); + SnapshotRestoreFiles model + = BinaryData.fromString("{\"filePaths\":[\"cpwi\",\"zvqtmnubexkp\"],\"destinationPath\":\"smond\"}") + .toObject(SnapshotRestoreFiles.class); + Assertions.assertEquals("cpwi", model.filePaths().get(0)); + Assertions.assertEquals("smond", model.destinationPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SnapshotRestoreFiles model = new SnapshotRestoreFiles() - .withFilePaths(Arrays.asList("xsdqrhzoymibmrqy", "bahwfl", "szdtmhrkwof", "yvoqa")) - .withDestinationPath("iexpbtgiwbwo"); + SnapshotRestoreFiles model = new SnapshotRestoreFiles().withFilePaths(Arrays.asList("cpwi", "zvqtmnubexkp")) + .withDestinationPath("smond"); model = BinaryData.fromObject(model).toObject(SnapshotRestoreFiles.class); - Assertions.assertEquals("xsdqrhzoymibmrqy", model.filePaths().get(0)); - Assertions.assertEquals("iexpbtgiwbwo", model.destinationPath()); + Assertions.assertEquals("cpwi", model.filePaths().get(0)); + Assertions.assertEquals("smond", model.destinationPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java index 8df4edbb5024..1c4ddc2c27b3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.snapshots() - .delete("aadl", "nwf", "anniyopetxivcnr", "yxnu", "aephblkw", com.azure.core.util.Context.NONE); + .delete("ibuz", "hdugneiknpg", "xgjiuqh", "btozipqwje", "mur", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java index 5180413fcde6..20e5eebdb89d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SnapshotsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"snapshotId\":\"ytoithgygvfl\",\"created\":\"2021-07-25T23:27:42Z\",\"provisioningState\":\"iho\"},\"location\":\"nkrxwetwkdrcy\",\"id\":\"cpcunnuzdqum\",\"name\":\"enodna\",\"type\":\"enhqhskndnelq\"}"; + = "{\"properties\":{\"snapshotId\":\"ugswvx\",\"created\":\"2021-05-30T09:05:45Z\",\"provisioningState\":\"qwm\"},\"location\":\"tx\",\"id\":\"mxmcuqudtcvclxy\",\"name\":\"pdkvg\",\"type\":\"abuiy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Snapshot response = manager.snapshots() - .getWithResponse("n", "oytzpose", "xigpxvkqmaupxvpi", "dfaifyzyzeyuube", "ds", + .getWithResponse("vsg", "wohqfzizvu", "mmkjsvthnwpztek", "vmribiat", "gplucfotangcfhny", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("nkrxwetwkdrcy", response.location()); + Assertions.assertEquals("tx", response.location()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java index 897f22e21734..0bf76763e2da 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java @@ -22,7 +22,7 @@ public final class SnapshotsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"snapshotId\":\"rzcdbanf\",\"created\":\"2021-01-24T21:16:23Z\",\"provisioningState\":\"cxmxeatkdb\"},\"location\":\"wnrdjyibqbnaom\",\"id\":\"rmkuh\",\"name\":\"axljal\",\"type\":\"i\"}]}"; + = "{\"value\":[{\"properties\":{\"snapshotId\":\"ebqinjipnw\",\"created\":\"2021-10-22T02:54:53Z\",\"provisioningState\":\"qlafcbahhpzpofoi\"},\"location\":\"jwpfilkm\",\"id\":\"holvdn\",\"name\":\"viauogphua\",\"type\":\"tvt\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.snapshots() - .list("pat", "bqsdtcjbctvi", "uzqymtuowog", "gitsqh", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.snapshots().list("xxgewpk", "vqylkmqpzoyhl", "bcg", "gcl", com.azure.core.util.Context.NONE); - Assertions.assertEquals("wnrdjyibqbnaom", response.iterator().next().location()); + Assertions.assertEquals("jwpfilkm", response.iterator().next().location()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java index ed9a884b36c6..6543dff1aa35 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java @@ -12,9 +12,9 @@ public final class SnapshotsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"snapshotId\":\"dfvue\",\"created\":\"2021-05-27T14:49:06Z\",\"provisioningState\":\"bpfvm\"},\"location\":\"yhrfouyftaakcpw\",\"id\":\"zvqtmnubexkp\",\"name\":\"ksmond\",\"type\":\"mquxvypo\"},{\"properties\":{\"snapshotId\":\"opkwhojv\",\"created\":\"2021-12-07T09:07:14Z\",\"provisioningState\":\"gxysmocmbqfqvm\"},\"location\":\"cxozapvhelxp\",\"id\":\"lya\",\"name\":\"dd\",\"type\":\"kcbcue\"}],\"nextLink\":\"jxgciqibrh\"}") + "{\"value\":[{\"properties\":{\"snapshotId\":\"bobzdopcjwvnhd\",\"created\":\"2021-11-29T05:13:59Z\",\"provisioningState\":\"gx\"},\"location\":\"xrslpm\",\"id\":\"wuoegrpk\",\"name\":\"jw\",\"type\":\"iyq\"},{\"properties\":{\"snapshotId\":\"i\",\"created\":\"2021-04-15T16:21:59Z\",\"provisioningState\":\"gk\"},\"location\":\"zl\",\"id\":\"bmpaxmodfvu\",\"name\":\"fy\",\"type\":\"sbpfvmwyhr\"}],\"nextLink\":\"uyfta\"}") .toObject(SnapshotsList.class); - Assertions.assertEquals("yhrfouyftaakcpw", model.value().get(0).location()); - Assertions.assertEquals("jxgciqibrh", model.nextLink()); + Assertions.assertEquals("xrslpm", model.value().get(0).location()); + Assertions.assertEquals("uyfta", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java index 59ee385bc3e8..afd098dc5ac4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java @@ -30,10 +30,9 @@ public void testRestoreFiles() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.snapshots() - .restoreFiles("cjmobcanc", "exxqcwg", "xf", "vaknokzwjj", "r", - new SnapshotRestoreFiles() - .withFilePaths(Arrays.asList("ixldzyyfy", "pqsixymmp", "jivyqlkjuv", "mbmslzoyov")) - .withDestinationPath("dbpqvybefgvm"), + .restoreFiles("ukyefchnmnahmnxh", "xjqirwrweoox", "fifhxwrsnew", "ozqvbubqmam", "sycxhxzgaz", + new SnapshotRestoreFiles().withFilePaths(Arrays.asList("abo", "dvmfqhppub", "w")) + .withDestinationPath("pdfgkmtdherngbt"), com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java index c0e9dbe4efcb..0c3733875d96 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java @@ -12,21 +12,20 @@ public final class SubvolumeInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeInfoInner model = BinaryData.fromString( - "{\"properties\":{\"path\":\"lkwzdqybxceakxcp\",\"size\":2916503884742775477,\"parentPath\":\"yiaseqchkrttzraz\",\"provisioningState\":\"gyki\"},\"id\":\"mvanbwzo\",\"name\":\"mnrxxbsojkl\",\"type\":\"nhmdptysprqs\"}") + "{\"properties\":{\"path\":\"lxunsmjbnkppxy\",\"size\":8795706373981455807,\"parentPath\":\"vxei\",\"provisioningState\":\"gwklnsr\"},\"id\":\"feycxcktp\",\"name\":\"ymerteeammxq\",\"type\":\"ekkkzd\"}") .toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("lkwzdqybxceakxcp", model.path()); - Assertions.assertEquals(2916503884742775477L, model.size()); - Assertions.assertEquals("yiaseqchkrttzraz", model.parentPath()); + Assertions.assertEquals("lxunsmjbnkppxy", model.path()); + Assertions.assertEquals(8795706373981455807L, model.size()); + Assertions.assertEquals("vxei", model.parentPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SubvolumeInfoInner model = new SubvolumeInfoInner().withPath("lkwzdqybxceakxcp") - .withSize(2916503884742775477L) - .withParentPath("yiaseqchkrttzraz"); + SubvolumeInfoInner model + = new SubvolumeInfoInner().withPath("lxunsmjbnkppxy").withSize(8795706373981455807L).withParentPath("vxei"); model = BinaryData.fromObject(model).toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("lkwzdqybxceakxcp", model.path()); - Assertions.assertEquals(2916503884742775477L, model.size()); - Assertions.assertEquals("yiaseqchkrttzraz", model.parentPath()); + Assertions.assertEquals("lxunsmjbnkppxy", model.path()); + Assertions.assertEquals(8795706373981455807L, model.size()); + Assertions.assertEquals("vxei", model.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java index 862739d3b550..1cd251f1746e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java @@ -13,17 +13,17 @@ public final class SubvolumeModelInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeModelInner model = BinaryData.fromString( - "{\"id\":\"qipir\",\"name\":\"wrq\",\"type\":\"ulopmjnlexwhcb\",\"properties\":{\"path\":\"bke\",\"parentPath\":\"uuuercta\",\"size\":2941187864839626516,\"bytesUsed\":8578700913260984567,\"permissions\":\"brlc\",\"creationTimeStamp\":\"2020-12-20T16:54:51Z\",\"accessedTimeStamp\":\"2021-05-17T15:29:10Z\",\"modifiedTimeStamp\":\"2021-08-08T00:30:07Z\",\"changedTimeStamp\":\"2021-06-13T20:28:08Z\",\"provisioningState\":\"xyf\"}}") + "{\"id\":\"tmvpdvjdhtt\",\"name\":\"efedxihchrphkm\",\"type\":\"jdqnsdfzpbgt\",\"properties\":{\"path\":\"lkdghr\",\"parentPath\":\"uutlwxezwzhok\",\"size\":7624149688717867785,\"bytesUsed\":2062475772346184475,\"permissions\":\"lgehg\",\"creationTimeStamp\":\"2021-01-12T07:30:51Z\",\"accessedTimeStamp\":\"2021-01-18T15:46:05Z\",\"modifiedTimeStamp\":\"2021-04-06T03:44:21Z\",\"changedTimeStamp\":\"2021-01-02T20:54:57Z\",\"provisioningState\":\"oajvgcxtxjcs\"}}") .toObject(SubvolumeModelInner.class); - Assertions.assertEquals("bke", model.path()); - Assertions.assertEquals("uuuercta", model.parentPath()); - Assertions.assertEquals(2941187864839626516L, model.size()); - Assertions.assertEquals(8578700913260984567L, model.bytesUsed()); - Assertions.assertEquals("brlc", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-20T16:54:51Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-17T15:29:10Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-08T00:30:07Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-13T20:28:08Z"), model.changedTimestamp()); - Assertions.assertEquals("xyf", model.provisioningState()); + Assertions.assertEquals("lkdghr", model.path()); + Assertions.assertEquals("uutlwxezwzhok", model.parentPath()); + Assertions.assertEquals(7624149688717867785L, model.size()); + Assertions.assertEquals(2062475772346184475L, model.bytesUsed()); + Assertions.assertEquals("lgehg", model.permissions()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-12T07:30:51Z"), model.creationTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T15:46:05Z"), model.accessedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-06T03:44:21Z"), model.modifiedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-02T20:54:57Z"), model.changedTimestamp()); + Assertions.assertEquals("oajvgcxtxjcs", model.provisioningState()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java index 63804e302f07..b5dda4437351 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java @@ -13,17 +13,17 @@ public final class SubvolumeModelPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeModelProperties model = BinaryData.fromString( - "{\"path\":\"uc\",\"parentPath\":\"rrp\",\"size\":5679636640607196195,\"bytesUsed\":1765568550536459632,\"permissions\":\"jeaq\",\"creationTimeStamp\":\"2021-08-03T20:23:39Z\",\"accessedTimeStamp\":\"2021-05-18T14:34:33Z\",\"modifiedTimeStamp\":\"2021-05-10T09:17:01Z\",\"changedTimeStamp\":\"2021-06-25T13:52:10Z\",\"provisioningState\":\"lghktuidvrm\"}") + "{\"path\":\"afidltugsres\",\"parentPath\":\"ssjhoiftxfkf\",\"size\":3237549992054377980,\"bytesUsed\":3066280000737363730,\"permissions\":\"ill\",\"creationTimeStamp\":\"2021-11-03T16:35:02Z\",\"accessedTimeStamp\":\"2021-09-13T16:16:26Z\",\"modifiedTimeStamp\":\"2021-01-07T04:55:43Z\",\"changedTimeStamp\":\"2021-03-06T03:54:59Z\",\"provisioningState\":\"hm\"}") .toObject(SubvolumeModelProperties.class); - Assertions.assertEquals("uc", model.path()); - Assertions.assertEquals("rrp", model.parentPath()); - Assertions.assertEquals(5679636640607196195L, model.size()); - Assertions.assertEquals(1765568550536459632L, model.bytesUsed()); - Assertions.assertEquals("jeaq", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T20:23:39Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-18T14:34:33Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-10T09:17:01Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-25T13:52:10Z"), model.changedTimestamp()); - Assertions.assertEquals("lghktuidvrm", model.provisioningState()); + Assertions.assertEquals("afidltugsres", model.path()); + Assertions.assertEquals("ssjhoiftxfkf", model.parentPath()); + Assertions.assertEquals(3237549992054377980L, model.size()); + Assertions.assertEquals(3066280000737363730L, model.bytesUsed()); + Assertions.assertEquals("ill", model.permissions()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-03T16:35:02Z"), model.creationTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-13T16:16:26Z"), model.accessedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-07T04:55:43Z"), model.modifiedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-06T03:54:59Z"), model.changedTimestamp()); + Assertions.assertEquals("hm", model.provisioningState()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java index d1f560cc4825..e83fe0135de0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java @@ -11,18 +11,18 @@ public final class SubvolumePatchParamsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SubvolumePatchParams model = BinaryData.fromString("{\"size\":2672571811626083007,\"path\":\"amtuatmzwcjjnc\"}") + SubvolumePatchParams model = BinaryData.fromString("{\"size\":6958305132617717680,\"path\":\"tvtzeexavoxtfg\"}") .toObject(SubvolumePatchParams.class); - Assertions.assertEquals(2672571811626083007L, model.size()); - Assertions.assertEquals("amtuatmzwcjjnc", model.path()); + Assertions.assertEquals(6958305132617717680L, model.size()); + Assertions.assertEquals("tvtzeexavoxtfg", model.path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SubvolumePatchParams model - = new SubvolumePatchParams().withSize(2672571811626083007L).withPath("amtuatmzwcjjnc"); + = new SubvolumePatchParams().withSize(6958305132617717680L).withPath("tvtzeexavoxtfg"); model = BinaryData.fromObject(model).toObject(SubvolumePatchParams.class); - Assertions.assertEquals(2672571811626083007L, model.size()); - Assertions.assertEquals("amtuatmzwcjjnc", model.path()); + Assertions.assertEquals(6958305132617717680L, model.size()); + Assertions.assertEquals("tvtzeexavoxtfg", model.path()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java index b4e4ff2491a8..8ceddab562ba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java @@ -12,18 +12,17 @@ public final class SubvolumePatchRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumePatchRequest model - = BinaryData.fromString("{\"properties\":{\"size\":4847070800720041195,\"path\":\"ribcawetzqddtjwf\"}}") + = BinaryData.fromString("{\"properties\":{\"size\":4136420798110514219,\"path\":\"awddjibab\"}}") .toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(4847070800720041195L, model.size()); - Assertions.assertEquals("ribcawetzqddtjwf", model.path()); + Assertions.assertEquals(4136420798110514219L, model.size()); + Assertions.assertEquals("awddjibab", model.path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SubvolumePatchRequest model - = new SubvolumePatchRequest().withSize(4847070800720041195L).withPath("ribcawetzqddtjwf"); + SubvolumePatchRequest model = new SubvolumePatchRequest().withSize(4136420798110514219L).withPath("awddjibab"); model = BinaryData.fromObject(model).toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(4847070800720041195L, model.size()); - Assertions.assertEquals("ribcawetzqddtjwf", model.path()); + Assertions.assertEquals(4136420798110514219L, model.size()); + Assertions.assertEquals("awddjibab", model.path()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java index a0d5aedc97cd..5503ef5102d5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java @@ -12,21 +12,21 @@ public final class SubvolumePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeProperties model = BinaryData.fromString( - "{\"path\":\"zxojpslsv\",\"size\":2700225085334693731,\"parentPath\":\"ufiqwoyxqvapcohh\",\"provisioningState\":\"cqpqojxcxzrzdc\"}") + "{\"path\":\"tkgdojbmxva\",\"size\":8464578871437548472,\"parentPath\":\"eesvecu\",\"provisioningState\":\"pxtxsuwp\"}") .toObject(SubvolumeProperties.class); - Assertions.assertEquals("zxojpslsv", model.path()); - Assertions.assertEquals(2700225085334693731L, model.size()); - Assertions.assertEquals("ufiqwoyxqvapcohh", model.parentPath()); + Assertions.assertEquals("tkgdojbmxva", model.path()); + Assertions.assertEquals(8464578871437548472L, model.size()); + Assertions.assertEquals("eesvecu", model.parentPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SubvolumeProperties model = new SubvolumeProperties().withPath("zxojpslsv") - .withSize(2700225085334693731L) - .withParentPath("ufiqwoyxqvapcohh"); + SubvolumeProperties model = new SubvolumeProperties().withPath("tkgdojbmxva") + .withSize(8464578871437548472L) + .withParentPath("eesvecu"); model = BinaryData.fromObject(model).toObject(SubvolumeProperties.class); - Assertions.assertEquals("zxojpslsv", model.path()); - Assertions.assertEquals(2700225085334693731L, model.size()); - Assertions.assertEquals("ufiqwoyxqvapcohh", model.parentPath()); + Assertions.assertEquals("tkgdojbmxva", model.path()); + Assertions.assertEquals(8464578871437548472L, model.size()); + Assertions.assertEquals("eesvecu", model.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java index d3e7d48c7602..14de47f83b0a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java @@ -21,7 +21,7 @@ public final class SubvolumesCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"path\":\"zox\",\"size\":2901394578326939206,\"parentPath\":\"frolq\",\"provisioningState\":\"Succeeded\"},\"id\":\"xjjmztnlmsoodtm\",\"name\":\"ecdh\",\"type\":\"yswcrptveajczx\"}"; + = "{\"properties\":{\"path\":\"jfel\",\"size\":9190157890173844059,\"parentPath\":\"tcbgqnz\",\"provisioningState\":\"Succeeded\"},\"id\":\"lialwcjgckbbcccg\",\"name\":\"praoxn\",\"type\":\"uffatsgftipwc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,15 +31,15 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SubvolumeInfo response = manager.subvolumes() - .define("r") - .withExistingVolume("tqstqkqsygxiyne", "ovagzkheuban", "xunpqcckqiawzlz", "laslgacizux") - .withPath("p") - .withSize(4830271048950076864L) - .withParentPath("doejtighsxjpyt") + .define("yltcoqcuj") + .withExistingVolume("trgdgxvc", "qraswugyxpqitwei", "l", "vskbuhzacaq") + .withPath("xzak") + .withSize(6595546518414192126L) + .withParentPath("vbiztjofqcv") .create(); - Assertions.assertEquals("zox", response.path()); - Assertions.assertEquals(2901394578326939206L, response.size()); - Assertions.assertEquals("frolq", response.parentPath()); + Assertions.assertEquals("jfel", response.path()); + Assertions.assertEquals(9190157890173844059L, response.size()); + Assertions.assertEquals("tcbgqnz", response.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java index 654efb1b64e7..4571524dd9ec 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java @@ -28,8 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.subvolumes() - .delete("nrecchdidrm", "hkahmjedbiucvkh", "wmjpjbweunxcqrr", "hu", "oihppi", - com.azure.core.util.Context.NONE); + .delete("akizvoaikna", "lnuwiguy", "lykwphvxz", "wxh", "pejtl", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java index 0890d8998724..a9dc000dd7a2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java @@ -21,7 +21,7 @@ public final class SubvolumesGetMetadataMockTests { @Test public void testGetMetadata() throws Exception { String responseStr - = "{\"id\":\"enninafhxrzfrm\",\"name\":\"tiucwv\",\"type\":\"llukhkrcqxgcbvz\",\"properties\":{\"path\":\"qcbpokstsinv\",\"parentPath\":\"ovjyhd\",\"size\":6627204883519635350,\"bytesUsed\":6819459012594374030,\"permissions\":\"hqwhitxnmxgnmguz\",\"creationTimeStamp\":\"2021-07-04T20:58:12Z\",\"accessedTimeStamp\":\"2021-04-25T17:44:41Z\",\"modifiedTimeStamp\":\"2021-10-13T17:45:13Z\",\"changedTimeStamp\":\"2021-03-19T21:43:12Z\",\"provisioningState\":\"Succeeded\"}}"; + = "{\"id\":\"xv\",\"name\":\"tvbczsulm\",\"type\":\"glmep\",\"properties\":{\"path\":\"s\",\"parentPath\":\"kgsangpszng\",\"size\":803988663469960999,\"bytesUsed\":4814735082100975654,\"permissions\":\"ecjujcng\",\"creationTimeStamp\":\"2021-05-04T19:27:38Z\",\"accessedTimeStamp\":\"2021-06-06T05:49:48Z\",\"modifiedTimeStamp\":\"2021-10-23T18:46:15Z\",\"changedTimeStamp\":\"2021-06-17T14:29:09Z\",\"provisioningState\":\"Succeeded\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,18 +31,18 @@ public void testGetMetadata() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SubvolumeModel response = manager.subvolumes() - .getMetadata("cdiykkc", "wnujvqynvav", "tmdmuqohhihr", "xquddrw", "cljbrhlhpvzad", + .getMetadata("hluqwquls", "trjbhxykfhyq", "zvqqugdrftbcvexr", "uquowtljvfwhr", "agk", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qcbpokstsinv", response.path()); - Assertions.assertEquals("ovjyhd", response.parentPath()); - Assertions.assertEquals(6627204883519635350L, response.size()); - Assertions.assertEquals(6819459012594374030L, response.bytesUsed()); - Assertions.assertEquals("hqwhitxnmxgnmguz", response.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-04T20:58:12Z"), response.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T17:44:41Z"), response.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-13T17:45:13Z"), response.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-19T21:43:12Z"), response.changedTimestamp()); + Assertions.assertEquals("s", response.path()); + Assertions.assertEquals("kgsangpszng", response.parentPath()); + Assertions.assertEquals(803988663469960999L, response.size()); + Assertions.assertEquals(4814735082100975654L, response.bytesUsed()); + Assertions.assertEquals("ecjujcng", response.permissions()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-04T19:27:38Z"), response.creationTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-06T05:49:48Z"), response.accessedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-23T18:46:15Z"), response.modifiedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T14:29:09Z"), response.changedTimestamp()); Assertions.assertEquals("Succeeded", response.provisioningState()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java index 1c30c13800cb..376c9beb505e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SubvolumesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"path\":\"iixyxvqbanosj\",\"size\":4155980304184939585,\"parentPath\":\"bgmgm\",\"provisioningState\":\"orgmynltwmpftm\"},\"id\":\"e\",\"name\":\"jogsyx\",\"type\":\"etamfddrvlkpzwb\"}"; + = "{\"properties\":{\"path\":\"uuj\",\"size\":3404461283148187532,\"parentPath\":\"awsigrbjbxs\",\"provisioningState\":\"bvitvqkjya\"},\"id\":\"umtggmuwdchozfn\",\"name\":\"fexl\",\"type\":\"xn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SubvolumeInfo response = manager.subvolumes() - .getWithResponse("btimpkjblor", "s", "hqhud", "musuaawja", "xwjnfcz", com.azure.core.util.Context.NONE) + .getWithResponse("cbevxrhyzdfw", "sofpltd", "mairrh", "hfnrac", "npq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("iixyxvqbanosj", response.path()); - Assertions.assertEquals(4155980304184939585L, response.size()); - Assertions.assertEquals("bgmgm", response.parentPath()); + Assertions.assertEquals("uuj", response.path()); + Assertions.assertEquals(3404461283148187532L, response.size()); + Assertions.assertEquals("awsigrbjbxs", response.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java index 288ff796b876..2ab28a022347 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java @@ -22,7 +22,7 @@ public final class SubvolumesListByVolumeMockTests { @Test public void testListByVolume() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"path\":\"juktirzkaugpucd\",\"size\":1401968229593893615,\"parentPath\":\"lwgofm\",\"provisioningState\":\"wrjlvzkl\"},\"id\":\"bgikyjtkakvlbi\",\"name\":\"hjvpzaptu\",\"type\":\"skaoizjixwf\"}]}"; + = "{\"value\":[{\"properties\":{\"path\":\"em\",\"size\":4498347556178380582,\"parentPath\":\"dxjascowvfdj\",\"provisioningState\":\"dxphlk\"},\"id\":\"nmgzvyfijdkzuqnw\",\"name\":\"it\",\"type\":\"uqoly\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testListByVolume() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.subvolumes().listByVolume("bxv", "nzuz", "bgk", "cscpiuzvkunh", com.azure.core.util.Context.NONE); + PagedIterable response = manager.subvolumes() + .listByVolume("exaonwivkcq", "rxhxkn", "ccrmmk", "upijubyqjfkakfq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("juktirzkaugpucd", response.iterator().next().path()); - Assertions.assertEquals(1401968229593893615L, response.iterator().next().size()); - Assertions.assertEquals("lwgofm", response.iterator().next().parentPath()); + Assertions.assertEquals("em", response.iterator().next().path()); + Assertions.assertEquals(4498347556178380582L, response.iterator().next().size()); + Assertions.assertEquals("dxjascowvfdj", response.iterator().next().parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java index a0e00bb65250..56e509e8a724 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java @@ -12,11 +12,11 @@ public final class SubvolumesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"path\":\"mizvgbgatzuuvbx\",\"size\":1464612539790608915,\"parentPath\":\"wggahttzlswvaj\",\"provisioningState\":\"utlxjoqzasunwqrj\"},\"id\":\"rg\",\"name\":\"haohcmbuo\",\"type\":\"njrohmbpy\"},{\"properties\":{\"path\":\"ameb\",\"size\":8593674276467236286,\"parentPath\":\"kfkmrocxnehvsmt\",\"provisioningState\":\"lfpya\"},\"id\":\"cygvoavyunssx\",\"name\":\"ghiee\",\"type\":\"jlgvvpase\"}],\"nextLink\":\"gbuxantuygdh\"}") + "{\"value\":[{\"properties\":{\"path\":\"m\",\"size\":6562023209845648039,\"parentPath\":\"ypq\",\"provisioningState\":\"sfj\"},\"id\":\"b\",\"name\":\"lhhxudbxvodhtnsi\",\"type\":\"ud\"},{\"properties\":{\"path\":\"mes\",\"size\":5579035152269151058,\"parentPath\":\"agzrcxfa\",\"provisioningState\":\"cfxwmdbox\"},\"id\":\"gsftufqobrjlnacg\",\"name\":\"ckknhxkizvy\",\"type\":\"nrzvuljraaer\"},{\"properties\":{\"path\":\"kqg\",\"size\":2485197910898439661,\"parentPath\":\"nvbroylaxx\",\"provisioningState\":\"cdisd\"},\"id\":\"fj\",\"name\":\"jsvg\",\"type\":\"rwhryvycytd\"}],\"nextLink\":\"xgccknfnw\"}") .toObject(SubvolumesList.class); - Assertions.assertEquals("mizvgbgatzuuvbx", model.value().get(0).path()); - Assertions.assertEquals(1464612539790608915L, model.value().get(0).size()); - Assertions.assertEquals("wggahttzlswvaj", model.value().get(0).parentPath()); - Assertions.assertEquals("gbuxantuygdh", model.nextLink()); + Assertions.assertEquals("m", model.value().get(0).path()); + Assertions.assertEquals(6562023209845648039L, model.value().get(0).size()); + Assertions.assertEquals("ypq", model.value().get(0).parentPath()); + Assertions.assertEquals("xgccknfnw", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SuspectFileTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SuspectFileTests.java index 91b01590acda..659d0cd02676 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SuspectFileTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SuspectFileTests.java @@ -11,7 +11,7 @@ public final class SuspectFileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SuspectFile model - = BinaryData.fromString("{\"suspectFileName\":\"nasx\",\"fileTimestamp\":\"2021-04-04T10:13:31Z\"}") + = BinaryData.fromString("{\"suspectFileName\":\"qp\",\"fileTimestamp\":\"2020-12-27T18:10:38Z\"}") .toObject(SuspectFile.class); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java index 8084b6d8f4d1..8b31398a02ed 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java @@ -12,7 +12,8 @@ public final class SvmPeerCommandResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SvmPeerCommandResponseInner model - = BinaryData.fromString("{\"svmPeeringCommand\":\"xwak\"}").toObject(SvmPeerCommandResponseInner.class); - Assertions.assertEquals("xwak", model.svmPeeringCommand()); + = BinaryData.fromString("{\"properties\":{\"svmPeeringCommand\":\"dxunkbebxmubyyn\"}}") + .toObject(SvmPeerCommandResponseInner.class); + Assertions.assertEquals("dxunkbebxmubyyn", model.properties().svmPeeringCommand()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponsePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponsePropertiesTests.java new file mode 100644 index 000000000000..76519b53b6bd --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponsePropertiesTests.java @@ -0,0 +1,18 @@ +// 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.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.netapp.models.SvmPeerCommandResponseProperties; +import org.junit.jupiter.api.Assertions; + +public final class SvmPeerCommandResponsePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SvmPeerCommandResponseProperties model + = BinaryData.fromString("{\"svmPeeringCommand\":\"lrb\"}").toObject(SvmPeerCommandResponseProperties.class); + Assertions.assertEquals("lrb", model.svmPeeringCommand()); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java index a2d843369b24..05350960e9df 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java @@ -13,24 +13,24 @@ public final class UpdateNetworkSiblingSetRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UpdateNetworkSiblingSetRequest model = BinaryData.fromString( - "{\"networkSiblingSetId\":\"jxl\",\"subnetId\":\"bsjuscvsfx\",\"networkSiblingSetStateId\":\"gctmgxuupbezq\",\"networkFeatures\":\"Standard_Basic\"}") + "{\"networkSiblingSetId\":\"gp\",\"subnetId\":\"bu\",\"networkSiblingSetStateId\":\"qwyxebeybpm\",\"networkFeatures\":\"Basic_Standard\"}") .toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("jxl", model.networkSiblingSetId()); - Assertions.assertEquals("bsjuscvsfx", model.subnetId()); - Assertions.assertEquals("gctmgxuupbezq", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); + Assertions.assertEquals("gp", model.networkSiblingSetId()); + Assertions.assertEquals("bu", model.subnetId()); + Assertions.assertEquals("qwyxebeybpm", model.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UpdateNetworkSiblingSetRequest model = new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("jxl") - .withSubnetId("bsjuscvsfx") - .withNetworkSiblingSetStateId("gctmgxuupbezq") - .withNetworkFeatures(NetworkFeatures.STANDARD_BASIC); + UpdateNetworkSiblingSetRequest model = new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("gp") + .withSubnetId("bu") + .withNetworkSiblingSetStateId("qwyxebeybpm") + .withNetworkFeatures(NetworkFeatures.BASIC_STANDARD); model = BinaryData.fromObject(model).toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("jxl", model.networkSiblingSetId()); - Assertions.assertEquals("bsjuscvsfx", model.subnetId()); - Assertions.assertEquals("gctmgxuupbezq", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); + Assertions.assertEquals("gp", model.networkSiblingSetId()); + Assertions.assertEquals("bu", model.subnetId()); + Assertions.assertEquals("qwyxebeybpm", model.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java index bc8eb7062478..c2e1cdf391c1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java @@ -11,9 +11,9 @@ public final class UsageNameTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UsageName model = BinaryData.fromString("{\"value\":\"yjq\",\"localizedValue\":\"kfnozoeoqbvj\"}") + UsageName model = BinaryData.fromString("{\"value\":\"eifzzhmk\",\"localizedValue\":\"svflyhbxcudch\"}") .toObject(UsageName.class); - Assertions.assertEquals("yjq", model.value()); - Assertions.assertEquals("kfnozoeoqbvj", model.localizedValue()); + Assertions.assertEquals("eifzzhmk", model.value()); + Assertions.assertEquals("svflyhbxcudch", model.localizedValue()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java index 49b161e3c597..f19f246cbb75 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java @@ -11,7 +11,7 @@ public final class UsagePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsageProperties model - = BinaryData.fromString("{\"currentValue\":264605971,\"limit\":1475638226,\"unit\":\"bmq\"}") + = BinaryData.fromString("{\"currentValue\":972359949,\"limit\":581977719,\"unit\":\"ldforobwj\"}") .toObject(UsageProperties.class); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java index b16883a24805..bb7ed2fb669e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java @@ -11,7 +11,7 @@ public final class UsageResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsageResultInner model = BinaryData.fromString( - "{\"id\":\"yv\",\"name\":{\"value\":\"lrtywikdmhlakuf\",\"localizedValue\":\"bhgau\"},\"properties\":{\"currentValue\":2111371011,\"limit\":674793802,\"unit\":\"ufr\"}}") + "{\"id\":\"erbdk\",\"name\":{\"value\":\"idizozsdbccxjmo\",\"localizedValue\":\"dgnwncypuuwwlt\"},\"properties\":{\"currentValue\":26042024,\"limit\":1178196401,\"unit\":\"e\"}}") .toObject(UsageResultInner.class); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java index 059545bf69a2..76d6ac2af102 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java @@ -12,8 +12,8 @@ public final class UsagesListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsagesListResult model = BinaryData.fromString( - "{\"value\":[{\"id\":\"rtceukdqkkyihzt\",\"name\":{\"value\":\"mgqzgwldoyc\",\"localizedValue\":\"llcecfehuwaoa\"},\"properties\":{\"currentValue\":543728655,\"limit\":12610137,\"unit\":\"lizst\"}},{\"id\":\"sjvh\",\"name\":{\"value\":\"ftkwq\",\"localizedValue\":\"pmvssehaep\"},\"properties\":{\"currentValue\":1006428749,\"limit\":1216217570,\"unit\":\"zhupeuknijduyye\"}}],\"nextLink\":\"ydjfb\"}") + "{\"value\":[{\"id\":\"tffyaqit\",\"name\":{\"value\":\"eioqaqhvse\",\"localizedValue\":\"uqyrxpdl\"},\"properties\":{\"currentValue\":506736213,\"limit\":1453108292,\"unit\":\"mjqfrddgamquhio\"}},{\"id\":\"sjuivfcdisyir\",\"name\":{\"value\":\"hcz\",\"localizedValue\":\"rxzbujr\"},\"properties\":{\"currentValue\":1272649211,\"limit\":1247179302,\"unit\":\"evkh\"}},{\"id\":\"lnzonzlrpiqywn\",\"name\":{\"value\":\"tszcofizehtdhgb\",\"localizedValue\":\"vreljea\"},\"properties\":{\"currentValue\":1671689667,\"limit\":1202304870,\"unit\":\"ov\"}}],\"nextLink\":\"nashcxlp\"}") .toObject(UsagesListResult.class); - Assertions.assertEquals("ydjfb", model.nextLink()); + Assertions.assertEquals("nashcxlp", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java index f858ac56c426..7749c41864b7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java @@ -11,7 +11,7 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"2244bc3d-fd99-4510-882a-6ea297830f4c\",\"clientId\":\"5f019aaa-9608-488f-9369-aa72f242269f\"}") + "{\"principalId\":\"63a7d8a1-1e24-4169-9466-e66bff6b3fc5\",\"clientId\":\"ac2c06c3-a8f9-4d7b-8d87-55a3ce356a36\"}") .toObject(UserAssignedIdentity.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java index 9bed0daa86bb..e102be46d919 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java @@ -12,11 +12,11 @@ public final class VolumeBackupsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeBackups model = BinaryData.fromString( - "{\"volumeName\":\"usdsttwv\",\"volumeResourceId\":\"vbbejdcng\",\"backupsCount\":9453165,\"policyEnabled\":false}") + "{\"volumeName\":\"dsyuuximerqfob\",\"volumeResourceId\":\"znkbykutwpfhpagm\",\"backupsCount\":1165571898,\"policyEnabled\":true}") .toObject(VolumeBackups.class); - Assertions.assertEquals("usdsttwv", model.volumeName()); - Assertions.assertEquals("vbbejdcng", model.volumeResourceId()); - Assertions.assertEquals(9453165, model.backupsCount()); - Assertions.assertFalse(model.policyEnabled()); + Assertions.assertEquals("dsyuuximerqfob", model.volumeName()); + Assertions.assertEquals("znkbykutwpfhpagm", model.volumeResourceId()); + Assertions.assertEquals(1165571898, model.backupsCount()); + Assertions.assertTrue(model.policyEnabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java index 3a5577f164d2..51138b7f91ea 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.volumeGroups().delete("fawey", "rkphyjdxr", "vjuqdbrxmrgchb", com.azure.core.util.Context.NONE); + manager.volumeGroups().delete("otwypundmb", "hu", "cmjkavlgorbmftpm", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java index 75c672f3e0f0..69664201d548 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java @@ -15,28 +15,28 @@ public final class VolumeQuotaRuleInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeQuotaRuleInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"quotaSizeInKiBs\":6540094820562857174,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"gofel\"},\"location\":\"grqmqhldvrii\",\"tags\":{\"ueluqhhahhxvrhmz\":\"nalghfkvtvsexso\",\"ughftqsx\":\"wpjgwws\"},\"id\":\"qxujxukndxd\",\"name\":\"grjguufzd\",\"type\":\"syqtfi\"}") + "{\"properties\":{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":7851173611055432996,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"ty\"},\"location\":\"evxccedcp\",\"tags\":{\"vnhltiugcx\":\"yodnwzxltj\",\"y\":\"avvwxqi\",\"djrkvfgbvfvpd\":\"unyowxwl\"},\"id\":\"odacizs\",\"name\":\"q\",\"type\":\"hkr\"}") .toObject(VolumeQuotaRuleInner.class); - Assertions.assertEquals("grqmqhldvrii", model.location()); - Assertions.assertEquals("nalghfkvtvsexso", model.tags().get("ueluqhhahhxvrhmz")); - Assertions.assertEquals(6540094820562857174L, model.quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.INDIVIDUAL_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("gofel", model.quotaTarget()); + Assertions.assertEquals("evxccedcp", model.location()); + Assertions.assertEquals("yodnwzxltj", model.tags().get("vnhltiugcx")); + Assertions.assertEquals(7851173611055432996L, model.quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.DEFAULT_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("ty", model.quotaTarget()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeQuotaRuleInner model = new VolumeQuotaRuleInner().withLocation("grqmqhldvrii") - .withTags(mapOf("ueluqhhahhxvrhmz", "nalghfkvtvsexso", "ughftqsx", "wpjgwws")) - .withQuotaSizeInKiBs(6540094820562857174L) - .withQuotaType(QuotaType.INDIVIDUAL_GROUP_QUOTA) - .withQuotaTarget("gofel"); + VolumeQuotaRuleInner model = new VolumeQuotaRuleInner().withLocation("evxccedcp") + .withTags(mapOf("vnhltiugcx", "yodnwzxltj", "y", "avvwxqi", "djrkvfgbvfvpd", "unyowxwl")) + .withQuotaSizeInKiBs(7851173611055432996L) + .withQuotaType(QuotaType.DEFAULT_USER_QUOTA) + .withQuotaTarget("ty"); model = BinaryData.fromObject(model).toObject(VolumeQuotaRuleInner.class); - Assertions.assertEquals("grqmqhldvrii", model.location()); - Assertions.assertEquals("nalghfkvtvsexso", model.tags().get("ueluqhhahhxvrhmz")); - Assertions.assertEquals(6540094820562857174L, model.quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.INDIVIDUAL_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("gofel", model.quotaTarget()); + Assertions.assertEquals("evxccedcp", model.location()); + Assertions.assertEquals("yodnwzxltj", model.tags().get("vnhltiugcx")); + Assertions.assertEquals(7851173611055432996L, model.quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.DEFAULT_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("ty", model.quotaTarget()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java index fbd8dfee944a..7f66865d679d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java @@ -15,25 +15,27 @@ public final class VolumeQuotaRulePatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeQuotaRulePatch model = BinaryData.fromString( - "{\"tags\":{\"zqzudph\":\"o\"},\"properties\":{\"provisioningState\":\"Failed\",\"quotaSizeInKiBs\":6272990611779774689,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"wcvtbvkayhmtnvyq\"}}") + "{\"tags\":{\"rwkq\":\"hvxndzwmkrefajpj\",\"sjabibs\":\"yhgbijtjivfx\",\"bjxbkzbzk\":\"stawfsdjpvkv\",\"kmokz\":\"vncjabudurgk\"},\"properties\":{\"provisioningState\":\"Creating\",\"quotaSizeInKiBs\":3751920609197992678,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"uwqlgzrfzeey\"}}") .toObject(VolumeQuotaRulePatch.class); - Assertions.assertEquals("o", model.tags().get("zqzudph")); - Assertions.assertEquals(6272990611779774689L, model.quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("wcvtbvkayhmtnvyq", model.quotaTarget()); + Assertions.assertEquals("hvxndzwmkrefajpj", model.tags().get("rwkq")); + Assertions.assertEquals(3751920609197992678L, model.quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.INDIVIDUAL_GROUP_QUOTA, model.quotaType()); + Assertions.assertEquals("uwqlgzrfzeey", model.quotaTarget()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeQuotaRulePatch model = new VolumeQuotaRulePatch().withTags(mapOf("zqzudph", "o")) - .withQuotaSizeInKiBs(6272990611779774689L) - .withQuotaType(QuotaType.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("wcvtbvkayhmtnvyq"); + VolumeQuotaRulePatch model = new VolumeQuotaRulePatch() + .withTags(mapOf("rwkq", "hvxndzwmkrefajpj", "sjabibs", "yhgbijtjivfx", "bjxbkzbzk", "stawfsdjpvkv", "kmokz", + "vncjabudurgk")) + .withQuotaSizeInKiBs(3751920609197992678L) + .withQuotaType(QuotaType.INDIVIDUAL_GROUP_QUOTA) + .withQuotaTarget("uwqlgzrfzeey"); model = BinaryData.fromObject(model).toObject(VolumeQuotaRulePatch.class); - Assertions.assertEquals("o", model.tags().get("zqzudph")); - Assertions.assertEquals(6272990611779774689L, model.quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("wcvtbvkayhmtnvyq", model.quotaTarget()); + Assertions.assertEquals("hvxndzwmkrefajpj", model.tags().get("rwkq")); + Assertions.assertEquals(3751920609197992678L, model.quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.INDIVIDUAL_GROUP_QUOTA, model.quotaType()); + Assertions.assertEquals("uwqlgzrfzeey", model.quotaTarget()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java index 131f4e015f78..576208e3615f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java @@ -24,7 +24,7 @@ public final class VolumeQuotaRulesCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":1600881197016693915,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"y\"},\"location\":\"urykcrraueekcs\",\"tags\":{\"acbcb\":\"ogd\"},\"id\":\"ydl\",\"name\":\"idywmhmptyril\",\"type\":\"fbnrq\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":3134727442313406717,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"kjcjcaztbwsnsqow\"},\"location\":\"comlikytwvczc\",\"tags\":{\"yfdvlvhbwrnfxtgd\":\"acve\"},\"id\":\"pqthehnmnaoya\",\"name\":\"kcoeqswank\",\"type\":\"t\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,20 +34,21 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); VolumeQuotaRule response = manager.volumeQuotaRules() - .define("xsjxtelexhvuqboz") - .withRegion("snxawqyt") - .withExistingVolume("jsvkskmqozzkivy", "jrliiz", "ixlqfhefkwabsolr", "nqqlmgnl") - .withTags(mapOf("yckzex", "dyz")) - .withQuotaSizeInKiBs(5885680252211759993L) + .define("dwqslsrhmpqvw") + .withRegion("esi") + .withExistingVolume("lkeuac", "tomflrytswfpf", "dgycxnmskwhqjjy", "lurlpshhkvp") + .withTags(mapOf("hcecybmrqbr", "tljqobbpih", "crse", "bbmpxdlvykfre", "jggsvo", "wjksghudgzhxo", + "hrkmdyomkxfbvfbh", "jkxibda")) + .withQuotaSizeInKiBs(1614432178721424966L) .withQuotaType(QuotaType.DEFAULT_USER_QUOTA) - .withQuotaTarget("uzlbcnn") + .withQuotaTarget("imuvqejosovyrrl") .create(); - Assertions.assertEquals("urykcrraueekcs", response.location()); - Assertions.assertEquals("ogd", response.tags().get("acbcb")); - Assertions.assertEquals(1600881197016693915L, response.quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.INDIVIDUAL_GROUP_QUOTA, response.quotaType()); - Assertions.assertEquals("y", response.quotaTarget()); + Assertions.assertEquals("comlikytwvczc", response.location()); + Assertions.assertEquals("acve", response.tags().get("yfdvlvhbwrnfxtgd")); + Assertions.assertEquals(3134727442313406717L, response.quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.DEFAULT_USER_QUOTA, response.quotaType()); + Assertions.assertEquals("kjcjcaztbwsnsqow", response.quotaTarget()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java index 02f9b4383e10..8d25c818ed74 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumeQuotaRules() - .delete("sqqzlgcndhz", "rr", "cfsrhkhgsn", "uww", "pphefsbzx", com.azure.core.util.Context.NONE); + .delete("whmozusgzvlnsnnj", "fpafolpymwamxq", "rag", "gdphtvdula", "vl", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java index ceccf7d2a954..6c6083960136 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class VolumeQuotaRulesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Moving\",\"quotaSizeInKiBs\":8898749754136420685,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"rvzb\"},\"location\":\"yrsrziuctixgb\",\"tags\":{\"apezkiswqjmdghs\":\"ifrevk\"},\"id\":\"parybjufpt\",\"name\":\"jczjnciuiyqv\",\"type\":\"daswvpp\"}"; + = "{\"properties\":{\"provisioningState\":\"Creating\",\"quotaSizeInKiBs\":7253922179126888644,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"gv\"},\"location\":\"pcrrk\",\"tags\":{\"mjsmwr\":\"w\",\"jafi\":\"kcdxfzzzw\"},\"id\":\"lhguyn\",\"name\":\"chl\",\"type\":\"mltx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); VolumeQuotaRule response = manager.volumeQuotaRules() - .getWithResponse("fynn", "muii", "ri", "fohyk", "kxbbcbrwjiutgnj", com.azure.core.util.Context.NONE) + .getWithResponse("uyjucejikzo", "ovvtzejetjkln", "ikyju", "k", "bqzolxr", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("yrsrziuctixgb", response.location()); - Assertions.assertEquals("ifrevk", response.tags().get("apezkiswqjmdghs")); - Assertions.assertEquals(8898749754136420685L, response.quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, response.quotaType()); - Assertions.assertEquals("rvzb", response.quotaTarget()); + Assertions.assertEquals("pcrrk", response.location()); + Assertions.assertEquals("w", response.tags().get("mjsmwr")); + Assertions.assertEquals(7253922179126888644L, response.quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.DEFAULT_USER_QUOTA, response.quotaType()); + Assertions.assertEquals("gv", response.quotaTarget()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java index 04f680a5c939..ebaeafbcbd06 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java @@ -23,7 +23,7 @@ public final class VolumeQuotaRulesListByVolumeMockTests { @Test public void testListByVolume() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":4083417890761070349,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"dj\"},\"location\":\"dcadwvpsozjiihjr\",\"tags\":{\"xwdvwnj\":\"mrzoep\",\"nmx\":\"gv\",\"ibtyibuyvpirfqjp\":\"ursqf\"},\"id\":\"qnoowsbedenrex\",\"name\":\"xbhxvucnulgmnhj\",\"type\":\"vdyznf\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"quotaSizeInKiBs\":7632025456760729516,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"qvlnnpxybafiqgea\"},\"location\":\"bgj\",\"tags\":{\"wvmzegjonfhjir\":\"lklbyulidw\",\"z\":\"gdn\"},\"id\":\"rfkspzhz\",\"name\":\"tk\",\"type\":\"jcitdigsxcdglj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,12 +33,13 @@ public void testListByVolume() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.volumeQuotaRules() - .listByVolume("bzxomeik", "clwzacnmwpfsu", "t", "azyqbxyxoyfp", com.azure.core.util.Context.NONE); + .listByVolume("jchcsrlzknmzla", "rupdwvnphcnzq", "pjhmqrhvthl", "iwdcxsmlzzhzd", + com.azure.core.util.Context.NONE); - Assertions.assertEquals("dcadwvpsozjiihjr", response.iterator().next().location()); - Assertions.assertEquals("mrzoep", response.iterator().next().tags().get("xwdvwnj")); - Assertions.assertEquals(4083417890761070349L, response.iterator().next().quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, response.iterator().next().quotaType()); - Assertions.assertEquals("dj", response.iterator().next().quotaTarget()); + Assertions.assertEquals("bgj", response.iterator().next().location()); + Assertions.assertEquals("lklbyulidw", response.iterator().next().tags().get("wvmzegjonfhjir")); + Assertions.assertEquals(7632025456760729516L, response.iterator().next().quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.INDIVIDUAL_GROUP_QUOTA, response.iterator().next().quotaType()); + Assertions.assertEquals("qvlnnpxybafiqgea", response.iterator().next().quotaTarget()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java index be01fc1379ca..a86a98e5b676 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java @@ -13,13 +13,13 @@ public final class VolumeQuotaRulesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeQuotaRulesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"quotaSizeInKiBs\":3810518074680949543,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"zcjaesgvvsccy\"},\"location\":\"g\",\"tags\":{\"lvdnkfx\":\"hwyg\",\"apfcqdpsq\":\"semdwzrmu\",\"celve\":\"qvpsvuoymg\",\"erqwkyhkobopg\":\"rypqlmfeo\"},\"id\":\"edkowepbqpcrfk\",\"name\":\"wccsnjvcdwxlpqek\",\"type\":\"tn\"},{\"properties\":{\"provisioningState\":\"Moving\",\"quotaSizeInKiBs\":768157718472448573,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"fq\"},\"location\":\"mtdh\",\"tags\":{\"zywkb\":\"vypgikdg\",\"rvqqaatj\":\"rryuzhlhkjo\",\"ioolvrwxkvtkkgll\":\"nrvgoupmfiibfgg\"},\"id\":\"wjygvjayvblmhvk\",\"name\":\"uhbxvvy\",\"type\":\"gsopbyrqufegxu\"},{\"properties\":{\"provisioningState\":\"Creating\",\"quotaSizeInKiBs\":3007330955006974455,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"tlpdn\"},\"location\":\"tvgbmhrixkwmy\",\"tags\":{\"dreaxh\":\"jvegrhbpnaixexcc\",\"tpwijnh\":\"exdrrvqahqkg\",\"vmtgjqppy\":\"jsvfycxzbfvoowv\",\"ronzmyhgfip\":\"s\"},\"id\":\"sxkm\",\"name\":\"waekrrjreafxtsgu\",\"type\":\"hjglikk\"}],\"nextLink\":\"slol\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":3361403308892839308,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"lbjbsyb\"},\"location\":\"wrv\",\"tags\":{\"paslthaqfxssmwu\":\"gmfpgvmp\",\"zpdrhneu\":\"wbdsr\",\"ircgpikpz\":\"owqkdwytisi\",\"rmbzo\":\"mejzanlfzxia\"},\"id\":\"okixrjqcir\",\"name\":\"zpfrla\",\"type\":\"szrnwo\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":2655439268574784215,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"lwbtlhf\"},\"location\":\"jcdh\",\"tags\":{\"rqmq\":\"jvfbgofelja\",\"tvsexsowuel\":\"ldvriiiojnalghfk\",\"wws\":\"qhhahhxvrhmzkwpj\",\"qxujxukndxd\":\"ughftqsx\"},\"id\":\"grjguufzd\",\"name\":\"syqtfi\",\"type\":\"whbotzingamv\"},{\"properties\":{\"provisioningState\":\"Accepted\",\"quotaSizeInKiBs\":7578366703491273982,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"phqamvdkfwynwcvt\"},\"location\":\"kayh\",\"tags\":{\"kzwpcnpw\":\"vyqia\"},\"id\":\"cjaesgvvs\",\"name\":\"cyajguqf\",\"type\":\"wygzlvdnkfxusem\"}],\"nextLink\":\"zrmuhapfcqdps\"}") .toObject(VolumeQuotaRulesList.class); - Assertions.assertEquals("g", model.value().get(0).location()); - Assertions.assertEquals("hwyg", model.value().get(0).tags().get("lvdnkfx")); - Assertions.assertEquals(3810518074680949543L, model.value().get(0).quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.DEFAULT_USER_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("zcjaesgvvsccy", model.value().get(0).quotaTarget()); - Assertions.assertEquals("slol", model.nextLink()); + Assertions.assertEquals("wrv", model.value().get(0).location()); + Assertions.assertEquals("gmfpgvmp", model.value().get(0).tags().get("paslthaqfxssmwu")); + Assertions.assertEquals(3361403308892839308L, model.value().get(0).quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, model.value().get(0).quotaType()); + Assertions.assertEquals("lbjbsyb", model.value().get(0).quotaTarget()); + Assertions.assertEquals("zrmuhapfcqdps", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java index aab47ee34713..a12fa398810a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java @@ -13,21 +13,21 @@ public final class VolumeQuotaRulesPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeQuotaRulesProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":4169097582837090824,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"gamv\"}") + "{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":4257608581453488752,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"p\"}") .toObject(VolumeQuotaRulesProperties.class); - Assertions.assertEquals(4169097582837090824L, model.quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("gamv", model.quotaTarget()); + Assertions.assertEquals(4257608581453488752L, model.quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("p", model.quotaTarget()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeQuotaRulesProperties model = new VolumeQuotaRulesProperties().withQuotaSizeInKiBs(4169097582837090824L) - .withQuotaType(QuotaType.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("gamv"); + VolumeQuotaRulesProperties model = new VolumeQuotaRulesProperties().withQuotaSizeInKiBs(4257608581453488752L) + .withQuotaType(QuotaType.INDIVIDUAL_USER_QUOTA) + .withQuotaTarget("p"); model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesProperties.class); - Assertions.assertEquals(4169097582837090824L, model.quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("gamv", model.quotaTarget()); + Assertions.assertEquals(4257608581453488752L, model.quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("p", model.quotaTarget()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java index dcf03c98b0aa..a00f09cc18a6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java @@ -20,7 +20,7 @@ public final class VolumesAuthorizeExternalReplicationMockTests { @Test public void testAuthorizeExternalReplication() throws Exception { - String responseStr = "{\"svmPeeringCommand\":\"tbwbqamteuli\"}"; + String responseStr = "{\"properties\":{\"svmPeeringCommand\":\"nugj\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,9 @@ public void testAuthorizeExternalReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SvmPeerCommandResponse response = manager.volumes() - .authorizeExternalReplication("jeaoqaqbz", "yh", "w", "v", com.azure.core.util.Context.NONE); + .authorizeExternalReplication("lbyvictctbrxkjzw", "gxffmshkwf", "kgozxwop", "bydpizqaclnapxb", + com.azure.core.util.Context.NONE); - Assertions.assertEquals("tbwbqamteuli", response.svmPeeringCommand()); + Assertions.assertEquals("nugj", response.properties().svmPeeringCommand()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java index d78cbb1330c4..60195699d984 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java @@ -29,8 +29,8 @@ public void testAuthorizeReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .authorizeReplication("xvhcs", "hzlwxaea", "vurex", "ndsbdw", - new AuthorizeRequest().withRemoteVolumeResourceId("derzmwnto"), com.azure.core.util.Context.NONE); + .authorizeReplication("dzqavbpdqmjxlyyz", "lgouwtlmjj", "uojqt", "baxk", + new AuthorizeRequest().withRemoteVolumeResourceId("ytunlbfjkwr"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java index da47f2c348dc..79eb8cab9103 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java @@ -29,9 +29,8 @@ public void testBreakFileLocks() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .breakFileLocks("g", "rftb", "ve", "reuquowtljvf", - new BreakFileLocksRequest().withClientIp("reagkhyxvrqt").withConfirmRunningDisruptiveOperation(true), - com.azure.core.util.Context.NONE); + .breakFileLocks("vru", "nz", "jgehkf", "imrt", new BreakFileLocksRequest().withClientIp("okffqyinljqepqwh") + .withConfirmRunningDisruptiveOperation(true), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java index 5e13bdeba0e4..c05240db380d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java @@ -29,7 +29,7 @@ public void testBreakReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .breakReplication("ubn", "itpkpztrgdg", "vcoqraswugyxpqi", "we", + .breakReplication("ziqgfuh", "kzruswh", "hczznvf", "ycjsx", new BreakReplicationRequest().withForceBreakReplication(false), com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java index b32d452a5db9..f214f8204334 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java @@ -27,7 +27,9 @@ public void testDeleteReplication() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.volumes().deleteReplication("ui", "vxva", "vcrk", "lbnb", com.azure.core.util.Context.NONE); + manager.volumes() + .deleteReplication("rltzkatbhjmz", "nbsoqeqalarv", "agunbtgfebw", "nbmhyree", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java index fac448fa2523..1fea4a11705f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java @@ -28,7 +28,7 @@ public void testFinalizeRelocation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .finalizeRelocation("zagxnvhycvdi", "wrzregzgyufu", "rw", "weryekzk", com.azure.core.util.Context.NONE); + .finalizeRelocation("owa", "iynknlq", "zdvpiw", "xqszdtmaajquh", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java index 188ddc4c0af2..f2d77d5c6e4c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java @@ -21,7 +21,7 @@ public final class VolumesListGetGroupIdListForLdapUserMockTests { @Test public void testListGetGroupIdListForLdapUser() throws Exception { - String responseStr = "{\"groupIdsForLdapUser\":[\"zrgjfok\"]}"; + String responseStr = "{\"groupIdsForLdapUser\":[\"jtbxqmuluxlx\",\"zvners\",\"ycucrwnamikzeb\",\"qbsms\"]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testListGetGroupIdListForLdapUser() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GetGroupIdListForLdapUserResponse response = manager.volumes() - .listGetGroupIdListForLdapUser("zsulmdgglme", "jpfseykg", "angpszngafpgyl", "vecjujcn", - new GetGroupIdListForLdapUserRequest().withUsername("oady"), com.azure.core.util.Context.NONE); + .listGetGroupIdListForLdapUser("onsts", "i", "xgvelfclduccbird", "vuwcobiegstmnin", + new GetGroupIdListForLdapUserRequest().withUsername("jizcilnghgs"), com.azure.core.util.Context.NONE); - Assertions.assertEquals("zrgjfok", response.groupIdsForLdapUser().get(0)); + Assertions.assertEquals("jtbxqmuluxlx", response.groupIdsForLdapUser().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportMockTests.java index 5bc12282fbc4..e81badab4cab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportMockTests.java @@ -23,7 +23,7 @@ public final class VolumesListQuotaReportMockTests { @Test public void testListQuotaReport() throws Exception { String responseStr - = "{\"properties\":{\"quotaReportRecords\":[{\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"jrednwyysh\",\"quotaLimitUsedInKiBs\":946904308692624404,\"quotaLimitTotalInKiBs\":5521777479511338040,\"percentageUsed\":80.7474,\"isDerivedQuota\":false},{\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"ifrkgwltxeqipx\",\"quotaLimitUsedInKiBs\":8296520665502745950,\"quotaLimitTotalInKiBs\":3749646104554834648,\"percentageUsed\":47.770466,\"isDerivedQuota\":true}]}}"; + = "{\"properties\":{\"quotaReportRecords\":[{\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"gpnrhgov\",\"quotaLimitUsedInKiBs\":6131768695545339790,\"quotaLimitTotalInKiBs\":8602443977258369217,\"percentageUsed\":30.748308,\"isDerivedQuota\":true},{\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"mzvupor\",\"quotaLimitUsedInKiBs\":5235917180289982639,\"quotaLimitTotalInKiBs\":6437481648804620645,\"percentageUsed\":99.04068,\"isDerivedQuota\":true},{\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"nq\",\"quotaLimitUsedInKiBs\":8747604723179169845,\"quotaLimitTotalInKiBs\":3069133497157477777,\"percentageUsed\":47.20034,\"isDerivedQuota\":false},{\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"gdhbe\",\"quotaLimitUsedInKiBs\":8008327052394351469,\"quotaLimitTotalInKiBs\":1286018993846993841,\"percentageUsed\":58.600147,\"isDerivedQuota\":false}]}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,20 +33,20 @@ public void testListQuotaReport() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ListQuotaReportResult response = manager.volumes() - .listQuotaReport("pmil", "pnwy", "udqll", "sauzpjlx", - new QuotaReportFilterRequest().withQuotaType(QuotaType.INDIVIDUAL_GROUP_QUOTA) - .withQuotaTarget("xiqhzlraymezxlsk") - .withUsageThresholdPercentage(1868109842), + .listQuotaReport("rxmunjdxvgln", "vxlx", "aglqivbgkcvkh", "zvuqdflvon", + new QuotaReportFilterRequest().withQuotaType(QuotaType.INDIVIDUAL_USER_QUOTA) + .withQuotaTarget("pubcpzgpxtivhjk") + .withUsageThresholdPercentage(1660677245), com.azure.core.util.Context.NONE); - Assertions.assertEquals(QuotaType.INDIVIDUAL_GROUP_QUOTA, + Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, response.properties().quotaReportRecords().get(0).quotaType()); - Assertions.assertEquals("jrednwyysh", response.properties().quotaReportRecords().get(0).quotaTarget()); - Assertions.assertEquals(946904308692624404L, + Assertions.assertEquals("gpnrhgov", response.properties().quotaReportRecords().get(0).quotaTarget()); + Assertions.assertEquals(6131768695545339790L, response.properties().quotaReportRecords().get(0).quotaLimitUsedInKiBs()); - Assertions.assertEquals(5521777479511338040L, + Assertions.assertEquals(8602443977258369217L, response.properties().quotaReportRecords().get(0).quotaLimitTotalInKiBs()); - Assertions.assertEquals(80.7474F, response.properties().quotaReportRecords().get(0).percentageUsed()); - Assertions.assertFalse(response.properties().quotaReportRecords().get(0).isDerivedQuota()); + Assertions.assertEquals(30.748308F, response.properties().quotaReportRecords().get(0).percentageUsed()); + Assertions.assertTrue(response.properties().quotaReportRecords().get(0).isDerivedQuota()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java index 68d08c8d0db2..7f7c30e2c426 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java @@ -26,7 +26,7 @@ public final class VolumesListReplicationsMockTests { @Test public void testListReplications() throws Exception { String responseStr - = "{\"value\":[{\"replicationId\":\"bbcccgz\",\"endpointType\":\"src\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"yuffatsgf\",\"remoteVolumeRegion\":\"p\",\"mirrorState\":\"Uninitialized\",\"replicationCreationTime\":\"2021-01-22T16:26:57Z\",\"replicationDeletionTime\":\"2021-10-26T21:34:32Z\"}]}"; + = "{\"value\":[{\"replicationId\":\"rytfmpcycil\",\"endpointType\":\"dst\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"ggn\",\"remoteVolumeRegion\":\"uztrksxwpndfcpf\",\"mirrorState\":\"Mirrored\",\"replicationCreationTime\":\"2021-05-17T18:52:51Z\",\"replicationDeletionTime\":\"2021-09-16T04:39:55Z\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,12 +36,12 @@ public void testListReplications() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.volumes() - .listReplications("ej", "riuxegthortuda", "lpjfelqerpptcbgq", "zmnhiilialwc", + .listReplications("npbs", "vefloccsrmozihmi", "g", "wtxxpkyjcx", new ListReplicationsRequest().withExclude(Exclude.NONE), com.azure.core.util.Context.NONE); - Assertions.assertEquals(EndpointType.SRC, response.iterator().next().endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, response.iterator().next().replicationSchedule()); - Assertions.assertEquals("yuffatsgf", response.iterator().next().remoteVolumeResourceId()); - Assertions.assertEquals("p", response.iterator().next().remoteVolumeRegion()); + Assertions.assertEquals(EndpointType.DST, response.iterator().next().endpointType()); + Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, response.iterator().next().replicationSchedule()); + Assertions.assertEquals("ggn", response.iterator().next().remoteVolumeResourceId()); + Assertions.assertEquals("uztrksxwpndfcpf", response.iterator().next().remoteVolumeRegion()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java index 1158ae8087fe..ba85a9ebea09 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java @@ -22,7 +22,7 @@ public final class VolumesPeerExternalClusterMockTests { @Test public void testPeerExternalCluster() throws Exception { - String responseStr = "{\"peerAcceptCommand\":\"jdnrqjbt\"}"; + String responseStr = "{\"properties\":{\"clusterPeeringCommand\":\"t\",\"passphrase\":\"zb\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,12 @@ public void testPeerExternalCluster() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ClusterPeerCommandResponse response = manager.volumes() - .peerExternalCluster("xitp", "inzcpdltkrlgj", "tbdrvcqgue", "zhomp", - new PeerClusterForVolumeMigrationRequest().withPeerIpAddresses( - Arrays.asList("qdurelyujlfyoum", "ckyeclcdigpta", "brzmqxucycijoclx", "utgjcyz")), + .peerExternalCluster( + "xuckpggqoweyir", "hlisngw", "lqqmpiz", "uwnpqxpxiwfcng", new PeerClusterForVolumeMigrationRequest() + .withPeerIpAddresses(Arrays.asList("aas", "ixtmkzjvkviirhgf", "rwsdp")), com.azure.core.util.Context.NONE); - Assertions.assertEquals("jdnrqjbt", response.peerAcceptCommand()); + Assertions.assertEquals("t", response.properties().clusterPeeringCommand()); + Assertions.assertEquals("zb", response.properties().passphrase()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java index d408083d1a71..a491a00e731f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java @@ -29,8 +29,8 @@ public void testPoolChange() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .poolChange("slpkcvmwfauxxep", "ywbo", "mcqmiciijqp", "zfboj", - new PoolChangeRequest().withNewPoolResourceId("jmcsmyqwixvcpwn"), com.azure.core.util.Context.NONE); + .poolChange("nfsm", "cttuxuu", "i", "flqo", new PoolChangeRequest().withNewPoolResourceId("quvre"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java index 43e2dc617822..50fbf282b56e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java @@ -28,7 +28,8 @@ public void testReInitializeReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .reInitializeReplication("agttm", "mmagoaqylkjzt", "iua", "jcg", com.azure.core.util.Context.NONE); + .reInitializeReplication("snkq", "hsyrqunj", "hdenxaulk", "akdkifmjnnawtqab", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java index 02f8d44d48ec..a213f926f82e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class VolumesReplicationStatusWithResponseMockTests { @Test public void testReplicationStatusWithResponse() throws Exception { String responseStr - = "{\"healthy\":false,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Mirrored\",\"totalProgress\":\"fqcvovj\",\"errorMessage\":\"ycsjmlbem\"}"; + = "{\"healthy\":false,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Broken\",\"totalProgress\":\"coxpelnjeta\",\"errorMessage\":\"tsxoatftgz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,13 @@ public void testReplicationStatusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ReplicationStatus response = manager.volumes() - .replicationStatusWithResponse("wvskbuhzacaqtylt", "oqc", "jpds", "zakuejk", - com.azure.core.util.Context.NONE) + .replicationStatusWithResponse("i", "z", "umwmxqhnd", "noamldsehaohdj", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertFalse(response.healthy()); - Assertions.assertEquals(VolumeReplicationRelationshipStatus.TRANSFERRING, response.relationshipStatus()); - Assertions.assertEquals(MirrorState.MIRRORED, response.mirrorState()); - Assertions.assertEquals("fqcvovj", response.totalProgress()); - Assertions.assertEquals("ycsjmlbem", response.errorMessage()); + Assertions.assertEquals(VolumeReplicationRelationshipStatus.IDLE, response.relationshipStatus()); + Assertions.assertEquals(MirrorState.BROKEN, response.mirrorState()); + Assertions.assertEquals("coxpelnjeta", response.totalProgress()); + Assertions.assertEquals("tsxoatftgz", response.errorMessage()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java index 6b5972f6372a..5ff1baadc4dd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java @@ -27,7 +27,8 @@ public void testResyncReplication() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.volumes().resyncReplication("hiqdxy", "rnpnuhzafccnuh", "i", "byl", com.azure.core.util.Context.NONE); + manager.volumes() + .resyncReplication("wkjaos", "xuzvoamktcqi", "smgbzahgxqdl", "rtltla", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java index c31297ce468a..35d5aac7c586 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java @@ -29,7 +29,7 @@ public void testRevert() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .revert("kakfqfr", "em", "il", "udxjascowv", new VolumeRevert().withSnapshotId("jkpdxphlkksnm"), + .revert("sqqw", "tcmwqkchc", "waxfewzjkj", "xfdeqvhpsyl", new VolumeRevert().withSnapshotId("shk"), com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java index 53180e90a704..01e2766b7517 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java @@ -27,7 +27,9 @@ public void testRevertRelocation() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.volumes().revertRelocation("hmeott", "w", "yos", "wwhnhjtfvpn", com.azure.core.util.Context.NONE); + manager.volumes() + .revertRelocation("xylrjvmtygjbmz", "ospspshckf", "yjpmspbpssdfppyo", "tieyujtvczkcny", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java index 43f9723f1d73..20d4ada89b88 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java @@ -12,27 +12,27 @@ public final class WeeklyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WeeklySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":410536008,\"day\":\"w\",\"hour\":1899163147,\"minute\":2109654936,\"usedBytes\":5698766360721811122}") + "{\"snapshotsToKeep\":1024892279,\"day\":\"wwiftohqkvpuv\",\"hour\":491288629,\"minute\":710710602,\"usedBytes\":8295901406246697833}") .toObject(WeeklySchedule.class); - Assertions.assertEquals(410536008, model.snapshotsToKeep()); - Assertions.assertEquals("w", model.day()); - Assertions.assertEquals(1899163147, model.hour()); - Assertions.assertEquals(2109654936, model.minute()); - Assertions.assertEquals(5698766360721811122L, model.usedBytes()); + Assertions.assertEquals(1024892279, model.snapshotsToKeep()); + Assertions.assertEquals("wwiftohqkvpuv", model.day()); + Assertions.assertEquals(491288629, model.hour()); + Assertions.assertEquals(710710602, model.minute()); + Assertions.assertEquals(8295901406246697833L, model.usedBytes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WeeklySchedule model = new WeeklySchedule().withSnapshotsToKeep(410536008) - .withDay("w") - .withHour(1899163147) - .withMinute(2109654936) - .withUsedBytes(5698766360721811122L); + WeeklySchedule model = new WeeklySchedule().withSnapshotsToKeep(1024892279) + .withDay("wwiftohqkvpuv") + .withHour(491288629) + .withMinute(710710602) + .withUsedBytes(8295901406246697833L); model = BinaryData.fromObject(model).toObject(WeeklySchedule.class); - Assertions.assertEquals(410536008, model.snapshotsToKeep()); - Assertions.assertEquals("w", model.day()); - Assertions.assertEquals(1899163147, model.hour()); - Assertions.assertEquals(2109654936, model.minute()); - Assertions.assertEquals(5698766360721811122L, model.usedBytes()); + Assertions.assertEquals(1024892279, model.snapshotsToKeep()); + Assertions.assertEquals("wwiftohqkvpuv", model.day()); + Assertions.assertEquals(491288629, model.hour()); + Assertions.assertEquals(710710602, model.minute()); + Assertions.assertEquals(8295901406246697833L, model.usedBytes()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml b/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml index 80354ff45bcd..787b44736e15 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml +++ b/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/netapp/resource-manager/Microsoft.NetApp/NetApp -commit: 117cc9c72862af27d56430fac305b61e00341b3d +commit: c5044e9d381c2bf1b3119011b4696e777f819f76 repo: Azure/azure-rest-api-specs additionalDirectories: