diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index b5d5fee2e0e8..2fe485819fd7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,14 +1,60 @@ # Release History -## 1.6.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2025-02-10) + +- 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 tag package-preview-2024-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added -### Breaking Changes +* `models.CoolAccessTieringPolicy` was added + +* `models.EncryptionTransitionRequest` was added -### Bugs Fixed +* `models.KeyVaultPrivateEndpoint` was added -### Other Changes +* `models.GetKeyVaultStatusResponse` was added + +* `models.ChangeKeyVault` was added + +#### `models.Volume` was modified + +* `coolAccessTieringPolicy()` was added + +#### `models.Volume$Update` was modified + +* `withCoolAccessTieringPolicy(models.CoolAccessTieringPolicy)` was added + +#### `models.VolumePatch` was modified + +* `coolAccessTieringPolicy()` was added +* `withCoolAccessTieringPolicy(models.CoolAccessTieringPolicy)` was added + +#### `models.Volume$Definition` was modified + +* `withCoolAccessTieringPolicy(models.CoolAccessTieringPolicy)` was added + +#### `models.VolumeGroupVolumeProperties` was modified + +* `coolAccessTieringPolicy()` was added +* `withCoolAccessTieringPolicy(models.CoolAccessTieringPolicy)` was added + +#### `models.Accounts` was modified + +* `transitionToCmk(java.lang.String,java.lang.String,models.EncryptionTransitionRequest,com.azure.core.util.Context)` was added +* `changeKeyVault(java.lang.String,java.lang.String)` was added +* `changeKeyVault(java.lang.String,java.lang.String,models.ChangeKeyVault,com.azure.core.util.Context)` was added +* `transitionToCmk(java.lang.String,java.lang.String)` was added +* `getChangeKeyVaultInformation(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `getChangeKeyVaultInformation(java.lang.String,java.lang.String)` was added + +#### `models.NetAppAccount` was modified + +* `getChangeKeyVaultInformation()` was added +* `changeKeyVault()` was added +* `transitionToCmk()` was added +* `transitionToCmk(models.EncryptionTransitionRequest,com.azure.core.util.Context)` was added +* `changeKeyVault(models.ChangeKeyVault,com.azure.core.util.Context)` was added +* `getChangeKeyVaultInformation(com.azure.core.util.Context)` was added ## 1.6.0-beta.1 (2024-11-18) diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index 6696d9e718a9..ef7bac31a223 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 tag package-preview-2024-07-01-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 tag package-preview-2024-09-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 - 1.6.0-beta.1 + 1.6.0-beta.2 ``` [//]: # ({x-version-update-end}) @@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java -AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); +AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD); TokenCredential credential = new DefaultAzureCredentialBuilder() .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) .build(); @@ -60,7 +60,7 @@ NetAppFilesManager manager = NetAppFilesManager .authenticate(credential, profile); ``` -The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. +The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise. See [Authentication][authenticate] for more options. @@ -107,5 +107,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ - - diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md index 5a482ead1452..f1fb41340c0a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md +++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md @@ -139,7 +139,6 @@ - [Get](#volumes_get) - [List](#volumes_list) - [ListGetGroupIdListForLdapUser](#volumes_listgetgroupidlistforldapuser) -- [ListQuotaReport](#volumes_listquotareport) - [ListReplications](#volumes_listreplications) - [PeerExternalCluster](#volumes_peerexternalcluster) - [PerformReplicationTransfer](#volumes_performreplicationtransfer) @@ -153,7 +152,6 @@ - [ResyncReplication](#volumes_resyncreplication) - [Revert](#volumes_revert) - [RevertRelocation](#volumes_revertrelocation) -- [SplitCloneFromParent](#volumes_splitclonefromparent) - [Update](#volumes_update) ### Accounts_ChangeKeyVault @@ -167,8 +165,8 @@ import java.util.Arrays; */ public final class AccountsChangeKeyVaultSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Accounts_ChangeKeyVault.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_ChangeKeyVault.json */ /** * Sample code: Accounts_ChangeKeyVault. @@ -200,8 +198,8 @@ import java.util.Arrays; */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Accounts_CreateOrUpdate.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -213,8 +211,8 @@ public final class AccountsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Accounts_CreateOrUpdateAD.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. @@ -251,7 +249,7 @@ public final class AccountsCreateOrUpdateSamples { public final class AccountsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. @@ -273,7 +271,7 @@ public final class AccountsDeleteSamples { public final class AccountsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Get.json */ /** * Sample code: Accounts_Get. @@ -294,7 +292,7 @@ public final class AccountsGetByResourceGroupSamples { */ public final class AccountsGetChangeKeyVaultInformationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Accounts_GetChangeKeyVaultInformation.json */ /** @@ -318,7 +316,7 @@ public final class AccountsGetChangeKeyVaultInformationSamples { public final class AccountsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. @@ -340,7 +338,7 @@ public final class AccountsListSamples { public final class AccountsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. @@ -361,8 +359,8 @@ public final class AccountsListByResourceGroupSamples { */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Accounts_RenewCredentials.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. @@ -385,7 +383,7 @@ import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; */ public final class AccountsTransitionToCmkSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Accounts_TransitionEncryptionKey.json */ /** @@ -417,7 +415,7 @@ import java.util.Map; public final class AccountsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Update.json */ /** * Sample code: Accounts_Update. @@ -454,8 +452,7 @@ public final class AccountsUpdateSamples { public final class BackupPoliciesCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Create. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. @@ -485,8 +482,7 @@ public final class BackupPoliciesCreateSamples { public final class BackupPoliciesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Delete. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Delete.json */ /** * Sample code: BackupPolicies_Delete. @@ -509,8 +505,7 @@ public final class BackupPoliciesDeleteSamples { public final class BackupPoliciesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Get. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Get.json */ /** * Sample code: Backups_Get. @@ -533,8 +528,7 @@ public final class BackupPoliciesGetSamples { public final class BackupPoliciesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_List. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_List.json */ /** * Sample code: BackupPolicies_List. @@ -558,8 +552,7 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy; public final class BackupPoliciesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Update. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. @@ -589,8 +582,7 @@ public final class BackupPoliciesUpdateSamples { public final class BackupVaultsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Create. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Create.json */ /** * Sample code: BackupVault_CreateOrUpdate. @@ -616,8 +608,7 @@ public final class BackupVaultsCreateOrUpdateSamples { public final class BackupVaultsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Delete. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Delete.json */ /** * Sample code: BackupVaults_Delete. @@ -639,7 +630,7 @@ public final class BackupVaultsDeleteSamples { public final class BackupVaultsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Get.json */ /** * Sample code: BackupVaults_Get. @@ -661,7 +652,7 @@ public final class BackupVaultsGetSamples { public final class BackupVaultsListByNetAppAccountSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_List.json */ /** * Sample code: BackupVaults_List. @@ -687,8 +678,7 @@ import java.util.Map; public final class BackupVaultsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Update. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Update.json */ /** * Sample code: BackupVaults_Update. @@ -724,8 +714,9 @@ public final class BackupVaultsUpdateSamples { */ public final class BackupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderBackupVault_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Create. + * json */ /** * Sample code: BackupsUnderBackupVault_Create. @@ -752,8 +743,9 @@ public final class BackupsCreateSamples { */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderBackupVault_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Delete. + * json */ /** * Sample code: BackupsUnderBackupVault_Delete. @@ -775,8 +767,9 @@ public final class BackupsDeleteSamples { */ public final class BackupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderBackupVault_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Get. + * json */ /** * Sample code: BackupsUnderBackupVault_Get. @@ -798,8 +791,8 @@ public final class BackupsGetSamples { */ public final class BackupsGetLatestStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_LatestBackupStatus.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_LatestBackupStatus.json */ /** * Sample code: Volumes_BackupStatus. @@ -821,8 +814,9 @@ public final class BackupsGetLatestStatusSamples { */ public final class BackupsGetVolumeLatestRestoreStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_LatestRestoreStatus.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_LatestRestoreStatus. + * json */ /** * Sample code: Volumes_RestoreStatus. @@ -845,8 +839,9 @@ public final class BackupsGetVolumeLatestRestoreStatusSamples { */ public final class BackupsListByVaultSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderBackupVault_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_List. + * json */ /** * Sample code: Backups_List. @@ -869,8 +864,9 @@ import com.azure.resourcemanager.netapp.models.Backup; */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderBackupVault_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Update. + * json */ /** * Sample code: BackupsUnderBackupVault_Update. @@ -896,8 +892,9 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; */ public final class BackupsUnderAccountMigrateBackupsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderAccount_Migrate.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderAccount_Migrate. + * json */ /** * Sample code: BackupsUnderAccount_Migrate. @@ -924,7 +921,7 @@ import java.util.Arrays; */ public final class BackupsUnderBackupVaultRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * BackupsUnderBackupVault_SingleFileRestore.json */ /** @@ -953,8 +950,8 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; */ public final class BackupsUnderVolumeMigrateBackupsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderVolume_Migrate.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderVolume_Migrate.json */ /** * Sample code: BackupsUnderVolume_Migrate. @@ -980,8 +977,8 @@ import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * CheckFilePathAvailability.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. @@ -1011,8 +1008,7 @@ import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; public final class NetAppResourceCheckNameAvailabilitySamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckNameAvailability. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. @@ -1042,8 +1038,7 @@ import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; public final class NetAppResourceCheckQuotaAvailabilitySamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckQuotaAvailability - * .json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. @@ -1071,8 +1066,8 @@ import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * NetworkSiblingSet_Query.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. @@ -1099,7 +1094,7 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples { public final class NetAppResourceQueryRegionInfoSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfo.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfo.json */ /** * Sample code: RegionInfo_Query. @@ -1123,8 +1118,8 @@ import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * NetworkSiblingSet_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. @@ -1152,7 +1147,7 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples { public final class NetAppResourceQuotaLimitsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/QuotaLimits_Get.json */ /** * Sample code: QuotaLimits. @@ -1175,7 +1170,7 @@ public final class NetAppResourceQuotaLimitsGetSamples { public final class NetAppResourceQuotaLimitsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/QuotaLimits_List.json */ /** * Sample code: QuotaLimits. @@ -1197,7 +1192,7 @@ public final class NetAppResourceQuotaLimitsListSamples { public final class NetAppResourceRegionInfosGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfos_Get.json */ /** * Sample code: RegionInfos_Get. @@ -1219,7 +1214,7 @@ public final class NetAppResourceRegionInfosGetSamples { public final class NetAppResourceRegionInfosListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfos_List.json */ /** * Sample code: RegionInfos_List. @@ -1241,7 +1236,7 @@ public final class NetAppResourceRegionInfosListSamples { public final class OperationsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/OperationList.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/OperationList.json */ /** * Sample code: OperationList. @@ -1266,8 +1261,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; public final class PoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -1284,28 +1278,6 @@ public final class PoolsCreateOrUpdateSamples { .withQosType(QosType.AUTO) .create(); } - - /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Pools_CreateOrUpdate_CustomThroughput.json - */ - /** - * Sample code: Pools_CreateOrUpdate_CustomThroughput. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - poolsCreateOrUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.pools() - .define("customPool1") - .withRegion("eastus") - .withExistingNetAppAccount("myRG", "account1") - .withSize(4398046511104L) - .withServiceLevel(ServiceLevel.FLEXIBLE) - .withCustomThroughputMibps(128.0F) - .withQosType(QosType.MANUAL) - .create(); - } } ``` @@ -1318,7 +1290,7 @@ public final class PoolsCreateOrUpdateSamples { public final class PoolsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Delete.json */ /** * Sample code: Pools_Delete. @@ -1338,22 +1310,9 @@ public final class PoolsDeleteSamples { * Samples for Pools Get. */ public final class PoolsGetSamples { - /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Pools_Get_CustomThroughput.json - */ - /** - * Sample code: Pools_Get_CustomThroughput. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void poolsGetCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.pools().getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE); - } - /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Get.json */ /** * Sample code: Pools_Get. @@ -1375,7 +1334,7 @@ public final class PoolsGetSamples { public final class PoolsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_List.json */ /** * Sample code: Pools_List. @@ -1399,7 +1358,7 @@ import com.azure.resourcemanager.netapp.models.CapacityPool; public final class PoolsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -1411,22 +1370,6 @@ public final class PoolsUpdateSamples { = manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue(); resource.update().apply(); } - - /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Pools_Update_CustomThroughput.json - */ - /** - * Sample code: Pools_Update_CustomThroughput. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void poolsUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - CapacityPool resource = manager.pools() - .getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().apply(); - } } ``` @@ -1443,8 +1386,8 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * SnapshotPolicies_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. @@ -1476,8 +1419,8 @@ public final class SnapshotPoliciesCreateSamples { */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * SnapshotPolicies_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. @@ -1500,8 +1443,7 @@ public final class SnapshotPoliciesDeleteSamples { public final class SnapshotPoliciesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Get. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. @@ -1524,8 +1466,7 @@ public final class SnapshotPoliciesGetSamples { public final class SnapshotPoliciesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_List. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. @@ -1546,8 +1487,9 @@ public final class SnapshotPoliciesListSamples { */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * SnapshotPolicies_ListVolumes.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_ListVolumes. + * json */ /** * Sample code: SnapshotPolicies_ListVolumes. @@ -1575,8 +1517,8 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * SnapshotPolicies_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. @@ -1609,7 +1551,7 @@ public final class SnapshotPoliciesUpdateSamples { public final class SnapshotsCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. @@ -1635,7 +1577,7 @@ public final class SnapshotsCreateSamples { public final class SnapshotsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. @@ -1658,7 +1600,7 @@ public final class SnapshotsDeleteSamples { public final class SnapshotsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. @@ -1681,7 +1623,7 @@ public final class SnapshotsGetSamples { public final class SnapshotsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_List.json */ /** * Sample code: Snapshots_List. @@ -1705,8 +1647,9 @@ import java.util.Arrays; */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Snapshots_SingleFileRestore.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_SingleFileRestore. + * json */ /** * Sample code: Snapshots_SingleFileRestore. @@ -1735,7 +1678,7 @@ import java.io.IOException; public final class SnapshotsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Update.json */ /** * Sample code: Snapshots_Update. @@ -1761,7 +1704,7 @@ public final class SnapshotsUpdateSamples { public final class SubvolumesCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. @@ -1787,7 +1730,7 @@ public final class SubvolumesCreateSamples { public final class SubvolumesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. @@ -1810,7 +1753,7 @@ public final class SubvolumesDeleteSamples { public final class SubvolumesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. @@ -1833,8 +1776,7 @@ public final class SubvolumesGetSamples { public final class SubvolumesGetMetadataSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Metadata. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Metadata.json */ /** * Sample code: Subvolumes_Metadata. @@ -1857,7 +1799,7 @@ public final class SubvolumesGetMetadataSamples { public final class SubvolumesListByVolumeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. @@ -1881,7 +1823,7 @@ import com.azure.resourcemanager.netapp.models.SubvolumeInfo; public final class SubvolumesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. @@ -1913,8 +1855,9 @@ import java.util.Arrays; */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_Create_SapHana.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Create_SapHana. + * json */ /** * Sample code: VolumeGroups_Create_SapHana. @@ -2074,8 +2017,8 @@ public final class VolumeGroupsCreateSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_Create_Oracle.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. @@ -2429,8 +2372,7 @@ public final class VolumeGroupsCreateSamples { public final class VolumeGroupsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Delete. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. @@ -2451,8 +2393,8 @@ public final class VolumeGroupsDeleteSamples { */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_Get_SapHana.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. @@ -2464,8 +2406,8 @@ public final class VolumeGroupsGetSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_Get_Oracle.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. @@ -2486,8 +2428,8 @@ public final class VolumeGroupsGetSamples { */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_List_Oracle.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. @@ -2499,8 +2441,8 @@ public final class VolumeGroupsListByNetAppAccountSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_List_SapHana.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. @@ -2523,8 +2465,8 @@ import com.azure.resourcemanager.netapp.models.Type; */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeQuotaRules_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. @@ -2552,8 +2494,8 @@ public final class VolumeQuotaRulesCreateSamples { */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeQuotaRules_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. @@ -2576,8 +2518,7 @@ public final class VolumeQuotaRulesDeleteSamples { public final class VolumeQuotaRulesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Get. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Get.json */ /** * Sample code: VolumeQuotaRules_Get. @@ -2601,8 +2542,7 @@ public final class VolumeQuotaRulesGetSamples { public final class VolumeQuotaRulesListByVolumeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_List. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_List.json */ /** * Sample code: VolumeQuotaRules_List. @@ -2626,8 +2566,8 @@ import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeQuotaRules_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. @@ -2652,7 +2592,7 @@ public final class VolumeQuotaRulesUpdateSamples { */ public final class VolumesAuthorizeExternalReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Volumes_AuthorizeExternalReplication.json */ /** @@ -2678,8 +2618,9 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest; */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_AuthorizeReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_AuthorizeReplication. + * json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -2707,8 +2648,7 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; public final class VolumesBreakFileLocksSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakFileLocks - * .json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_BreakFileLocks.json */ /** * Sample code: Volumes_BreakFileLocks. @@ -2734,8 +2674,8 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_BreakReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. @@ -2761,8 +2701,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; public final class VolumesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_CreateOrUpdate - * .json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. @@ -2793,7 +2732,7 @@ public final class VolumesCreateOrUpdateSamples { public final class VolumesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. @@ -2814,8 +2753,8 @@ public final class VolumesDeleteSamples { */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_DeleteReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. @@ -2836,7 +2775,7 @@ public final class VolumesDeleteReplicationSamples { */ public final class VolumesFinalizeExternalReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Volumes_FinalizeExternalReplication.json */ /** @@ -2859,8 +2798,8 @@ public final class VolumesFinalizeExternalReplicationSamples { */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_FinalizeRelocation.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. @@ -2882,7 +2821,7 @@ public final class VolumesFinalizeRelocationSamples { public final class VolumesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Get.json */ /** * Sample code: Volumes_Get. @@ -2904,7 +2843,7 @@ public final class VolumesGetSamples { public final class VolumesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_List.json */ /** * Sample code: Volumes_List. @@ -2928,8 +2867,7 @@ import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; public final class VolumesListGetGroupIdListForLdapUserSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser - * .json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/GroupIdListForLDAPUser.json */ /** * Sample code: GetGroupIdListForUser. @@ -2944,28 +2882,6 @@ public final class VolumesListGetGroupIdListForLdapUserSamples { } ``` -### Volumes_ListQuotaReport - -```java -/** - * Samples for Volumes ListQuotaReport. - */ -public final class VolumesListQuotaReportSamples { - /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ListQuotaReport.json - */ - /** - * Sample code: ListQuotaReport. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void listQuotaReport(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().listQuotaReport("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} -``` - ### Volumes_ListReplications ```java @@ -2974,8 +2890,8 @@ public final class VolumesListQuotaReportSamples { */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ListReplications.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. @@ -2999,8 +2915,9 @@ import java.util.Arrays; */ public final class VolumesPeerExternalClusterSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_PeerExternalCluster.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_PeerExternalCluster. + * json */ /** * Sample code: Volumes_PeerExternalCluster. @@ -3025,7 +2942,7 @@ public final class VolumesPeerExternalClusterSamples { */ public final class VolumesPerformReplicationTransferSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Volumes_PerformReplicationTransfer.json */ /** @@ -3051,8 +2968,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest; public final class VolumesPoolChangeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PoolChange. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_PoolChange.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -3076,7 +2992,7 @@ public final class VolumesPoolChangeSamples { */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Volumes_PopulateAvailabilityZones.json */ /** @@ -3099,8 +3015,9 @@ public final class VolumesPopulateAvailabilityZoneSamples { */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ReInitializeReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReInitializeReplication + * .json */ /** * Sample code: Volumes_ReInitializeReplication. @@ -3124,8 +3041,9 @@ import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ReestablishReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReestablishReplication. + * json */ /** * Sample code: Volumes_ReestablishReplication. @@ -3153,7 +3071,7 @@ import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest; public final class VolumesRelocateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Relocate.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. @@ -3176,8 +3094,8 @@ public final class VolumesRelocateSamples { */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ReplicationStatus.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. @@ -3199,8 +3117,8 @@ public final class VolumesReplicationStatusSamples { */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ResetCifsPassword.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. @@ -3221,8 +3139,8 @@ public final class VolumesResetCifsPasswordSamples { */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ResyncReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. @@ -3246,7 +3164,7 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert; public final class VolumesRevertSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Revert.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. @@ -3270,8 +3188,8 @@ public final class VolumesRevertSamples { */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_RevertRelocation.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. @@ -3284,30 +3202,6 @@ public final class VolumesRevertRelocationSamples { } ``` -### Volumes_SplitCloneFromParent - -```java -/** - * Samples for Volumes SplitCloneFromParent. - */ -public final class VolumesSplitCloneFromParentSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_SplitClone. - * json - */ - /** - * Sample code: Volumes_SplitClone. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesSplitClone(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes() - .splitCloneFromParent("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} -``` - ### Volumes_Update ```java @@ -3319,7 +3213,7 @@ import com.azure.resourcemanager.netapp.models.Volume; public final class VolumesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 83444921174b..cf064e32a609 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml +++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for NetAppFiles Management - This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-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 tag package-preview-2024-09-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 d6bd14d786a0..5413fa448cc5 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 @@ -273,7 +273,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.netapp") .append("/") - .append("1.6.0-beta.1"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java index 6816b77b1250..442bcdf9d465 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java @@ -11,6 +11,7 @@ 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.GetKeyVaultStatusResponseInner; import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; import com.azure.resourcemanager.netapp.models.ChangeKeyVault; import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; @@ -449,10 +450,12 @@ void transitionToCmk(String resourceGroupName, String accountName, EncryptionTra * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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. + * @return the {@link SyncPoller} for polling of result of getKeyVaultStatus with information about how volumes + * under NetApp account are encrypted. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginGetChangeKeyVaultInformation(String resourceGroupName, String accountName); + SyncPoller, GetKeyVaultStatusResponseInner> + beginGetChangeKeyVaultInformation(String resourceGroupName, String accountName); /** * Get information about how volumes under NetApp account are encrypted. @@ -467,11 +470,12 @@ void transitionToCmk(String resourceGroupName, String accountName, EncryptionTra * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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. + * @return the {@link SyncPoller} for polling of result of getKeyVaultStatus with information about how volumes + * under NetApp account are encrypted. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginGetChangeKeyVaultInformation(String resourceGroupName, String accountName, - Context context); + SyncPoller, GetKeyVaultStatusResponseInner> + beginGetChangeKeyVaultInformation(String resourceGroupName, String accountName, Context context); /** * Get information about how volumes under NetApp account are encrypted. @@ -485,9 +489,10 @@ SyncPoller, Void> beginGetChangeKeyVaultInformation(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. */ @ServiceMethod(returns = ReturnType.SINGLE) - void getChangeKeyVaultInformation(String resourceGroupName, String accountName); + GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resourceGroupName, String accountName); /** * Get information about how volumes under NetApp account are encrypted. @@ -502,9 +507,11 @@ SyncPoller, Void> beginGetChangeKeyVaultInformation(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. */ @ServiceMethod(returns = ReturnType.SINGLE) - void getChangeKeyVaultInformation(String resourceGroupName, String accountName, Context context); + GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resourceGroupName, String accountName, + Context context); /** * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java index 5f4c25b6c0ce..76a8f005aeb6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner; import com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner; -import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; import com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner; @@ -553,77 +552,6 @@ SyncPoller, Void> beginResetCifsPassword(String resourceGroupNa void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName, - String poolName, String volumeName); - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context); - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context); - /** * Break file locks * @@ -777,80 +705,6 @@ GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String reso GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context); - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of quota Report for volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ListQuotaReportResponseInner> - beginListQuotaReport(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of quota Report for volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ListQuotaReportResponseInner> beginListQuotaReport( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName, - String volumeName); - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); - /** * Break volume replication * 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 cb35f5ea1210..a0a0deb442f1 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 @@ -39,17 +39,6 @@ public final class AccountProperties implements JsonSerializable writer.writeJson(element)); jsonWriter.writeJsonField("encryption", this.encryption); - jsonWriter.writeStringField("nfsV4IDDomain", this.nfsV4IdDomain); return jsonWriter.writeEndObject(); } @@ -198,10 +155,6 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti deserializedAccountProperties.encryption = AccountEncryption.fromJson(reader); } else if ("disableShowmount".equals(fieldName)) { deserializedAccountProperties.disableShowmount = reader.getNullable(JsonReader::getBoolean); - } else if ("nfsV4IDDomain".equals(fieldName)) { - deserializedAccountProperties.nfsV4IdDomain = reader.getString(); - } else if ("isMultiAdEnabled".equals(fieldName)) { - deserializedAccountProperties.isMultiAdEnabled = reader.getNullable(JsonReader::getBoolean); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java index a0902acb5275..bdb627ced090 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java @@ -256,15 +256,6 @@ public String backupPolicyResourceId() { return this.innerProperties() == null ? null : this.innerProperties().backupPolicyResourceId(); } - /** - * Get the isLargeVolume property: Specifies if the backup is for a large volume. - * - * @return the isLargeVolume value. - */ - public Boolean isLargeVolume() { - return this.innerProperties() == null ? null : this.innerProperties().isLargeVolume(); - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java index 6c9fd6905a68..8b40e7c539ec 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java @@ -133,7 +133,7 @@ public BackupPolicyInner withTags(Map tags) { } /** - * Get the backupPolicyId property: Backup Policy Resource ID. + * Get the backupPolicyId property: Backup Policy GUID ID. * * @return the backupPolicyId value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java index 9decde0bd19b..b69917e76822 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java @@ -19,7 +19,7 @@ @Fluent public final class BackupPolicyProperties implements JsonSerializable { /* - * Backup Policy Resource ID + * Backup Policy GUID ID */ private String backupPolicyId; @@ -65,7 +65,7 @@ public BackupPolicyProperties() { } /** - * Get the backupPolicyId property: Backup Policy Resource ID. + * Get the backupPolicyId property: Backup Policy GUID ID. * * @return the backupPolicyId value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java index 0e8373efcacb..38ff6c3df221 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java @@ -76,11 +76,6 @@ public final class BackupProperties implements JsonSerializable { + /* + * Represents the properties of the getKeyVaultStatus. + */ + private GetKeyVaultStatusResponseProperties innerProperties; + + /** + * Creates an instance of GetKeyVaultStatusResponseInner class. + */ + public GetKeyVaultStatusResponseInner() { + } + + /** + * Get the innerProperties property: Represents the properties of the getKeyVaultStatus. + * + * @return the innerProperties value. + */ + private GetKeyVaultStatusResponseProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the keyVaultUri property: The URI of the key vault/managed HSM that should be used for encryption. + * + * @return the keyVaultUri value. + */ + public String keyVaultUri() { + return this.innerProperties() == null ? null : this.innerProperties().keyVaultUri(); + } + + /** + * Set the keyVaultUri property: The URI of the key vault/managed HSM that should be used for encryption. + * + * @param keyVaultUri the keyVaultUri value to set. + * @return the GetKeyVaultStatusResponseInner object itself. + */ + public GetKeyVaultStatusResponseInner withKeyVaultUri(String keyVaultUri) { + if (this.innerProperties() == null) { + this.innerProperties = new GetKeyVaultStatusResponseProperties(); + } + this.innerProperties().withKeyVaultUri(keyVaultUri); + return this; + } + + /** + * Get the keyName property: The name of the key that should be used for encryption. + * + * @return the keyName value. + */ + public String keyName() { + return this.innerProperties() == null ? null : this.innerProperties().keyName(); + } + + /** + * Set the keyName property: The name of the key that should be used for encryption. + * + * @param keyName the keyName value to set. + * @return the GetKeyVaultStatusResponseInner object itself. + */ + public GetKeyVaultStatusResponseInner withKeyName(String keyName) { + if (this.innerProperties() == null) { + this.innerProperties = new GetKeyVaultStatusResponseProperties(); + } + this.innerProperties().withKeyName(keyName); + return this; + } + + /** + * Get the keyVaultResourceId property: Azure resource ID of the key vault/managed HSM that should be used for + * encryption. + * + * @return the keyVaultResourceId value. + */ + public String keyVaultResourceId() { + return this.innerProperties() == null ? null : this.innerProperties().keyVaultResourceId(); + } + + /** + * Set the keyVaultResourceId property: Azure resource ID of the key vault/managed HSM that should be used for + * encryption. + * + * @param keyVaultResourceId the keyVaultResourceId value to set. + * @return the GetKeyVaultStatusResponseInner object itself. + */ + public GetKeyVaultStatusResponseInner withKeyVaultResourceId(String keyVaultResourceId) { + if (this.innerProperties() == null) { + this.innerProperties = new GetKeyVaultStatusResponseProperties(); + } + this.innerProperties().withKeyVaultResourceId(keyVaultResourceId); + return this; + } + + /** + * Get the keyVaultPrivateEndpoints property: Pairs of virtual network ID and private endpoint ID. Every virtual + * network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + * + * @return the keyVaultPrivateEndpoints value. + */ + public List keyVaultPrivateEndpoints() { + return this.innerProperties() == null ? null : this.innerProperties().keyVaultPrivateEndpoints(); + } + + /** + * Set the keyVaultPrivateEndpoints property: Pairs of virtual network ID and private endpoint ID. Every virtual + * network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + * + * @param keyVaultPrivateEndpoints the keyVaultPrivateEndpoints value to set. + * @return the GetKeyVaultStatusResponseInner object itself. + */ + public GetKeyVaultStatusResponseInner + withKeyVaultPrivateEndpoints(List keyVaultPrivateEndpoints) { + if (this.innerProperties() == null) { + this.innerProperties = new GetKeyVaultStatusResponseProperties(); + } + this.innerProperties().withKeyVaultPrivateEndpoints(keyVaultPrivateEndpoints); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of GetKeyVaultStatusResponseInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of GetKeyVaultStatusResponseInner 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 GetKeyVaultStatusResponseInner. + */ + public static GetKeyVaultStatusResponseInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + GetKeyVaultStatusResponseInner deserializedGetKeyVaultStatusResponseInner + = new GetKeyVaultStatusResponseInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedGetKeyVaultStatusResponseInner.innerProperties + = GetKeyVaultStatusResponseProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedGetKeyVaultStatusResponseInner; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseProperties.java new file mode 100644 index 000000000000..ecda151f84a1 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseProperties.java @@ -0,0 +1,193 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest 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.KeyVaultPrivateEndpoint; +import java.io.IOException; +import java.util.List; + +/** + * Properties which represents Change key vault status. + */ +@Fluent +public final class GetKeyVaultStatusResponseProperties + implements JsonSerializable { + /* + * The URI of the key vault/managed HSM that should be used for encryption. + */ + private String keyVaultUri; + + /* + * The name of the key that should be used for encryption. + */ + private String keyName; + + /* + * Azure resource ID of the key vault/managed HSM that should be used for encryption. + */ + private String keyVaultResourceId; + + /* + * Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with + * customer-managed keys needs its own key vault private endpoint. + */ + private List keyVaultPrivateEndpoints; + + /** + * Creates an instance of GetKeyVaultStatusResponseProperties class. + */ + public GetKeyVaultStatusResponseProperties() { + } + + /** + * Get the keyVaultUri property: The URI of the key vault/managed HSM that should be used for encryption. + * + * @return the keyVaultUri value. + */ + public String keyVaultUri() { + return this.keyVaultUri; + } + + /** + * Set the keyVaultUri property: The URI of the key vault/managed HSM that should be used for encryption. + * + * @param keyVaultUri the keyVaultUri value to set. + * @return the GetKeyVaultStatusResponseProperties object itself. + */ + public GetKeyVaultStatusResponseProperties withKeyVaultUri(String keyVaultUri) { + this.keyVaultUri = keyVaultUri; + return this; + } + + /** + * Get the keyName property: The name of the key that should be used for encryption. + * + * @return the keyName value. + */ + public String keyName() { + return this.keyName; + } + + /** + * Set the keyName property: The name of the key that should be used for encryption. + * + * @param keyName the keyName value to set. + * @return the GetKeyVaultStatusResponseProperties object itself. + */ + public GetKeyVaultStatusResponseProperties withKeyName(String keyName) { + this.keyName = keyName; + return this; + } + + /** + * Get the keyVaultResourceId property: Azure resource ID of the key vault/managed HSM that should be used for + * encryption. + * + * @return the keyVaultResourceId value. + */ + public String keyVaultResourceId() { + return this.keyVaultResourceId; + } + + /** + * Set the keyVaultResourceId property: Azure resource ID of the key vault/managed HSM that should be used for + * encryption. + * + * @param keyVaultResourceId the keyVaultResourceId value to set. + * @return the GetKeyVaultStatusResponseProperties object itself. + */ + public GetKeyVaultStatusResponseProperties withKeyVaultResourceId(String keyVaultResourceId) { + this.keyVaultResourceId = keyVaultResourceId; + return this; + } + + /** + * Get the keyVaultPrivateEndpoints property: Pairs of virtual network ID and private endpoint ID. Every virtual + * network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + * + * @return the keyVaultPrivateEndpoints value. + */ + public List keyVaultPrivateEndpoints() { + return this.keyVaultPrivateEndpoints; + } + + /** + * Set the keyVaultPrivateEndpoints property: Pairs of virtual network ID and private endpoint ID. Every virtual + * network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. + * + * @param keyVaultPrivateEndpoints the keyVaultPrivateEndpoints value to set. + * @return the GetKeyVaultStatusResponseProperties object itself. + */ + public GetKeyVaultStatusResponseProperties + withKeyVaultPrivateEndpoints(List keyVaultPrivateEndpoints) { + this.keyVaultPrivateEndpoints = keyVaultPrivateEndpoints; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (keyVaultPrivateEndpoints() != null) { + keyVaultPrivateEndpoints().forEach(e -> e.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); + jsonWriter.writeArrayField("keyVaultPrivateEndpoints", this.keyVaultPrivateEndpoints, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of GetKeyVaultStatusResponseProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of GetKeyVaultStatusResponseProperties 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 GetKeyVaultStatusResponseProperties. + */ + public static GetKeyVaultStatusResponseProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + GetKeyVaultStatusResponseProperties deserializedGetKeyVaultStatusResponseProperties + = new GetKeyVaultStatusResponseProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keyVaultUri".equals(fieldName)) { + deserializedGetKeyVaultStatusResponseProperties.keyVaultUri = reader.getString(); + } else if ("keyName".equals(fieldName)) { + deserializedGetKeyVaultStatusResponseProperties.keyName = reader.getString(); + } else if ("keyVaultResourceId".equals(fieldName)) { + deserializedGetKeyVaultStatusResponseProperties.keyVaultResourceId = reader.getString(); + } else if ("keyVaultPrivateEndpoints".equals(fieldName)) { + List keyVaultPrivateEndpoints + = reader.readArray(reader1 -> KeyVaultPrivateEndpoint.fromJson(reader1)); + deserializedGetKeyVaultStatusResponseProperties.keyVaultPrivateEndpoints = keyVaultPrivateEndpoints; + } else { + reader.skipChildren(); + } + } + + return deserializedGetKeyVaultStatusResponseProperties; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResponseInner.java deleted file mode 100644 index 0fc97a6a1a4d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResponseInner.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.QuotaReport; -import java.io.IOException; -import java.util.List; - -/** - * Quota Report for volume. - */ -@Fluent -public final class ListQuotaReportResponseInner implements JsonSerializable { - /* - * List of volume quota report records - */ - private List value; - - /* - * URL to get the next set of results. - */ - private String nextLink; - - /** - * Creates an instance of ListQuotaReportResponseInner class. - */ - public ListQuotaReportResponseInner() { - } - - /** - * Get the value property: List of volume quota report records. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of volume quota report records. - * - * @param value the value value to set. - * @return the ListQuotaReportResponseInner object itself. - */ - public ListQuotaReportResponseInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ListQuotaReportResponseInner object itself. - */ - public ListQuotaReportResponseInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@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 ListQuotaReportResponseInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ListQuotaReportResponseInner 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 ListQuotaReportResponseInner. - */ - public static ListQuotaReportResponseInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ListQuotaReportResponseInner deserializedListQuotaReportResponseInner = new ListQuotaReportResponseInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> QuotaReport.fromJson(reader1)); - deserializedListQuotaReportResponseInner.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedListQuotaReportResponseInner.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedListQuotaReportResponseInner; - }); - } -} 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 72248dfa70b9..35293fa98930 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 @@ -223,40 +223,6 @@ 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. - * - * @return the nfsV4IdDomain value. - */ - public String nfsV4IdDomain() { - return this.innerProperties() == null ? null : this.innerProperties().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 NetAppAccountInner object itself. - */ - public NetAppAccountInner withNfsV4IdDomain(String nfsV4IdDomain) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountProperties(); - } - this.innerProperties().withNfsV4IdDomain(nfsV4IdDomain); - return this; - } - - /** - * Get the isMultiAdEnabled property: This will have true value only if account is Multiple AD enabled. - * - * @return the isMultiAdEnabled value. - */ - public Boolean isMultiAdEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().isMultiAdEnabled(); - } - /** * 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 999f47974e1b..b73b809b72b5 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 @@ -33,12 +33,6 @@ public final class PoolPatchProperties implements JsonSerializable { */ private Float utilizedThroughputMibps; - /* - * Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual - * qosType pool with Flexible service level - */ - private Float customThroughputMibps; - /* * The qos type of the pool */ @@ -157,28 +151,6 @@ public Float utilizedThroughputMibps() { return this.utilizedThroughputMibps; } - /** - * Get the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this - * will be accepted as input only for manual qosType pool with Flexible service level. - * - * @return the customThroughputMibps value. - */ - public Float customThroughputMibps() { - return this.customThroughputMibps; - } - - /** - * Set the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this - * will be accepted as input only for manual qosType pool with Flexible service level. - * - * @param customThroughputMibps the customThroughputMibps value to set. - * @return the PoolProperties object itself. - */ - public PoolProperties withCustomThroughputMibps(Float customThroughputMibps) { - this.customThroughputMibps = customThroughputMibps; - return this; - } - /** * Get the qosType property: The qos type of the pool. * @@ -263,7 +235,6 @@ 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.writeNumberField("customThroughputMibps", this.customThroughputMibps); jsonWriter.writeStringField("qosType", this.qosType == null ? null : this.qosType.toString()); jsonWriter.writeBooleanField("coolAccess", this.coolAccess); jsonWriter.writeStringField("encryptionType", @@ -299,8 +270,6 @@ public static PoolProperties fromJson(JsonReader jsonReader) throws IOException deserializedPoolProperties.totalThroughputMibps = reader.getNullable(JsonReader::getFloat); } else if ("utilizedThroughputMibps".equals(fieldName)) { deserializedPoolProperties.utilizedThroughputMibps = reader.getNullable(JsonReader::getFloat); - } else if ("customThroughputMibps".equals(fieldName)) { - deserializedPoolProperties.customThroughputMibps = reader.getNullable(JsonReader::getFloat); } else if ("qosType".equals(fieldName)) { deserializedPoolProperties.qosType = QosType.fromString(reader.getString()); } else if ("coolAccess".equals(fieldName)) { 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 aa2c9979d3d8..9dfe423bf287 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 @@ -11,9 +11,9 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; 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.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; @@ -23,7 +23,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; @@ -230,7 +229,7 @@ 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 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * 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. @@ -242,7 +241,7 @@ 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 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * 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. @@ -481,7 +480,7 @@ public List mountTargets() { /** * Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. For creating clone volume, set type to ShortTermClone. + * set type to DataProtection. * * @return the volumeType value. */ @@ -491,7 +490,7 @@ public String volumeType() { /** * Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. For creating clone volume, set type to ShortTermClone. + * set type to DataProtection. * * @param volumeType the volumeType value to set. * @return the VolumeInner object itself. @@ -529,40 +528,6 @@ public VolumeInner withDataProtection(VolumePropertiesDataProtection dataProtect return this; } - /** - * Get the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, - * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically - * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term - * clone volume, set the property as accepted. - * - * @return the acceptGrowCapacityPoolForShortTermCloneSplit value. - */ - public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() { - return this.innerProperties() == null - ? null - : this.innerProperties().acceptGrowCapacityPoolForShortTermCloneSplit(); - } - - /** - * Set the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, - * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically - * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term - * clone volume, set the property as accepted. - * - * @param acceptGrowCapacityPoolForShortTermCloneSplit the acceptGrowCapacityPoolForShortTermCloneSplit value to - * set. - * @return the VolumeInner object itself. - */ - public VolumeInner withAcceptGrowCapacityPoolForShortTermCloneSplit( - AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties() - .withAcceptGrowCapacityPoolForShortTermCloneSplit(acceptGrowCapacityPoolForShortTermCloneSplit); - return this; - } - /** * Get the isRestoring property: Restoring. * @@ -954,15 +919,41 @@ public VolumeInner withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy coolA return this; } + /** + * Get the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies + * and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data + * blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + * + * @return the coolAccessTieringPolicy value. + */ + public CoolAccessTieringPolicy coolAccessTieringPolicy() { + return this.innerProperties() == null ? null : this.innerProperties().coolAccessTieringPolicy(); + } + + /** + * Set the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies + * and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data + * blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + * + * @param coolAccessTieringPolicy the coolAccessTieringPolicy value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withCoolAccessTieringPolicy(CoolAccessTieringPolicy coolAccessTieringPolicy) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withCoolAccessTieringPolicy(coolAccessTieringPolicy); + return this; + } + /** * Get the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, - * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user - * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain - * as its last saved value only. + * read/execute to group and other users. * * @return the unixPermissions value. */ @@ -975,10 +966,7 @@ public String unixPermissions() { * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, - * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user - * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain - * as its last saved value only. + * read/execute to group and other users. * * @param unixPermissions the unixPermissions value to set. * @return the VolumeInner object itself. @@ -1316,38 +1304,6 @@ public String originatingResourceId() { return this.innerProperties() == null ? null : this.innerProperties().originatingResourceId(); } - /** - * Get the inheritedSizeInBytes property: Space shared by short term clone volume with parent volume in bytes. - * - * @return the inheritedSizeInBytes value. - */ - 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; - } - /** * 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 68855f824f62..b347a9f46624 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 @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy; +import com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy; import com.azure.resourcemanager.netapp.models.ServiceLevel; import com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration; import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; @@ -31,7 +32,7 @@ public final class VolumePatchProperties implements JsonSerializable mountTargets; /* - * What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For - * creating clone volume, set type to ShortTermClone + * What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection */ private String volumeType; @@ -134,13 +132,6 @@ public final class VolumeProperties implements JsonSerializable mountTargets() { /** * Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. For creating clone volume, set type to ShortTermClone. + * set type to DataProtection. * * @return the volumeType value. */ @@ -649,7 +635,7 @@ public String volumeType() { /** * Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. For creating clone volume, set type to ShortTermClone. + * set type to DataProtection. * * @param volumeType the volumeType value to set. * @return the VolumeProperties object itself. @@ -681,34 +667,6 @@ public VolumeProperties withDataProtection(VolumePropertiesDataProtection dataPr return this; } - /** - * Get the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, - * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically - * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term - * clone volume, set the property as accepted. - * - * @return the acceptGrowCapacityPoolForShortTermCloneSplit value. - */ - public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() { - return this.acceptGrowCapacityPoolForShortTermCloneSplit; - } - - /** - * Set the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, - * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically - * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term - * clone volume, set the property as accepted. - * - * @param acceptGrowCapacityPoolForShortTermCloneSplit the acceptGrowCapacityPoolForShortTermCloneSplit value to - * set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withAcceptGrowCapacityPoolForShortTermCloneSplit( - AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) { - this.acceptGrowCapacityPoolForShortTermCloneSplit = acceptGrowCapacityPoolForShortTermCloneSplit; - return this; - } - /** * Get the isRestoring property: Restoring. * @@ -1055,15 +1013,38 @@ public VolumeProperties withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy return this; } + /** + * Get the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies + * and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data + * blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + * + * @return the coolAccessTieringPolicy value. + */ + public CoolAccessTieringPolicy coolAccessTieringPolicy() { + return this.coolAccessTieringPolicy; + } + + /** + * Set the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies + * and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data + * blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + * + * @param coolAccessTieringPolicy the coolAccessTieringPolicy value to set. + * @return the VolumeProperties object itself. + */ + public VolumeProperties withCoolAccessTieringPolicy(CoolAccessTieringPolicy coolAccessTieringPolicy) { + this.coolAccessTieringPolicy = coolAccessTieringPolicy; + return this; + } + /** * Get the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, - * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user - * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain - * as its last saved value only. + * read/execute to group and other users. * * @return the unixPermissions value. */ @@ -1076,10 +1057,7 @@ public String unixPermissions() { * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, - * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user - * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain - * as its last saved value only. + * read/execute to group and other users. * * @param unixPermissions the unixPermissions value to set. * @return the VolumeProperties object itself. @@ -1384,35 +1362,6 @@ public String originatingResourceId() { return this.originatingResourceId; } - /** - * Get the inheritedSizeInBytes property: Space shared by short term clone volume with parent volume in bytes. - * - * @return the inheritedSizeInBytes value. - */ - public Long inheritedSizeInBytes() { - return this.inheritedSizeInBytes; - } - - /** - * Get the language property: Language supported for volume. - * - * @return the language value. - */ - public VolumeLanguage language() { - return this.language; - } - - /** - * Set the language property: Language supported for volume. - * - * @param language the language value to set. - * @return the VolumeProperties object itself. - */ - public VolumeProperties withLanguage(VolumeLanguage language) { - this.language = language; - return this; - } - /** * Validates the instance. * @@ -1463,10 +1412,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.networkFeatures == null ? null : this.networkFeatures.toString()); jsonWriter.writeStringField("volumeType", this.volumeType); jsonWriter.writeJsonField("dataProtection", this.dataProtection); - jsonWriter.writeStringField("acceptGrowCapacityPoolForShortTermCloneSplit", - this.acceptGrowCapacityPoolForShortTermCloneSplit == null - ? null - : this.acceptGrowCapacityPoolForShortTermCloneSplit.toString()); jsonWriter.writeBooleanField("isRestoring", this.isRestoring); jsonWriter.writeBooleanField("snapshotDirectoryVisible", this.snapshotDirectoryVisible); jsonWriter.writeBooleanField("kerberosEnabled", this.kerberosEnabled); @@ -1486,6 +1431,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeNumberField("coolnessPeriod", this.coolnessPeriod); jsonWriter.writeStringField("coolAccessRetrievalPolicy", this.coolAccessRetrievalPolicy == null ? null : this.coolAccessRetrievalPolicy.toString()); + jsonWriter.writeStringField("coolAccessTieringPolicy", + this.coolAccessTieringPolicy == null ? null : this.coolAccessTieringPolicy.toString()); jsonWriter.writeStringField("unixPermissions", this.unixPermissions); jsonWriter.writeStringField("avsDataStore", this.avsDataStore == null ? null : this.avsDataStore.toString()); jsonWriter.writeBooleanField("isDefaultQuotaEnabled", this.isDefaultQuotaEnabled); @@ -1499,7 +1446,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("enableSubvolumes", this.enableSubvolumes == null ? null : this.enableSubvolumes.toString()); jsonWriter.writeBooleanField("isLargeVolume", this.isLargeVolume); - jsonWriter.writeStringField("language", this.language == null ? null : this.language.toString()); return jsonWriter.writeEndObject(); } @@ -1562,9 +1508,6 @@ public static VolumeProperties fromJson(JsonReader jsonReader) throws IOExceptio deserializedVolumeProperties.volumeType = reader.getString(); } else if ("dataProtection".equals(fieldName)) { deserializedVolumeProperties.dataProtection = VolumePropertiesDataProtection.fromJson(reader); - } else if ("acceptGrowCapacityPoolForShortTermCloneSplit".equals(fieldName)) { - deserializedVolumeProperties.acceptGrowCapacityPoolForShortTermCloneSplit - = AcceptGrowCapacityPoolForShortTermCloneSplit.fromString(reader.getString()); } else if ("isRestoring".equals(fieldName)) { deserializedVolumeProperties.isRestoring = reader.getNullable(JsonReader::getBoolean); } else if ("snapshotDirectoryVisible".equals(fieldName)) { @@ -1600,6 +1543,9 @@ public static VolumeProperties fromJson(JsonReader jsonReader) throws IOExceptio } else if ("coolAccessRetrievalPolicy".equals(fieldName)) { deserializedVolumeProperties.coolAccessRetrievalPolicy = CoolAccessRetrievalPolicy.fromString(reader.getString()); + } else if ("coolAccessTieringPolicy".equals(fieldName)) { + deserializedVolumeProperties.coolAccessTieringPolicy + = CoolAccessTieringPolicy.fromString(reader.getString()); } else if ("unixPermissions".equals(fieldName)) { deserializedVolumeProperties.unixPermissions = reader.getString(); } else if ("cloneProgress".equals(fieldName)) { @@ -1643,10 +1589,6 @@ public static VolumeProperties fromJson(JsonReader jsonReader) throws IOExceptio deserializedVolumeProperties.isLargeVolume = reader.getNullable(JsonReader::getBoolean); } else if ("originatingResourceId".equals(fieldName)) { deserializedVolumeProperties.originatingResourceId = reader.getString(); - } else if ("inheritedSizeInBytes".equals(fieldName)) { - deserializedVolumeProperties.inheritedSizeInBytes = reader.getNullable(JsonReader::getLong); - } else if ("language".equals(fieldName)) { - deserializedVolumeProperties.language = VolumeLanguage.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java index 85d2468a85ef..f36d7ad51743 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java @@ -34,6 +34,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.AccountsClient; +import com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseInner; import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; import com.azure.resourcemanager.netapp.models.ChangeKeyVault; import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; @@ -151,7 +152,7 @@ Mono>> transitionToCmk(@HostParam("$host") String endp @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/getKeyVaultStatus") - @ExpectedResponses({ 202 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> getChangeKeyVaultInformation(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @@ -1829,7 +1830,8 @@ public void transitionToCmk(String resourceGroupName, String accountName, Encryp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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}. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted along + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getChangeKeyVaultInformationWithResponseAsync(String resourceGroupName, @@ -1870,7 +1872,8 @@ private Mono>> getChangeKeyVaultInformationWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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}. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted along + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getChangeKeyVaultInformationWithResponseAsync(String resourceGroupName, @@ -1908,14 +1911,16 @@ private Mono>> getChangeKeyVaultInformationWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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. + * @return the {@link PollerFlux} for polling of result of getKeyVaultStatus with information about how volumes + * under NetApp account are encrypted. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginGetChangeKeyVaultInformationAsync(String resourceGroupName, - String accountName) { + private PollerFlux, GetKeyVaultStatusResponseInner> + beginGetChangeKeyVaultInformationAsync(String resourceGroupName, String accountName) { Mono>> mono = getChangeKeyVaultInformationWithResponseAsync(resourceGroupName, accountName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), GetKeyVaultStatusResponseInner.class, GetKeyVaultStatusResponseInner.class, this.client.getContext()); } @@ -1932,15 +1937,17 @@ private PollerFlux, Void> beginGetChangeKeyVaultInformationAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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. + * @return the {@link PollerFlux} for polling of result of getKeyVaultStatus with information about how volumes + * under NetApp account are encrypted. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginGetChangeKeyVaultInformationAsync(String resourceGroupName, - String accountName, Context context) { + private PollerFlux, GetKeyVaultStatusResponseInner> + beginGetChangeKeyVaultInformationAsync(String resourceGroupName, String accountName, Context context) { context = this.client.mergeContext(context); Mono>> mono = getChangeKeyVaultInformationWithResponseAsync(resourceGroupName, accountName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), GetKeyVaultStatusResponseInner.class, GetKeyVaultStatusResponseInner.class, context); } @@ -1956,11 +1963,12 @@ private PollerFlux, Void> beginGetChangeKeyVaultInformationAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is 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. + * @return the {@link SyncPoller} for polling of result of getKeyVaultStatus with information about how volumes + * under NetApp account are encrypted. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginGetChangeKeyVaultInformation(String resourceGroupName, - String accountName) { + public SyncPoller, GetKeyVaultStatusResponseInner> + beginGetChangeKeyVaultInformation(String resourceGroupName, String accountName) { return this.beginGetChangeKeyVaultInformationAsync(resourceGroupName, accountName).getSyncPoller(); } @@ -1977,11 +1985,12 @@ public SyncPoller, Void> beginGetChangeKeyVaultInformation(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is 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. + * @return the {@link SyncPoller} for polling of result of getKeyVaultStatus with information about how volumes + * under NetApp account are encrypted. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginGetChangeKeyVaultInformation(String resourceGroupName, - String accountName, Context context) { + public SyncPoller, GetKeyVaultStatusResponseInner> + beginGetChangeKeyVaultInformation(String resourceGroupName, String accountName, Context context) { return this.beginGetChangeKeyVaultInformationAsync(resourceGroupName, accountName, context).getSyncPoller(); } @@ -1997,10 +2006,12 @@ public SyncPoller, Void> beginGetChangeKeyVaultInformation(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getChangeKeyVaultInformationAsync(String resourceGroupName, String accountName) { + private Mono getChangeKeyVaultInformationAsync(String resourceGroupName, + String accountName) { return beginGetChangeKeyVaultInformationAsync(resourceGroupName, accountName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2018,11 +2029,12 @@ private Mono getChangeKeyVaultInformationAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getChangeKeyVaultInformationAsync(String resourceGroupName, String accountName, - Context context) { + private Mono getChangeKeyVaultInformationAsync(String resourceGroupName, + String accountName, Context context) { return beginGetChangeKeyVaultInformationAsync(resourceGroupName, accountName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2039,10 +2051,11 @@ private Mono getChangeKeyVaultInformationAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void getChangeKeyVaultInformation(String resourceGroupName, String accountName) { - getChangeKeyVaultInformationAsync(resourceGroupName, accountName).block(); + public GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resourceGroupName, String accountName) { + return getChangeKeyVaultInformationAsync(resourceGroupName, accountName).block(); } /** @@ -2058,10 +2071,12 @@ public void getChangeKeyVaultInformation(String resourceGroupName, String accoun * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void getChangeKeyVaultInformation(String resourceGroupName, String accountName, Context context) { - getChangeKeyVaultInformationAsync(resourceGroupName, accountName, context).block(); + public GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resourceGroupName, String accountName, + Context context) { + return getChangeKeyVaultInformationAsync(resourceGroupName, accountName, context).block(); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java index 87d1c2a4fca0..709303aa2571 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java @@ -10,10 +10,12 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.AccountsClient; +import com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseInner; import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; import com.azure.resourcemanager.netapp.models.Accounts; import com.azure.resourcemanager.netapp.models.ChangeKeyVault; import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; +import com.azure.resourcemanager.netapp.models.GetKeyVaultStatusResponse; import com.azure.resourcemanager.netapp.models.NetAppAccount; public final class AccountsImpl implements Accounts { @@ -95,12 +97,25 @@ public void transitionToCmk(String resourceGroupName, String accountName, Encryp this.serviceClient().transitionToCmk(resourceGroupName, accountName, body, context); } - public void getChangeKeyVaultInformation(String resourceGroupName, String accountName) { - this.serviceClient().getChangeKeyVaultInformation(resourceGroupName, accountName); + public GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, String accountName) { + GetKeyVaultStatusResponseInner inner + = this.serviceClient().getChangeKeyVaultInformation(resourceGroupName, accountName); + if (inner != null) { + return new GetKeyVaultStatusResponseImpl(inner, this.manager()); + } else { + return null; + } } - public void getChangeKeyVaultInformation(String resourceGroupName, String accountName, Context context) { - this.serviceClient().getChangeKeyVaultInformation(resourceGroupName, accountName, context); + public GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, String accountName, + Context context) { + GetKeyVaultStatusResponseInner inner + = this.serviceClient().getChangeKeyVaultInformation(resourceGroupName, accountName, context); + if (inner != null) { + return new GetKeyVaultStatusResponseImpl(inner, this.manager()); + } else { + return null; + } } public void changeKeyVault(String resourceGroupName, String accountName) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java index 7614bcb17e61..89412ac1a317 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java @@ -77,10 +77,6 @@ public String backupPolicyResourceId() { return this.innerModel().backupPolicyResourceId(); } - public Boolean isLargeVolume() { - return this.innerModel().isLargeVolume(); - } - public String resourceGroupName() { return resourceGroupName; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java index e32e2c32926f..ec6c998cf8c3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java @@ -78,10 +78,6 @@ public Float utilizedThroughputMibps() { return this.innerModel().utilizedThroughputMibps(); } - public Float customThroughputMibps() { - return this.innerModel().customThroughputMibps(); - } - public QosType qosType() { return this.innerModel().qosType(); } @@ -222,16 +218,6 @@ public CapacityPoolImpl withTags(Map tags) { } } - public CapacityPoolImpl withCustomThroughputMibps(Float customThroughputMibps) { - if (isInCreateMode()) { - this.innerModel().withCustomThroughputMibps(customThroughputMibps); - return this; - } else { - this.updateBody.withCustomThroughputMibps(customThroughputMibps); - return this; - } - } - public CapacityPoolImpl withQosType(QosType qosType) { if (isInCreateMode()) { this.innerModel().withQosType(qosType); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetKeyVaultStatusResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetKeyVaultStatusResponseImpl.java new file mode 100644 index 000000000000..490a00634be1 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetKeyVaultStatusResponseImpl.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.implementation; + +import com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseInner; +import com.azure.resourcemanager.netapp.models.GetKeyVaultStatusResponse; +import com.azure.resourcemanager.netapp.models.KeyVaultPrivateEndpoint; +import java.util.Collections; +import java.util.List; + +public final class GetKeyVaultStatusResponseImpl implements GetKeyVaultStatusResponse { + private GetKeyVaultStatusResponseInner innerObject; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + GetKeyVaultStatusResponseImpl(GetKeyVaultStatusResponseInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String keyVaultUri() { + return this.innerModel().keyVaultUri(); + } + + public String keyName() { + return this.innerModel().keyName(); + } + + public String keyVaultResourceId() { + return this.innerModel().keyVaultResourceId(); + } + + public List keyVaultPrivateEndpoints() { + List inner = this.innerModel().keyVaultPrivateEndpoints(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public GetKeyVaultStatusResponseInner 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/ListQuotaReportResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResponseImpl.java deleted file mode 100644 index 9114159e75eb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResponseImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; -import com.azure.resourcemanager.netapp.models.ListQuotaReportResponse; -import com.azure.resourcemanager.netapp.models.QuotaReport; -import java.util.Collections; -import java.util.List; - -public final class ListQuotaReportResponseImpl implements ListQuotaReportResponse { - private ListQuotaReportResponseInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - ListQuotaReportResponseImpl(ListQuotaReportResponseInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public String nextLink() { - return this.innerModel().nextLink(); - } - - public ListQuotaReportResponseInner 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/NetAppAccountImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java index a220efe91640..221aa025815b 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,6 +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.GetKeyVaultStatusResponse; import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; import com.azure.resourcemanager.netapp.models.NetAppAccount; import com.azure.resourcemanager.netapp.models.NetAppAccountPatch; @@ -82,14 +83,6 @@ public Boolean disableShowmount() { return this.innerModel().disableShowmount(); } - public String nfsV4IdDomain() { - return this.innerModel().nfsV4IdDomain(); - } - - public Boolean isMultiAdEnabled() { - return this.innerModel().isMultiAdEnabled(); - } - public Region region() { return Region.fromName(this.regionName()); } @@ -199,12 +192,12 @@ public void transitionToCmk(EncryptionTransitionRequest body, Context context) { serviceManager.accounts().transitionToCmk(resourceGroupName, accountName, body, context); } - public void getChangeKeyVaultInformation() { - serviceManager.accounts().getChangeKeyVaultInformation(resourceGroupName, accountName); + public GetKeyVaultStatusResponse getChangeKeyVaultInformation() { + return serviceManager.accounts().getChangeKeyVaultInformation(resourceGroupName, accountName); } - public void getChangeKeyVaultInformation(Context context) { - serviceManager.accounts().getChangeKeyVaultInformation(resourceGroupName, accountName, context); + public GetKeyVaultStatusResponse getChangeKeyVaultInformation(Context context) { + return serviceManager.accounts().getChangeKeyVaultInformation(resourceGroupName, accountName, context); } public void changeKeyVault() { @@ -265,16 +258,6 @@ public NetAppAccountImpl withEncryption(AccountEncryption encryption) { } } - public NetAppAccountImpl withNfsV4IdDomain(String nfsV4IdDomain) { - if (isInCreateMode()) { - this.innerModel().withNfsV4IdDomain(nfsV4IdDomain); - return this; - } else { - this.updateBody.withNfsV4IdDomain(nfsV4IdDomain); - return this; - } - } - private boolean isInCreateMode() { return 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 41f6e739b5e4..fc2c55ae85c9 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 @@ -409,7 +409,7 @@ public BackupsUnderAccountsClient getBackupsUnderAccounts() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2024-07-01-preview"; + this.apiVersion = "2024-09-01"; this.operations = new OperationsClientImpl(this); this.netAppResources = new NetAppResourcesClientImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this); 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 14e70d9a7243..415391080d14 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 @@ -10,19 +10,18 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; -import com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit; import com.azure.resourcemanager.netapp.models.AuthorizeRequest; 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.ClusterPeerCommandResponse; 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.GetGroupIdListForLdapUserRequest; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserResponse; -import com.azure.resourcemanager.netapp.models.ListQuotaReportResponse; import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; @@ -36,7 +35,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; @@ -181,10 +179,6 @@ public VolumePropertiesDataProtection dataProtection() { return this.innerModel().dataProtection(); } - public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() { - return this.innerModel().acceptGrowCapacityPoolForShortTermCloneSplit(); - } - public Boolean isRestoring() { return this.innerModel().isRestoring(); } @@ -249,6 +243,10 @@ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { return this.innerModel().coolAccessRetrievalPolicy(); } + public CoolAccessTieringPolicy coolAccessTieringPolicy() { + return this.innerModel().coolAccessTieringPolicy(); + } + public String unixPermissions() { return this.innerModel().unixPermissions(); } @@ -339,14 +337,6 @@ public String originatingResourceId() { return this.innerModel().originatingResourceId(); } - public Long inheritedSizeInBytes() { - return this.innerModel().inheritedSizeInBytes(); - } - - public VolumeLanguage language() { - return this.innerModel().language(); - } - public Region region() { return Region.fromName(this.regionName()); } @@ -473,14 +463,6 @@ public void resetCifsPassword(Context context) { serviceManager.volumes().resetCifsPassword(resourceGroupName, accountName, poolName, volumeName, context); } - public void splitCloneFromParent() { - serviceManager.volumes().splitCloneFromParent(resourceGroupName, accountName, poolName, volumeName); - } - - public void splitCloneFromParent(Context context) { - serviceManager.volumes().splitCloneFromParent(resourceGroupName, accountName, poolName, volumeName, context); - } - public void breakFileLocks() { serviceManager.volumes().breakFileLocks(resourceGroupName, accountName, poolName, volumeName); } @@ -500,14 +482,6 @@ public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupI .listGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body, context); } - public ListQuotaReportResponse listQuotaReport() { - return serviceManager.volumes().listQuotaReport(resourceGroupName, accountName, poolName, volumeName); - } - - public ListQuotaReportResponse listQuotaReport(Context context) { - return serviceManager.volumes().listQuotaReport(resourceGroupName, accountName, poolName, volumeName, context); - } - public void breakReplication() { serviceManager.volumes().breakReplication(resourceGroupName, accountName, poolName, volumeName); } @@ -730,13 +704,6 @@ public VolumeImpl withDataProtection(VolumePropertiesDataProtection dataProtecti return this; } - public VolumeImpl withAcceptGrowCapacityPoolForShortTermCloneSplit( - AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) { - this.innerModel() - .withAcceptGrowCapacityPoolForShortTermCloneSplit(acceptGrowCapacityPoolForShortTermCloneSplit); - return this; - } - public VolumeImpl withIsRestoring(Boolean isRestoring) { this.innerModel().withIsRestoring(isRestoring); return this; @@ -847,6 +814,16 @@ public VolumeImpl withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy coolAc } } + public VolumeImpl withCoolAccessTieringPolicy(CoolAccessTieringPolicy coolAccessTieringPolicy) { + if (isInCreateMode()) { + this.innerModel().withCoolAccessTieringPolicy(coolAccessTieringPolicy); + return this; + } else { + this.updateBody.withCoolAccessTieringPolicy(coolAccessTieringPolicy); + return this; + } + } + public VolumeImpl withUnixPermissions(String unixPermissions) { if (isInCreateMode()) { this.innerModel().withUnixPermissions(unixPermissions); @@ -922,11 +899,6 @@ public VolumeImpl withIsLargeVolume(Boolean isLargeVolume) { return this; } - public VolumeImpl withLanguage(VolumeLanguage language) { - this.innerModel().withLanguage(language); - 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/VolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java index ed05189f14f5..071d7f856b43 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java @@ -36,7 +36,6 @@ import com.azure.resourcemanager.netapp.fluent.VolumesClient; import com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner; import com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner; -import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; import com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner; @@ -172,16 +171,6 @@ Mono>> resetCifsPassword(@HostParam("$host") String en @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent") - @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> splitCloneFromParent(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks") @ExpectedResponses({ 200, 202 }) @@ -205,16 +194,6 @@ Mono>> listGetGroupIdListForLdapUser(@HostParam("$host @BodyParam("application/json") GetGroupIdListForLdapUserRequest body, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listQuotaReport") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listQuotaReport(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication") @ExpectedResponses({ 200, 202 }) @@ -2414,269 +2393,6 @@ public void resetCifsPassword(String resourceGroupName, String accountName, Stri resetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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>> splitCloneFromParentWithResponseAsync(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.splitCloneFromParent(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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>> splitCloneFromParentWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, Context context) { - 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"; - context = this.client.mergeContext(context); - return service.splitCloneFromParent(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); - } - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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> beginSplitCloneFromParentAsync(String resourceGroupName, - String accountName, String poolName, String volumeName) { - Mono>> mono - = splitCloneFromParentWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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> beginSplitCloneFromParentAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = splitCloneFromParentWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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> beginSplitCloneFromParent(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return this.beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName) - .getSyncPoller(); - } - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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> beginSplitCloneFromParent(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { - return this.beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName, context) - .getSyncPoller(); - } - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 splitCloneFromParentAsync(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 splitCloneFromParentAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - return beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName) { - splitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName).block(); - } - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context) { - splitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); - } - /** * Break file locks * @@ -3301,273 +3017,6 @@ public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(Stri .block(); } - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listQuotaReportWithResponseAsync(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.listQuotaReport(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listQuotaReportWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, Context context) { - 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"; - context = this.client.mergeContext(context); - return service.listQuotaReport(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); - } - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 quota Report for volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ListQuotaReportResponseInner> - beginListQuotaReportAsync(String resourceGroupName, String accountName, String poolName, String volumeName) { - Mono>> mono - = listQuotaReportWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ListQuotaReportResponseInner.class, ListQuotaReportResponseInner.class, - this.client.getContext()); - } - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 quota Report for volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ListQuotaReportResponseInner> - beginListQuotaReportAsync(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = listQuotaReportWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ListQuotaReportResponseInner.class, ListQuotaReportResponseInner.class, - context); - } - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of quota Report for volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ListQuotaReportResponseInner> - beginListQuotaReport(String resourceGroupName, String accountName, String poolName, String volumeName) { - return this.beginListQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); - } - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of quota Report for volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ListQuotaReportResponseInner> beginListQuotaReport( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return this.beginListQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName, context) - .getSyncPoller(); - } - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listQuotaReportAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return beginListQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listQuotaReportAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { - return beginListQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return listQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName).block(); - } - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - return listQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); - } - /** * Break volume replication * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java index a271be5571ee..22b21792e6b4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java @@ -12,7 +12,6 @@ import com.azure.resourcemanager.netapp.fluent.VolumesClient; import com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner; import com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner; -import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; import com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner; @@ -23,7 +22,6 @@ import com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponse; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserResponse; -import com.azure.resourcemanager.netapp.models.ListQuotaReportResponse; import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; import com.azure.resourcemanager.netapp.models.PoolChangeRequest; import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; @@ -128,15 +126,6 @@ public void resetCifsPassword(String resourceGroupName, String accountName, Stri this.serviceClient().resetCifsPassword(resourceGroupName, accountName, poolName, volumeName, context); } - public void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName) { - this.serviceClient().splitCloneFromParent(resourceGroupName, accountName, poolName, volumeName); - } - - public void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context) { - this.serviceClient().splitCloneFromParent(resourceGroupName, accountName, poolName, volumeName, context); - } - public void breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName) { this.serviceClient().breakFileLocks(resourceGroupName, accountName, poolName, volumeName); } @@ -168,28 +157,6 @@ public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String re } } - public ListQuotaReportResponse listQuotaReport(String resourceGroupName, String accountName, String poolName, - String volumeName) { - ListQuotaReportResponseInner inner - = this.serviceClient().listQuotaReport(resourceGroupName, accountName, poolName, volumeName); - if (inner != null) { - return new ListQuotaReportResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public ListQuotaReportResponse listQuotaReport(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - ListQuotaReportResponseInner inner - = this.serviceClient().listQuotaReport(resourceGroupName, accountName, poolName, volumeName, context); - if (inner != null) { - return new ListQuotaReportResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName) { this.serviceClient().breakReplication(resourceGroupName, accountName, poolName, volumeName); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java deleted file mode 100644 index f2bd95ef875b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * acceptGrowCapacityPoolForShortTermCloneSplit - * - * While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the - * volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool - * size auto grow and create a short term clone volume, set the property as accepted. - */ -public final class AcceptGrowCapacityPoolForShortTermCloneSplit - extends ExpandableStringEnum { - /** - * Static value Accepted for AcceptGrowCapacityPoolForShortTermCloneSplit. - */ - public static final AcceptGrowCapacityPoolForShortTermCloneSplit ACCEPTED = fromString("Accepted"); - - /** - * Static value Declined for AcceptGrowCapacityPoolForShortTermCloneSplit. - */ - public static final AcceptGrowCapacityPoolForShortTermCloneSplit DECLINED = fromString("Declined"); - - /** - * Creates a new instance of AcceptGrowCapacityPoolForShortTermCloneSplit value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AcceptGrowCapacityPoolForShortTermCloneSplit() { - } - - /** - * Creates or finds a AcceptGrowCapacityPoolForShortTermCloneSplit from its string representation. - * - * @param name a name to look for. - * @return the corresponding AcceptGrowCapacityPoolForShortTermCloneSplit. - */ - public static AcceptGrowCapacityPoolForShortTermCloneSplit fromString(String name) { - return fromString(name, AcceptGrowCapacityPoolForShortTermCloneSplit.class); - } - - /** - * Gets known AcceptGrowCapacityPoolForShortTermCloneSplit values. - * - * @return known AcceptGrowCapacityPoolForShortTermCloneSplit values. - */ - public static Collection values() { - return values(AcceptGrowCapacityPoolForShortTermCloneSplit.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java index 3628d34c3999..c58c50361676 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java @@ -192,8 +192,9 @@ void transitionToCmk(String resourceGroupName, String accountName, EncryptionTra * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. */ - void getChangeKeyVaultInformation(String resourceGroupName, String accountName); + GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, String accountName); /** * Get information about how volumes under NetApp account are encrypted. @@ -208,8 +209,10 @@ void transitionToCmk(String resourceGroupName, String accountName, EncryptionTra * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. */ - void getChangeKeyVaultInformation(String resourceGroupName, String accountName, Context context); + GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, String accountName, + Context context); /** * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java index 16b9955038d1..03f8e64bd226 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java @@ -119,13 +119,6 @@ public interface Backup { */ String backupPolicyResourceId(); - /** - * Gets the isLargeVolume property: Specifies if the backup is for a large volume. - * - * @return the isLargeVolume value. - */ - Boolean isLargeVolume(); - /** * Gets the name of the resource group. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java index 6a1bc36c1db6..450df2f734f5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java @@ -65,7 +65,7 @@ public interface BackupPolicy { SystemData systemData(); /** - * Gets the backupPolicyId property: Backup Policy Resource ID. + * Gets the backupPolicyId property: Backup Policy GUID ID. * * @return the backupPolicyId value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java index 7b207f110b94..808fb4577eb8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java @@ -103,7 +103,7 @@ public BackupPolicyPatch withTags(Map tags) { } /** - * Get the backupPolicyId property: Backup Policy Resource ID. + * Get the backupPolicyId property: Backup Policy GUID ID. * * @return the backupPolicyId value. */ 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 a4de2a68c44d..439aa151a768 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 @@ -106,14 +106,6 @@ public interface CapacityPool { */ Float utilizedThroughputMibps(); - /** - * Gets the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this - * will be accepted as input only for manual qosType pool with Flexible service level. - * - * @return the customThroughputMibps value. - */ - Float customThroughputMibps(); - /** * Gets the qosType property: The qos type of the pool. * @@ -249,8 +241,8 @@ interface WithServiceLevel { * The stage of the CapacityPool 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.WithCustomThroughputMibps, - DefinitionStages.WithQosType, DefinitionStages.WithCoolAccess, DefinitionStages.WithEncryptionType { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithQosType, + DefinitionStages.WithCoolAccess, DefinitionStages.WithEncryptionType { /** * Executes the create request. * @@ -280,21 +272,6 @@ interface WithTags { WithCreate withTags(Map tags); } - /** - * The stage of the CapacityPool definition allowing to specify customThroughputMibps. - */ - interface WithCustomThroughputMibps { - /** - * Specifies the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this - * pool and this will be accepted as input only for manual qosType pool with Flexible service level. - * - * @param customThroughputMibps Maximum throughput in MiB/s that can be achieved by this pool and this will - * be accepted as input only for manual qosType pool with Flexible service level. - * @return the next definition stage. - */ - WithCreate withCustomThroughputMibps(Float customThroughputMibps); - } - /** * The stage of the CapacityPool definition allowing to specify qosType. */ @@ -347,8 +324,8 @@ interface WithEncryptionType { /** * The template for CapacityPool update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithSize, UpdateStages.WithQosType, - UpdateStages.WithCoolAccess, UpdateStages.WithCustomThroughputMibps { + interface Update + extends UpdateStages.WithTags, UpdateStages.WithSize, UpdateStages.WithQosType, UpdateStages.WithCoolAccess { /** * Executes the update request. * @@ -422,21 +399,6 @@ interface WithCoolAccess { */ Update withCoolAccess(Boolean coolAccess); } - - /** - * The stage of the CapacityPool update allowing to specify customThroughputMibps. - */ - interface WithCustomThroughputMibps { - /** - * Specifies the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this - * pool and this will be accepted as input only for manual qosType pool with Flexible service level. - * - * @param customThroughputMibps Maximum throughput in MiB/s that can be achieved by this pool and this will - * be accepted as input only for manual qosType pool with Flexible service level. - * @return the next definition stage. - */ - Update withCustomThroughputMibps(Float customThroughputMibps); - } } /** 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 28787795f85d..e43fd6ab8cbc 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 @@ -172,31 +172,6 @@ public CapacityPoolPatch withCoolAccess(Boolean coolAccess) { return this; } - /** - * Get the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this - * will be accepted as input only for manual qosType pool with Flexible service level. - * - * @return the customThroughputMibps value. - */ - public Float customThroughputMibps() { - return this.innerProperties() == null ? null : this.innerProperties().customThroughputMibps(); - } - - /** - * Set the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this - * will be accepted as input only for manual qosType pool with Flexible service level. - * - * @param customThroughputMibps the customThroughputMibps value to set. - * @return the CapacityPoolPatch object itself. - */ - public CapacityPoolPatch withCustomThroughputMibps(Float customThroughputMibps) { - if (this.innerProperties() == null) { - this.innerProperties = new PoolPatchProperties(); - } - this.innerProperties().withCustomThroughputMibps(customThroughputMibps); - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessTieringPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessTieringPolicy.java new file mode 100644 index 000000000000..6dede55008df --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessTieringPolicy.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible values for this field + * are: Auto - Moves cold user data blocks in both the Snapshot copies and the active file system to the cool tier tier. + * This policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not + * associated with the active file system to the cool tier. + */ +public final class CoolAccessTieringPolicy extends ExpandableStringEnum { + /** + * Static value Auto for CoolAccessTieringPolicy. + */ + public static final CoolAccessTieringPolicy AUTO = fromString("Auto"); + + /** + * Static value SnapshotOnly for CoolAccessTieringPolicy. + */ + public static final CoolAccessTieringPolicy SNAPSHOT_ONLY = fromString("SnapshotOnly"); + + /** + * Creates a new instance of CoolAccessTieringPolicy value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CoolAccessTieringPolicy() { + } + + /** + * Creates or finds a CoolAccessTieringPolicy from its string representation. + * + * @param name a name to look for. + * @return the corresponding CoolAccessTieringPolicy. + */ + public static CoolAccessTieringPolicy fromString(String name) { + return fromString(name, CoolAccessTieringPolicy.class); + } + + /** + * Gets known CoolAccessTieringPolicy values. + * + * @return known CoolAccessTieringPolicy values. + */ + public static Collection values() { + return values(CoolAccessTieringPolicy.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java deleted file mode 100644 index fb747234bc48..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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; - -/** - * Destination replication properties. - */ -@Fluent -public final class DestinationReplication implements JsonSerializable { - /* - * The resource ID of the remote volume - */ - private String resourceId; - - /* - * Indicates whether the replication is cross zone or cross region. - */ - private ReplicationType replicationType; - - /* - * The remote region for the destination volume. - */ - private String region; - - /* - * The remote zone for the destination volume. - */ - private String zone; - - /** - * Creates an instance of DestinationReplication class. - */ - public DestinationReplication() { - } - - /** - * Get the resourceId property: The resource ID of the remote volume. - * - * @return the resourceId value. - */ - public String resourceId() { - return this.resourceId; - } - - /** - * Set the resourceId property: The resource ID of the remote volume. - * - * @param resourceId the resourceId value to set. - * @return the DestinationReplication object itself. - */ - public DestinationReplication withResourceId(String resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * Get the replicationType property: Indicates whether the replication is cross zone or cross region. - * - * @return the replicationType value. - */ - public ReplicationType replicationType() { - return this.replicationType; - } - - /** - * Set the replicationType property: Indicates whether the replication is cross zone or cross region. - * - * @param replicationType the replicationType value to set. - * @return the DestinationReplication object itself. - */ - public DestinationReplication withReplicationType(ReplicationType replicationType) { - this.replicationType = replicationType; - return this; - } - - /** - * Get the region property: The remote region for the destination volume. - * - * @return the region value. - */ - public String region() { - return this.region; - } - - /** - * Set the region property: The remote region for the destination volume. - * - * @param region the region value to set. - * @return the DestinationReplication object itself. - */ - public DestinationReplication withRegion(String region) { - this.region = region; - return this; - } - - /** - * Get the zone property: The remote zone for the destination volume. - * - * @return the zone value. - */ - public String zone() { - return this.zone; - } - - /** - * Set the zone property: The remote zone for the destination volume. - * - * @param zone the zone value to set. - * @return the DestinationReplication object itself. - */ - public DestinationReplication withZone(String zone) { - this.zone = zone; - 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("resourceId", this.resourceId); - jsonWriter.writeStringField("replicationType", - this.replicationType == null ? null : this.replicationType.toString()); - jsonWriter.writeStringField("region", this.region); - jsonWriter.writeStringField("zone", this.zone); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DestinationReplication from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DestinationReplication 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 DestinationReplication. - */ - public static DestinationReplication fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DestinationReplication deserializedDestinationReplication = new DestinationReplication(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceId".equals(fieldName)) { - deserializedDestinationReplication.resourceId = reader.getString(); - } else if ("replicationType".equals(fieldName)) { - deserializedDestinationReplication.replicationType = ReplicationType.fromString(reader.getString()); - } else if ("region".equals(fieldName)) { - deserializedDestinationReplication.region = reader.getString(); - } else if ("zone".equals(fieldName)) { - deserializedDestinationReplication.zone = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedDestinationReplication; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java index 15b02e5e0e29..2fd76144f364 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java @@ -27,11 +27,6 @@ public final class EncryptionIdentity implements JsonSerializable keyVaultPrivateEndpoints(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseInner object. + * + * @return the inner object. + */ + GetKeyVaultStatusResponseInner innerModel(); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java deleted file mode 100644 index 743dd7e29be5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; -import java.util.List; - -/** - * An immutable client-side representation of ListQuotaReportResponse. - */ -public interface ListQuotaReportResponse { - /** - * Gets the value property: List of volume quota report records. - * - * @return the value value. - */ - List value(); - - /** - * Gets the nextLink property: URL to get the next set of results. - * - * @return the nextLink value. - */ - String nextLink(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner object. - * - * @return the inner object. - */ - ListQuotaReportResponseInner innerModel(); -} 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 6a0d646784fe..7da136ac980d 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 @@ -100,21 +100,6 @@ public interface NetAppAccount { */ Boolean disableShowmount(); - /** - * Gets 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. - */ - String nfsV4IdDomain(); - - /** - * Gets the isMultiAdEnabled property: This will have true value only if account is Multiple AD enabled. - * - * @return the isMultiAdEnabled value. - */ - Boolean isMultiAdEnabled(); - /** * Gets the region of the resource. * @@ -198,9 +183,8 @@ 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.WithEncryption, DefinitionStages.WithNfsV4IdDomain { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, + DefinitionStages.WithActiveDirectories, DefinitionStages.WithEncryption { /** * Executes the create request. * @@ -268,21 +252,6 @@ interface WithEncryption { */ WithCreate withEncryption(AccountEncryption encryption); } - - /** - * The stage of the NetAppAccount definition allowing to specify nfsV4IdDomain. - */ - interface WithNfsV4IdDomain { - /** - * Specifies 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 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 next definition stage. - */ - WithCreate withNfsV4IdDomain(String nfsV4IdDomain); - } } /** @@ -296,7 +265,7 @@ interface WithNfsV4IdDomain { * The template for NetAppAccount update. */ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithActiveDirectories, - UpdateStages.WithEncryption, UpdateStages.WithNfsV4IdDomain { + UpdateStages.WithEncryption { /** * Executes the update request. * @@ -368,21 +337,6 @@ interface WithEncryption { */ Update withEncryption(AccountEncryption encryption); } - - /** - * The stage of the NetAppAccount update allowing to specify nfsV4IdDomain. - */ - interface WithNfsV4IdDomain { - /** - * Specifies 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 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 next definition stage. - */ - Update withNfsV4IdDomain(String nfsV4IdDomain); - } } /** @@ -458,8 +412,9 @@ interface WithNfsV4IdDomain { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. */ - void getChangeKeyVaultInformation(); + GetKeyVaultStatusResponse getChangeKeyVaultInformation(); /** * Get information about how volumes under NetApp account are encrypted. @@ -472,8 +427,9 @@ interface WithNfsV4IdDomain { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. */ - void getChangeKeyVaultInformation(Context context); + GetKeyVaultStatusResponse getChangeKeyVaultInformation(Context context); /** * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. 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 ab1b41608a9c..5fc459941670 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 @@ -192,40 +192,6 @@ 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. - * - * @return the nfsV4IdDomain value. - */ - public String nfsV4IdDomain() { - return this.innerProperties() == null ? null : this.innerProperties().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 NetAppAccountPatch object itself. - */ - public NetAppAccountPatch withNfsV4IdDomain(String nfsV4IdDomain) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountProperties(); - } - this.innerProperties().withNfsV4IdDomain(nfsV4IdDomain); - return this; - } - - /** - * Get the isMultiAdEnabled property: This will have true value only if account is Multiple AD enabled. - * - * @return the isMultiAdEnabled value. - */ - public Boolean isMultiAdEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().isMultiAdEnabled(); - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java deleted file mode 100644 index a30e5c5d9e71..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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; - -/** - * Quota report record properties. - */ -@Fluent -public final class QuotaReport implements JsonSerializable { - /* - * Type of quota - */ - private Type quotaType; - - /* - * UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ - * command for the user or group and SID can be found by running - */ - private String quotaTarget; - - /* - * Specifies the current usage in kibibytes for the user/group quota. - */ - private Long quotaLimitUsedInKiBs; - - /* - * Specifies the total size limit in kibibytes for the user/group quota. - */ - private Long quotaLimitTotalInKiBs; - - /* - * Percentage of used size compared to total size. - */ - private Float percentageUsed; - - /* - * Flag to indicate whether the quota is derived from default quota. - */ - private Boolean isDerivedQuota; - - /** - * Creates an instance of QuotaReport class. - */ - public QuotaReport() { - } - - /** - * Get the quotaType property: Type of quota. - * - * @return the quotaType value. - */ - public Type quotaType() { - return this.quotaType; - } - - /** - * Set the quotaType property: Type of quota. - * - * @param quotaType the quotaType value to set. - * @return the QuotaReport object itself. - */ - public QuotaReport withQuotaType(Type quotaType) { - this.quotaType = quotaType; - return this; - } - - /** - * Get the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found - * by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount - * where name='user-name' get sid>. - * - * @return the quotaTarget value. - */ - public String quotaTarget() { - return this.quotaTarget; - } - - /** - * Set the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found - * by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount - * where name='user-name' get sid>. - * - * @param quotaTarget the quotaTarget value to set. - * @return the QuotaReport object itself. - */ - public QuotaReport withQuotaTarget(String quotaTarget) { - this.quotaTarget = quotaTarget; - return this; - } - - /** - * Get the quotaLimitUsedInKiBs property: Specifies the current usage in kibibytes for the user/group quota. - * - * @return the quotaLimitUsedInKiBs value. - */ - public Long quotaLimitUsedInKiBs() { - return this.quotaLimitUsedInKiBs; - } - - /** - * Set the quotaLimitUsedInKiBs property: Specifies the current usage in kibibytes for the user/group quota. - * - * @param quotaLimitUsedInKiBs the quotaLimitUsedInKiBs value to set. - * @return the QuotaReport object itself. - */ - public QuotaReport withQuotaLimitUsedInKiBs(Long quotaLimitUsedInKiBs) { - this.quotaLimitUsedInKiBs = quotaLimitUsedInKiBs; - return this; - } - - /** - * Get the quotaLimitTotalInKiBs property: Specifies the total size limit in kibibytes for the user/group quota. - * - * @return the quotaLimitTotalInKiBs value. - */ - public Long quotaLimitTotalInKiBs() { - return this.quotaLimitTotalInKiBs; - } - - /** - * Set the quotaLimitTotalInKiBs property: Specifies the total size limit in kibibytes for the user/group quota. - * - * @param quotaLimitTotalInKiBs the quotaLimitTotalInKiBs value to set. - * @return the QuotaReport object itself. - */ - public QuotaReport withQuotaLimitTotalInKiBs(Long quotaLimitTotalInKiBs) { - this.quotaLimitTotalInKiBs = quotaLimitTotalInKiBs; - return this; - } - - /** - * Get the percentageUsed property: Percentage of used size compared to total size. - * - * @return the percentageUsed value. - */ - public Float percentageUsed() { - return this.percentageUsed; - } - - /** - * Set the percentageUsed property: Percentage of used size compared to total size. - * - * @param percentageUsed the percentageUsed value to set. - * @return the QuotaReport object itself. - */ - public QuotaReport withPercentageUsed(Float percentageUsed) { - this.percentageUsed = percentageUsed; - return this; - } - - /** - * Get the isDerivedQuota property: Flag to indicate whether the quota is derived from default quota. - * - * @return the isDerivedQuota value. - */ - public Boolean isDerivedQuota() { - return this.isDerivedQuota; - } - - /** - * Set the isDerivedQuota property: Flag to indicate whether the quota is derived from default quota. - * - * @param isDerivedQuota the isDerivedQuota value to set. - * @return the QuotaReport object itself. - */ - public QuotaReport withIsDerivedQuota(Boolean isDerivedQuota) { - this.isDerivedQuota = isDerivedQuota; - 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("quotaType", this.quotaType == null ? null : this.quotaType.toString()); - jsonWriter.writeStringField("quotaTarget", this.quotaTarget); - jsonWriter.writeNumberField("quotaLimitUsedInKiBs", this.quotaLimitUsedInKiBs); - jsonWriter.writeNumberField("quotaLimitTotalInKiBs", this.quotaLimitTotalInKiBs); - jsonWriter.writeNumberField("percentageUsed", this.percentageUsed); - jsonWriter.writeBooleanField("isDerivedQuota", this.isDerivedQuota); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of QuotaReport from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of QuotaReport 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 QuotaReport. - */ - public static QuotaReport fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - QuotaReport deserializedQuotaReport = new QuotaReport(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("quotaType".equals(fieldName)) { - deserializedQuotaReport.quotaType = Type.fromString(reader.getString()); - } else if ("quotaTarget".equals(fieldName)) { - deserializedQuotaReport.quotaTarget = reader.getString(); - } else if ("quotaLimitUsedInKiBs".equals(fieldName)) { - deserializedQuotaReport.quotaLimitUsedInKiBs = reader.getNullable(JsonReader::getLong); - } else if ("quotaLimitTotalInKiBs".equals(fieldName)) { - deserializedQuotaReport.quotaLimitTotalInKiBs = reader.getNullable(JsonReader::getLong); - } else if ("percentageUsed".equals(fieldName)) { - deserializedQuotaReport.percentageUsed = reader.getNullable(JsonReader::getFloat); - } else if ("isDerivedQuota".equals(fieldName)) { - deserializedQuotaReport.isDerivedQuota = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedQuotaReport; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java index 2e0d13254be4..5667c07c15b7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java @@ -10,7 +10,6 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; -import java.util.List; /** * Replication properties. @@ -47,11 +46,6 @@ public final class ReplicationObject implements JsonSerializable destinationReplications; - /** * Creates an instance of ReplicationObject class. */ @@ -173,15 +167,6 @@ public ReplicationObject withRemoteVolumeRegion(String remoteVolumeRegion) { return this; } - /** - * Get the destinationReplications property: A list of destination replications. - * - * @return the destinationReplications value. - */ - public List destinationReplications() { - return this.destinationReplications; - } - /** * Validates the instance. * @@ -191,9 +176,6 @@ public void validate() { if (remotePath() != null) { remotePath().validate(); } - if (destinationReplications() != null) { - destinationReplications().forEach(e -> e.validate()); - } } /** @@ -239,10 +221,6 @@ public static ReplicationObject fromJson(JsonReader jsonReader) throws IOExcepti deserializedReplicationObject.remotePath = RemotePath.fromJson(reader); } else if ("remoteVolumeRegion".equals(fieldName)) { deserializedReplicationObject.remoteVolumeRegion = reader.getString(); - } else if ("destinationReplications".equals(fieldName)) { - List destinationReplications - = reader.readArray(reader1 -> DestinationReplication.fromJson(reader1)); - deserializedReplicationObject.destinationReplications = destinationReplications; } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java deleted file mode 100644 index 36f09f42710b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Indicates whether the replication is cross zone or cross region. - */ -public final class ReplicationType extends ExpandableStringEnum { - /** - * Static value CrossRegionReplication for ReplicationType. - */ - public static final ReplicationType CROSS_REGION_REPLICATION = fromString("CrossRegionReplication"); - - /** - * Static value CrossZoneReplication for ReplicationType. - */ - public static final ReplicationType CROSS_ZONE_REPLICATION = fromString("CrossZoneReplication"); - - /** - * Creates a new instance of ReplicationType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ReplicationType() { - } - - /** - * Creates or finds a ReplicationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ReplicationType. - */ - public static ReplicationType fromString(String name) { - return fromString(name, ReplicationType.class); - } - - /** - * Gets known ReplicationType values. - * - * @return known ReplicationType values. - */ - public static Collection values() { - return values(ReplicationType.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java index e4f0cb97a054..50199244bda4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java @@ -33,11 +33,6 @@ public final class ServiceLevel extends ExpandableStringEnum { */ public static final ServiceLevel STANDARD_ZRS = fromString("StandardZRS"); - /** - * Static value Flexible for ServiceLevel. - */ - public static final ServiceLevel FLEXIBLE = fromString("Flexible"); - /** * Creates a new instance of ServiceLevel value. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Type.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Type.java index abe9a850b6b0..7e6c467bdb64 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Type.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Type.java @@ -10,7 +10,7 @@ /** * quotaType * - * Type of quota rule. + * Type of quota. */ public final class Type extends ExpandableStringEnum { /** 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 8b14261d52a2..48d9c7d66fce 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 @@ -97,7 +97,7 @@ 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 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * 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. @@ -202,7 +202,7 @@ public interface Volume { /** * Gets the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. For creating clone volume, set type to ShortTermClone. + * set type to DataProtection. * * @return the volumeType value. */ @@ -216,16 +216,6 @@ public interface Volume { */ VolumePropertiesDataProtection dataProtection(); - /** - * Gets the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, - * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically - * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term - * clone volume, set the property as accepted. - * - * @return the acceptGrowCapacityPoolForShortTermCloneSplit value. - */ - AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit(); - /** * Gets the isRestoring property: Restoring. * @@ -357,15 +347,22 @@ public interface Volume { */ CoolAccessRetrievalPolicy coolAccessRetrievalPolicy(); + /** + * Gets the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies + * and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data + * blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + * + * @return the coolAccessTieringPolicy value. + */ + CoolAccessTieringPolicy coolAccessTieringPolicy(); + /** * Gets the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, - * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user - * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain - * as its last saved value only. + * read/execute to group and other users. * * @return the unixPermissions value. */ @@ -515,20 +512,6 @@ public interface Volume { */ String originatingResourceId(); - /** - * Gets the inheritedSizeInBytes property: Space shared by short term clone volume with parent volume in bytes. - * - * @return the inheritedSizeInBytes value. - */ - Long inheritedSizeInBytes(); - - /** - * Gets the language property: Language supported for volume. - * - * @return the language value. - */ - VolumeLanguage language(); - /** * Gets the region of the resource. * @@ -632,12 +615,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 1PiB, and on an exceptional basis, from to + * 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 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 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. + * 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. */ @@ -667,19 +650,20 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithZon DefinitionStages.WithServiceLevel, DefinitionStages.WithExportPolicy, DefinitionStages.WithProtocolTypes, DefinitionStages.WithSnapshotId, DefinitionStages.WithDeleteBaseSnapshot, DefinitionStages.WithBackupId, DefinitionStages.WithNetworkFeatures, DefinitionStages.WithVolumeType, DefinitionStages.WithDataProtection, - DefinitionStages.WithAcceptGrowCapacityPoolForShortTermCloneSplit, DefinitionStages.WithIsRestoring, - DefinitionStages.WithSnapshotDirectoryVisible, DefinitionStages.WithKerberosEnabled, - DefinitionStages.WithSecurityStyle, DefinitionStages.WithSmbEncryption, - DefinitionStages.WithSmbAccessBasedEnumeration, DefinitionStages.WithSmbNonBrowsable, - DefinitionStages.WithSmbContinuouslyAvailable, DefinitionStages.WithThroughputMibps, - DefinitionStages.WithEncryptionKeySource, DefinitionStages.WithKeyVaultPrivateEndpointResourceId, - DefinitionStages.WithLdapEnabled, DefinitionStages.WithCoolAccess, DefinitionStages.WithCoolnessPeriod, - DefinitionStages.WithCoolAccessRetrievalPolicy, DefinitionStages.WithUnixPermissions, - DefinitionStages.WithAvsDataStore, DefinitionStages.WithIsDefaultQuotaEnabled, - DefinitionStages.WithDefaultUserQuotaInKiBs, DefinitionStages.WithDefaultGroupQuotaInKiBs, - DefinitionStages.WithCapacityPoolResourceId, DefinitionStages.WithProximityPlacementGroup, - DefinitionStages.WithVolumeSpecName, DefinitionStages.WithPlacementRules, - DefinitionStages.WithEnableSubvolumes, DefinitionStages.WithIsLargeVolume, DefinitionStages.WithLanguage { + DefinitionStages.WithIsRestoring, DefinitionStages.WithSnapshotDirectoryVisible, + DefinitionStages.WithKerberosEnabled, DefinitionStages.WithSecurityStyle, + DefinitionStages.WithSmbEncryption, DefinitionStages.WithSmbAccessBasedEnumeration, + DefinitionStages.WithSmbNonBrowsable, DefinitionStages.WithSmbContinuouslyAvailable, + DefinitionStages.WithThroughputMibps, DefinitionStages.WithEncryptionKeySource, + DefinitionStages.WithKeyVaultPrivateEndpointResourceId, 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. * @@ -823,10 +807,10 @@ interface WithNetworkFeatures { interface WithVolumeType { /** * Specifies the volumeType property: What type of volume is this. For destination volumes in Cross Region - * Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone. + * Replication, set type to DataProtection. * * @param volumeType What type of volume is this. For destination volumes in Cross Region Replication, set - * type to DataProtection. For creating clone volume, set type to ShortTermClone. + * type to DataProtection. * @return the next definition stage. */ WithCreate withVolumeType(String volumeType); @@ -847,26 +831,6 @@ interface WithDataProtection { WithCreate withDataProtection(VolumePropertiesDataProtection dataProtection); } - /** - * The stage of the Volume definition allowing to specify acceptGrowCapacityPoolForShortTermCloneSplit. - */ - interface WithAcceptGrowCapacityPoolForShortTermCloneSplit { - /** - * Specifies the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term - * clone volume, if the parent pool does not have enough space to accommodate the volume after split, it - * will be automatically resized, which will lead to increased billing. To accept capacity pool size auto - * grow and create a short term clone volume, set the property as accepted.. - * - * @param acceptGrowCapacityPoolForShortTermCloneSplit While auto splitting the short term clone volume, if - * the parent pool does not have enough space to accommodate the volume after split, it will be - * automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and - * create a short term clone volume, set the property as accepted. - * @return the next definition stage. - */ - WithCreate withAcceptGrowCapacityPoolForShortTermCloneSplit( - AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit); - } - /** * The stage of the Volume definition allowing to specify isRestoring. */ @@ -1101,6 +1065,27 @@ interface WithCoolAccessRetrievalPolicy { WithCreate withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy coolAccessRetrievalPolicy); } + /** + * The stage of the Volume definition allowing to specify coolAccessTieringPolicy. + */ + interface WithCoolAccessTieringPolicy { + /** + * Specifies the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks + * are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in + * both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. + * SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the + * active file system to the cool tier.. + * + * @param coolAccessTieringPolicy coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the + * Snapshot copies and the active file system to the cool tier tier. This policy is the default. + * SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the + * active file system to the cool tier. + * @return the next definition stage. + */ + WithCreate withCoolAccessTieringPolicy(CoolAccessTieringPolicy coolAccessTieringPolicy); + } + /** * The stage of the Volume definition allowing to specify unixPermissions. */ @@ -1110,19 +1095,13 @@ interface WithUnixPermissions { * First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects * permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for * other users in the same group. the fourth for other users not in the group. 0755 - gives - * read/write/execute permissions to owner and read/execute to group and other users. Avoid passing null - * value for unixPermissions in volume update operation, As per the behavior, If Null value is passed then - * user-visible unixPermissions value will became null, and user will not be able to get unixPermissions - * value. On safer side, actual unixPermissions value on volume will remain as its last saved value only.. + * read/write/execute permissions to owner and read/execute to group and other users.. * * @param unixPermissions UNIX permissions for NFS volume accepted in octal 4 digit format. First digit * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission * for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users * in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute - * permissions to owner and read/execute to group and other users. Avoid passing null value for - * unixPermissions in volume update operation, As per the behavior, If Null value is passed then - * user-visible unixPermissions value will became null, and user will not be able to get unixPermissions - * value. On safer side, actual unixPermissions value on volume will remain as its last saved value only. + * permissions to owner and read/execute to group and other users. * @return the next definition stage. */ WithCreate withUnixPermissions(String unixPermissions); @@ -1267,19 +1246,6 @@ interface WithIsLargeVolume { */ WithCreate withIsLargeVolume(Boolean isLargeVolume); } - - /** - * 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); - } } /** @@ -1297,8 +1263,9 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithServiceLevel, U UpdateStages.WithDataProtection, UpdateStages.WithIsDefaultQuotaEnabled, UpdateStages.WithDefaultUserQuotaInKiBs, UpdateStages.WithDefaultGroupQuotaInKiBs, UpdateStages.WithUnixPermissions, UpdateStages.WithCoolAccess, UpdateStages.WithCoolnessPeriod, - UpdateStages.WithCoolAccessRetrievalPolicy, UpdateStages.WithSnapshotDirectoryVisible, - UpdateStages.WithSmbAccessBasedEnumeration, UpdateStages.WithSmbNonBrowsable { + UpdateStages.WithCoolAccessRetrievalPolicy, UpdateStages.WithCoolAccessTieringPolicy, + UpdateStages.WithSnapshotDirectoryVisible, UpdateStages.WithSmbAccessBasedEnumeration, + UpdateStages.WithSmbNonBrowsable { /** * Executes the update request. * @@ -1352,12 +1319,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 1PiB, and on an exceptional basis, from to + * 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 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 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. + * 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. */ @@ -1539,6 +1506,27 @@ interface WithCoolAccessRetrievalPolicy { Update withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy coolAccessRetrievalPolicy); } + /** + * The stage of the Volume update allowing to specify coolAccessTieringPolicy. + */ + interface WithCoolAccessTieringPolicy { + /** + * Specifies the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks + * are moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks in + * both the Snapshot copies and the active file system to the cool tier tier. This policy is the default. + * SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the + * active file system to the cool tier.. + * + * @param coolAccessTieringPolicy coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the + * Snapshot copies and the active file system to the cool tier tier. This policy is the default. + * SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not associated with the + * active file system to the cool tier. + * @return the next definition stage. + */ + Update withCoolAccessTieringPolicy(CoolAccessTieringPolicy coolAccessTieringPolicy); + } + /** * The stage of the Volume update allowing to specify snapshotDirectoryVisible. */ @@ -1671,28 +1659,6 @@ interface WithSmbNonBrowsable { */ void resetCifsPassword(Context context); - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @throws com.azure.core.management.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 splitCloneFromParent(); - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void splitCloneFromParent(Context context); - /** * Break file locks * @@ -1744,30 +1710,6 @@ interface WithSmbNonBrowsable { GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListForLdapUserRequest body, Context context); - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume. - */ - ListQuotaReportResponse listQuotaReport(); - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume. - */ - ListQuotaReportResponse listQuotaReport(Context context); - /** * Break volume replication * 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 bf61333f6a7e..5571ccacfb0d 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 @@ -204,7 +204,7 @@ 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 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * 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. @@ -216,7 +216,7 @@ 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 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * 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. @@ -455,7 +455,7 @@ public List mountTargets() { /** * Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. For creating clone volume, set type to ShortTermClone. + * set type to DataProtection. * * @return the volumeType value. */ @@ -465,7 +465,7 @@ public String volumeType() { /** * Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. For creating clone volume, set type to ShortTermClone. + * set type to DataProtection. * * @param volumeType the volumeType value to set. * @return the VolumeGroupVolumeProperties object itself. @@ -503,40 +503,6 @@ public VolumeGroupVolumeProperties withDataProtection(VolumePropertiesDataProtec return this; } - /** - * Get the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, - * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically - * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term - * clone volume, set the property as accepted. - * - * @return the acceptGrowCapacityPoolForShortTermCloneSplit value. - */ - public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() { - return this.innerProperties() == null - ? null - : this.innerProperties().acceptGrowCapacityPoolForShortTermCloneSplit(); - } - - /** - * Set the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, - * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically - * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term - * clone volume, set the property as accepted. - * - * @param acceptGrowCapacityPoolForShortTermCloneSplit the acceptGrowCapacityPoolForShortTermCloneSplit value to - * set. - * @return the VolumeGroupVolumeProperties object itself. - */ - public VolumeGroupVolumeProperties withAcceptGrowCapacityPoolForShortTermCloneSplit( - AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties() - .withAcceptGrowCapacityPoolForShortTermCloneSplit(acceptGrowCapacityPoolForShortTermCloneSplit); - return this; - } - /** * Get the isRestoring property: Restoring. * @@ -930,15 +896,41 @@ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { return this; } + /** + * Get the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies + * and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data + * blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + * + * @return the coolAccessTieringPolicy value. + */ + public CoolAccessTieringPolicy coolAccessTieringPolicy() { + return this.innerProperties() == null ? null : this.innerProperties().coolAccessTieringPolicy(); + } + + /** + * Set the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies + * and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data + * blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + * + * @param coolAccessTieringPolicy the coolAccessTieringPolicy value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withCoolAccessTieringPolicy(CoolAccessTieringPolicy coolAccessTieringPolicy) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withCoolAccessTieringPolicy(coolAccessTieringPolicy); + return this; + } + /** * Get the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, - * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user - * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain - * as its last saved value only. + * read/execute to group and other users. * * @return the unixPermissions value. */ @@ -951,10 +943,7 @@ public String unixPermissions() { * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, - * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user - * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain - * as its last saved value only. + * read/execute to group and other users. * * @param unixPermissions the unixPermissions value to set. * @return the VolumeGroupVolumeProperties object itself. @@ -1292,38 +1281,6 @@ public String originatingResourceId() { return this.innerProperties() == null ? null : this.innerProperties().originatingResourceId(); } - /** - * Get the inheritedSizeInBytes property: Space shared by short term clone volume with parent volume in bytes. - * - * @return the inheritedSizeInBytes value. - */ - 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; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java deleted file mode 100644 index 02c49feff81b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java +++ /dev/null @@ -1,388 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * VolumeLanguage - * - * Language supported for volume. - */ -public final class VolumeLanguage extends ExpandableStringEnum { - /** - * Static value c.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage C_UTF_8 = fromString("c.utf-8"); - - /** - * Static value utf8mb4 for VolumeLanguage. - */ - public static final VolumeLanguage UTF8MB4 = fromString("utf8mb4"); - - /** - * Static value ar for VolumeLanguage. - */ - public static final VolumeLanguage AR = fromString("ar"); - - /** - * Static value ar.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage AR_UTF_8 = fromString("ar.utf-8"); - - /** - * Static value hr for VolumeLanguage. - */ - public static final VolumeLanguage HR = fromString("hr"); - - /** - * Static value hr.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage HR_UTF_8 = fromString("hr.utf-8"); - - /** - * Static value cs for VolumeLanguage. - */ - public static final VolumeLanguage CS = fromString("cs"); - - /** - * Static value cs.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage CS_UTF_8 = fromString("cs.utf-8"); - - /** - * Static value da for VolumeLanguage. - */ - public static final VolumeLanguage DA = fromString("da"); - - /** - * Static value da.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage DA_UTF_8 = fromString("da.utf-8"); - - /** - * Static value nl for VolumeLanguage. - */ - public static final VolumeLanguage NL = fromString("nl"); - - /** - * Static value nl.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage NL_UTF_8 = fromString("nl.utf-8"); - - /** - * Static value en for VolumeLanguage. - */ - public static final VolumeLanguage EN = fromString("en"); - - /** - * Static value en.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage EN_UTF_8 = fromString("en.utf-8"); - - /** - * Static value fi for VolumeLanguage. - */ - public static final VolumeLanguage FI = fromString("fi"); - - /** - * Static value fi.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage FI_UTF_8 = fromString("fi.utf-8"); - - /** - * Static value fr for VolumeLanguage. - */ - public static final VolumeLanguage FR = fromString("fr"); - - /** - * Static value fr.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage FR_UTF_8 = fromString("fr.utf-8"); - - /** - * Static value de for VolumeLanguage. - */ - public static final VolumeLanguage DE = fromString("de"); - - /** - * Static value de.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage DE_UTF_8 = fromString("de.utf-8"); - - /** - * Static value he for VolumeLanguage. - */ - public static final VolumeLanguage HE = fromString("he"); - - /** - * Static value he.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage HE_UTF_8 = fromString("he.utf-8"); - - /** - * Static value hu for VolumeLanguage. - */ - public static final VolumeLanguage HU = fromString("hu"); - - /** - * Static value hu.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage HU_UTF_8 = fromString("hu.utf-8"); - - /** - * Static value it for VolumeLanguage. - */ - public static final VolumeLanguage IT = fromString("it"); - - /** - * Static value it.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage IT_UTF_8 = fromString("it.utf-8"); - - /** - * Static value ja for VolumeLanguage. - */ - public static final VolumeLanguage JA = fromString("ja"); - - /** - * Static value ja.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage JA_UTF_8 = fromString("ja.utf-8"); - - /** - * Static value ja-v1 for VolumeLanguage. - */ - public static final VolumeLanguage JA_V1 = fromString("ja-v1"); - - /** - * Static value ja-v1.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage JA_V1_UTF_8 = fromString("ja-v1.utf-8"); - - /** - * Static value ja-jp.pck for VolumeLanguage. - */ - public static final VolumeLanguage JA_JP_PCK = fromString("ja-jp.pck"); - - /** - * Static value ja-jp.pck.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage JA_JP_PCK_UTF_8 = fromString("ja-jp.pck.utf-8"); - - /** - * Static value ja-jp.932 for VolumeLanguage. - */ - public static final VolumeLanguage JA_JP_932 = fromString("ja-jp.932"); - - /** - * Static value ja-jp.932.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage JA_JP_932_UTF_8 = fromString("ja-jp.932.utf-8"); - - /** - * Static value ja-jp.pck-v2 for VolumeLanguage. - */ - public static final VolumeLanguage JA_JP_PCK_V2 = fromString("ja-jp.pck-v2"); - - /** - * Static value ja-jp.pck-v2.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage JA_JP_PCK_V2_UTF_8 = fromString("ja-jp.pck-v2.utf-8"); - - /** - * Static value ko for VolumeLanguage. - */ - public static final VolumeLanguage KO = fromString("ko"); - - /** - * Static value ko.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage KO_UTF_8 = fromString("ko.utf-8"); - - /** - * Static value no for VolumeLanguage. - */ - public static final VolumeLanguage NO = fromString("no"); - - /** - * Static value no.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage NO_UTF_8 = fromString("no.utf-8"); - - /** - * Static value pl for VolumeLanguage. - */ - public static final VolumeLanguage PL = fromString("pl"); - - /** - * Static value pl.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage PL_UTF_8 = fromString("pl.utf-8"); - - /** - * Static value pt for VolumeLanguage. - */ - public static final VolumeLanguage PT = fromString("pt"); - - /** - * Static value pt.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage PT_UTF_8 = fromString("pt.utf-8"); - - /** - * Static value c for VolumeLanguage. - */ - public static final VolumeLanguage C = fromString("c"); - - /** - * Static value ro for VolumeLanguage. - */ - public static final VolumeLanguage RO = fromString("ro"); - - /** - * Static value ro.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage RO_UTF_8 = fromString("ro.utf-8"); - - /** - * Static value ru for VolumeLanguage. - */ - public static final VolumeLanguage RU = fromString("ru"); - - /** - * Static value ru.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage RU_UTF_8 = fromString("ru.utf-8"); - - /** - * Static value zh for VolumeLanguage. - */ - public static final VolumeLanguage ZH = fromString("zh"); - - /** - * Static value zh.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage ZH_UTF_8 = fromString("zh.utf-8"); - - /** - * Static value zh.gbk for VolumeLanguage. - */ - public static final VolumeLanguage ZH_GBK = fromString("zh.gbk"); - - /** - * Static value zh.gbk.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage ZH_GBK_UTF_8 = fromString("zh.gbk.utf-8"); - - /** - * Static value zh-tw.big5 for VolumeLanguage. - */ - public static final VolumeLanguage ZH_TW_BIG5 = fromString("zh-tw.big5"); - - /** - * Static value zh-tw.big5.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage ZH_TW_BIG5_UTF_8 = fromString("zh-tw.big5.utf-8"); - - /** - * Static value zh-tw for VolumeLanguage. - */ - public static final VolumeLanguage ZH_TW = fromString("zh-tw"); - - /** - * Static value zh-tw.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage ZH_TW_UTF_8 = fromString("zh-tw.utf-8"); - - /** - * Static value sk for VolumeLanguage. - */ - public static final VolumeLanguage SK = fromString("sk"); - - /** - * Static value sk.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage SK_UTF_8 = fromString("sk.utf-8"); - - /** - * Static value sl for VolumeLanguage. - */ - public static final VolumeLanguage SL = fromString("sl"); - - /** - * Static value sl.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage SL_UTF_8 = fromString("sl.utf-8"); - - /** - * Static value es for VolumeLanguage. - */ - public static final VolumeLanguage ES = fromString("es"); - - /** - * Static value es.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage ES_UTF_8 = fromString("es.utf-8"); - - /** - * Static value sv for VolumeLanguage. - */ - public static final VolumeLanguage SV = fromString("sv"); - - /** - * Static value sv.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage SV_UTF_8 = fromString("sv.utf-8"); - - /** - * Static value tr for VolumeLanguage. - */ - public static final VolumeLanguage TR = fromString("tr"); - - /** - * Static value tr.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage TR_UTF_8 = fromString("tr.utf-8"); - - /** - * Static value en-us for VolumeLanguage. - */ - public static final VolumeLanguage EN_US = fromString("en-us"); - - /** - * Static value en-us.utf-8 for VolumeLanguage. - */ - public static final VolumeLanguage EN_US_UTF_8 = fromString("en-us.utf-8"); - - /** - * Creates a new instance of VolumeLanguage value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public VolumeLanguage() { - } - - /** - * Creates or finds a VolumeLanguage from its string representation. - * - * @param name a name to look for. - * @return the corresponding VolumeLanguage. - */ - public static VolumeLanguage fromString(String name) { - return fromString(name, VolumeLanguage.class); - } - - /** - * Gets known VolumeLanguage values. - * - * @return known VolumeLanguage values. - */ - public static Collection values() { - return values(VolumeLanguage.class); - } -} 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 e94c3a797855..977072ee4386 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 @@ -128,7 +128,7 @@ 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 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * 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. @@ -140,7 +140,7 @@ 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 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * 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. @@ -437,6 +437,35 @@ public VolumePatch withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy coolA return this; } + /** + * Get the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies + * and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data + * blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + * + * @return the coolAccessTieringPolicy value. + */ + public CoolAccessTieringPolicy coolAccessTieringPolicy() { + return this.innerProperties() == null ? null : this.innerProperties().coolAccessTieringPolicy(); + } + + /** + * Set the coolAccessTieringPolicy property: coolAccessTieringPolicy determines which cold data blocks are moved to + * cool tier. The possible values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies + * and the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves user data + * blocks of the Volume Snapshot copies that are not associated with the active file system to the cool tier. + * + * @param coolAccessTieringPolicy the coolAccessTieringPolicy value to set. + * @return the VolumePatch object itself. + */ + public VolumePatch withCoolAccessTieringPolicy(CoolAccessTieringPolicy coolAccessTieringPolicy) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumePatchProperties(); + } + this.innerProperties().withCoolAccessTieringPolicy(coolAccessTieringPolicy); + return this; + } + /** * Get the snapshotDirectoryVisible property: If enabled (true) the volume will contain a read-only snapshot * directory which provides access to each of the volume's snapshots. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java index 1e5865b37180..21701962e706 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java @@ -211,38 +211,6 @@ void revert(String resourceGroupName, String accountName, String poolName, Strin void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Split clone from parent volume - * - * Split operation to convert clone volume to an independent volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context); - /** * Break file locks * @@ -313,41 +281,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String resourceG GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context); - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume. - */ - ListQuotaReportResponse listQuotaReport(String resourceGroupName, String accountName, String poolName, - String volumeName); - - /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return quota Report for volume. - */ - ListQuotaReportResponse listQuotaReport(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); - /** * Break volume replication * 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 97e6f5a571e6..6f57cb199456 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,8 +13,8 @@ */ public final class AccountsChangeKeyVaultSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Accounts_ChangeKeyVault.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 a79f59aafa83..73aaa0d75f62 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 @@ -12,8 +12,8 @@ */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Accounts_CreateOrUpdate.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -25,8 +25,8 @@ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Accounts_CreateOrUpdateAD.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. 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 a876d879e84c..2a2b68e4391b 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 @@ -10,7 +10,7 @@ public final class AccountsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 59b0898122c7..82e8cc2fe29e 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 @@ -10,7 +10,7 @@ public final class AccountsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 ff87a99e5285..c8f680fd10d6 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: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Accounts_GetChangeKeyVaultInformation.json */ /** 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 20c8034ad08c..98fa57e08d5d 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 @@ -10,7 +10,7 @@ public final class AccountsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 700721e5764f..b7147bd9a521 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 @@ -10,7 +10,7 @@ public final class AccountsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. 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 fea17a15266c..13d5069682cd 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,8 +9,8 @@ */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Accounts_RenewCredentials.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 010826d4ddc9..5d4b423750fc 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: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Accounts_TransitionEncryptionKey.json */ /** 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 3cd0fc7068a3..a5cf48069ed9 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 @@ -14,7 +14,7 @@ public final class AccountsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Update.json */ /** * Sample code: Accounts_Update. 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 ce78aa5272d4..9a76d98a4214 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 @@ -10,8 +10,7 @@ public final class BackupPoliciesCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Create. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 ee8a6f95a077..0dcf33ee4c87 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 @@ -10,8 +10,7 @@ public final class BackupPoliciesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Delete. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 092e777ed9a4..c76fb5b1140a 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 @@ -10,8 +10,7 @@ public final class BackupPoliciesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Get. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Get.json */ /** * Sample code: Backups_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 828841c9dfb6..9bda9c6c397d 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 @@ -10,8 +10,7 @@ public final class BackupPoliciesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_List. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 74eeecf4ea4d..3b3161407a3d 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 @@ -12,8 +12,7 @@ public final class BackupPoliciesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Update. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 843213bbe660..6081a41b51e8 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 @@ -10,8 +10,7 @@ public final class BackupVaultsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Create. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 db9fa4816348..7ff7d6ba7670 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 @@ -10,8 +10,7 @@ public final class BackupVaultsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Delete. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 c76f35c7d62e..7a88331f3193 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 @@ -10,7 +10,7 @@ public final class BackupVaultsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 113875949929..1318269c3ef2 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 @@ -10,7 +10,7 @@ public final class BackupVaultsListByNetAppAccountSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 e52cd37a80a3..add662a46355 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 @@ -14,8 +14,7 @@ public final class BackupVaultsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Update. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 35b97a6dddba..3a6c6fd7abef 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,8 +9,9 @@ */ public final class BackupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderBackupVault_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 89aa3dd84052..7c13d5ea3ede 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,8 +9,9 @@ */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderBackupVault_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 80ddcafbfaae..4bdb3d86f840 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,8 +9,8 @@ */ public final class BackupsGetLatestStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_LatestBackupStatus.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 820da4bdb9aa..38152b757e9c 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,8 +9,9 @@ */ public final class BackupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderBackupVault_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 6bbdd5da4d09..4f4719055587 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,8 +9,9 @@ */ public final class BackupsGetVolumeLatestRestoreStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_LatestRestoreStatus.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 2641be9cfb9e..5dd4a7ff09d6 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,8 +9,9 @@ */ public final class BackupsListByVaultSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderBackupVault_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_List. + * json */ /** * Sample code: Backups_List. 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 f846349a7011..2a437e2b7ae8 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,8 +11,9 @@ */ public final class BackupsUnderAccountMigrateBackupsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderAccount_Migrate.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 1ec29df35be7..58e1b2d544a1 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: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * BackupsUnderBackupVault_SingleFileRestore.json */ /** 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 6dbefa9612b0..8fde385112b2 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,8 +11,8 @@ */ public final class BackupsUnderVolumeMigrateBackupsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderVolume_Migrate.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 08b98be8ed23..77fe9b72c20e 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,8 +11,9 @@ */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * BackupsUnderBackupVault_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Update. + * json */ /** * Sample code: BackupsUnderBackupVault_Update. 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 197000c1434e..2e39d9c2d605 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,8 +11,8 @@ */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * CheckFilePathAvailability.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. 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 993ab0c43078..5b0dbe33d040 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 @@ -13,8 +13,7 @@ public final class NetAppResourceCheckNameAvailabilitySamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckNameAvailability. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 8fa6ac668e65..c2ac91733ba8 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 @@ -13,8 +13,7 @@ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckQuotaAvailability - * .json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 867300ac5560..cd74147f4e28 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,8 +11,8 @@ */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * NetworkSiblingSet_Query.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. 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 73919ab66972..b95fc47f544a 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 @@ -10,7 +10,7 @@ public final class NetAppResourceQueryRegionInfoSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfo.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfo.json */ /** * Sample code: RegionInfo_Query. 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 9871a0edadec..5dc735ac2638 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 @@ -10,7 +10,7 @@ public final class NetAppResourceQuotaLimitsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/QuotaLimits_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 e3d6294a02cd..cf02a81d15cb 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 @@ -10,7 +10,7 @@ public final class NetAppResourceQuotaLimitsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/QuotaLimits_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 5178766c06cb..1e980a2c12b0 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 @@ -10,7 +10,7 @@ public final class NetAppResourceRegionInfosGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 66f57f317a72..1ddfe1d92fd7 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 @@ -10,7 +10,7 @@ public final class NetAppResourceRegionInfosListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 8ac934ada779..b7b418702b83 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,8 +12,8 @@ */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * NetworkSiblingSet_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. 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 6e8b1cc50706..00a2f7e0bd67 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 @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/OperationList.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 945f5ceecc71..b5f06b56854b 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 @@ -13,8 +13,7 @@ public final class PoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -31,26 +30,4 @@ public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFi .withQosType(QosType.AUTO) .create(); } - - /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Pools_CreateOrUpdate_CustomThroughput.json - */ - /** - * Sample code: Pools_CreateOrUpdate_CustomThroughput. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - poolsCreateOrUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.pools() - .define("customPool1") - .withRegion("eastus") - .withExistingNetAppAccount("myRG", "account1") - .withSize(4398046511104L) - .withServiceLevel(ServiceLevel.FLEXIBLE) - .withCustomThroughputMibps(128.0F) - .withQosType(QosType.MANUAL) - .create(); - } } 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 204d34127626..db2c90975f06 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 @@ -10,7 +10,7 @@ public final class PoolsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 1cba91a385a6..2d7f37fed6e1 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 @@ -8,22 +8,9 @@ * Samples for Pools Get. */ public final class PoolsGetSamples { - /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Pools_Get_CustomThroughput.json - */ - /** - * Sample code: Pools_Get_CustomThroughput. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void poolsGetCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.pools().getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE); - } - /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 e7ba45aecffb..5e978e1e9c7f 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 @@ -10,7 +10,7 @@ public final class PoolsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 1fd3591c9d77..ecf0b741c61d 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 @@ -12,7 +12,7 @@ public final class PoolsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -24,20 +24,4 @@ public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManag = manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue(); resource.update().apply(); } - - /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Pools_Update_CustomThroughput.json - */ - /** - * Sample code: Pools_Update_CustomThroughput. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void poolsUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - CapacityPool resource = manager.pools() - .getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().apply(); - } } 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 b8ea4995a2aa..21544f70893d 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,8 +14,8 @@ */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * SnapshotPolicies_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 6684c4283789..153577c8845a 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,8 +9,8 @@ */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * SnapshotPolicies_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 8c3b33a92e29..1855d6f96cdd 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 @@ -10,8 +10,7 @@ public final class SnapshotPoliciesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Get. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 33fd38caf4b8..6ad01038cce0 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 @@ -10,8 +10,7 @@ public final class SnapshotPoliciesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_List. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 03734e9159e6..430ee5c034e9 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,8 +9,9 @@ */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * SnapshotPolicies_ListVolumes.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 4f0e629d9a0c..41f2ff002554 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,8 +15,8 @@ */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * SnapshotPolicies_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 21d92f8caeb2..45a02153d036 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 @@ -10,7 +10,7 @@ public final class SnapshotsCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 a55b2527861e..81d823a78e91 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 @@ -10,7 +10,7 @@ public final class SnapshotsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 f3f6e1e49ab9..b4c16df088a6 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 @@ -10,7 +10,7 @@ public final class SnapshotsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 27bf13d93ab8..600ef6cd5b23 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 @@ -10,7 +10,7 @@ public final class SnapshotsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 5331108104df..f57f36de25ed 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,8 +12,9 @@ */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Snapshots_SingleFileRestore.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_SingleFileRestore. + * json */ /** * Sample code: Snapshots_SingleFileRestore. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java index 151cc234ff2f..0ca3e6c91c66 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java @@ -14,7 +14,7 @@ public final class SnapshotsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Update.json */ /** * Sample code: Snapshots_Update. 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 2f88002a21fb..fbb8508b75b1 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 @@ -10,7 +10,7 @@ public final class SubvolumesCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 3defebaba3c1..4ac0c3711a81 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 @@ -10,7 +10,7 @@ public final class SubvolumesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 c5d04c7a89e4..dab6f78a04ed 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 @@ -10,8 +10,7 @@ public final class SubvolumesGetMetadataSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Metadata. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 3646dcdee787..7a6db65659fc 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 @@ -10,7 +10,7 @@ public final class SubvolumesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 e8aad516ab61..d212f36f8ab3 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 @@ -10,7 +10,7 @@ public final class SubvolumesListByVolumeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 ace89f405f25..231d531b192e 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 @@ -12,7 +12,7 @@ public final class SubvolumesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 b8f710fa2839..2850e3752324 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,8 +17,9 @@ */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_Create_SapHana.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Create_SapHana. + * json */ /** * Sample code: VolumeGroups_Create_SapHana. @@ -178,8 +179,8 @@ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.Ne } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_Create_Oracle.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 618bdd82394a..a3d0f248933e 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 @@ -10,8 +10,7 @@ public final class VolumeGroupsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Delete. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 104661c01e59..f82ee0f62e3a 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,8 +9,8 @@ */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_Get_SapHana.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. @@ -22,8 +22,8 @@ public static void volumeGroupsGetSapHana(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_Get_Oracle.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 1fdf3c7ca7bf..5b05da68802d 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,8 +9,8 @@ */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_List_Oracle.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. @@ -22,8 +22,8 @@ public static void volumeGroupsListOracle(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeGroups_List_SapHana.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 d66c88096216..443a6bcb643c 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,8 +11,8 @@ */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeQuotaRules_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 38ea64d89b0c..acda72f50220 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,8 +9,8 @@ */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeQuotaRules_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 dcec8795abef..2e34cdbef05b 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 @@ -10,8 +10,7 @@ public final class VolumeQuotaRulesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Get. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 1ca54aad4dfb..b4cac1ef24d5 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 @@ -10,8 +10,7 @@ public final class VolumeQuotaRulesListByVolumeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_List. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 fd1858b92956..359af3f5263c 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,8 +11,8 @@ */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * VolumeQuotaRules_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 76c961e4fe7e..df361d43c987 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: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Volumes_AuthorizeExternalReplication.json */ /** 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 5862f1e9b7cb..a3c5f15ea6d9 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,8 +11,9 @@ */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_AuthorizeReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 7118959a95bd..19ef4dc5a2fe 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 @@ -12,8 +12,7 @@ public final class VolumesBreakFileLocksSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakFileLocks - * .json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 2f2a8280c9be..61ab54141b21 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,8 +11,8 @@ */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_BreakReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 f5bb6475b899..453d3e23604a 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 @@ -12,8 +12,7 @@ public final class VolumesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_CreateOrUpdate - * .json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. 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 d3b1cbed5006..92f7f3a26609 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,8 +9,8 @@ */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_DeleteReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 2fdbdecab41d..7f638aec98da 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 @@ -10,7 +10,7 @@ public final class VolumesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 d0cf9d26578c..838e3936af97 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: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Volumes_FinalizeExternalReplication.json */ /** 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 764d9c077bab..37a2a65a98ed 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,8 +9,8 @@ */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_FinalizeRelocation.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 8be9df3df8b8..0d8bf2d1afbb 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 @@ -10,7 +10,7 @@ public final class VolumesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 6f8e4916e77c..555d371635b5 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 @@ -12,8 +12,7 @@ public final class VolumesListGetGroupIdListForLdapUserSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser - * .json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 deleted file mode 100644 index b8d85de15647..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for Volumes ListQuotaReport. - */ -public final class VolumesListQuotaReportSamples { - /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ListQuotaReport.json - */ - /** - * Sample code: ListQuotaReport. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void listQuotaReport(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().listQuotaReport("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/VolumesListReplicationsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java index 743e659724c2..d97bb05a9f5b 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 @@ -9,8 +9,8 @@ */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ListReplications.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 0af7a24061ff..261fe3bc27c6 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 @@ -10,7 +10,7 @@ public final class VolumesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 f851efd5355f..b3e79c92eaec 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,8 +12,9 @@ */ public final class VolumesPeerExternalClusterSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_PeerExternalCluster.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 7919c088cf24..e8b7ef28bba0 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: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Volumes_PerformReplicationTransfer.json */ /** 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 48314bffd890..bc53409dd86c 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 @@ -12,8 +12,7 @@ public final class VolumesPoolChangeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PoolChange. - * json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_PoolChange.json */ /** * Sample code: Volumes_AuthorizeReplication. 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 bdc51ca09dba..501d6de16499 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: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ * Volumes_PopulateAvailabilityZones.json */ /** 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 7b518972a034..c80e86a7aec4 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,8 +9,9 @@ */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ReInitializeReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 233bbf332e98..28bbb51a9dcd 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,8 +11,9 @@ */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ReestablishReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 b90c5db2fe9d..e0e19da866b0 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 @@ -12,7 +12,7 @@ public final class VolumesRelocateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Relocate.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 ba1c1606a5b8..db3d82d53d9e 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,8 +9,8 @@ */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ReplicationStatus.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 4883b39c701a..53e124eaed49 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,8 +9,8 @@ */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ResetCifsPassword.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 73757a82a516..6c3efba46062 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,8 +9,8 @@ */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_ResyncReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 fc77c0d86c55..63157aa8aed1 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,8 +9,8 @@ */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/ - * Volumes_RevertRelocation.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 174505c88031..88d73ef79d68 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 @@ -12,7 +12,7 @@ public final class VolumesRevertSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Revert.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 deleted file mode 100644 index 9e36117d5f35..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for Volumes SplitCloneFromParent. - */ -public final class VolumesSplitCloneFromParentSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_SplitClone. - * json - */ - /** - * Sample code: Volumes_SplitClone. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void volumesSplitClone(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes() - .splitCloneFromParent("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/VolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java index aecd4ae5f259..960b6c3fc2eb 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 @@ -12,7 +12,7 @@ public final class VolumesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/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 deleted file mode 100644 index 96c2174739a2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AccountsRenewCredentialsMockTests { - @Test - public void testRenewCredentials() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.accounts().renewCredentials("tujwsawdd", "ibabxvititvtzeex", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AuthorizeRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AuthorizeRequestTests.java deleted file mode 100644 index 2e0291e1af54..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AuthorizeRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.AuthorizeRequest; -import org.junit.jupiter.api.Assertions; - -public final class AuthorizeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AuthorizeRequest model - = BinaryData.fromString("{\"remoteVolumeResourceId\":\"nyga\"}").toObject(AuthorizeRequest.class); - Assertions.assertEquals("nyga", model.remoteVolumeResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AuthorizeRequest model = new AuthorizeRequest().withRemoteVolumeResourceId("nyga"); - model = BinaryData.fromObject(model).toObject(AuthorizeRequest.class); - Assertions.assertEquals("nyga", model.remoteVolumeResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupInnerTests.java deleted file mode 100644 index 3d9c0b1fbfcb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupInnerTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupInner; -import org.junit.jupiter.api.Assertions; - -public final class BackupInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupInner model = BinaryData.fromString( - "{\"properties\":{\"backupId\":\"wlvwlyoupf\",\"creationDate\":\"2021-07-15T15:51:01Z\",\"provisioningState\":\"jub\",\"size\":7578973114042008670,\"label\":\"fminsgowzf\",\"backupType\":\"Scheduled\",\"failureReason\":\"t\",\"volumeResourceId\":\"tlahbq\",\"useExistingSnapshot\":false,\"snapshotName\":\"tgzukxitmmqt\",\"backupPolicyResourceId\":\"qqxhrnxrxcpj\",\"isLargeVolume\":true},\"id\":\"vokqdzfv\",\"name\":\"zivj\",\"type\":\"frqttbajlkatnw\"}") - .toObject(BackupInner.class); - Assertions.assertEquals("fminsgowzf", model.label()); - Assertions.assertEquals("tlahbq", model.volumeResourceId()); - Assertions.assertEquals(false, model.useExistingSnapshot()); - Assertions.assertEquals("tgzukxitmmqt", model.snapshotName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupInner model = new BackupInner().withLabel("fminsgowzf") - .withVolumeResourceId("tlahbq") - .withUseExistingSnapshot(false) - .withSnapshotName("tgzukxitmmqt"); - model = BinaryData.fromObject(model).toObject(BackupInner.class); - Assertions.assertEquals("fminsgowzf", model.label()); - Assertions.assertEquals("tlahbq", model.volumeResourceId()); - Assertions.assertEquals(false, model.useExistingSnapshot()); - Assertions.assertEquals("tgzukxitmmqt", model.snapshotName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchPropertiesTests.java deleted file mode 100644 index a1b766a71db8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchPropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupPatchProperties; -import org.junit.jupiter.api.Assertions; - -public final class BackupPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPatchProperties model = BinaryData.fromString("{\"label\":\"b\"}").toObject(BackupPatchProperties.class); - Assertions.assertEquals("b", model.label()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPatchProperties model = new BackupPatchProperties().withLabel("b"); - model = BinaryData.fromObject(model).toObject(BackupPatchProperties.class); - Assertions.assertEquals("b", model.label()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchTests.java deleted file mode 100644 index f0983cdab416..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.BackupPatch; -import org.junit.jupiter.api.Assertions; - -public final class BackupPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPatch model = BinaryData.fromString("{\"properties\":{\"label\":\"nye\"}}").toObject(BackupPatch.class); - Assertions.assertEquals("nye", model.label()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPatch model = new BackupPatch().withLabel("nye"); - model = BinaryData.fromObject(model).toObject(BackupPatch.class); - Assertions.assertEquals("nye", model.label()); - } -} 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 deleted file mode 100644 index 2733aff81caf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupPolicy; -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 BackupPoliciesCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"etag\":\"mlbnseq\",\"properties\":{\"backupPolicyId\":\"jjvpilguooqja\",\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":1892935943,\"weeklyBackupsToKeep\":436205084,\"monthlyBackupsToKeep\":1799619217,\"volumesAssigned\":1412186545,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"rtdtpdelq\",\"volumeResourceId\":\"slmot\",\"backupsCount\":1927909421,\"policyEnabled\":false},{\"volumeName\":\"o\",\"volumeResourceId\":\"cjkgdirazftxej\",\"backupsCount\":1368771016,\"policyEnabled\":true},{\"volumeName\":\"jtmvc\",\"volumeResourceId\":\"excmjurbuhhl\",\"backupsCount\":492324140,\"policyEnabled\":true},{\"volumeName\":\"srogtu\",\"volumeResourceId\":\"ffdjktsysidfvclg\",\"backupsCount\":35443299,\"policyEnabled\":false}]},\"location\":\"jtkbusqogsfika\",\"tags\":{\"ttvwkpqh\":\"nsharujtjiqxfzyj\",\"bqeqqekewvnqvcd\":\"penuy\",\"punj\":\"guaucmfdjwnla\",\"sserxhtvsoxhlwn\":\"ikczvvitacgxmf\"},\"id\":\"sjgqrsxyp\",\"name\":\"uuuybnchrsziz\",\"type\":\"yuel\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - BackupPolicy response = manager.backupPolicies() - .define("henlusfnr") - .withRegion("epbnwgfm") - .withExistingNetAppAccount("fjmyccxlzhco", "ovne") - .withTags(mapOf("y", "cgbjbgdlfgt", "ctqhamzjrwdk", "naquflq")) - .withDailyBackupsToKeep(2094654345) - .withWeeklyBackupsToKeep(791127597) - .withMonthlyBackupsToKeep(1952443392) - .withEnabled(false) - .create(); - - Assertions.assertEquals("jtkbusqogsfika", response.location()); - Assertions.assertEquals("nsharujtjiqxfzyj", response.tags().get("ttvwkpqh")); - Assertions.assertEquals(1892935943, response.dailyBackupsToKeep()); - Assertions.assertEquals(436205084, response.weeklyBackupsToKeep()); - Assertions.assertEquals(1799619217, response.monthlyBackupsToKeep()); - Assertions.assertEquals(false, response.enabled()); - } - - // 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/BackupPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java deleted file mode 100644 index 8dc3d9bbfb5a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupPoliciesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.backupPolicies().delete("iropionszon", "pngajin", "ixjawrtm", 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 deleted file mode 100644 index ae5c43f646cf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupPolicy; -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 BackupPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"etag\":\"qylkmqpzoyhlf\",\"properties\":{\"backupPolicyId\":\"gwgcl\",\"provisioningState\":\"oebqinjipn\",\"dailyBackupsToKeep\":296049099,\"weeklyBackupsToKeep\":1159366069,\"monthlyBackupsToKeep\":2022448357,\"volumesAssigned\":1724104669,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"pzpofoiyjw\",\"volumeResourceId\":\"ilkmk\",\"backupsCount\":1346038267,\"policyEnabled\":true},{\"volumeName\":\"ndviauogphuartvt\",\"volumeResourceId\":\"kyefchnmnahmnxhk\",\"backupsCount\":475134082,\"policyEnabled\":true},{\"volumeName\":\"rweooxffifhx\",\"volumeResourceId\":\"snewmozqvbub\",\"backupsCount\":1359553105,\"policyEnabled\":true},{\"volumeName\":\"ycxhxzgaztta\",\"volumeResourceId\":\"idvmfqhppubo\",\"backupsCount\":1380428673,\"policyEnabled\":false}]},\"location\":\"g\",\"tags\":{\"ahokqtobkauxofsh\":\"dherngbtcj\",\"whslwkoj\":\"phwpnulaiywzej\",\"rpqaf\":\"llndnpd\",\"oc\":\"fugsnnfhyetefy\"},\"id\":\"ctfjgtixr\",\"name\":\"vzuyturmlmu\",\"type\":\"wolba\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - BackupPolicy response = manager.backupPolicies() - .getWithResponse("btozipqwje", "mur", "xxgewpk", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("g", response.location()); - Assertions.assertEquals("dherngbtcj", response.tags().get("ahokqtobkauxofsh")); - Assertions.assertEquals(296049099, response.dailyBackupsToKeep()); - Assertions.assertEquals(1159366069, response.weeklyBackupsToKeep()); - Assertions.assertEquals(2022448357, response.monthlyBackupsToKeep()); - Assertions.assertEquals(true, 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 deleted file mode 100644 index 4fe728395239..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupPolicy; -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 BackupPoliciesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"etag\":\"qpswokmvkhlggdhb\",\"properties\":{\"backupPolicyId\":\"zqkzszuwi\",\"provisioningState\":\"glxxhljfpgpic\",\"dailyBackupsToKeep\":1974760632,\"weeklyBackupsToKeep\":285978627,\"monthlyBackupsToKeep\":1409620818,\"volumesAssigned\":1972611629,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"pqcbfrmbodthsq\",\"volumeResourceId\":\"vriibakclacjfr\",\"backupsCount\":1419015231,\"policyEnabled\":true}]},\"location\":\"au\",\"tags\":{\"wohqfzizvu\":\"vsg\",\"vmribiat\":\"mmkjsvthnwpztek\",\"zcugswvxwlmzqw\":\"gplucfotangcfhny\",\"cvclxynpdk\":\"vtxnjmxmcuqud\"},\"id\":\"gfabuiyjibuzphdu\",\"name\":\"neiknpg\",\"type\":\"xgjiuqh\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.backupPolicies().list("zvuporqzdfuydz", "kfvxcnq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("au", response.iterator().next().location()); - Assertions.assertEquals("vsg", response.iterator().next().tags().get("wohqfzizvu")); - Assertions.assertEquals(1974760632, response.iterator().next().dailyBackupsToKeep()); - Assertions.assertEquals(285978627, response.iterator().next().weeklyBackupsToKeep()); - Assertions.assertEquals(1409620818, response.iterator().next().monthlyBackupsToKeep()); - Assertions.assertEquals(false, 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 deleted file mode 100644 index 5e73070025a8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; -import com.azure.resourcemanager.netapp.models.BackupPoliciesList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupPoliciesListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPoliciesList model = BinaryData.fromString( - "{\"value\":[{\"etag\":\"cccnxqhuexmktt\",\"properties\":{\"backupPolicyId\":\"tvlz\",\"provisioningState\":\"emhzrncsdtc\",\"dailyBackupsToKeep\":1367209105,\"weeklyBackupsToKeep\":2121256273,\"monthlyBackupsToKeep\":1137275627,\"volumesAssigned\":1674447280,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"sl\",\"volumeResourceId\":\"adcy\",\"backupsCount\":448514309,\"policyEnabled\":true}]},\"location\":\"ejhzisxg\",\"tags\":{\"vk\":\"lolp\",\"qvujzraehtwdwrf\":\"r\",\"dl\":\"swibyr\",\"hfwpracstwit\":\"h\"},\"id\":\"khevxccedc\",\"name\":\"nmdyodnwzxl\",\"type\":\"jc\"},{\"etag\":\"hlt\",\"properties\":{\"backupPolicyId\":\"gcxn\",\"provisioningState\":\"vwxqibyqunyo\",\"dailyBackupsToKeep\":2001486807,\"weeklyBackupsToKeep\":1090974611,\"monthlyBackupsToKeep\":1597116231,\"volumesAssigned\":351776134,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"fvpdbo\",\"volumeResourceId\":\"cizsjqlhkrribdei\",\"backupsCount\":1262026177,\"policyEnabled\":false},{\"volumeName\":\"ghvxndzwmkrefa\",\"volumeResourceId\":\"jorwkqnyhgbij\",\"backupsCount\":1741167059,\"policyEnabled\":true},{\"volumeName\":\"zs\",\"volumeResourceId\":\"bibsystawfsdjpvk\",\"backupsCount\":250834954,\"policyEnabled\":true}]},\"location\":\"kzbzkdvncjabudu\",\"tags\":{\"hmouwqlgzrfze\":\"akmokzhjjklf\",\"lbjbsyb\":\"yebizikayuh\"},\"id\":\"qwrvtldgmfp\",\"name\":\"vm\",\"type\":\"ipaslthaqfxssmwu\"},{\"etag\":\"bdsrez\",\"properties\":{\"backupPolicyId\":\"rhneuyowq\",\"provisioningState\":\"wyt\",\"dailyBackupsToKeep\":372277345,\"weeklyBackupsToKeep\":97621763,\"monthlyBackupsToKeep\":1145560346,\"volumesAssigned\":1229797985,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"mejzanlfzxia\",\"volumeResourceId\":\"mbzonokix\",\"backupsCount\":115638191,\"policyEnabled\":false},{\"volumeName\":\"gzpfrla\",\"volumeResourceId\":\"zrnw\",\"backupsCount\":409653705,\"policyEnabled\":true},{\"volumeName\":\"pwp\",\"volumeResourceId\":\"lwbtlhf\",\"backupsCount\":901371312,\"policyEnabled\":false}]},\"location\":\"szfjvfbgofelja\",\"tags\":{\"ojnal\":\"mqhldvrii\",\"qhhahhxvrhmzkwpj\":\"hfkvtvsexsowuel\",\"ughftqsx\":\"wws\"},\"id\":\"qxujxukndxd\",\"name\":\"grjguufzd\",\"type\":\"syqtfi\"}]}") - .toObject(BackupPoliciesList.class); - Assertions.assertEquals("ejhzisxg", model.value().get(0).location()); - Assertions.assertEquals("lolp", model.value().get(0).tags().get("vk")); - Assertions.assertEquals(1367209105, model.value().get(0).dailyBackupsToKeep()); - Assertions.assertEquals(2121256273, model.value().get(0).weeklyBackupsToKeep()); - Assertions.assertEquals(1137275627, model.value().get(0).monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.value().get(0).enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPoliciesList model - = new BackupPoliciesList() - .withValue( - Arrays - .asList( - new BackupPolicyInner().withLocation("ejhzisxg") - .withTags( - mapOf("vk", "lolp", "qvujzraehtwdwrf", "r", "dl", "swibyr", "hfwpracstwit", "h")) - .withDailyBackupsToKeep(1367209105) - .withWeeklyBackupsToKeep(2121256273) - .withMonthlyBackupsToKeep(1137275627) - .withEnabled(false), - new BackupPolicyInner().withLocation("kzbzkdvncjabudu") - .withTags(mapOf("hmouwqlgzrfze", "akmokzhjjklf", "lbjbsyb", "yebizikayuh")) - .withDailyBackupsToKeep(2001486807) - .withWeeklyBackupsToKeep(1090974611) - .withMonthlyBackupsToKeep(1597116231) - .withEnabled(true), - new BackupPolicyInner().withLocation("szfjvfbgofelja") - .withTags(mapOf("ojnal", "mqhldvrii", "qhhahhxvrhmzkwpj", "hfkvtvsexsowuel", "ughftqsx", - "wws")) - .withDailyBackupsToKeep(372277345) - .withWeeklyBackupsToKeep(97621763) - .withMonthlyBackupsToKeep(1145560346) - .withEnabled(false))); - model = BinaryData.fromObject(model).toObject(BackupPoliciesList.class); - Assertions.assertEquals("ejhzisxg", model.value().get(0).location()); - Assertions.assertEquals("lolp", model.value().get(0).tags().get("vk")); - Assertions.assertEquals(1367209105, model.value().get(0).dailyBackupsToKeep()); - Assertions.assertEquals(2121256273, model.value().get(0).weeklyBackupsToKeep()); - Assertions.assertEquals(1137275627, model.value().get(0).monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.value().get(0).enabled()); - } - - // 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/BackupPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java deleted file mode 100644 index d85451931ea7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPolicyInner model = BinaryData.fromString( - "{\"etag\":\"hbotzingamvppho\",\"properties\":{\"backupPolicyId\":\"qzudphq\",\"provisioningState\":\"vdkfwynwcvtbvk\",\"dailyBackupsToKeep\":1479821561,\"weeklyBackupsToKeep\":911796600,\"monthlyBackupsToKeep\":1206519159,\"volumesAssigned\":565781188,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"wp\",\"volumeResourceId\":\"p\",\"backupsCount\":219155482,\"policyEnabled\":false},{\"volumeName\":\"sgvvsccyajguq\",\"volumeResourceId\":\"wygzlvdnkfxusem\",\"backupsCount\":1095077901,\"policyEnabled\":true}]},\"location\":\"hapfcqdpsqx\",\"tags\":{\"mgccelvezrypq\":\"svuo\",\"kerqwkyh\":\"mfe\",\"pg\":\"ob\"},\"id\":\"edkowepbqpcrfk\",\"name\":\"wccsnjvcdwxlpqek\",\"type\":\"tn\"}") - .toObject(BackupPolicyInner.class); - Assertions.assertEquals("hapfcqdpsqx", model.location()); - Assertions.assertEquals("svuo", model.tags().get("mgccelvezrypq")); - Assertions.assertEquals(1479821561, model.dailyBackupsToKeep()); - Assertions.assertEquals(911796600, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1206519159, model.monthlyBackupsToKeep()); - Assertions.assertEquals(true, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPolicyInner model = new BackupPolicyInner().withLocation("hapfcqdpsqx") - .withTags(mapOf("mgccelvezrypq", "svuo", "kerqwkyh", "mfe", "pg", "ob")) - .withDailyBackupsToKeep(1479821561) - .withWeeklyBackupsToKeep(911796600) - .withMonthlyBackupsToKeep(1206519159) - .withEnabled(true); - model = BinaryData.fromObject(model).toObject(BackupPolicyInner.class); - Assertions.assertEquals("hapfcqdpsqx", model.location()); - Assertions.assertEquals("svuo", model.tags().get("mgccelvezrypq")); - Assertions.assertEquals(1479821561, model.dailyBackupsToKeep()); - Assertions.assertEquals(911796600, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1206519159, model.monthlyBackupsToKeep()); - Assertions.assertEquals(true, model.enabled()); - } - - // 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/BackupPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java deleted file mode 100644 index b0dc82a5f7a7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.BackupPolicyPatch; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupPolicyPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPolicyPatch model = BinaryData.fromString( - "{\"properties\":{\"backupPolicyId\":\"llqwjygvjayvblmh\",\"provisioningState\":\"zuhbxvvyhgsopb\",\"dailyBackupsToKeep\":1164866415,\"weeklyBackupsToKeep\":338245093,\"monthlyBackupsToKeep\":175567556,\"volumesAssigned\":2128318759,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"nhlmctlpdng\",\"volumeResourceId\":\"vgbmhr\",\"backupsCount\":283160638,\"policyEnabled\":true}]},\"location\":\"yijejvegrhbpnaix\",\"tags\":{\"rvqahqkghtpwi\":\"cbdreaxhcexd\",\"ycxzbfvoo\":\"nhyjsv\"},\"id\":\"vrvmtgjqppyost\",\"name\":\"on\",\"type\":\"myhgfipnsxkmc\"}") - .toObject(BackupPolicyPatch.class); - Assertions.assertEquals("yijejvegrhbpnaix", model.location()); - Assertions.assertEquals("cbdreaxhcexd", model.tags().get("rvqahqkghtpwi")); - Assertions.assertEquals(1164866415, model.dailyBackupsToKeep()); - Assertions.assertEquals(338245093, model.weeklyBackupsToKeep()); - Assertions.assertEquals(175567556, model.monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPolicyPatch model = new BackupPolicyPatch().withLocation("yijejvegrhbpnaix") - .withTags(mapOf("rvqahqkghtpwi", "cbdreaxhcexd", "ycxzbfvoo", "nhyjsv")) - .withDailyBackupsToKeep(1164866415) - .withWeeklyBackupsToKeep(338245093) - .withMonthlyBackupsToKeep(175567556) - .withEnabled(false); - model = BinaryData.fromObject(model).toObject(BackupPolicyPatch.class); - Assertions.assertEquals("yijejvegrhbpnaix", model.location()); - Assertions.assertEquals("cbdreaxhcexd", model.tags().get("rvqahqkghtpwi")); - Assertions.assertEquals(1164866415, model.dailyBackupsToKeep()); - Assertions.assertEquals(338245093, model.weeklyBackupsToKeep()); - Assertions.assertEquals(175567556, model.monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.enabled()); - } - - // 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/BackupPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java deleted file mode 100644 index f2442f76295f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties; -import org.junit.jupiter.api.Assertions; - -public final class BackupPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPolicyProperties model = BinaryData.fromString( - "{\"backupPolicyId\":\"tjsyin\",\"provisioningState\":\"fq\",\"dailyBackupsToKeep\":881453963,\"weeklyBackupsToKeep\":942135651,\"monthlyBackupsToKeep\":872729199,\"volumesAssigned\":709166537,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"kdgszywkbirr\",\"volumeResourceId\":\"zh\",\"backupsCount\":524454595,\"policyEnabled\":true},{\"volumeName\":\"rvqqaatj\",\"volumeResourceId\":\"rv\",\"backupsCount\":162856777,\"policyEnabled\":true}]}") - .toObject(BackupPolicyProperties.class); - Assertions.assertEquals(881453963, model.dailyBackupsToKeep()); - Assertions.assertEquals(942135651, model.weeklyBackupsToKeep()); - Assertions.assertEquals(872729199, model.monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPolicyProperties model = new BackupPolicyProperties().withDailyBackupsToKeep(881453963) - .withWeeklyBackupsToKeep(942135651) - .withMonthlyBackupsToKeep(872729199) - .withEnabled(false); - model = BinaryData.fromObject(model).toObject(BackupPolicyProperties.class); - Assertions.assertEquals(881453963, model.dailyBackupsToKeep()); - Assertions.assertEquals(942135651, model.weeklyBackupsToKeep()); - Assertions.assertEquals(872729199, model.monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.enabled()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPropertiesTests.java deleted file mode 100644 index e9026880ff60..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupProperties; -import org.junit.jupiter.api.Assertions; - -public final class BackupPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupProperties model = BinaryData.fromString( - "{\"backupId\":\"iopid\",\"creationDate\":\"2021-07-26T10:21:10Z\",\"provisioningState\":\"kuvscxkdm\",\"size\":7887453097536877840,\"label\":\"ibrxkp\",\"backupType\":\"Manual\",\"failureReason\":\"zuruocbgo\",\"volumeResourceId\":\"rb\",\"useExistingSnapshot\":true,\"snapshotName\":\"bfhjxakvvjgsl\",\"backupPolicyResourceId\":\"dilmyww\",\"isLargeVolume\":true}") - .toObject(BackupProperties.class); - Assertions.assertEquals("ibrxkp", model.label()); - Assertions.assertEquals("rb", model.volumeResourceId()); - Assertions.assertEquals(true, model.useExistingSnapshot()); - Assertions.assertEquals("bfhjxakvvjgsl", model.snapshotName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupProperties model = new BackupProperties().withLabel("ibrxkp") - .withVolumeResourceId("rb") - .withUseExistingSnapshot(true) - .withSnapshotName("bfhjxakvvjgsl"); - model = BinaryData.fromObject(model).toObject(BackupProperties.class); - Assertions.assertEquals("ibrxkp", model.label()); - Assertions.assertEquals("rb", model.volumeResourceId()); - Assertions.assertEquals(true, model.useExistingSnapshot()); - Assertions.assertEquals("bfhjxakvvjgsl", model.snapshotName()); - } -} 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 deleted file mode 100644 index 2f074e7199dd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.BackupRestoreFiles; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BackupRestoreFilesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupRestoreFiles model = BinaryData.fromString( - "{\"fileList\":[\"raauzzpt\",\"a\"],\"restoreFilePath\":\"sdzhezww\",\"destinationVolumeId\":\"aiqyuvvfo\"}") - .toObject(BackupRestoreFiles.class); - Assertions.assertEquals("raauzzpt", model.fileList().get(0)); - Assertions.assertEquals("sdzhezww", model.restoreFilePath()); - Assertions.assertEquals("aiqyuvvfo", model.destinationVolumeId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupRestoreFiles model = new BackupRestoreFiles().withFileList(Arrays.asList("raauzzpt", "a")) - .withRestoreFilePath("sdzhezww") - .withDestinationVolumeId("aiqyuvvfo"); - model = BinaryData.fromObject(model).toObject(BackupRestoreFiles.class); - Assertions.assertEquals("raauzzpt", model.fileList().get(0)); - Assertions.assertEquals("sdzhezww", model.restoreFilePath()); - Assertions.assertEquals("aiqyuvvfo", model.destinationVolumeId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupStatusInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupStatusInnerTests.java deleted file mode 100644 index 9f9ca495c0e2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupStatusInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner; - -public final class BackupStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupStatusInner model = BinaryData.fromString( - "{\"healthy\":false,\"relationshipStatus\":\"Unknown\",\"mirrorState\":\"Uninitialized\",\"unhealthyReason\":\"gzslesjcbhernnti\",\"errorMessage\":\"djc\",\"lastTransferSize\":1220945276828738413,\"lastTransferType\":\"rbe\",\"totalTransferBytes\":8622823251017389633,\"transferProgressBytes\":226230104431146502}") - .toObject(BackupStatusInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupStatusInner model = new BackupStatusInner(); - model = BinaryData.fromObject(model).toObject(BackupStatusInner.class); - } -} 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 deleted file mode 100644 index b36db69e0ffd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupVaultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupVaultInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"vqeevtoep\"},\"location\":\"utnwytpzdmovzvf\",\"tags\":{\"f\":\"wzqa\",\"cokpv\":\"gzuriglaecxndt\"},\"id\":\"mlqtmldgxob\",\"name\":\"irclnpk\",\"type\":\"iayz\"}") - .toObject(BackupVaultInner.class); - Assertions.assertEquals("utnwytpzdmovzvf", model.location()); - Assertions.assertEquals("wzqa", model.tags().get("f")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupVaultInner model = new BackupVaultInner().withLocation("utnwytpzdmovzvf") - .withTags(mapOf("f", "wzqa", "cokpv", "gzuriglaecxndt")); - model = BinaryData.fromObject(model).toObject(BackupVaultInner.class); - Assertions.assertEquals("utnwytpzdmovzvf", model.location()); - Assertions.assertEquals("wzqa", model.tags().get("f")); - } - - // 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/BackupVaultPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java deleted file mode 100644 index dac4ff827cbb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.BackupVaultPatch; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupVaultPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupVaultPatch model - = BinaryData.fromString("{\"tags\":{\"ynhdwdigum\":\"xhom\"}}").toObject(BackupVaultPatch.class); - Assertions.assertEquals("xhom", model.tags().get("ynhdwdigum")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupVaultPatch model = new BackupVaultPatch().withTags(mapOf("ynhdwdigum", "xhom")); - model = BinaryData.fromObject(model).toObject(BackupVaultPatch.class); - Assertions.assertEquals("xhom", model.tags().get("ynhdwdigum")); - } - - // 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/BackupVaultPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java deleted file mode 100644 index 18b3cfbd819e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupVaultProperties; - -public final class BackupVaultPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupVaultProperties model = BinaryData.fromString("{\"provisioningState\":\"ykhyawfvjlboxqvk\"}") - .toObject(BackupVaultProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupVaultProperties model = new BackupVaultProperties(); - model = BinaryData.fromObject(model).toObject(BackupVaultProperties.class); - } -} 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 deleted file mode 100644 index d9471b88a3ce..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupVault; -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 BackupVaultsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"atzuuv\",\"tags\":{\"ajqfutlx\":\"grebwggahttzlsw\",\"unwqr\":\"oqza\"},\"id\":\"zfrgqhaohcm\",\"name\":\"uocnjrohmbpyr\",\"type\":\"xameblydyvkfkm\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - BackupVault response = manager.backupVaults() - .define("razisg") - .withRegion("nbwzohmnrxxbso") - .withExistingNetAppAccount("xcptsoqfyiaseqc", "krtt") - .withTags( - mapOf("rqsgnzx", "inhmdptys", "lsvjgpliu", "jp", "oucqpqojx", "iqwoyxqvapcoh", "rzdcgdzbenribcaw", "x")) - .create(); - - Assertions.assertEquals("atzuuv", response.location()); - Assertions.assertEquals("grebwggahttzlsw", response.tags().get("ajqfutlx")); - } - - // 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/BackupVaultsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java deleted file mode 100644 index 8e2706207938..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupVault; -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 BackupVaultsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"rrczezkhhltnj\"},\"location\":\"hqo\",\"tags\":{\"rrueqthwmg\":\"qoyueayfbpcmsplb\",\"gdhxi\":\"mbscbbx\",\"opedbwdpyqyybxub\":\"d\",\"jelaqacigele\":\"dnafcbqwre\"},\"id\":\"hdbvqvwzkjop\",\"name\":\"beonrlkwzdq\",\"type\":\"bxcea\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - BackupVault response = manager.backupVaults() - .getWithResponse("wqagnepzwa", "lsbs", "qqqagwwrxaomzi", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("hqo", response.location()); - Assertions.assertEquals("qoyueayfbpcmsplb", response.tags().get("rrueqthwmg")); - } -} 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 deleted file mode 100644 index d4815cee17c4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupVault; -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 BackupVaultsListByNetAppAccountMockTests { - @Test - public void testListByNetAppAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"zjijpvuaurkihcir\"},\"location\":\"efxrdcoxnbk\",\"tags\":{\"nqbpi\":\"nurnnq\",\"gypxrxvbfihwuhvc\":\"xqltgrd\"},\"id\":\"a\",\"name\":\"s\",\"type\":\"bxrblmliowxihspn\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.backupVaults().listByNetAppAccount("bkdq", "rdzsylollgtrczzy", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("efxrdcoxnbk", response.iterator().next().location()); - Assertions.assertEquals("nurnnq", response.iterator().next().tags().get("nqbpi")); - } -} 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 deleted file mode 100644 index 99ab205723f0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner; -import com.azure.resourcemanager.netapp.models.BackupVaultsList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupVaultsListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupVaultsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"tjuewbcihx\"},\"location\":\"whcjyxcc\",\"tags\":{\"px\":\"payakkud\",\"stcyohpfkyrkdbd\":\"wjplma\",\"nobaiyhddviacegf\":\"iogsjkmnwq\"},\"id\":\"m\",\"name\":\"tfpmvmemfnczdw\",\"type\":\"vbalxlllc\"},{\"properties\":{\"provisioningState\":\"db\"},\"location\":\"vwrdnhfukuvsj\",\"tags\":{\"lerchpq\":\"smystuluqypfc\",\"dfc\":\"mfpjbabw\",\"qddrihpfhoqcaae\":\"sspuunnoxyhkx\",\"djvlpj\":\"dao\"},\"id\":\"xkzb\",\"name\":\"msgeivsiykzk\",\"type\":\"ncj\"},{\"properties\":{\"provisioningState\":\"nbzoggcu\"},\"location\":\"p\",\"tags\":{\"ylbf\":\"rpgogtqxep\"},\"id\":\"ajlyjtlvofqzhv\",\"name\":\"cib\",\"type\":\"fmo\"},{\"properties\":{\"provisioningState\":\"rkjpvdwxfzwii\"},\"location\":\"zjb\",\"tags\":{\"mbtrnegvmnvu\":\"sxjrk\",\"bkkd\":\"eqvldspast\",\"apeewchpxlkt\":\"flvestmjlxrrilo\",\"ufuztcktyhjtq\":\"kuziycsle\"},\"id\":\"dcgzul\",\"name\":\"mmrqz\",\"type\":\"rr\"}],\"nextLink\":\"pglydz\"}") - .toObject(BackupVaultsList.class); - Assertions.assertEquals("whcjyxcc", model.value().get(0).location()); - Assertions.assertEquals("payakkud", model.value().get(0).tags().get("px")); - Assertions.assertEquals("pglydz", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupVaultsList model - = new BackupVaultsList() - .withValue( - Arrays - .asList( - new BackupVaultInner().withLocation("whcjyxcc") - .withTags(mapOf("px", "payakkud", "stcyohpfkyrkdbd", "wjplma", "nobaiyhddviacegf", - "iogsjkmnwq")), - new BackupVaultInner().withLocation("vwrdnhfukuvsj") - .withTags(mapOf("lerchpq", "smystuluqypfc", "dfc", "mfpjbabw", "qddrihpfhoqcaae", - "sspuunnoxyhkx", "djvlpj", "dao")), - new BackupVaultInner().withLocation("p").withTags(mapOf("ylbf", "rpgogtqxep")), - new BackupVaultInner().withLocation("zjb") - .withTags(mapOf("mbtrnegvmnvu", "sxjrk", "bkkd", "eqvldspast", "apeewchpxlkt", - "flvestmjlxrrilo", "ufuztcktyhjtq", "kuziycsle")))) - .withNextLink("pglydz"); - model = BinaryData.fromObject(model).toObject(BackupVaultsList.class); - Assertions.assertEquals("whcjyxcc", model.value().get(0).location()); - Assertions.assertEquals("payakkud", model.value().get(0).tags().get("px")); - Assertions.assertEquals("pglydz", model.nextLink()); - } - - // 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/BackupsCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java deleted file mode 100644 index ad85f817a84e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Backup; -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 BackupsCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"backupId\":\"l\",\"creationDate\":\"2021-07-10T12:24:24Z\",\"provisioningState\":\"Succeeded\",\"size\":2190540767152653017,\"label\":\"kympqanxrjkixtw\",\"backupType\":\"Manual\",\"failureReason\":\"ypnyghshxc\",\"volumeResourceId\":\"lhkgmnsghp\",\"useExistingSnapshot\":true,\"snapshotName\":\"hdrwjjkh\",\"backupPolicyResourceId\":\"omacluzvxnqmhr\",\"isLargeVolume\":false},\"id\":\"fwmkoisqcssffxui\",\"name\":\"mcs\",\"type\":\"p\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - Backup response = manager.backups() - .define("kdfrdbiqmrjgeihf") - .withExistingBackupVault("phavpmhbrb", "gvgovpbbttefjo", "nssqyzqed") - .withVolumeResourceId("augmrmfjlr") - .withLabel("gxhnpomyqwcabv") - .withUseExistingSnapshot(true) - .withSnapshotName("aukhfkvcisiz") - .create(); - - Assertions.assertEquals("kympqanxrjkixtw", response.label()); - Assertions.assertEquals("lhkgmnsghp", response.volumeResourceId()); - Assertions.assertEquals(true, response.useExistingSnapshot()); - Assertions.assertEquals("hdrwjjkh", 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 deleted file mode 100644 index aa23c6d7a174..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupsGetLatestStatusWithResponseMockTests { - @Test - public void testGetLatestStatusWithResponse() throws Exception { - String responseStr - = "{\"healthy\":false,\"relationshipStatus\":\"Unknown\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"mkxfbvfbhdyir\",\"errorMessage\":\"wpg\",\"lastTransferSize\":7111618905085369192,\"lastTransferType\":\"awzovgkk\",\"totalTransferBytes\":1860576085434847248,\"transferProgressBytes\":7795929404530107867}"; - - 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("", "", AzureEnvironment.AZURE)); - - BackupStatus response = manager.backups() - .getLatestStatusWithResponse("crse", "wjksghudgzhxo", "jggsvo", "jkxibda", 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 deleted file mode 100644 index 9d8bc1dd042f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RestoreStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupsGetVolumeLatestRestoreStatusWithResponseMockTests { - @Test - public void testGetVolumeLatestRestoreStatusWithResponse() throws Exception { - String responseStr - = "{\"healthy\":true,\"relationshipStatus\":\"Unknown\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"lvhbwrnf\",\"errorMessage\":\"gddpq\",\"totalTransferBytes\":5655380419005649480}"; - - 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("", "", AzureEnvironment.AZURE)); - - RestoreStatus response = manager.backups() - .getVolumeLatestRestoreStatusWithResponse("jcazt", "wsnsqowx", "comlikytwvczc", "wka", - 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 deleted file mode 100644 index 33e255377b44..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Backup; -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 BackupsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"backupId\":\"kflrmymy\",\"creationDate\":\"2021-01-15T03:01:33Z\",\"provisioningState\":\"lhrisw\",\"size\":4374005645819181573,\"label\":\"iov\",\"backupType\":\"Scheduled\",\"failureReason\":\"xuugqkc\",\"volumeResourceId\":\"otiowlxteqd\",\"useExistingSnapshot\":true,\"snapshotName\":\"wdtgukranblw\",\"backupPolicyResourceId\":\"qlkccuzgygqwaho\",\"isLargeVolume\":true},\"id\":\"gniiprglvaw\",\"name\":\"wzdufypivlsbb\",\"type\":\"pmcubkmifoxxkub\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - Backup response = manager.backups() - .getWithResponse("ihywartspph", "ixkykxd", "sj", "emmucfxh", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("iov", response.label()); - Assertions.assertEquals("otiowlxteqd", response.volumeResourceId()); - Assertions.assertEquals(true, response.useExistingSnapshot()); - Assertions.assertEquals("wdtgukranblw", 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 deleted file mode 100644 index e30076a9396a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Backup; -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 BackupsListByVaultMockTests { - @Test - public void testListByVault() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"backupId\":\"oznnhdrlktgj\",\"creationDate\":\"2021-11-15T20:11:36Z\",\"provisioningState\":\"uxhemlwywaeeczg\",\"size\":8887879852420122717,\"label\":\"lelssxblycsxzujk\",\"backupType\":\"Scheduled\",\"failureReason\":\"mdesqp\",\"volumeResourceId\":\"pvmjcdoewbid\",\"useExistingSnapshot\":false,\"snapshotName\":\"owx\",\"backupPolicyResourceId\":\"piudeugfsxzecpa\",\"isLargeVolume\":false},\"id\":\"fykhvuhxepmru\",\"name\":\"znabaobns\",\"type\":\"ujdjltymkmvg\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.backups().listByVault("n", "naoyank", "oe", "swankltytmh", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lelssxblycsxzujk", response.iterator().next().label()); - Assertions.assertEquals("pvmjcdoewbid", response.iterator().next().volumeResourceId()); - Assertions.assertEquals(false, response.iterator().next().useExistingSnapshot()); - Assertions.assertEquals("owx", response.iterator().next().snapshotName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListTests.java deleted file mode 100644 index df30fc9f02bb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupInner; -import com.azure.resourcemanager.netapp.models.BackupsList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BackupsListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"backupId\":\"jvewzcjznmwcp\",\"creationDate\":\"2021-03-18T03:28:02Z\",\"provisioningState\":\"adraufactkahzo\",\"size\":1201221594494672823,\"label\":\"iuxxpshneekulfg\",\"backupType\":\"Manual\",\"failureReason\":\"bkwdlenrds\",\"volumeResourceId\":\"tujbazpju\",\"useExistingSnapshot\":true,\"snapshotName\":\"nyfln\",\"backupPolicyResourceId\":\"wmd\",\"isLargeVolume\":false},\"id\":\"klvxwmyg\",\"name\":\"xpgpq\",\"type\":\"hiszepnnbjcrxgib\"},{\"properties\":{\"backupId\":\"axconfozauo\",\"creationDate\":\"2021-03-03T08:46:38Z\",\"provisioningState\":\"okwbqplh\",\"size\":928202540530969399,\"label\":\"epzl\",\"backupType\":\"Manual\",\"failureReason\":\"zsoldwey\",\"volumeResourceId\":\"qdunvmnnrwrbior\",\"useExistingSnapshot\":true,\"snapshotName\":\"ywjhhgdnhx\",\"backupPolicyResourceId\":\"ivfomiloxgg\",\"isLargeVolume\":false},\"id\":\"q\",\"name\":\"dieuzaofj\",\"type\":\"hvcyyysfg\"},{\"properties\":{\"backupId\":\"tcubiipuipwoqonm\",\"creationDate\":\"2021-06-06T06:49:44Z\",\"provisioningState\":\"k\",\"size\":4474116569169804323,\"label\":\"qvci\",\"backupType\":\"Manual\",\"failureReason\":\"fgmblrrilbywdxsm\",\"volumeResourceId\":\"ccwr\",\"useExistingSnapshot\":false,\"snapshotName\":\"jfnynszqujizdvoq\",\"backupPolicyResourceId\":\"ibyowbblgyavutp\",\"isLargeVolume\":false},\"id\":\"xoi\",\"name\":\"msksbp\",\"type\":\"mlqoljx\"}],\"nextLink\":\"gxxlxsffgcvizq\"}") - .toObject(BackupsList.class); - Assertions.assertEquals("iuxxpshneekulfg", model.value().get(0).label()); - Assertions.assertEquals("tujbazpju", model.value().get(0).volumeResourceId()); - Assertions.assertEquals(true, model.value().get(0).useExistingSnapshot()); - Assertions.assertEquals("nyfln", model.value().get(0).snapshotName()); - Assertions.assertEquals("gxxlxsffgcvizq", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupsList model = new BackupsList().withValue(Arrays.asList( - new BackupInner().withLabel("iuxxpshneekulfg") - .withVolumeResourceId("tujbazpju") - .withUseExistingSnapshot(true) - .withSnapshotName("nyfln"), - new BackupInner().withLabel("epzl") - .withVolumeResourceId("qdunvmnnrwrbior") - .withUseExistingSnapshot(true) - .withSnapshotName("ywjhhgdnhx"), - new BackupInner().withLabel("qvci") - .withVolumeResourceId("ccwr") - .withUseExistingSnapshot(false) - .withSnapshotName("jfnynszqujizdvoq"))) - .withNextLink("gxxlxsffgcvizq"); - model = BinaryData.fromObject(model).toObject(BackupsList.class); - Assertions.assertEquals("iuxxpshneekulfg", model.value().get(0).label()); - Assertions.assertEquals("tujbazpju", model.value().get(0).volumeResourceId()); - Assertions.assertEquals(true, model.value().get(0).useExistingSnapshot()); - Assertions.assertEquals("nyfln", model.value().get(0).snapshotName()); - Assertions.assertEquals("gxxlxsffgcvizq", model.nextLink()); - } -} 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 deleted file mode 100644 index 67faa8c62153..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; -import org.junit.jupiter.api.Assertions; - -public final class BackupsMigrationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupsMigrationRequest model - = BinaryData.fromString("{\"backupVaultId\":\"kphhq\"}").toObject(BackupsMigrationRequest.class); - Assertions.assertEquals("kphhq", model.backupVaultId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupsMigrationRequest model = new BackupsMigrationRequest().withBackupVaultId("kphhq"); - model = BinaryData.fromObject(model).toObject(BackupsMigrationRequest.class); - Assertions.assertEquals("kphhq", model.backupVaultId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.java deleted file mode 100644 index c071ec61ce39..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; -import org.junit.jupiter.api.Assertions; - -public final class BreakFileLocksRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BreakFileLocksRequest model - = BinaryData.fromString("{\"clientIp\":\"gsyocogj\",\"confirmRunningDisruptiveOperation\":false}") - .toObject(BreakFileLocksRequest.class); - Assertions.assertEquals("gsyocogj", model.clientIp()); - Assertions.assertEquals(false, model.confirmRunningDisruptiveOperation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BreakFileLocksRequest model - = new BreakFileLocksRequest().withClientIp("gsyocogj").withConfirmRunningDisruptiveOperation(false); - model = BinaryData.fromObject(model).toObject(BreakFileLocksRequest.class); - Assertions.assertEquals("gsyocogj", model.clientIp()); - Assertions.assertEquals(false, model.confirmRunningDisruptiveOperation()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakReplicationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakReplicationRequestTests.java deleted file mode 100644 index cc82c1729a12..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakReplicationRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; -import org.junit.jupiter.api.Assertions; - -public final class BreakReplicationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BreakReplicationRequest model - = BinaryData.fromString("{\"forceBreakReplication\":false}").toObject(BreakReplicationRequest.class); - Assertions.assertEquals(false, model.forceBreakReplication()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BreakReplicationRequest model = new BreakReplicationRequest().withForceBreakReplication(false); - model = BinaryData.fromObject(model).toObject(BreakReplicationRequest.class); - Assertions.assertEquals(false, model.forceBreakReplication()); - } -} 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 deleted file mode 100644 index e4e10c9ad96a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CapacityPoolInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CapacityPoolInner model = BinaryData.fromString( - "{\"etag\":\"wmdyvxqtay\",\"properties\":{\"poolId\":\"ww\",\"size\":3113078757672630652,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"exrmcqibycnojvk\",\"totalThroughputMibps\":0.19367337,\"utilizedThroughputMibps\":58.457565,\"customThroughputMibps\":19.153065,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"location\":\"y\",\"tags\":{\"zlmwlxkvugfhz\":\"vgqzcjrvxd\",\"hnnpr\":\"vawjvzunlu\",\"ultskzbbtdz\":\"xipeilpjzuaejx\",\"ekg\":\"mv\"},\"id\":\"wozuhkf\",\"name\":\"bsjyofdx\",\"type\":\"uusdttouwa\"}") - .toObject(CapacityPoolInner.class); - Assertions.assertEquals("y", model.location()); - Assertions.assertEquals("vgqzcjrvxd", model.tags().get("zlmwlxkvugfhz")); - Assertions.assertEquals(3113078757672630652L, model.size()); - Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.serviceLevel()); - Assertions.assertEquals(19.153065F, model.customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapacityPoolInner model = new CapacityPoolInner().withLocation("y") - .withTags(mapOf("zlmwlxkvugfhz", "vgqzcjrvxd", "hnnpr", "vawjvzunlu", "ultskzbbtdz", "xipeilpjzuaejx", - "ekg", "mv")) - .withSize(3113078757672630652L) - .withServiceLevel(ServiceLevel.FLEXIBLE) - .withCustomThroughputMibps(19.153065F) - .withQosType(QosType.AUTO) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.SINGLE); - model = BinaryData.fromObject(model).toObject(CapacityPoolInner.class); - Assertions.assertEquals("y", model.location()); - Assertions.assertEquals("vgqzcjrvxd", model.tags().get("zlmwlxkvugfhz")); - Assertions.assertEquals(3113078757672630652L, model.size()); - Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.serviceLevel()); - Assertions.assertEquals(19.153065F, model.customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); - } - - // 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/CapacityPoolListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java deleted file mode 100644 index 37ecb1c7fa53..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; -import com.azure.resourcemanager.netapp.models.CapacityPoolList; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CapacityPoolListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CapacityPoolList model = BinaryData.fromString( - "{\"value\":[{\"etag\":\"kfrlhrxsbky\",\"properties\":{\"poolId\":\"ycanuzbpzkafku\",\"size\":574839923891984639,\"serviceLevel\":\"Premium\",\"provisioningState\":\"wbme\",\"totalThroughputMibps\":27.898956,\"utilizedThroughputMibps\":69.774155,\"customThroughputMibps\":66.04007,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"location\":\"spkdee\",\"tags\":{\"ag\":\"fm\",\"elmqk\":\"vt\",\"hcdhmdual\":\"hahvljuahaq\",\"vfadmws\":\"exq\"},\"id\":\"crgvxpvgom\",\"name\":\"lf\",\"type\":\"isgwbnbbeldawkz\"},{\"etag\":\"liourqhak\",\"properties\":{\"poolId\":\"hashsfwxosow\",\"size\":4305995232309135618,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"i\",\"totalThroughputMibps\":63.03288,\"utilizedThroughputMibps\":19.326263,\"customThroughputMibps\":1.4710963,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"location\":\"wfvovbv\",\"tags\":{\"ce\":\"ecivyh\",\"ytdxwit\":\"ojgjrwjueiotwmc\"},\"id\":\"nrjawgqwg\",\"name\":\"hniskxfbkpyc\",\"type\":\"klwndnhjdauwhv\"},{\"etag\":\"wzbtdhxu\",\"properties\":{\"poolId\":\"nbmpowuwprzq\",\"size\":5586335519469665747,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"lupj\",\"totalThroughputMibps\":80.70111,\"utilizedThroughputMibps\":59.238964,\"customThroughputMibps\":67.89579,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"location\":\"jriplrbpbewtghf\",\"tags\":{\"wxzvlvqhjkb\":\"c\",\"iebwwaloayqcgwrt\":\"gibtnm\",\"zg\":\"j\"},\"id\":\"yzm\",\"name\":\"txon\",\"type\":\"mtsavjcbpwxqp\"}],\"nextLink\":\"knftguvriuh\"}") - .toObject(CapacityPoolList.class); - Assertions.assertEquals("spkdee", model.value().get(0).location()); - Assertions.assertEquals("fm", model.value().get(0).tags().get("ag")); - Assertions.assertEquals(574839923891984639L, model.value().get(0).size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.value().get(0).serviceLevel()); - Assertions.assertEquals(66.04007F, model.value().get(0).customThroughputMibps()); - Assertions.assertEquals(QosType.MANUAL, model.value().get(0).qosType()); - Assertions.assertEquals(true, model.value().get(0).coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.value().get(0).encryptionType()); - Assertions.assertEquals("knftguvriuh", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapacityPoolList model - = new CapacityPoolList() - .withValue( - Arrays - .asList( - new CapacityPoolInner().withLocation("spkdee") - .withTags( - mapOf("ag", "fm", "elmqk", "vt", "hcdhmdual", "hahvljuahaq", "vfadmws", "exq")) - .withSize(574839923891984639L) - .withServiceLevel(ServiceLevel.PREMIUM) - .withCustomThroughputMibps(66.04007F) - .withQosType(QosType.MANUAL) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.SINGLE), - new CapacityPoolInner().withLocation("wfvovbv") - .withTags(mapOf("ce", "ecivyh", "ytdxwit", "ojgjrwjueiotwmc")) - .withSize(4305995232309135618L) - .withServiceLevel(ServiceLevel.FLEXIBLE) - .withCustomThroughputMibps(1.4710963F) - .withQosType(QosType.MANUAL) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.DOUBLE), - new CapacityPoolInner().withLocation("jriplrbpbewtghf") - .withTags(mapOf("wxzvlvqhjkb", "c", "iebwwaloayqcgwrt", "gibtnm", "zg", "j")) - .withSize(5586335519469665747L) - .withServiceLevel(ServiceLevel.FLEXIBLE) - .withCustomThroughputMibps(67.89579F) - .withQosType(QosType.MANUAL) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.DOUBLE))) - .withNextLink("knftguvriuh"); - model = BinaryData.fromObject(model).toObject(CapacityPoolList.class); - Assertions.assertEquals("spkdee", model.value().get(0).location()); - Assertions.assertEquals("fm", model.value().get(0).tags().get("ag")); - Assertions.assertEquals(574839923891984639L, model.value().get(0).size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.value().get(0).serviceLevel()); - Assertions.assertEquals(66.04007F, model.value().get(0).customThroughputMibps()); - Assertions.assertEquals(QosType.MANUAL, model.value().get(0).qosType()); - Assertions.assertEquals(true, model.value().get(0).coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.value().get(0).encryptionType()); - Assertions.assertEquals("knftguvriuh", model.nextLink()); - } - - // 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/CapacityPoolPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java deleted file mode 100644 index 29dcfe51324f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.CapacityPoolPatch; -import com.azure.resourcemanager.netapp.models.QosType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CapacityPoolPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CapacityPoolPatch model = BinaryData.fromString( - "{\"properties\":{\"size\":9075398800966169751,\"qosType\":\"Manual\",\"coolAccess\":true,\"customThroughputMibps\":22.889233},\"location\":\"exznelixhnr\",\"tags\":{\"hb\":\"o\",\"dtpnapnyiropuhp\":\"xknalaulppg\",\"gqgitxmedjvcsl\":\"gvpgy\"},\"id\":\"n\",\"name\":\"wwncwzzhxgk\",\"type\":\"rmgucnap\"}") - .toObject(CapacityPoolPatch.class); - Assertions.assertEquals("exznelixhnr", model.location()); - Assertions.assertEquals("o", model.tags().get("hb")); - Assertions.assertEquals(9075398800966169751L, model.size()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(22.889233F, model.customThroughputMibps()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapacityPoolPatch model = new CapacityPoolPatch().withLocation("exznelixhnr") - .withTags(mapOf("hb", "o", "dtpnapnyiropuhp", "xknalaulppg", "gqgitxmedjvcsl", "gvpgy")) - .withSize(9075398800966169751L) - .withQosType(QosType.MANUAL) - .withCoolAccess(true) - .withCustomThroughputMibps(22.889233F); - model = BinaryData.fromObject(model).toObject(CapacityPoolPatch.class); - Assertions.assertEquals("exznelixhnr", model.location()); - Assertions.assertEquals("o", model.tags().get("hb")); - Assertions.assertEquals(9075398800966169751L, model.size()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(22.889233F, model.customThroughputMibps()); - } - - // 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/CheckAvailabilityResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java deleted file mode 100644 index c295ab32954a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner; -import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType; -import org.junit.jupiter.api.Assertions; - -public final class CheckAvailabilityResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckAvailabilityResponseInner model = BinaryData - .fromString("{\"isAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"czwtruwiqzbqjv\"}") - .toObject(CheckAvailabilityResponseInner.class); - Assertions.assertEquals(true, model.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, model.reason()); - Assertions.assertEquals("czwtruwiqzbqjv", model.message()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckAvailabilityResponseInner model = new CheckAvailabilityResponseInner().withIsAvailable(true) - .withReason(InAvailabilityReasonType.ALREADY_EXISTS) - .withMessage("czwtruwiqzbqjv"); - model = BinaryData.fromObject(model).toObject(CheckAvailabilityResponseInner.class); - Assertions.assertEquals(true, model.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, model.reason()); - Assertions.assertEquals("czwtruwiqzbqjv", model.message()); - } -} 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 deleted file mode 100644 index aa131fedab78..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPeerCommandResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPeerCommandResponseInner model = BinaryData.fromString("{\"peerAcceptCommand\":\"dmjsjqb\"}") - .toObject(ClusterPeerCommandResponseInner.class); - Assertions.assertEquals("dmjsjqb", model.peerAcceptCommand()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPeerCommandResponseInner model = new ClusterPeerCommandResponseInner().withPeerAcceptCommand("dmjsjqb"); - model = BinaryData.fromObject(model).toObject(ClusterPeerCommandResponseInner.class); - Assertions.assertEquals("dmjsjqb", model.peerAcceptCommand()); - } -} 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 deleted file mode 100644 index 9ab2b3c142c1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.DailySchedule; -import org.junit.jupiter.api.Assertions; - -public final class DailyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DailySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":69904268,\"hour\":1823569828,\"minute\":357082526,\"usedBytes\":8541287149443830864}") - .toObject(DailySchedule.class); - Assertions.assertEquals(69904268, model.snapshotsToKeep()); - Assertions.assertEquals(1823569828, model.hour()); - Assertions.assertEquals(357082526, model.minute()); - Assertions.assertEquals(8541287149443830864L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DailySchedule model = new DailySchedule().withSnapshotsToKeep(69904268) - .withHour(1823569828) - .withMinute(357082526) - .withUsedBytes(8541287149443830864L); - model = BinaryData.fromObject(model).toObject(DailySchedule.class); - Assertions.assertEquals(69904268, model.snapshotsToKeep()); - Assertions.assertEquals(1823569828, model.hour()); - Assertions.assertEquals(357082526, model.minute()); - Assertions.assertEquals(8541287149443830864L, model.usedBytes()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DestinationReplicationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DestinationReplicationTests.java deleted file mode 100644 index 62e6836baa89..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DestinationReplicationTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.DestinationReplication; -import com.azure.resourcemanager.netapp.models.ReplicationType; -import org.junit.jupiter.api.Assertions; - -public final class DestinationReplicationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DestinationReplication model = BinaryData.fromString( - "{\"resourceId\":\"ggbhcohfwds\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"ljuti\",\"zone\":\"wacf\"}") - .toObject(DestinationReplication.class); - Assertions.assertEquals("ggbhcohfwds", model.resourceId()); - Assertions.assertEquals(ReplicationType.CROSS_REGION_REPLICATION, model.replicationType()); - Assertions.assertEquals("ljuti", model.region()); - Assertions.assertEquals("wacf", model.zone()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DestinationReplication model = new DestinationReplication().withResourceId("ggbhcohfwds") - .withReplicationType(ReplicationType.CROSS_REGION_REPLICATION) - .withRegion("ljuti") - .withZone("wacf"); - model = BinaryData.fromObject(model).toObject(DestinationReplication.class); - Assertions.assertEquals("ggbhcohfwds", model.resourceId()); - Assertions.assertEquals(ReplicationType.CROSS_REGION_REPLICATION, model.replicationType()); - Assertions.assertEquals("ljuti", model.region()); - Assertions.assertEquals("wacf", model.zone()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.java deleted file mode 100644 index 5bdc411ce2b1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.Dimension; -import org.junit.jupiter.api.Assertions; - -public final class DimensionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Dimension model = BinaryData.fromString("{\"name\":\"mddystkiiux\",\"displayName\":\"yudxorrqnbp\"}") - .toObject(Dimension.class); - Assertions.assertEquals("mddystkiiux", model.name()); - Assertions.assertEquals("yudxorrqnbp", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Dimension model = new Dimension().withName("mddystkiiux").withDisplayName("yudxorrqnbp"); - model = BinaryData.fromObject(model).toObject(Dimension.class); - Assertions.assertEquals("mddystkiiux", model.name()); - Assertions.assertEquals("yudxorrqnbp", model.displayName()); - } -} 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 deleted file mode 100644 index 1715678ca12d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.EncryptionIdentity; -import org.junit.jupiter.api.Assertions; - -public final class EncryptionIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EncryptionIdentity model = BinaryData.fromString( - "{\"principalId\":\"ogtwrupqsxvnmi\",\"userAssignedIdentity\":\"kvceoveilovnotyf\",\"federatedClientId\":\"cnjbkcnxdhbt\"}") - .toObject(EncryptionIdentity.class); - Assertions.assertEquals("kvceoveilovnotyf", model.userAssignedIdentity()); - Assertions.assertEquals("cnjbkcnxdhbt", model.federatedClientId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EncryptionIdentity model = new EncryptionIdentity().withUserAssignedIdentity("kvceoveilovnotyf") - .withFederatedClientId("cnjbkcnxdhbt"); - model = BinaryData.fromObject(model).toObject(EncryptionIdentity.class); - Assertions.assertEquals("kvceoveilovnotyf", model.userAssignedIdentity()); - Assertions.assertEquals("cnjbkcnxdhbt", 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 deleted file mode 100644 index 1cf2d5c745b1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; -import org.junit.jupiter.api.Assertions; - -public final class EncryptionTransitionRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EncryptionTransitionRequest model - = BinaryData.fromString("{\"virtualNetworkId\":\"yonobgl\",\"privateEndpointId\":\"ocqxtccmg\"}") - .toObject(EncryptionTransitionRequest.class); - Assertions.assertEquals("yonobgl", model.virtualNetworkId()); - Assertions.assertEquals("ocqxtccmg", model.privateEndpointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EncryptionTransitionRequest model - = new EncryptionTransitionRequest().withVirtualNetworkId("yonobgl").withPrivateEndpointId("ocqxtccmg"); - model = BinaryData.fromObject(model).toObject(EncryptionTransitionRequest.class); - Assertions.assertEquals("yonobgl", model.virtualNetworkId()); - Assertions.assertEquals("ocqxtccmg", model.privateEndpointId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java deleted file mode 100644 index 58ea3691e4ee..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ChownMode; -import com.azure.resourcemanager.netapp.models.ExportPolicyRule; -import org.junit.jupiter.api.Assertions; - -public final class ExportPolicyRuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExportPolicyRule model = BinaryData.fromString( - "{\"ruleIndex\":1235013026,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"mkcjhwqytjrybn\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"}") - .toObject(ExportPolicyRule.class); - Assertions.assertEquals(1235013026, model.ruleIndex()); - Assertions.assertEquals(false, model.unixReadOnly()); - Assertions.assertEquals(false, model.unixReadWrite()); - Assertions.assertEquals(true, model.kerberos5ReadOnly()); - Assertions.assertEquals(true, model.kerberos5ReadWrite()); - Assertions.assertEquals(false, model.kerberos5IReadOnly()); - Assertions.assertEquals(false, model.kerberos5IReadWrite()); - Assertions.assertEquals(false, model.kerberos5PReadOnly()); - Assertions.assertEquals(true, model.kerberos5PReadWrite()); - Assertions.assertEquals(true, model.cifs()); - Assertions.assertEquals(true, model.nfsv3()); - Assertions.assertEquals(true, model.nfsv41()); - Assertions.assertEquals("mkcjhwqytjrybn", model.allowedClients()); - Assertions.assertEquals(true, model.hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.chownMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExportPolicyRule model = new ExportPolicyRule().withRuleIndex(1235013026) - .withUnixReadOnly(false) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(true) - .withNfsv41(true) - .withAllowedClients("mkcjhwqytjrybn") - .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED); - model = BinaryData.fromObject(model).toObject(ExportPolicyRule.class); - Assertions.assertEquals(1235013026, model.ruleIndex()); - Assertions.assertEquals(false, model.unixReadOnly()); - Assertions.assertEquals(false, model.unixReadWrite()); - Assertions.assertEquals(true, model.kerberos5ReadOnly()); - Assertions.assertEquals(true, model.kerberos5ReadWrite()); - Assertions.assertEquals(false, model.kerberos5IReadOnly()); - Assertions.assertEquals(false, model.kerberos5IReadWrite()); - Assertions.assertEquals(false, model.kerberos5PReadOnly()); - Assertions.assertEquals(true, model.kerberos5PReadWrite()); - Assertions.assertEquals(true, model.cifs()); - Assertions.assertEquals(true, model.nfsv3()); - Assertions.assertEquals(true, model.nfsv41()); - Assertions.assertEquals("mkcjhwqytjrybn", model.allowedClients()); - Assertions.assertEquals(true, model.hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.chownMode()); - } -} 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 deleted file mode 100644 index ee696435cbf0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class FilePathAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FilePathAvailabilityRequest model = BinaryData - .fromString("{\"name\":\"ovm\",\"subnetId\":\"okacspk\",\"availabilityZone\":\"hzdobpxjmflbvvnc\"}") - .toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("ovm", model.name()); - Assertions.assertEquals("okacspk", model.subnetId()); - Assertions.assertEquals("hzdobpxjmflbvvnc", model.availabilityZone()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilePathAvailabilityRequest model = new FilePathAvailabilityRequest().withName("ovm") - .withSubnetId("okacspk") - .withAvailabilityZone("hzdobpxjmflbvvnc"); - model = BinaryData.fromObject(model).toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("ovm", model.name()); - Assertions.assertEquals("okacspk", model.subnetId()); - Assertions.assertEquals("hzdobpxjmflbvvnc", model.availabilityZone()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserRequestTests.java deleted file mode 100644 index 08f7c92a604c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; -import org.junit.jupiter.api.Assertions; - -public final class GetGroupIdListForLdapUserRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetGroupIdListForLdapUserRequest model - = BinaryData.fromString("{\"username\":\"tbnnha\"}").toObject(GetGroupIdListForLdapUserRequest.class); - Assertions.assertEquals("tbnnha", model.username()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetGroupIdListForLdapUserRequest model = new GetGroupIdListForLdapUserRequest().withUsername("tbnnha"); - model = BinaryData.fromObject(model).toObject(GetGroupIdListForLdapUserRequest.class); - Assertions.assertEquals("tbnnha", model.username()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserResponseInnerTests.java deleted file mode 100644 index c8d306913df8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserResponseInnerTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class GetGroupIdListForLdapUserResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetGroupIdListForLdapUserResponseInner model - = BinaryData.fromString("{\"groupIdsForLdapUser\":[\"crkvcikhnv\",\"amqgxqquezikyw\",\"gxk\"]}") - .toObject(GetGroupIdListForLdapUserResponseInner.class); - Assertions.assertEquals("crkvcikhnv", model.groupIdsForLdapUser().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetGroupIdListForLdapUserResponseInner model = new GetGroupIdListForLdapUserResponseInner() - .withGroupIdsForLdapUser(Arrays.asList("crkvcikhnv", "amqgxqquezikyw", "gxk")); - model = BinaryData.fromObject(model).toObject(GetGroupIdListForLdapUserResponseInner.class); - Assertions.assertEquals("crkvcikhnv", model.groupIdsForLdapUser().get(0)); - } -} 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 deleted file mode 100644 index c97257cfa363..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.HourlySchedule; -import org.junit.jupiter.api.Assertions; - -public final class HourlyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HourlySchedule model = BinaryData - .fromString("{\"snapshotsToKeep\":1422593899,\"minute\":1663606623,\"usedBytes\":6545007324610605379}") - .toObject(HourlySchedule.class); - Assertions.assertEquals(1422593899, model.snapshotsToKeep()); - Assertions.assertEquals(1663606623, model.minute()); - Assertions.assertEquals(6545007324610605379L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HourlySchedule model = new HourlySchedule().withSnapshotsToKeep(1422593899) - .withMinute(1663606623) - .withUsedBytes(6545007324610605379L); - model = BinaryData.fromObject(model).toObject(HourlySchedule.class); - Assertions.assertEquals(1422593899, model.snapshotsToKeep()); - Assertions.assertEquals(1663606623, model.minute()); - Assertions.assertEquals(6545007324610605379L, 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 deleted file mode 100644 index ad1c4e300b98..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.KeyVaultPrivateEndpoint; -import org.junit.jupiter.api.Assertions; - -public final class KeyVaultPrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KeyVaultPrivateEndpoint model - = BinaryData.fromString("{\"virtualNetworkId\":\"fudwpznt\",\"privateEndpointId\":\"dzhlrq\"}") - .toObject(KeyVaultPrivateEndpoint.class); - Assertions.assertEquals("fudwpznt", model.virtualNetworkId()); - Assertions.assertEquals("dzhlrq", model.privateEndpointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KeyVaultPrivateEndpoint model - = new KeyVaultPrivateEndpoint().withVirtualNetworkId("fudwpznt").withPrivateEndpointId("dzhlrq"); - model = BinaryData.fromObject(model).toObject(KeyVaultPrivateEndpoint.class); - Assertions.assertEquals("fudwpznt", model.virtualNetworkId()); - Assertions.assertEquals("dzhlrq", model.privateEndpointId()); - } -} 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 deleted file mode 100644 index e69d769fc5af..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.LdapSearchScopeOpt; -import org.junit.jupiter.api.Assertions; - -public final class LdapSearchScopeOptTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LdapSearchScopeOpt model = BinaryData.fromString( - "{\"userDN\":\"ckhsmtxpsieb\",\"groupDN\":\"hvpesapskrdqm\",\"groupMembershipFilter\":\"jdhtldwkyzxu\"}") - .toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("ckhsmtxpsieb", model.userDN()); - Assertions.assertEquals("hvpesapskrdqm", model.groupDN()); - Assertions.assertEquals("jdhtldwkyzxu", model.groupMembershipFilter()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LdapSearchScopeOpt model = new LdapSearchScopeOpt().withUserDN("ckhsmtxpsieb") - .withGroupDN("hvpesapskrdqm") - .withGroupMembershipFilter("jdhtldwkyzxu"); - model = BinaryData.fromObject(model).toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("ckhsmtxpsieb", model.userDN()); - Assertions.assertEquals("hvpesapskrdqm", model.groupDN()); - Assertions.assertEquals("jdhtldwkyzxu", model.groupMembershipFilter()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResponseInnerTests.java deleted file mode 100644 index b33bc54d688b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResponseInnerTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; -import com.azure.resourcemanager.netapp.models.QuotaReport; -import com.azure.resourcemanager.netapp.models.Type; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ListQuotaReportResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ListQuotaReportResponseInner model = BinaryData.fromString( - "{\"value\":[{\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"elwuipi\",\"quotaLimitUsedInKiBs\":5147167923805665994,\"quotaLimitTotalInKiBs\":518441316636125291,\"percentageUsed\":67.856186,\"isDerivedQuota\":false}],\"nextLink\":\"nayrhyrnxxmueedn\"}") - .toObject(ListQuotaReportResponseInner.class); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("elwuipi", model.value().get(0).quotaTarget()); - Assertions.assertEquals(5147167923805665994L, model.value().get(0).quotaLimitUsedInKiBs()); - Assertions.assertEquals(518441316636125291L, model.value().get(0).quotaLimitTotalInKiBs()); - Assertions.assertEquals(67.856186F, model.value().get(0).percentageUsed()); - Assertions.assertEquals(false, model.value().get(0).isDerivedQuota()); - Assertions.assertEquals("nayrhyrnxxmueedn", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ListQuotaReportResponseInner model = new ListQuotaReportResponseInner() - .withValue(Arrays.asList(new QuotaReport().withQuotaType(Type.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("elwuipi") - .withQuotaLimitUsedInKiBs(5147167923805665994L) - .withQuotaLimitTotalInKiBs(518441316636125291L) - .withPercentageUsed(67.856186F) - .withIsDerivedQuota(false))) - .withNextLink("nayrhyrnxxmueedn"); - model = BinaryData.fromObject(model).toObject(ListQuotaReportResponseInner.class); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("elwuipi", model.value().get(0).quotaTarget()); - Assertions.assertEquals(5147167923805665994L, model.value().get(0).quotaLimitUsedInKiBs()); - Assertions.assertEquals(518441316636125291L, model.value().get(0).quotaLimitTotalInKiBs()); - Assertions.assertEquals(67.856186F, model.value().get(0).percentageUsed()); - Assertions.assertEquals(false, model.value().get(0).isDerivedQuota()); - Assertions.assertEquals("nayrhyrnxxmueedn", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.java deleted file mode 100644 index cb552952e74b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; -import com.azure.resourcemanager.netapp.models.EndpointType; -import com.azure.resourcemanager.netapp.models.ListReplications; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ListReplicationsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ListReplications model = BinaryData.fromString( - "{\"value\":[{\"replicationId\":\"fnjhfjxwmszkkfo\",\"endpointType\":\"dst\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"kzikfjawneaivxwc\",\"remoteVolumeRegion\":\"lpcirelsf\"},{\"replicationId\":\"enwabfatk\",\"endpointType\":\"dst\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"jhwuaanozjos\",\"remoteVolumeRegion\":\"youlp\"},{\"replicationId\":\"v\",\"endpointType\":\"dst\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"vimjwos\",\"remoteVolumeRegion\":\"xitc\"}]}") - .toObject(ListReplications.class); - Assertions.assertEquals(EndpointType.DST, model.value().get(0).endpointType()); - Assertions.assertEquals(ReplicationSchedule.DAILY, model.value().get(0).replicationSchedule()); - Assertions.assertEquals("kzikfjawneaivxwc", model.value().get(0).remoteVolumeResourceId()); - Assertions.assertEquals("lpcirelsf", model.value().get(0).remoteVolumeRegion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ListReplications model = new ListReplications().withValue(Arrays.asList( - new ReplicationInner().withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.DAILY) - .withRemoteVolumeResourceId("kzikfjawneaivxwc") - .withRemoteVolumeRegion("lpcirelsf"), - new ReplicationInner().withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.DAILY) - .withRemoteVolumeResourceId("jhwuaanozjos") - .withRemoteVolumeRegion("youlp"), - new ReplicationInner().withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.DAILY) - .withRemoteVolumeResourceId("vimjwos") - .withRemoteVolumeRegion("xitc"))); - model = BinaryData.fromObject(model).toObject(ListReplications.class); - Assertions.assertEquals(EndpointType.DST, model.value().get(0).endpointType()); - Assertions.assertEquals(ReplicationSchedule.DAILY, model.value().get(0).replicationSchedule()); - Assertions.assertEquals("kzikfjawneaivxwc", model.value().get(0).remoteVolumeResourceId()); - Assertions.assertEquals("lpcirelsf", model.value().get(0).remoteVolumeRegion()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.java deleted file mode 100644 index 7b5a5f3ee066..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.LogSpecification; -import org.junit.jupiter.api.Assertions; - -public final class LogSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogSpecification model = BinaryData.fromString("{\"name\":\"zvyifqrvkdvj\",\"displayName\":\"lrmv\"}") - .toObject(LogSpecification.class); - Assertions.assertEquals("zvyifqrvkdvj", model.name()); - Assertions.assertEquals("lrmv", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogSpecification model = new LogSpecification().withName("zvyifqrvkdvj").withDisplayName("lrmv"); - model = BinaryData.fromObject(model).toObject(LogSpecification.class); - Assertions.assertEquals("zvyifqrvkdvj", model.name()); - Assertions.assertEquals("lrmv", model.displayName()); - } -} 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 deleted file mode 100644 index aa43d4fc0acf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.netapp.models.UserAssignedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedServiceIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"41c7a153-6273-463c-b066-966e097e42be\",\"tenantId\":\"2c1b9806-c637-44f7-85dd-2a03829088c8\",\"type\":\"None\",\"userAssignedIdentities\":{\"vjtoqnermclfp\":{\"principalId\":\"2b1f7f21-889b-4491-8c3e-669307c4e824\",\"clientId\":\"85b37a0c-16df-4697-b7b1-404dcf4e0115\"}}}") - .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) - .withUserAssignedIdentities(mapOf("vjtoqnermclfp", new UserAssignedIdentity())); - model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type()); - } - - // 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/MetricSpecificationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MetricSpecificationTests.java deleted file mode 100644 index f1cd079ed407..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MetricSpecificationTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.Dimension; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.MetricSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MetricSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MetricSpecification model = BinaryData.fromString( - "{\"name\":\"whybcib\",\"displayName\":\"vdcsitynn\",\"displayDescription\":\"mdectehfiqscjey\",\"unit\":\"hezrkgq\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"mkqsleyyv\"],\"internalMetricName\":\"qjpkcattpngjcrc\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"pjhvmdajvnys\",\"sourceMdmNamespace\":\"nqecanoaeup\",\"dimensions\":[{\"name\":\"ltrpmopj\",\"displayName\":\"matuok\"},{\"name\":\"fu\",\"displayName\":\"aodsfcpkv\"},{\"name\":\"dpuozmyz\",\"displayName\":\"agfuaxbezyiu\"},{\"name\":\"ktwh\",\"displayName\":\"xw\"}],\"aggregationType\":\"wqsmbsur\",\"fillGapWithZero\":true,\"category\":\"o\",\"resourceIdDimensionNameOverride\":\"ocfs\",\"isInternal\":false}") - .toObject(MetricSpecification.class); - Assertions.assertEquals("whybcib", model.name()); - Assertions.assertEquals("vdcsitynn", model.displayName()); - Assertions.assertEquals("mdectehfiqscjey", model.displayDescription()); - Assertions.assertEquals("hezrkgq", model.unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0)); - Assertions.assertEquals("mkqsleyyv", model.supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("qjpkcattpngjcrc", model.internalMetricName()); - Assertions.assertEquals(true, model.enableRegionalMdmAccount()); - Assertions.assertEquals("pjhvmdajvnys", model.sourceMdmAccount()); - Assertions.assertEquals("nqecanoaeup", model.sourceMdmNamespace()); - Assertions.assertEquals("ltrpmopj", model.dimensions().get(0).name()); - Assertions.assertEquals("matuok", model.dimensions().get(0).displayName()); - Assertions.assertEquals("wqsmbsur", model.aggregationType()); - Assertions.assertEquals(true, model.fillGapWithZero()); - Assertions.assertEquals("o", model.category()); - Assertions.assertEquals("ocfs", model.resourceIdDimensionNameOverride()); - Assertions.assertEquals(false, model.isInternal()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetricSpecification model = new MetricSpecification().withName("whybcib") - .withDisplayName("vdcsitynn") - .withDisplayDescription("mdectehfiqscjey") - .withUnit("hezrkgq") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("mkqsleyyv")) - .withInternalMetricName("qjpkcattpngjcrc") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("pjhvmdajvnys") - .withSourceMdmNamespace("nqecanoaeup") - .withDimensions(Arrays.asList(new Dimension().withName("ltrpmopj").withDisplayName("matuok"), - new Dimension().withName("fu").withDisplayName("aodsfcpkv"), - new Dimension().withName("dpuozmyz").withDisplayName("agfuaxbezyiu"), - new Dimension().withName("ktwh").withDisplayName("xw"))) - .withAggregationType("wqsmbsur") - .withFillGapWithZero(true) - .withCategory("o") - .withResourceIdDimensionNameOverride("ocfs") - .withIsInternal(false); - model = BinaryData.fromObject(model).toObject(MetricSpecification.class); - Assertions.assertEquals("whybcib", model.name()); - Assertions.assertEquals("vdcsitynn", model.displayName()); - Assertions.assertEquals("mdectehfiqscjey", model.displayDescription()); - Assertions.assertEquals("hezrkgq", model.unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0)); - Assertions.assertEquals("mkqsleyyv", model.supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("qjpkcattpngjcrc", model.internalMetricName()); - Assertions.assertEquals(true, model.enableRegionalMdmAccount()); - Assertions.assertEquals("pjhvmdajvnys", model.sourceMdmAccount()); - Assertions.assertEquals("nqecanoaeup", model.sourceMdmNamespace()); - Assertions.assertEquals("ltrpmopj", model.dimensions().get(0).name()); - Assertions.assertEquals("matuok", model.dimensions().get(0).displayName()); - Assertions.assertEquals("wqsmbsur", model.aggregationType()); - Assertions.assertEquals(true, model.fillGapWithZero()); - Assertions.assertEquals("o", model.category()); - Assertions.assertEquals("ocfs", model.resourceIdDimensionNameOverride()); - Assertions.assertEquals(false, model.isInternal()); - } -} 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 deleted file mode 100644 index 505ed5c22867..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.MonthlySchedule; -import org.junit.jupiter.api.Assertions; - -public final class MonthlyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MonthlySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":1383706321,\"daysOfMonth\":\"t\",\"hour\":1465227251,\"minute\":951051183,\"usedBytes\":8653383903490664837}") - .toObject(MonthlySchedule.class); - Assertions.assertEquals(1383706321, model.snapshotsToKeep()); - Assertions.assertEquals("t", model.daysOfMonth()); - Assertions.assertEquals(1465227251, model.hour()); - Assertions.assertEquals(951051183, model.minute()); - Assertions.assertEquals(8653383903490664837L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MonthlySchedule model = new MonthlySchedule().withSnapshotsToKeep(1383706321) - .withDaysOfMonth("t") - .withHour(1465227251) - .withMinute(951051183) - .withUsedBytes(8653383903490664837L); - model = BinaryData.fromObject(model).toObject(MonthlySchedule.class); - Assertions.assertEquals(1383706321, model.snapshotsToKeep()); - Assertions.assertEquals("t", model.daysOfMonth()); - Assertions.assertEquals(1465227251, model.hour()); - Assertions.assertEquals(951051183, model.minute()); - Assertions.assertEquals(8653383903490664837L, model.usedBytes()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.java deleted file mode 100644 index 6f16be31f51a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; -import org.junit.jupiter.api.Assertions; - -public final class MountTargetPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MountTargetProperties model = BinaryData - .fromString( - "{\"mountTargetId\":\"rjerv\",\"fileSystemId\":\"aen\",\"ipAddress\":\"eh\",\"smbServerFqdn\":\"doy\"}") - .toObject(MountTargetProperties.class); - Assertions.assertEquals("aen", model.fileSystemId()); - Assertions.assertEquals("doy", model.smbServerFqdn()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MountTargetProperties model = new MountTargetProperties().withFileSystemId("aen").withSmbServerFqdn("doy"); - model = BinaryData.fromObject(model).toObject(MountTargetProperties.class); - Assertions.assertEquals("aen", model.fileSystemId()); - Assertions.assertEquals("doy", model.smbServerFqdn()); - } -} 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 deleted file mode 100644 index 1fe09e89ff16..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourceQuotaLimitsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"current\":651460177,\"default\":840782124},\"id\":\"ynsqyrpfoobr\",\"name\":\"ttymsjny\",\"type\":\"qdnfwqzdz\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - SubscriptionQuotaItem response = manager.netAppResourceQuotaLimits() - .getWithResponse("qsxvmhf", "uzjyihsasbhudypo", 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 deleted file mode 100644 index 575e492a83b6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourceQuotaLimitsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"current\":1638200879,\"default\":892169795},\"id\":\"etw\",\"name\":\"hhzjhfj\",\"type\":\"hvvmuvgpmun\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.netAppResourceQuotaLimits().list("gsjj", 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 deleted file mode 100644 index 986a11dd7d65..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RegionInfoResource; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -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 NetAppResourceRegionInfosGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"storageToNetworkProximity\":\"T2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"pmpdn\",\"isAvailable\":true},{\"availabilityZone\":\"awaoqvmmbnpqfrt\",\"isAvailable\":true},{\"availabilityZone\":\"megni\",\"isAvailable\":false},{\"availabilityZone\":\"xlzyqd\",\"isAvailable\":false}]},\"id\":\"cealzxwh\",\"name\":\"ansym\",\"type\":\"yqhlwigdivbkbx\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - RegionInfoResource response - = manager.netAppResourceRegionInfos().getWithResponse("kenx", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals(RegionStorageToNetworkProximity.T2AND_ACROSS_T2, response.storageToNetworkProximity()); - Assertions.assertEquals("pmpdn", response.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, 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 deleted file mode 100644 index fd134c9b1c9a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RegionInfoResource; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -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 NetAppResourceRegionInfosListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"AcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"ijouwivkxoyzunb\",\"isAvailable\":true}]},\"id\":\"ti\",\"name\":\"vcpwpgclrc\",\"type\":\"vtsoxf\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.netAppResourceRegionInfos().list("tilaxh", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(RegionStorageToNetworkProximity.ACROSS_T2, - response.iterator().next().storageToNetworkProximity()); - Assertions.assertEquals("ijouwivkxoyzunb", - response.iterator().next().availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, response.iterator().next().availabilityZoneMappings().get(0).isAvailable()); - } -} 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 deleted file mode 100644 index 5368be44703c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CheckAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; -import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType; -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 NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests { - @Test - public void testCheckFilePathAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"t\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - CheckAvailabilityResponse response = manager.netAppResources() - .checkFilePathAvailabilityWithResponse("cvhrfsp", - new FilePathAvailabilityRequest().withName("uagrttikteusqc") - .withSubnetId("kvyklxubyjaffmm") - .withAvailabilityZone("lcqcuubgqibrt"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("t", 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 deleted file mode 100644 index 2b96c200007d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CheckAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes; -import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType; -import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; -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 NetAppResourcesCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"ikf\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - CheckAvailabilityResponse response = manager.netAppResources() - .checkNameAvailabilityWithResponse("wotey", - new ResourceNameAvailabilityRequest().withName("wcluqovekqvgq") - .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES) - .withResourceGroup("wifzmp"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("ikf", 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 deleted file mode 100644 index b50bf5a8c10f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CheckAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes; -import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType; -import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; -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 NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests { - @Test - public void testCheckQuotaAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"bjoxs\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - CheckAvailabilityResponse response - = manager.netAppResources() - .checkQuotaAvailabilityWithResponse("gdslqxihhrmoo", new QuotaAvailabilityRequest().withName("z") - .withType( - CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS) - .withResourceGroup("eypxiutcxapzhyr"), com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); - Assertions.assertEquals("bjoxs", 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 deleted file mode 100644 index ef0c079d32a7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.NetworkFeatures; -import com.azure.resourcemanager.netapp.models.NetworkSiblingSet; -import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; -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 NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests { - @Test - public void testQueryNetworkSiblingSetWithResponse() throws Exception { - String responseStr - = "{\"networkSiblingSetId\":\"ft\",\"subnetId\":\"gfcwqmpimaqxzhem\",\"networkSiblingSetStateId\":\"h\",\"networkFeatures\":\"Basic\",\"provisioningState\":\"Canceled\",\"nicInfoList\":[{\"ipAddress\":\"kozzwculkb\",\"volumeResourceIds\":[\"fajnjwltlwtjjguk\",\"alhsnvkc\",\"mxzrpoa\",\"mlnwiaaomylweazu\"]}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - NetworkSiblingSet response = manager.netAppResources() - .queryNetworkSiblingSetWithResponse("vibr", - new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("jj").withSubnetId("toqbeitpkxztmoob"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ft", response.networkSiblingSetId()); - Assertions.assertEquals("gfcwqmpimaqxzhem", response.subnetId()); - Assertions.assertEquals("h", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC, response.networkFeatures()); - Assertions.assertEquals("fajnjwltlwtjjguk", 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 deleted file mode 100644 index c727154235cf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RegionInfo; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -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 NetAppResourcesQueryRegionInfoWithResponseMockTests { - @Test - public void testQueryRegionInfoWithResponse() throws Exception { - String responseStr - = "{\"storageToNetworkProximity\":\"T1AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"kkzjcjbtrga\",\"isAvailable\":false}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - RegionInfo response = manager.netAppResources() - .queryRegionInfoWithResponse("hvnh", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_ACROSS_T2, response.storageToNetworkProximity()); - Assertions.assertEquals("kkzjcjbtrga", response.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(false, 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 deleted file mode 100644 index e43e5bb8a069..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.NetworkFeatures; -import com.azure.resourcemanager.netapp.models.NetworkSiblingSet; -import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; -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 NetAppResourcesUpdateNetworkSiblingSetMockTests { - @Test - public void testUpdateNetworkSiblingSet() throws Exception { - String responseStr - = "{\"networkSiblingSetId\":\"yxgncxykxhdjhli\",\"subnetId\":\"bcxf\",\"networkSiblingSetStateId\":\"cporxvxcjz\",\"networkFeatures\":\"Standard\",\"provisioningState\":\"Canceled\",\"nicInfoList\":[{\"ipAddress\":\"tgqscjavftjuh\",\"volumeResourceIds\":[\"zkmtgguwpijrajci\",\"m\",\"ghfcfiwrxgkneuvy\"]},{\"ipAddress\":\"zqodfvpgshox\",\"volumeResourceIds\":[\"bpfgzdj\",\"xvzflbqv\"]},{\"ipAddress\":\"qvlgafcqusrdvetn\",\"volumeResourceIds\":[\"tutnwlduycvuzhyr\",\"ewipm\",\"ekdxuku\"]}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - NetworkSiblingSet response = manager.netAppResources() - .updateNetworkSiblingSet("cse", - new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("hwwn") - .withSubnetId("jhlfzswpchwahf") - .withNetworkSiblingSetStateId("ousnfepgfewe") - .withNetworkFeatures(NetworkFeatures.BASIC_STANDARD), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("yxgncxykxhdjhli", response.networkSiblingSetId()); - Assertions.assertEquals("bcxf", response.subnetId()); - Assertions.assertEquals("cporxvxcjz", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD, response.networkFeatures()); - Assertions.assertEquals("zkmtgguwpijrajci", 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 deleted file mode 100644 index 08a49ecb9849..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.NetworkSiblingSetInner; -import com.azure.resourcemanager.netapp.models.NetworkFeatures; -import com.azure.resourcemanager.netapp.models.NicInfo; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NetworkSiblingSetInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkSiblingSetInner model = BinaryData.fromString( - "{\"networkSiblingSetId\":\"gsncghkjeszz\",\"subnetId\":\"ijhtxf\",\"networkSiblingSetStateId\":\"xbf\",\"networkFeatures\":\"Basic_Standard\",\"provisioningState\":\"Succeeded\",\"nicInfoList\":[{\"ipAddress\":\"vecxgodebfqkk\",\"volumeResourceIds\":[\"pukgriwflzlfb\",\"zpuzycisp\"]},{\"ipAddress\":\"zahmgkbrpyydhibn\",\"volumeResourceIds\":[\"kpikadrgvt\",\"agnb\",\"ynhijggme\",\"fsiarbutr\"]},{\"ipAddress\":\"pnazzm\",\"volumeResourceIds\":[\"unmpxttd\",\"hrbnlankxmyskpbh\"]},{\"ipAddress\":\"btkcxywnytnrsyn\",\"volumeResourceIds\":[\"dybyxczfclhaa\",\"dbabp\",\"lwrq\"]}]}") - .toObject(NetworkSiblingSetInner.class); - Assertions.assertEquals("gsncghkjeszz", model.networkSiblingSetId()); - Assertions.assertEquals("ijhtxf", model.subnetId()); - Assertions.assertEquals("xbf", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); - Assertions.assertEquals("pukgriwflzlfb", model.nicInfoList().get(0).volumeResourceIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkSiblingSetInner model = new NetworkSiblingSetInner().withNetworkSiblingSetId("gsncghkjeszz") - .withSubnetId("ijhtxf") - .withNetworkSiblingSetStateId("xbf") - .withNetworkFeatures(NetworkFeatures.BASIC_STANDARD) - .withNicInfoList( - Arrays.asList(new NicInfo().withVolumeResourceIds(Arrays.asList("pukgriwflzlfb", "zpuzycisp")), - new NicInfo().withVolumeResourceIds(Arrays.asList("kpikadrgvt", "agnb", "ynhijggme", "fsiarbutr")), - new NicInfo().withVolumeResourceIds(Arrays.asList("unmpxttd", "hrbnlankxmyskpbh")), - new NicInfo().withVolumeResourceIds(Arrays.asList("dybyxczfclhaa", "dbabp", "lwrq")))); - model = BinaryData.fromObject(model).toObject(NetworkSiblingSetInner.class); - Assertions.assertEquals("gsncghkjeszz", model.networkSiblingSetId()); - Assertions.assertEquals("ijhtxf", model.subnetId()); - Assertions.assertEquals("xbf", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); - Assertions.assertEquals("pukgriwflzlfb", model.nicInfoList().get(0).volumeResourceIds().get(0)); - } -} 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 deleted file mode 100644 index a65097a0ae1d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.NicInfo; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NicInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NicInfo model = BinaryData.fromString("{\"ipAddress\":\"ktsthsucocmny\",\"volumeResourceIds\":[\"t\"]}") - .toObject(NicInfo.class); - Assertions.assertEquals("t", model.volumeResourceIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NicInfo model = new NicInfo().withVolumeResourceIds(Arrays.asList("t")); - model = BinaryData.fromObject(model).toObject(NicInfo.class); - Assertions.assertEquals("t", model.volumeResourceIds().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.java deleted file mode 100644 index 9be1f2d76dfe..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"cndvkaozwyiftyhx\",\"resource\":\"rokft\",\"operation\":\"olniwpwcukjf\",\"description\":\"iawxklry\"}") - .toObject(OperationDisplay.class); - Assertions.assertEquals("cndvkaozwyiftyhx", model.provider()); - Assertions.assertEquals("rokft", model.resource()); - Assertions.assertEquals("olniwpwcukjf", model.operation()); - Assertions.assertEquals("iawxklry", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay().withProvider("cndvkaozwyiftyhx") - .withResource("rokft") - .withOperation("olniwpwcukjf") - .withDescription("iawxklry"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("cndvkaozwyiftyhx", model.provider()); - Assertions.assertEquals("rokft", model.resource()); - Assertions.assertEquals("olniwpwcukjf", model.operation()); - Assertions.assertEquals("iawxklry", model.description()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java deleted file mode 100644 index b212936d44ad..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.OperationInner; -import com.azure.resourcemanager.netapp.models.Dimension; -import com.azure.resourcemanager.netapp.models.LogSpecification; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.MetricSpecification; -import com.azure.resourcemanager.netapp.models.OperationDisplay; -import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"rd\",\"display\":{\"provider\":\"ewnwreitjzyfl\",\"resource\":\"arhmofcqhsmy\",\"operation\":\"kdtmlxhekuk\",\"description\":\"txukcdmp\"},\"origin\":\"cryuan\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"xtayr\",\"displayName\":\"m\",\"displayDescription\":\"fp\",\"unit\":\"qobmtukk\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"fxti\"],\"internalMetricName\":\"pzvgnwzsymglzufc\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"hdbihan\",\"sourceMdmNamespace\":\"hfcbjysa\",\"dimensions\":[{}],\"aggregationType\":\"xqhabi\",\"fillGapWithZero\":false,\"category\":\"xwczbyscnp\",\"resourceIdDimensionNameOverride\":\"uhivyqniw\",\"isInternal\":false},{\"name\":\"k\",\"displayName\":\"dumjgrtfwvuk\",\"displayDescription\":\"audccsnhs\",\"unit\":\"nyejhkryhtnap\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"yemkkvnip\"],\"internalMetricName\":\"xzjnchgejs\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"ailzydehojwyahu\",\"sourceMdmNamespace\":\"npmqnjaqwixjspro\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"utegjvwmfdats\",\"fillGapWithZero\":true,\"category\":\"pjhulsuuvmkj\",\"resourceIdDimensionNameOverride\":\"k\",\"isInternal\":false},{\"name\":\"dio\",\"displayName\":\"pslwejdpvw\",\"displayDescription\":\"oqpsoa\",\"unit\":\"tazak\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"yffdfdos\",\"gexpaojakhmsbz\",\"hcrzevd\"],\"internalMetricName\":\"lxaolthqtrgqjbp\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"inzgvfcj\",\"sourceMdmNamespace\":\"zoxxjtf\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"wfzitonpeqfpjk\",\"fillGapWithZero\":true,\"category\":\"fpdvhpfxxypi\",\"resourceIdDimensionNameOverride\":\"nmayhuybb\",\"isInternal\":true},{\"name\":\"epoo\",\"displayName\":\"nuvamiheogna\",\"displayDescription\":\"zxtheotusivyevcc\",\"unit\":\"ihnhun\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"gxg\",\"spemvtzfk\",\"fublj\"],\"internalMetricName\":\"xqeofjaeqjhqjba\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"mjqulngsn\",\"sourceMdmNamespace\":\"bybkzgcwrwclxx\",\"dimensions\":[{},{}],\"aggregationType\":\"douskcqvkocrcjdk\",\"fillGapWithZero\":false,\"category\":\"xbnjbiksq\",\"resourceIdDimensionNameOverride\":\"lssai\",\"isInternal\":false}],\"logSpecifications\":[{\"name\":\"zlljfmppeebvm\",\"displayName\":\"sabkyqduujitcjcz\"},{\"name\":\"evndh\",\"displayName\":\"wpdappdsbdkv\"},{\"name\":\"wjfeusnhutjel\",\"displayName\":\"rl\"},{\"name\":\"ugjzzdatqxhocdge\",\"displayName\":\"lgphu\"}]}}}") - .toObject(OperationInner.class); - Assertions.assertEquals("rd", model.name()); - Assertions.assertEquals("ewnwreitjzyfl", model.display().provider()); - Assertions.assertEquals("arhmofcqhsmy", model.display().resource()); - Assertions.assertEquals("kdtmlxhekuk", model.display().operation()); - Assertions.assertEquals("txukcdmp", model.display().description()); - Assertions.assertEquals("cryuan", model.origin()); - Assertions.assertEquals("xtayr", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("m", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("fp", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("qobmtukk", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("fxti", - model.serviceSpecification().metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("pzvgnwzsymglzufc", - model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("hdbihan", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("hfcbjysa", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("xqhabi", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("xwczbyscnp", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("uhivyqniw", - model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("zlljfmppeebvm", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("sabkyqduujitcjcz", - model.serviceSpecification().logSpecifications().get(0).displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withName("rd") - .withDisplay(new OperationDisplay().withProvider("ewnwreitjzyfl") - .withResource("arhmofcqhsmy") - .withOperation("kdtmlxhekuk") - .withDescription("txukcdmp")) - .withOrigin("cryuan") - .withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications(Arrays.asList(new MetricSpecification().withName("xtayr") - .withDisplayName("m") - .withDisplayDescription("fp") - .withUnit("qobmtukk") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("fxti")) - .withInternalMetricName("pzvgnwzsymglzufc") - .withEnableRegionalMdmAccount(false) - .withSourceMdmAccount("hdbihan") - .withSourceMdmNamespace("hfcbjysa") - .withDimensions(Arrays.asList(new Dimension())) - .withAggregationType("xqhabi") - .withFillGapWithZero(false) - .withCategory("xwczbyscnp") - .withResourceIdDimensionNameOverride("uhivyqniw") - .withIsInternal(false), - new MetricSpecification().withName("k") - .withDisplayName("dumjgrtfwvuk") - .withDisplayDescription("audccsnhs") - .withUnit("nyejhkryhtnap") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("yemkkvnip")) - .withInternalMetricName("xzjnchgejs") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("ailzydehojwyahu") - .withSourceMdmNamespace("npmqnjaqwixjspro") - .withDimensions( - Arrays.asList(new Dimension(), new Dimension(), new Dimension(), new Dimension())) - .withAggregationType("utegjvwmfdats") - .withFillGapWithZero(true) - .withCategory("pjhulsuuvmkj") - .withResourceIdDimensionNameOverride("k") - .withIsInternal(false), - new MetricSpecification().withName("dio") - .withDisplayName("pslwejdpvw") - .withDisplayDescription("oqpsoa") - .withUnit("tazak") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("yffdfdos", "gexpaojakhmsbz", "hcrzevd")) - .withInternalMetricName("lxaolthqtrgqjbp") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("inzgvfcj") - .withSourceMdmNamespace("zoxxjtf") - .withDimensions( - Arrays.asList(new Dimension(), new Dimension(), new Dimension(), new Dimension())) - .withAggregationType("wfzitonpeqfpjk") - .withFillGapWithZero(true) - .withCategory("fpdvhpfxxypi") - .withResourceIdDimensionNameOverride("nmayhuybb") - .withIsInternal(true), - new MetricSpecification().withName("epoo") - .withDisplayName("nuvamiheogna") - .withDisplayDescription("zxtheotusivyevcc") - .withUnit("ihnhun") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("gxg", "spemvtzfk", "fublj")) - .withInternalMetricName("xqeofjaeqjhqjba") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("mjqulngsn") - .withSourceMdmNamespace("bybkzgcwrwclxx") - .withDimensions(Arrays.asList(new Dimension(), new Dimension())) - .withAggregationType("douskcqvkocrcjdk") - .withFillGapWithZero(false) - .withCategory("xbnjbiksq") - .withResourceIdDimensionNameOverride("lssai") - .withIsInternal(false))) - .withLogSpecifications( - Arrays.asList(new LogSpecification().withName("zlljfmppeebvm").withDisplayName("sabkyqduujitcjcz"), - new LogSpecification().withName("evndh").withDisplayName("wpdappdsbdkv"), - new LogSpecification().withName("wjfeusnhutjel").withDisplayName("rl"), - new LogSpecification().withName("ugjzzdatqxhocdge").withDisplayName("lgphu")))); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - Assertions.assertEquals("rd", model.name()); - Assertions.assertEquals("ewnwreitjzyfl", model.display().provider()); - Assertions.assertEquals("arhmofcqhsmy", model.display().resource()); - Assertions.assertEquals("kdtmlxhekuk", model.display().operation()); - Assertions.assertEquals("txukcdmp", model.display().description()); - Assertions.assertEquals("cryuan", model.origin()); - Assertions.assertEquals("xtayr", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("m", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("fp", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("qobmtukk", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("fxti", - model.serviceSpecification().metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("pzvgnwzsymglzufc", - model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("hdbihan", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("hfcbjysa", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("xqhabi", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("xwczbyscnp", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("uhivyqniw", - model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("zlljfmppeebvm", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("sabkyqduujitcjcz", - model.serviceSpecification().logSpecifications().get(0).displayName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.java deleted file mode 100644 index 65c3cf79d34a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.OperationInner; -import com.azure.resourcemanager.netapp.models.LogSpecification; -import com.azure.resourcemanager.netapp.models.MetricSpecification; -import com.azure.resourcemanager.netapp.models.OperationDisplay; -import com.azure.resourcemanager.netapp.models.OperationListResult; -import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"display\":{\"provider\":\"zopbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"ownoizhw\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{}],\"logSpecifications\":[{},{}]}}},{\"name\":\"qijgkd\",\"display\":{\"provider\":\"azlobcufpdznrbt\",\"resource\":\"qjnqglhqgnufoooj\",\"operation\":\"ifsqesaagdfmg\",\"description\":\"lhjxr\"},\"origin\":\"kwm\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{}],\"logSpecifications\":[{},{},{},{}]}}},{\"name\":\"to\",\"display\":{\"provider\":\"a\",\"resource\":\"ajpsquc\",\"operation\":\"o\",\"description\":\"dkfo\"},\"origin\":\"nygj\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{},{}],\"logSpecifications\":[{}]}}}]}") - .toObject(OperationListResult.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals("zopbsphrupidgs", model.value().get(0).display().provider()); - Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().resource()); - Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().operation()); - Assertions.assertEquals("zehtbmu", model.value().get(0).display().description()); - Assertions.assertEquals("ownoizhw", model.value().get(0).origin()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model = new OperationListResult().withValue(Arrays.asList( - new OperationInner().withName("quvgjxpybczme") - .withDisplay(new OperationDisplay().withProvider("zopbsphrupidgs") - .withResource("bejhphoycmsxa") - .withOperation("hdxbmtqio") - .withDescription("zehtbmu")) - .withOrigin("ownoizhw") - .withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications(Arrays.asList(new MetricSpecification(), new MetricSpecification())) - .withLogSpecifications(Arrays.asList(new LogSpecification(), new LogSpecification()))), - new OperationInner().withName("qijgkd") - .withDisplay(new OperationDisplay().withProvider("azlobcufpdznrbt") - .withResource("qjnqglhqgnufoooj") - .withOperation("ifsqesaagdfmg") - .withDescription("lhjxr")) - .withOrigin("kwm") - .withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications(Arrays.asList(new MetricSpecification(), new MetricSpecification())) - .withLogSpecifications(Arrays.asList(new LogSpecification(), new LogSpecification(), - new LogSpecification(), new LogSpecification()))), - new OperationInner().withName("to") - .withDisplay(new OperationDisplay().withProvider("a") - .withResource("ajpsquc") - .withOperation("o") - .withDescription("dkfo")) - .withOrigin("nygj") - .withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications( - Arrays.asList(new MetricSpecification(), new MetricSpecification(), new MetricSpecification())) - .withLogSpecifications(Arrays.asList(new LogSpecification()))))); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals("zopbsphrupidgs", model.value().get(0).display().provider()); - Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().resource()); - Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().operation()); - Assertions.assertEquals("zehtbmu", model.value().get(0).display().description()); - Assertions.assertEquals("ownoizhw", model.value().get(0).origin()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java deleted file mode 100644 index 86941fee3f2d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.OperationProperties; -import com.azure.resourcemanager.netapp.models.Dimension; -import com.azure.resourcemanager.netapp.models.LogSpecification; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.MetricSpecification; -import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationProperties model = BinaryData.fromString( - "{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"basyy\",\"displayName\":\"ddhsgcbacphe\",\"displayDescription\":\"ot\",\"unit\":\"qgoulznd\",\"supportedAggregationTypes\":[\"Average\"],\"supportedTimeGrainTypes\":[\"kgfg\",\"bmadgak\",\"qsrxybzqqed\"],\"internalMetricName\":\"tbciqfouflmm\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"modmglougpb\",\"sourceMdmNamespace\":\"tmut\",\"dimensions\":[{\"name\":\"ta\",\"displayName\":\"pwgcuertu\"},{\"name\":\"dosvqwhbmdgbbjf\",\"displayName\":\"gmbmbexppbh\"},{\"name\":\"qrolfpf\",\"displayName\":\"algbquxigjyjg\"},{\"name\":\"aoyfhrtxilnerkuj\",\"displayName\":\"vlejuvfqa\"}],\"aggregationType\":\"lyxwjkcprbnwbx\",\"fillGapWithZero\":false,\"category\":\"bvpyss\",\"resourceIdDimensionNameOverride\":\"nruj\",\"isInternal\":true},{\"name\":\"muouqfp\",\"displayName\":\"zw\",\"displayDescription\":\"g\",\"unit\":\"tnwu\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"fizuckyf\",\"hr\",\"idf\"],\"internalMetricName\":\"wdzuhtymwisd\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"wxmnteiwao\",\"sourceMdmNamespace\":\"km\",\"dimensions\":[{\"name\":\"mxdcufufsrp\",\"displayName\":\"zidnsezcxtbzsgfy\"}],\"aggregationType\":\"sne\",\"fillGapWithZero\":true,\"category\":\"z\",\"resourceIdDimensionNameOverride\":\"iachbo\",\"isInternal\":true},{\"name\":\"nrosfqpte\",\"displayName\":\"zzvypyqrimzinp\",\"displayDescription\":\"wjdk\",\"unit\":\"soodqxhcrmnoh\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"soifiyipjxsqw\",\"gr\",\"bznorcjxvsnby\"],\"internalMetricName\":\"abnmocpcyshu\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"bl\",\"sourceMdmNamespace\":\"gpbtoqcjmklj\",\"dimensions\":[{\"name\":\"idtqajzyu\",\"displayName\":\"kudjkrlkhb\"},{\"name\":\"fepgzgq\",\"displayName\":\"zloc\"}],\"aggregationType\":\"c\",\"fillGapWithZero\":true,\"category\":\"rhhbcs\",\"resourceIdDimensionNameOverride\":\"ummajtjaod\",\"isInternal\":true}],\"logSpecifications\":[{\"name\":\"xkqpxo\",\"displayName\":\"jionpimexgstxgc\"},{\"name\":\"dg\",\"displayName\":\"ajrmvdjwzrlovmc\"},{\"name\":\"hijco\",\"displayName\":\"ctbzaq\"}]}}") - .toObject(OperationProperties.class); - Assertions.assertEquals("basyy", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("ddhsgcbacphe", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("ot", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("qgoulznd", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("kgfg", - model.serviceSpecification().metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("tbciqfouflmm", - model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("modmglougpb", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("tmut", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("ta", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("pwgcuertu", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("lyxwjkcprbnwbx", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("bvpyss", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("nruj", - model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("xkqpxo", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("jionpimexgstxgc", - model.serviceSpecification().logSpecifications().get(0).displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationProperties model = new OperationProperties().withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications(Arrays.asList( - new MetricSpecification().withName("basyy") - .withDisplayName("ddhsgcbacphe") - .withDisplayDescription("ot") - .withUnit("qgoulznd") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("kgfg", "bmadgak", "qsrxybzqqed")) - .withInternalMetricName("tbciqfouflmm") - .withEnableRegionalMdmAccount(false) - .withSourceMdmAccount("modmglougpb") - .withSourceMdmNamespace("tmut") - .withDimensions(Arrays.asList(new Dimension().withName("ta").withDisplayName("pwgcuertu"), - new Dimension().withName("dosvqwhbmdgbbjf").withDisplayName("gmbmbexppbh"), - new Dimension().withName("qrolfpf").withDisplayName("algbquxigjyjg"), - new Dimension().withName("aoyfhrtxilnerkuj").withDisplayName("vlejuvfqa"))) - .withAggregationType("lyxwjkcprbnwbx") - .withFillGapWithZero(false) - .withCategory("bvpyss") - .withResourceIdDimensionNameOverride("nruj") - .withIsInternal(true), - new MetricSpecification().withName("muouqfp") - .withDisplayName("zw") - .withDisplayDescription("g") - .withUnit("tnwu") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("fizuckyf", "hr", "idf")) - .withInternalMetricName("wdzuhtymwisd") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("wxmnteiwao") - .withSourceMdmNamespace("km") - .withDimensions( - Arrays.asList(new Dimension().withName("mxdcufufsrp").withDisplayName("zidnsezcxtbzsgfy"))) - .withAggregationType("sne") - .withFillGapWithZero(true) - .withCategory("z") - .withResourceIdDimensionNameOverride("iachbo") - .withIsInternal(true), - new MetricSpecification().withName("nrosfqpte") - .withDisplayName("zzvypyqrimzinp") - .withDisplayDescription("wjdk") - .withUnit("soodqxhcrmnoh") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("soifiyipjxsqw", "gr", "bznorcjxvsnby")) - .withInternalMetricName("abnmocpcyshu") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("bl") - .withSourceMdmNamespace("gpbtoqcjmklj") - .withDimensions(Arrays.asList(new Dimension().withName("idtqajzyu").withDisplayName("kudjkrlkhb"), - new Dimension().withName("fepgzgq").withDisplayName("zloc"))) - .withAggregationType("c") - .withFillGapWithZero(true) - .withCategory("rhhbcs") - .withResourceIdDimensionNameOverride("ummajtjaod") - .withIsInternal(true))) - .withLogSpecifications( - Arrays.asList(new LogSpecification().withName("xkqpxo").withDisplayName("jionpimexgstxgc"), - new LogSpecification().withName("dg").withDisplayName("ajrmvdjwzrlovmc"), - new LogSpecification().withName("hijco").withDisplayName("ctbzaq")))); - model = BinaryData.fromObject(model).toObject(OperationProperties.class); - Assertions.assertEquals("basyy", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("ddhsgcbacphe", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("ot", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("qgoulznd", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("kgfg", - model.serviceSpecification().metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("tbciqfouflmm", - model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("modmglougpb", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("tmut", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("ta", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("pwgcuertu", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("lyxwjkcprbnwbx", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("bvpyss", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("nruj", - model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("xkqpxo", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("jionpimexgstxgc", - model.serviceSpecification().logSpecifications().get(0).displayName()); - } -} 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 deleted file mode 100644 index 8e784b62f2af..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.Operation; -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 OperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"kvylauyavl\",\"display\":{\"provider\":\"ncstt\",\"resource\":\"fybvpoek\",\"operation\":\"gsgbdhuzq\",\"description\":\"j\"},\"origin\":\"kynscliqhzv\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"tkubotppn\",\"displayName\":\"xz\",\"displayDescription\":\"ihfrbbcevqa\",\"unit\":\"ltd\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"py\",\"vgtrdcnifmzzs\",\"ymbrnysuxmpraf\",\"g\"],\"internalMetricName\":\"hocxvdfffwafqrou\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"avehhrvkbunzo\",\"sourceMdmNamespace\":\"dhcxgkmoy\",\"dimensions\":[{},{}],\"aggregationType\":\"uibhmfdnbzydvfv\",\"fillGapWithZero\":false,\"category\":\"aeoisrvh\",\"resourceIdDimensionNameOverride\":\"orffukiscv\",\"isInternal\":true},{\"name\":\"wplefaxvxil\",\"displayName\":\"tg\",\"displayDescription\":\"nzeyqxtjj\",\"unit\":\"qlqhycavodg\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"mieknlraria\",\"wiuagydwqf\",\"ylyrfgiagtco\"],\"internalMetricName\":\"cqwogfnzjvusfzl\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"uxylfsbtkadpy\",\"sourceMdmNamespace\":\"wn\",\"dimensions\":[{},{},{}],\"aggregationType\":\"bugrj\",\"fillGapWithZero\":false,\"category\":\"jc\",\"resourceIdDimensionNameOverride\":\"sofieypefojyqd\",\"isInternal\":false}],\"logSpecifications\":[{\"name\":\"plcwkhi\",\"displayName\":\"hlhzdsqtzbsrgno\"},{\"name\":\"jhf\",\"displayName\":\"vecactx\"}]}}}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kvylauyavl", response.iterator().next().name()); - Assertions.assertEquals("ncstt", response.iterator().next().display().provider()); - Assertions.assertEquals("fybvpoek", response.iterator().next().display().resource()); - Assertions.assertEquals("gsgbdhuzq", response.iterator().next().display().operation()); - Assertions.assertEquals("j", response.iterator().next().display().description()); - Assertions.assertEquals("kynscliqhzv", response.iterator().next().origin()); - Assertions.assertEquals("tkubotppn", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("xz", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("ihfrbbcevqa", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("ltd", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - response.iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .supportedAggregationTypes() - .get(0)); - Assertions.assertEquals("py", - response.iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .supportedTimeGrainTypes() - .get(0)); - Assertions.assertEquals("hocxvdfffwafqrou", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, - response.iterator().next().serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("avehhrvkbunzo", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("dhcxgkmoy", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("uibhmfdnbzydvfv", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, - response.iterator().next().serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("aeoisrvh", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("orffukiscv", - response.iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .resourceIdDimensionNameOverride()); - Assertions.assertEquals(true, - response.iterator().next().serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("plcwkhi", - response.iterator().next().serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("hlhzdsqtzbsrgno", - response.iterator().next().serviceSpecification().logSpecifications().get(0).displayName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeerClusterForVolumeMigrationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeerClusterForVolumeMigrationRequestTests.java deleted file mode 100644 index 13b7d1a92992..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeerClusterForVolumeMigrationRequestTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PeerClusterForVolumeMigrationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PeerClusterForVolumeMigrationRequest model - = BinaryData.fromString("{\"peerIpAddresses\":[\"idb\",\"fatpxllrxcyjmoa\",\"su\",\"arm\"]}") - .toObject(PeerClusterForVolumeMigrationRequest.class); - Assertions.assertEquals("idb", model.peerIpAddresses().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PeerClusterForVolumeMigrationRequest model = new PeerClusterForVolumeMigrationRequest() - .withPeerIpAddresses(Arrays.asList("idb", "fatpxllrxcyjmoa", "su", "arm")); - model = BinaryData.fromObject(model).toObject(PeerClusterForVolumeMigrationRequest.class); - Assertions.assertEquals("idb", model.peerIpAddresses().get(0)); - } -} 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 deleted file mode 100644 index a0db69839da0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.PoolChangeRequest; -import org.junit.jupiter.api.Assertions; - -public final class PoolChangeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PoolChangeRequest model - = BinaryData.fromString("{\"newPoolResourceId\":\"kgymareqnajxqug\"}").toObject(PoolChangeRequest.class); - Assertions.assertEquals("kgymareqnajxqug", model.newPoolResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PoolChangeRequest model = new PoolChangeRequest().withNewPoolResourceId("kgymareqnajxqug"); - model = BinaryData.fromObject(model).toObject(PoolChangeRequest.class); - Assertions.assertEquals("kgymareqnajxqug", 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 deleted file mode 100644 index c8bc3970ad21..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties; -import com.azure.resourcemanager.netapp.models.QosType; -import org.junit.jupiter.api.Assertions; - -public final class PoolPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PoolPatchProperties model = BinaryData.fromString( - "{\"size\":5688325155939436400,\"qosType\":\"Auto\",\"coolAccess\":false,\"customThroughputMibps\":54.82628}") - .toObject(PoolPatchProperties.class); - Assertions.assertEquals(5688325155939436400L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(54.82628F, model.customThroughputMibps()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PoolPatchProperties model = new PoolPatchProperties().withSize(5688325155939436400L) - .withQosType(QosType.AUTO) - .withCoolAccess(false) - .withCustomThroughputMibps(54.82628F); - model = BinaryData.fromObject(model).toObject(PoolPatchProperties.class); - Assertions.assertEquals(5688325155939436400L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(54.82628F, 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 deleted file mode 100644 index b76ab1b8a9fa..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.PoolProperties; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import org.junit.jupiter.api.Assertions; - -public final class PoolPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PoolProperties model = BinaryData.fromString( - "{\"poolId\":\"ekqvkeln\",\"size\":2597163492495193220,\"serviceLevel\":\"Standard\",\"provisioningState\":\"wyjsflhhcaalnjix\",\"totalThroughputMibps\":26.624393,\"utilizedThroughputMibps\":79.06187,\"customThroughputMibps\":21.879053,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"}") - .toObject(PoolProperties.class); - Assertions.assertEquals(2597163492495193220L, model.size()); - Assertions.assertEquals(ServiceLevel.STANDARD, model.serviceLevel()); - Assertions.assertEquals(21.879053F, model.customThroughputMibps()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PoolProperties model = new PoolProperties().withSize(2597163492495193220L) - .withServiceLevel(ServiceLevel.STANDARD) - .withCustomThroughputMibps(21.879053F) - .withQosType(QosType.MANUAL) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.DOUBLE); - model = BinaryData.fromObject(model).toObject(PoolProperties.class); - Assertions.assertEquals(2597163492495193220L, model.size()); - Assertions.assertEquals(ServiceLevel.STANDARD, model.serviceLevel()); - Assertions.assertEquals(21.879053F, model.customThroughputMibps()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, 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 deleted file mode 100644 index 499d02a972c3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CapacityPool; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -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 PoolsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"etag\":\"v\",\"properties\":{\"poolId\":\"ufuqyrx\",\"size\":6853300792215489751,\"serviceLevel\":\"Premium\",\"provisioningState\":\"Succeeded\",\"totalThroughputMibps\":78.630066,\"utilizedThroughputMibps\":62.450417,\"customThroughputMibps\":8.434969,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"fcdis\",\"tags\":{\"rxzbujr\":\"nxzhcze\",\"nlnzonzlrpi\":\"rhqvwrevkh\"},\"id\":\"yw\",\"name\":\"cvjtszcofiz\",\"type\":\"htd\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - CapacityPool response = manager.pools() - .define("emwmdxmebwjs") - .withRegion("kpn") - .withExistingNetAppAccount("wxdzaumweoohgu", "fuzboyjathwtzolb") - .withSize(8437685781238493437L) - .withServiceLevel(ServiceLevel.FLEXIBLE) - .withTags(mapOf("dqmeqwigpibudq", "apm")) - .withCustomThroughputMibps(12.6477F) - .withQosType(QosType.AUTO) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.SINGLE) - .create(); - - Assertions.assertEquals("fcdis", response.location()); - Assertions.assertEquals("nxzhcze", response.tags().get("rxzbujr")); - Assertions.assertEquals(6853300792215489751L, response.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, response.serviceLevel()); - Assertions.assertEquals(8.434969F, response.customThroughputMibps()); - Assertions.assertEquals(QosType.MANUAL, response.qosType()); - Assertions.assertEquals(false, response.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, response.encryptionType()); - } - - // 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/PoolsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java deleted file mode 100644 index f8ec41ee1ab6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CapacityPool; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -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 PoolsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"etag\":\"sheafid\",\"properties\":{\"poolId\":\"ugsresmkssjhoi\",\"size\":8087831620363185447,\"serviceLevel\":\"Premium\",\"provisioningState\":\"fwegprhptillu\",\"totalThroughputMibps\":48.5814,\"utilizedThroughputMibps\":88.57164,\"customThroughputMibps\":34.170998,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"location\":\"ldrizetpwbra\",\"tags\":{\"qzmiza\":\"ibph\",\"ankjpdnjzh\":\"a\"},\"id\":\"joylh\",\"name\":\"lmuoyxprimrsopte\",\"type\":\"cjmeislstvasy\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - CapacityPool response = manager.pools() - .getWithResponse("kvbwnhhtqlgeh", "ppipifhpfeoa", "vgcxtx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ldrizetpwbra", response.location()); - Assertions.assertEquals("ibph", response.tags().get("qzmiza")); - Assertions.assertEquals(8087831620363185447L, response.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, response.serviceLevel()); - Assertions.assertEquals(34.170998F, response.customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, response.qosType()); - Assertions.assertEquals(true, response.coolAccess()); - 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 deleted file mode 100644 index 9082cf8d24aa..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CapacityPool; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -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 PoolsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"etag\":\"ckknhxkizvy\",\"properties\":{\"poolId\":\"rzvul\",\"size\":149873479955101826,\"serviceLevel\":\"Premium\",\"provisioningState\":\"rano\",\"totalThroughputMibps\":72.54921,\"utilizedThroughputMibps\":92.12962,\"customThroughputMibps\":20.17358,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"location\":\"laxxulc\",\"tags\":{\"r\":\"dosfjbjsvgjrw\",\"t\":\"vyc\",\"xgccknfnw\":\"c\",\"fedxihchrphkm\":\"btmvpdvjdhttza\"},\"id\":\"rjdqnsdfzp\",\"name\":\"gtgkylkdghr\",\"type\":\"euutlwxezwzh\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.pools().list("dfgsftufqobrj", "nac", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("laxxulc", response.iterator().next().location()); - Assertions.assertEquals("dosfjbjsvgjrw", response.iterator().next().tags().get("r")); - Assertions.assertEquals(149873479955101826L, response.iterator().next().size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, response.iterator().next().serviceLevel()); - Assertions.assertEquals(20.17358F, response.iterator().next().customThroughputMibps()); - Assertions.assertEquals(QosType.MANUAL, response.iterator().next().qosType()); - Assertions.assertEquals(false, response.iterator().next().coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, 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 deleted file mode 100644 index 4b418c550619..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; -import org.junit.jupiter.api.Assertions; - -public final class QueryNetworkSiblingSetRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QueryNetworkSiblingSetRequest model - = BinaryData.fromString("{\"networkSiblingSetId\":\"uujqgidokgjljyo\",\"subnetId\":\"gvcl\"}") - .toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("uujqgidokgjljyo", model.networkSiblingSetId()); - Assertions.assertEquals("gvcl", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QueryNetworkSiblingSetRequest model - = new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("uujqgidokgjljyo").withSubnetId("gvcl"); - model = BinaryData.fromObject(model).toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("uujqgidokgjljyo", model.networkSiblingSetId()); - Assertions.assertEquals("gvcl", 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 deleted file mode 100644 index 3fe57d8bc098..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes; -import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class QuotaAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuotaAvailabilityRequest model = BinaryData - .fromString( - "{\"name\":\"rkcciwwzjuqk\",\"type\":\"Microsoft.NetApp/netAppAccounts\",\"resourceGroup\":\"sa\"}") - .toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("rkcciwwzjuqk", model.name()); - Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS, model.type()); - Assertions.assertEquals("sa", model.resourceGroup()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuotaAvailabilityRequest model = new QuotaAvailabilityRequest().withName("rkcciwwzjuqk") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS) - .withResourceGroup("sa"); - model = BinaryData.fromObject(model).toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("rkcciwwzjuqk", model.name()); - Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS, model.type()); - Assertions.assertEquals("sa", model.resourceGroup()); - } -} 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 deleted file mode 100644 index fc9144529ad8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaReportTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.QuotaReport; -import com.azure.resourcemanager.netapp.models.Type; -import org.junit.jupiter.api.Assertions; - -public final class QuotaReportTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuotaReport model = BinaryData.fromString( - "{\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"stkwqqtch\",\"quotaLimitUsedInKiBs\":416295343158305691,\"quotaLimitTotalInKiBs\":5417188415846728288,\"percentageUsed\":24.116516,\"isDerivedQuota\":false}") - .toObject(QuotaReport.class); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("stkwqqtch", model.quotaTarget()); - Assertions.assertEquals(416295343158305691L, model.quotaLimitUsedInKiBs()); - Assertions.assertEquals(5417188415846728288L, model.quotaLimitTotalInKiBs()); - Assertions.assertEquals(24.116516F, model.percentageUsed()); - Assertions.assertEquals(false, model.isDerivedQuota()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuotaReport model = new QuotaReport().withQuotaType(Type.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("stkwqqtch") - .withQuotaLimitUsedInKiBs(416295343158305691L) - .withQuotaLimitTotalInKiBs(5417188415846728288L) - .withPercentageUsed(24.116516F) - .withIsDerivedQuota(false); - model = BinaryData.fromObject(model).toObject(QuotaReport.class); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("stkwqqtch", model.quotaTarget()); - Assertions.assertEquals(416295343158305691L, model.quotaLimitUsedInKiBs()); - Assertions.assertEquals(5417188415846728288L, model.quotaLimitTotalInKiBs()); - Assertions.assertEquals(24.116516F, model.percentageUsed()); - Assertions.assertEquals(false, model.isDerivedQuota()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReestablishReplicationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReestablishReplicationRequestTests.java deleted file mode 100644 index 8f1d647a8f9d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReestablishReplicationRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; -import org.junit.jupiter.api.Assertions; - -public final class ReestablishReplicationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReestablishReplicationRequest model - = BinaryData.fromString("{\"sourceVolumeId\":\"wvgpiohg\"}").toObject(ReestablishReplicationRequest.class); - Assertions.assertEquals("wvgpiohg", model.sourceVolumeId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReestablishReplicationRequest model = new ReestablishReplicationRequest().withSourceVolumeId("wvgpiohg"); - model = BinaryData.fromObject(model).toObject(ReestablishReplicationRequest.class); - Assertions.assertEquals("wvgpiohg", model.sourceVolumeId()); - } -} 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 deleted file mode 100644 index be85868daaac..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem; -import org.junit.jupiter.api.Assertions; - -public final class RegionInfoAvailabilityZoneMappingsItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RegionInfoAvailabilityZoneMappingsItem model - = BinaryData.fromString("{\"availabilityZone\":\"fbishcbkha\",\"isAvailable\":false}") - .toObject(RegionInfoAvailabilityZoneMappingsItem.class); - Assertions.assertEquals("fbishcbkha", model.availabilityZone()); - Assertions.assertEquals(false, model.isAvailable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfoAvailabilityZoneMappingsItem model - = new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("fbishcbkha").withIsAvailable(false); - model = BinaryData.fromObject(model).toObject(RegionInfoAvailabilityZoneMappingsItem.class); - Assertions.assertEquals("fbishcbkha", model.availabilityZone()); - Assertions.assertEquals(false, 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 deleted file mode 100644 index 1a62697c1398..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner; -import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RegionInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RegionInfoInner model = BinaryData.fromString( - "{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"c\",\"isAvailable\":true},{\"availabilityZone\":\"sdpydnfyhxdeoejz\",\"isAvailable\":false},{\"availabilityZone\":\"fsj\",\"isAvailable\":true}]}") - .toObject(RegionInfoInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - model.storageToNetworkProximity()); - Assertions.assertEquals("c", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, model.availabilityZoneMappings().get(0).isAvailable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfoInner model - = new RegionInfoInner().withStorageToNetworkProximity(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("c").withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("sdpydnfyhxdeoejz") - .withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("fsj").withIsAvailable(true))); - model = BinaryData.fromObject(model).toObject(RegionInfoInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - model.storageToNetworkProximity()); - Assertions.assertEquals("c", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, 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 deleted file mode 100644 index 011c73568ad8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner; -import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RegionInfoResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RegionInfoResourceInner model = BinaryData.fromString( - "{\"properties\":{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"nkymuctqhjfbebrj\",\"isAvailable\":true},{\"availabilityZone\":\"fuwutttxf\",\"isAvailable\":false},{\"availabilityZone\":\"i\",\"isAvailable\":true}]},\"id\":\"epcyvahfnlj\",\"name\":\"yq\",\"type\":\"j\"}") - .toObject(RegionInfoResourceInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2, model.storageToNetworkProximity()); - Assertions.assertEquals("nkymuctqhjfbebrj", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, model.availabilityZoneMappings().get(0).isAvailable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfoResourceInner model = new RegionInfoResourceInner() - .withStorageToNetworkProximity(RegionStorageToNetworkProximity.T2) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("nkymuctqhjfbebrj") - .withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("fuwutttxf").withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("i").withIsAvailable(true))); - model = BinaryData.fromObject(model).toObject(RegionInfoResourceInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2, model.storageToNetworkProximity()); - Assertions.assertEquals("nkymuctqhjfbebrj", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, 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 deleted file mode 100644 index 22ea9c7ca417..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner; -import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem; -import com.azure.resourcemanager.netapp.models.RegionInfosList; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RegionInfosListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RegionInfosList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"g\",\"isAvailable\":true},{\"availabilityZone\":\"uxwgipwho\",\"isAvailable\":false},{\"availabilityZone\":\"gshwankixz\",\"isAvailable\":true},{\"availabilityZone\":\"eputtmrywnuzoqf\",\"isAvailable\":true}]},\"id\":\"zrnkcqvyxlwh\",\"name\":\"lsicohoqqnwv\",\"type\":\"ryavwhheunmmqh\"},{\"properties\":{\"storageToNetworkProximity\":\"T1\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"ocukoklyax\",\"isAvailable\":false},{\"availabilityZone\":\"uqszfk\",\"isAvailable\":true}]},\"id\":\"ewrmjmwvvjektc\",\"name\":\"senhwlrs\",\"type\":\"frzpwvlqdqgb\"}],\"nextLink\":\"ylihkaetckt\"}") - .toObject(RegionInfosList.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - model.value().get(0).storageToNetworkProximity()); - Assertions.assertEquals("g", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, model.value().get(0).availabilityZoneMappings().get(0).isAvailable()); - Assertions.assertEquals("ylihkaetckt", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfosList model = new RegionInfosList().withValue(Arrays.asList(new RegionInfoResourceInner() - .withStorageToNetworkProximity(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("g").withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("uxwgipwho").withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("gshwankixz").withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("eputtmrywnuzoqf") - .withIsAvailable(true))), - new RegionInfoResourceInner().withStorageToNetworkProximity(RegionStorageToNetworkProximity.T1) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("ocukoklyax") - .withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("uqszfk") - .withIsAvailable(true))))) - .withNextLink("ylihkaetckt"); - model = BinaryData.fromObject(model).toObject(RegionInfosList.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - model.value().get(0).storageToNetworkProximity()); - Assertions.assertEquals("g", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, model.value().get(0).availabilityZoneMappings().get(0).isAvailable()); - Assertions.assertEquals("ylihkaetckt", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RemotePathTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RemotePathTests.java deleted file mode 100644 index 4d640fae4078..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RemotePathTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.RemotePath; -import org.junit.jupiter.api.Assertions; - -public final class RemotePathTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RemotePath model = BinaryData - .fromString( - "{\"externalHostName\":\"htozfikdow\",\"serverName\":\"quuvxzxcl\",\"volumeName\":\"ithhqzon\"}") - .toObject(RemotePath.class); - Assertions.assertEquals("htozfikdow", model.externalHostname()); - Assertions.assertEquals("quuvxzxcl", model.serverName()); - Assertions.assertEquals("ithhqzon", model.volumeName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemotePath model = new RemotePath().withExternalHostname("htozfikdow") - .withServerName("quuvxzxcl") - .withVolumeName("ithhqzon"); - model = BinaryData.fromObject(model).toObject(RemotePath.class); - Assertions.assertEquals("htozfikdow", model.externalHostname()); - Assertions.assertEquals("quuvxzxcl", model.serverName()); - Assertions.assertEquals("ithhqzon", model.volumeName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java deleted file mode 100644 index 0a9fdf97df54..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; -import com.azure.resourcemanager.netapp.models.EndpointType; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -import org.junit.jupiter.api.Assertions; - -public final class ReplicationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationInner model = BinaryData.fromString( - "{\"replicationId\":\"fcktqumiekke\",\"endpointType\":\"src\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"ly\",\"remoteVolumeRegion\":\"hdgqggeb\"}") - .toObject(ReplicationInner.class); - Assertions.assertEquals(EndpointType.SRC, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule()); - Assertions.assertEquals("ly", model.remoteVolumeResourceId()); - Assertions.assertEquals("hdgqggeb", model.remoteVolumeRegion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationInner model = new ReplicationInner().withEndpointType(EndpointType.SRC) - .withReplicationSchedule(ReplicationSchedule.HOURLY) - .withRemoteVolumeResourceId("ly") - .withRemoteVolumeRegion("hdgqggeb"); - model = BinaryData.fromObject(model).toObject(ReplicationInner.class); - Assertions.assertEquals(EndpointType.SRC, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule()); - Assertions.assertEquals("ly", model.remoteVolumeResourceId()); - Assertions.assertEquals("hdgqggeb", model.remoteVolumeRegion()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.java deleted file mode 100644 index 12a58f06a826..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.EndpointType; -import com.azure.resourcemanager.netapp.models.RemotePath; -import com.azure.resourcemanager.netapp.models.ReplicationObject; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -import org.junit.jupiter.api.Assertions; - -public final class ReplicationObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationObject model = BinaryData.fromString( - "{\"replicationId\":\"kqze\",\"endpointType\":\"dst\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"fzxmhhvhgureodkw\",\"remotePath\":{\"externalHostName\":\"dagxtibqd\",\"serverName\":\"bxwakbog\",\"volumeName\":\"xndlkzgxhu\"},\"remoteVolumeRegion\":\"plbpodxun\",\"destinationReplications\":[{\"resourceId\":\"xmubyyntwlrbq\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"evseotgqrlltmuwl\",\"zone\":\"wzizxbmpgcjefuzm\"},{\"resourceId\":\"pbttdum\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"xe\",\"zone\":\"nzbtbhj\"},{\"resourceId\":\"lkfg\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"euel\",\"zone\":\"hsd\"}]}") - .toObject(ReplicationObject.class); - Assertions.assertEquals(EndpointType.DST, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule()); - Assertions.assertEquals("fzxmhhvhgureodkw", model.remoteVolumeResourceId()); - Assertions.assertEquals("dagxtibqd", model.remotePath().externalHostname()); - Assertions.assertEquals("bxwakbog", model.remotePath().serverName()); - Assertions.assertEquals("xndlkzgxhu", model.remotePath().volumeName()); - Assertions.assertEquals("plbpodxun", model.remoteVolumeRegion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationObject model = new ReplicationObject().withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.HOURLY) - .withRemoteVolumeResourceId("fzxmhhvhgureodkw") - .withRemotePath(new RemotePath().withExternalHostname("dagxtibqd") - .withServerName("bxwakbog") - .withVolumeName("xndlkzgxhu")) - .withRemoteVolumeRegion("plbpodxun"); - model = BinaryData.fromObject(model).toObject(ReplicationObject.class); - Assertions.assertEquals(EndpointType.DST, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule()); - Assertions.assertEquals("fzxmhhvhgureodkw", model.remoteVolumeResourceId()); - Assertions.assertEquals("dagxtibqd", model.remotePath().externalHostname()); - Assertions.assertEquals("bxwakbog", model.remotePath().serverName()); - Assertions.assertEquals("xndlkzgxhu", model.remotePath().volumeName()); - Assertions.assertEquals("plbpodxun", model.remoteVolumeRegion()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.java deleted file mode 100644 index e41dec0c0d35..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; -import com.azure.resourcemanager.netapp.models.MirrorState; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; -import org.junit.jupiter.api.Assertions; - -public final class ReplicationStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationStatusInner model = BinaryData.fromString( - "{\"healthy\":true,\"relationshipStatus\":\"Unknown\",\"mirrorState\":\"Broken\",\"totalProgress\":\"epxgyqagvr\",\"errorMessage\":\"npkukghimdblx\"}") - .toObject(ReplicationStatusInner.class); - Assertions.assertEquals(true, model.healthy()); - Assertions.assertEquals(RelationshipStatus.UNKNOWN, model.relationshipStatus()); - Assertions.assertEquals(MirrorState.BROKEN, model.mirrorState()); - Assertions.assertEquals("epxgyqagvr", model.totalProgress()); - Assertions.assertEquals("npkukghimdblx", model.errorMessage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationStatusInner model = new ReplicationStatusInner().withHealthy(true) - .withRelationshipStatus(RelationshipStatus.UNKNOWN) - .withMirrorState(MirrorState.BROKEN) - .withTotalProgress("epxgyqagvr") - .withErrorMessage("npkukghimdblx"); - model = BinaryData.fromObject(model).toObject(ReplicationStatusInner.class); - Assertions.assertEquals(true, model.healthy()); - Assertions.assertEquals(RelationshipStatus.UNKNOWN, model.relationshipStatus()); - Assertions.assertEquals(MirrorState.BROKEN, model.mirrorState()); - Assertions.assertEquals("epxgyqagvr", model.totalProgress()); - Assertions.assertEquals("npkukghimdblx", model.errorMessage()); - } -} 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 deleted file mode 100644 index fb22e1b2d793..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes; -import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class ResourceNameAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceNameAvailabilityRequest model = BinaryData.fromString( - "{\"name\":\"d\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots\",\"resourceGroup\":\"atkpnp\"}") - .toObject(ResourceNameAvailabilityRequest.class); - Assertions.assertEquals("d", model.name()); - Assertions.assertEquals( - CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, model.type()); - Assertions.assertEquals("atkpnp", model.resourceGroup()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceNameAvailabilityRequest model = new ResourceNameAvailabilityRequest().withName("d") - .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS) - .withResourceGroup("atkpnp"); - model = BinaryData.fromObject(model).toObject(ResourceNameAvailabilityRequest.class); - Assertions.assertEquals("d", model.name()); - Assertions.assertEquals( - CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, model.type()); - Assertions.assertEquals("atkpnp", model.resourceGroup()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.java deleted file mode 100644 index 5bb24fb5fe69..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner; - -public final class RestoreStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestoreStatusInner model = BinaryData.fromString( - "{\"healthy\":false,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"emvvhm\",\"errorMessage\":\"drjf\",\"totalTransferBytes\":6646451916229099217}") - .toObject(RestoreStatusInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestoreStatusInner model = new RestoreStatusInner(); - model = BinaryData.fromObject(model).toObject(RestoreStatusInner.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java deleted file mode 100644 index a04135dc8351..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.Dimension; -import com.azure.resourcemanager.netapp.models.LogSpecification; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.MetricSpecification; -import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ServiceSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceSpecification model = BinaryData.fromString( - "{\"metricSpecifications\":[{\"name\":\"cbkbfkg\",\"displayName\":\"dkexxppofm\",\"displayDescription\":\"x\",\"unit\":\"jpgd\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"pmouexhdz\",\"i\",\"qeojnxqbzvddntw\",\"deicbtwnpzao\"],\"internalMetricName\":\"uhrhcffcyddgl\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"jqkwpyeicx\",\"sourceMdmNamespace\":\"ciwqvhk\",\"dimensions\":[{\"name\":\"igdtopbob\",\"displayName\":\"ghmewuam\"},{\"name\":\"hrzayvvtpgvdf\",\"displayName\":\"otkftutqxlngx\"},{\"name\":\"fgugnxkrxdqmid\",\"displayName\":\"hzrvqd\"}],\"aggregationType\":\"bhj\",\"fillGapWithZero\":false,\"category\":\"ehoqfbowskan\",\"resourceIdDimensionNameOverride\":\"tzlcuiywgqywgn\",\"isInternal\":true},{\"name\":\"nhzgpphrcgyn\",\"displayName\":\"cpecfvmmcoofs\",\"displayDescription\":\"zevgb\",\"unit\":\"jqabcypmivkwlzuv\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"bacfionlebxetq\",\"tzxdpnqbqqwx\"],\"internalMetricName\":\"feallnwsu\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"jampmngnzscxaqw\",\"sourceMdmNamespace\":\"chcbonqvpkvlrxnj\",\"dimensions\":[{\"name\":\"ipheoflokeyyien\",\"displayName\":\"dlwtgrhpdj\"},{\"name\":\"umasxazjpq\",\"displayName\":\"gual\"}],\"aggregationType\":\"xxhejjzzvd\",\"fillGapWithZero\":true,\"category\":\"dslfhotwmcy\",\"resourceIdDimensionNameOverride\":\"wlbjnpgacftade\",\"isInternal\":true}],\"logSpecifications\":[{\"name\":\"fsoppusuesnzw\",\"displayName\":\"jbavorxzdm\"},{\"name\":\"ctbqvudwx\",\"displayName\":\"dnvowg\"},{\"name\":\"jugwdkcglhsl\",\"displayName\":\"jdyggdtji\"},{\"name\":\"b\",\"displayName\":\"ofqweykhmenevfye\"}]}") - .toObject(ServiceSpecification.class); - Assertions.assertEquals("cbkbfkg", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("dkexxppofm", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("x", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("jpgd", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("pmouexhdz", model.metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("uhrhcffcyddgl", model.metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("jqkwpyeicx", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("ciwqvhk", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("igdtopbob", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("ghmewuam", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("bhj", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("ehoqfbowskan", model.metricSpecifications().get(0).category()); - Assertions.assertEquals("tzlcuiywgqywgn", - model.metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("fsoppusuesnzw", model.logSpecifications().get(0).name()); - Assertions.assertEquals("jbavorxzdm", model.logSpecifications().get(0).displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceSpecification model = new ServiceSpecification() - .withMetricSpecifications(Arrays.asList( - new MetricSpecification().withName("cbkbfkg") - .withDisplayName("dkexxppofm") - .withDisplayDescription("x") - .withUnit("jpgd") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("pmouexhdz", "i", "qeojnxqbzvddntw", "deicbtwnpzao")) - .withInternalMetricName("uhrhcffcyddgl") - .withEnableRegionalMdmAccount(false) - .withSourceMdmAccount("jqkwpyeicx") - .withSourceMdmNamespace("ciwqvhk") - .withDimensions( - Arrays.asList(new Dimension().withName("igdtopbob").withDisplayName("ghmewuam"), - new Dimension().withName("hrzayvvtpgvdf").withDisplayName("otkftutqxlngx"), - new Dimension().withName("fgugnxkrxdqmid").withDisplayName("hzrvqd"))) - .withAggregationType("bhj") - .withFillGapWithZero(false) - .withCategory("ehoqfbowskan") - .withResourceIdDimensionNameOverride("tzlcuiywgqywgn") - .withIsInternal(true), - new MetricSpecification().withName("nhzgpphrcgyn") - .withDisplayName("cpecfvmmcoofs") - .withDisplayDescription("zevgb") - .withUnit("jqabcypmivkwlzuv") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("bacfionlebxetq", "tzxdpnqbqqwx")) - .withInternalMetricName("feallnwsu") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("jampmngnzscxaqw") - .withSourceMdmNamespace("chcbonqvpkvlrxnj") - .withDimensions( - Arrays.asList(new Dimension().withName("ipheoflokeyyien").withDisplayName("dlwtgrhpdj"), - new Dimension().withName("umasxazjpq").withDisplayName("gual"))) - .withAggregationType("xxhejjzzvd") - .withFillGapWithZero(true) - .withCategory("dslfhotwmcy") - .withResourceIdDimensionNameOverride("wlbjnpgacftade") - .withIsInternal(true))) - .withLogSpecifications( - Arrays.asList(new LogSpecification().withName("fsoppusuesnzw").withDisplayName("jbavorxzdm"), - new LogSpecification().withName("ctbqvudwx").withDisplayName("dnvowg"), - new LogSpecification().withName("jugwdkcglhsl").withDisplayName("jdyggdtji"), - new LogSpecification().withName("b").withDisplayName("ofqweykhmenevfye"))); - model = BinaryData.fromObject(model).toObject(ServiceSpecification.class); - Assertions.assertEquals("cbkbfkg", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("dkexxppofm", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("x", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("jpgd", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("pmouexhdz", model.metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("uhrhcffcyddgl", model.metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("jqkwpyeicx", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("ciwqvhk", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("igdtopbob", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("ghmewuam", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("bhj", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("ehoqfbowskan", model.metricSpecifications().get(0).category()); - Assertions.assertEquals("tzlcuiywgqywgn", - model.metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("fsoppusuesnzw", model.logSpecifications().get(0).name()); - Assertions.assertEquals("jbavorxzdm", model.logSpecifications().get(0).displayName()); - } -} 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 deleted file mode 100644 index 2d6f16bc5065..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotInner model = BinaryData.fromString( - "{\"location\":\"oo\",\"properties\":{\"snapshotId\":\"nuj\",\"created\":\"2021-09-22T15:19:18Z\",\"provisioningState\":\"sbvdkcrodtjinfw\"},\"id\":\"fltkacjv\",\"name\":\"f\",\"type\":\"dlfoakggkfp\"}") - .toObject(SnapshotInner.class); - Assertions.assertEquals("oo", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotInner model = new SnapshotInner().withLocation("oo"); - model = BinaryData.fromObject(model).toObject(SnapshotInner.class); - Assertions.assertEquals("oo", 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 deleted file mode 100644 index 37e3de8de84c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.DailySchedule; -import com.azure.resourcemanager.netapp.models.HourlySchedule; -import com.azure.resourcemanager.netapp.models.MonthlySchedule; -import com.azure.resourcemanager.netapp.models.SnapshotPolicy; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import 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 SnapshotPoliciesCreateWithResponseMockTests { - @Test - public void testCreateWithResponse() throws Exception { - String responseStr - = "{\"etag\":\"h\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":897856665,\"minute\":828921483,\"usedBytes\":3522262881342173226},\"dailySchedule\":{\"snapshotsToKeep\":1072949444,\"hour\":1744260958,\"minute\":373432473,\"usedBytes\":8927877098345650470},\"weeklySchedule\":{\"snapshotsToKeep\":2070557844,\"day\":\"fa\",\"hour\":1329774917,\"minute\":244946884,\"usedBytes\":1721764598490696593},\"monthlySchedule\":{\"snapshotsToKeep\":1562293671,\"daysOfMonth\":\"wzdvpiwh\",\"hour\":801550005,\"minute\":1096789874,\"usedBytes\":4550472352331294604},\"enabled\":true,\"provisioningState\":\"uhuxylrjvmtyg\"},\"location\":\"mzyospspshck\",\"tags\":{\"gt\":\"jpmspbpssdfppy\",\"unjdx\":\"eyujtvczkcnyxrx\",\"ivbgkcv\":\"glnkvxlxpagl\",\"pubcpzgpxtivhjk\":\"hpzvuqdflvoniyp\"},\"id\":\"idibgqjxgpn\",\"name\":\"hgovfgp\",\"type\":\"kqmhhaowjr\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - SnapshotPolicy response = manager.snapshotPolicies() - .define("wtqabpxuckp") - .withRegion("ctctbrxkjz") - .withExistingNetAppAccount("ulkpakd", "ifmjnn") - .withTags(mapOf("shkwfbkgozxwopd", "xff", "izqaclnapxbiyg", "yd", "mfcttux", "ugjknf")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1189308614) - .withMinute(351115849) - .withUsedBytes(5405797443088065857L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1682370359) - .withHour(254570862) - .withMinute(21737184) - .withUsedBytes(4881754570538060934L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(717298847) - .withDay("wfcngjsaas") - .withHour(1007355900) - .withMinute(352154258) - .withUsedBytes(7947475498891793194L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(671429821) - .withDaysOfMonth("irhgfgrwsdp") - .withHour(1006538190) - .withMinute(145136330) - .withUsedBytes(1716738927704410418L)) - .withEnabled(true) - .create(); - - Assertions.assertEquals("mzyospspshck", response.location()); - Assertions.assertEquals("jpmspbpssdfppy", response.tags().get("gt")); - Assertions.assertEquals(897856665, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(828921483, response.hourlySchedule().minute()); - Assertions.assertEquals(3522262881342173226L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(1072949444, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1744260958, response.dailySchedule().hour()); - Assertions.assertEquals(373432473, response.dailySchedule().minute()); - Assertions.assertEquals(8927877098345650470L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(2070557844, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("fa", response.weeklySchedule().day()); - Assertions.assertEquals(1329774917, response.weeklySchedule().hour()); - Assertions.assertEquals(244946884, response.weeklySchedule().minute()); - Assertions.assertEquals(1721764598490696593L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(1562293671, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("wzdvpiwh", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(801550005, response.monthlySchedule().hour()); - Assertions.assertEquals(1096789874, response.monthlySchedule().minute()); - Assertions.assertEquals(4550472352331294604L, response.monthlySchedule().usedBytes()); - Assertions.assertEquals(true, response.enabled()); - } - - // 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/SnapshotPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java deleted file mode 100644 index 86db7f59ee11..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotPoliciesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.snapshotPolicies().delete("tgfebwln", "mhyreeudz", "av", 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 deleted file mode 100644 index 619585cc8109..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SnapshotPolicy; -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 SnapshotPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"etag\":\"npbs\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":850012212,\"minute\":1075307971,\"usedBytes\":1298535123525566512},\"dailySchedule\":{\"snapshotsToKeep\":583656217,\"hour\":1317782310,\"minute\":152817823,\"usedBytes\":9008218506530550951},\"weeklySchedule\":{\"snapshotsToKeep\":639665928,\"day\":\"xp\",\"hour\":2137168460,\"minute\":1198784321,\"usedBytes\":59350505754780702},\"monthlySchedule\":{\"snapshotsToKeep\":1519575286,\"daysOfMonth\":\"fmpcycilrmca\",\"hour\":740438524,\"minute\":297687924,\"usedBytes\":1184351512319513135},\"enabled\":false,\"provisioningState\":\"ksxwpnd\"},\"location\":\"pfnznthjtwkj\",\"tags\":{\"tcqiosmg\":\"rxuzvoam\",\"xqdlyrtltlapr\":\"zah\",\"atbhjmznn\":\"tz\"},\"id\":\"s\",\"name\":\"qeqala\",\"type\":\"vlagun\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - SnapshotPolicy response = manager.snapshotPolicies() - .getWithResponse("coxpelnjeta", "ltsxoatf", "g", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("pfnznthjtwkj", response.location()); - Assertions.assertEquals("rxuzvoam", response.tags().get("tcqiosmg")); - Assertions.assertEquals(850012212, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1075307971, response.hourlySchedule().minute()); - Assertions.assertEquals(1298535123525566512L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(583656217, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1317782310, response.dailySchedule().hour()); - Assertions.assertEquals(152817823, response.dailySchedule().minute()); - Assertions.assertEquals(9008218506530550951L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(639665928, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("xp", response.weeklySchedule().day()); - Assertions.assertEquals(2137168460, response.weeklySchedule().hour()); - Assertions.assertEquals(1198784321, response.weeklySchedule().minute()); - Assertions.assertEquals(59350505754780702L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(1519575286, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("fmpcycilrmca", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(740438524, response.monthlySchedule().hour()); - Assertions.assertEquals(297687924, response.monthlySchedule().minute()); - Assertions.assertEquals(1184351512319513135L, response.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, 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 deleted file mode 100644 index c0b028c64c5a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SnapshotPolicy; -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 SnapshotPoliciesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"etag\":\"gicgaaoepttaq\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1354970767,\"minute\":153395237,\"usedBytes\":6222106413777972482},\"dailySchedule\":{\"snapshotsToKeep\":827241082,\"hour\":140983404,\"minute\":466668490,\"usedBytes\":6482628412909459959},\"weeklySchedule\":{\"snapshotsToKeep\":744984595,\"day\":\"kimrt\",\"hour\":2101404470,\"minute\":2017974836,\"usedBytes\":5182793984668664248},\"monthlySchedule\":{\"snapshotsToKeep\":1426347910,\"daysOfMonth\":\"qepqwhixmon\",\"hour\":927727255,\"minute\":171287650,\"usedBytes\":9072157943517962123},\"enabled\":true,\"provisioningState\":\"fclduccbirdsv\"},\"location\":\"cobiegstmninwjiz\",\"tags\":{\"tbxqmuluxlxq\":\"nghgshej\",\"amikzebrqbsm\":\"vnersbycucrw\",\"swhvhczznvfbycj\":\"wziqgfuhokzr\",\"xzv\":\"xjww\"},\"id\":\"mwmxqhndvnoamld\",\"name\":\"ehaohdjhh\",\"type\":\"lzok\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.snapshotPolicies().list("jrgywwpgjxsn", "tf", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("cobiegstmninwjiz", response.iterator().next().location()); - Assertions.assertEquals("nghgshej", response.iterator().next().tags().get("tbxqmuluxlxq")); - Assertions.assertEquals(1354970767, response.iterator().next().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(153395237, response.iterator().next().hourlySchedule().minute()); - Assertions.assertEquals(6222106413777972482L, response.iterator().next().hourlySchedule().usedBytes()); - Assertions.assertEquals(827241082, response.iterator().next().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(140983404, response.iterator().next().dailySchedule().hour()); - Assertions.assertEquals(466668490, response.iterator().next().dailySchedule().minute()); - Assertions.assertEquals(6482628412909459959L, response.iterator().next().dailySchedule().usedBytes()); - Assertions.assertEquals(744984595, response.iterator().next().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("kimrt", response.iterator().next().weeklySchedule().day()); - Assertions.assertEquals(2101404470, response.iterator().next().weeklySchedule().hour()); - Assertions.assertEquals(2017974836, response.iterator().next().weeklySchedule().minute()); - Assertions.assertEquals(5182793984668664248L, response.iterator().next().weeklySchedule().usedBytes()); - Assertions.assertEquals(1426347910, response.iterator().next().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("qepqwhixmon", response.iterator().next().monthlySchedule().daysOfMonth()); - Assertions.assertEquals(927727255, response.iterator().next().monthlySchedule().hour()); - Assertions.assertEquals(171287650, response.iterator().next().monthlySchedule().minute()); - Assertions.assertEquals(9072157943517962123L, response.iterator().next().monthlySchedule().usedBytes()); - Assertions.assertEquals(true, 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 deleted file mode 100644 index ef5bed6406bf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner; -import com.azure.resourcemanager.netapp.models.DailySchedule; -import com.azure.resourcemanager.netapp.models.HourlySchedule; -import com.azure.resourcemanager.netapp.models.MonthlySchedule; -import com.azure.resourcemanager.netapp.models.SnapshotPoliciesList; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotPoliciesListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotPoliciesList model = BinaryData.fromString( - "{\"value\":[{\"etag\":\"beyvpnqicvinvkjj\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1970800751,\"minute\":1127292795,\"usedBytes\":8804003083177191933},\"dailySchedule\":{\"snapshotsToKeep\":1482696459,\"hour\":553106392,\"minute\":1827391658,\"usedBytes\":1979647328600963385},\"weeklySchedule\":{\"snapshotsToKeep\":1363862891,\"day\":\"pofncck\",\"hour\":335733577,\"minute\":2123947982,\"usedBytes\":3042520873756069098},\"monthlySchedule\":{\"snapshotsToKeep\":1513228319,\"daysOfMonth\":\"qa\",\"hour\":804013471,\"minute\":1280631673,\"usedBytes\":2612817560508512911},\"enabled\":true,\"provisioningState\":\"o\"},\"location\":\"or\",\"tags\":{\"sdbnwdcfhucqdpf\":\"tolmncwsobqw\"},\"id\":\"vglsbjjca\",\"name\":\"vxb\",\"type\":\"t\"}]}") - .toObject(SnapshotPoliciesList.class); - Assertions.assertEquals("or", model.value().get(0).location()); - Assertions.assertEquals("tolmncwsobqw", model.value().get(0).tags().get("sdbnwdcfhucqdpf")); - Assertions.assertEquals(1970800751, model.value().get(0).hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1127292795, model.value().get(0).hourlySchedule().minute()); - Assertions.assertEquals(8804003083177191933L, model.value().get(0).hourlySchedule().usedBytes()); - Assertions.assertEquals(1482696459, model.value().get(0).dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(553106392, model.value().get(0).dailySchedule().hour()); - Assertions.assertEquals(1827391658, model.value().get(0).dailySchedule().minute()); - Assertions.assertEquals(1979647328600963385L, model.value().get(0).dailySchedule().usedBytes()); - Assertions.assertEquals(1363862891, model.value().get(0).weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("pofncck", model.value().get(0).weeklySchedule().day()); - Assertions.assertEquals(335733577, model.value().get(0).weeklySchedule().hour()); - Assertions.assertEquals(2123947982, model.value().get(0).weeklySchedule().minute()); - Assertions.assertEquals(3042520873756069098L, model.value().get(0).weeklySchedule().usedBytes()); - Assertions.assertEquals(1513228319, model.value().get(0).monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("qa", model.value().get(0).monthlySchedule().daysOfMonth()); - Assertions.assertEquals(804013471, model.value().get(0).monthlySchedule().hour()); - Assertions.assertEquals(1280631673, model.value().get(0).monthlySchedule().minute()); - Assertions.assertEquals(2612817560508512911L, model.value().get(0).monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.value().get(0).enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPoliciesList model - = new SnapshotPoliciesList().withValue(Arrays.asList(new SnapshotPolicyInner().withLocation("or") - .withTags(mapOf("sdbnwdcfhucqdpf", "tolmncwsobqw")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1970800751) - .withMinute(1127292795) - .withUsedBytes(8804003083177191933L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1482696459) - .withHour(553106392) - .withMinute(1827391658) - .withUsedBytes(1979647328600963385L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1363862891) - .withDay("pofncck") - .withHour(335733577) - .withMinute(2123947982) - .withUsedBytes(3042520873756069098L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1513228319) - .withDaysOfMonth("qa") - .withHour(804013471) - .withMinute(1280631673) - .withUsedBytes(2612817560508512911L)) - .withEnabled(true))); - model = BinaryData.fromObject(model).toObject(SnapshotPoliciesList.class); - Assertions.assertEquals("or", model.value().get(0).location()); - Assertions.assertEquals("tolmncwsobqw", model.value().get(0).tags().get("sdbnwdcfhucqdpf")); - Assertions.assertEquals(1970800751, model.value().get(0).hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1127292795, model.value().get(0).hourlySchedule().minute()); - Assertions.assertEquals(8804003083177191933L, model.value().get(0).hourlySchedule().usedBytes()); - Assertions.assertEquals(1482696459, model.value().get(0).dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(553106392, model.value().get(0).dailySchedule().hour()); - Assertions.assertEquals(1827391658, model.value().get(0).dailySchedule().minute()); - Assertions.assertEquals(1979647328600963385L, model.value().get(0).dailySchedule().usedBytes()); - Assertions.assertEquals(1363862891, model.value().get(0).weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("pofncck", model.value().get(0).weeklySchedule().day()); - Assertions.assertEquals(335733577, model.value().get(0).weeklySchedule().hour()); - Assertions.assertEquals(2123947982, model.value().get(0).weeklySchedule().minute()); - Assertions.assertEquals(3042520873756069098L, model.value().get(0).weeklySchedule().usedBytes()); - Assertions.assertEquals(1513228319, model.value().get(0).monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("qa", model.value().get(0).monthlySchedule().daysOfMonth()); - Assertions.assertEquals(804013471, model.value().get(0).monthlySchedule().hour()); - Assertions.assertEquals(1280631673, model.value().get(0).monthlySchedule().minute()); - Assertions.assertEquals(2612817560508512911L, model.value().get(0).monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.value().get(0).enabled()); - } - - // 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/SnapshotPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java deleted file mode 100644 index 8dde4512472e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner; -import com.azure.resourcemanager.netapp.models.DailySchedule; -import com.azure.resourcemanager.netapp.models.HourlySchedule; -import com.azure.resourcemanager.netapp.models.MonthlySchedule; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotPolicyInner model = BinaryData.fromString( - "{\"etag\":\"dut\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":574519404,\"minute\":175295404,\"usedBytes\":8357004354243931890},\"dailySchedule\":{\"snapshotsToKeep\":1229712399,\"hour\":754766432,\"minute\":1395198209,\"usedBytes\":5859921089947739287},\"weeklySchedule\":{\"snapshotsToKeep\":585875953,\"day\":\"bgdknnqv\",\"hour\":1989846717,\"minute\":2039923498,\"usedBytes\":3284262391210683675},\"monthlySchedule\":{\"snapshotsToKeep\":577659304,\"daysOfMonth\":\"gsahmkycgrauw\",\"hour\":1509662637,\"minute\":391026651,\"usedBytes\":6617635569838446210},\"enabled\":false,\"provisioningState\":\"dmovsm\"},\"location\":\"xwabmqoe\",\"tags\":{\"mqlgk\":\"frvtpuqu\",\"ongbjcnt\":\"btndo\"},\"id\":\"jitcjedftwwaez\",\"name\":\"ojvdcpzfoqo\",\"type\":\"i\"}") - .toObject(SnapshotPolicyInner.class); - Assertions.assertEquals("xwabmqoe", model.location()); - Assertions.assertEquals("frvtpuqu", model.tags().get("mqlgk")); - Assertions.assertEquals(574519404, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(175295404, model.hourlySchedule().minute()); - Assertions.assertEquals(8357004354243931890L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1229712399, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(754766432, model.dailySchedule().hour()); - Assertions.assertEquals(1395198209, model.dailySchedule().minute()); - Assertions.assertEquals(5859921089947739287L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(585875953, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("bgdknnqv", model.weeklySchedule().day()); - Assertions.assertEquals(1989846717, model.weeklySchedule().hour()); - Assertions.assertEquals(2039923498, model.weeklySchedule().minute()); - Assertions.assertEquals(3284262391210683675L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(577659304, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("gsahmkycgrauw", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1509662637, model.monthlySchedule().hour()); - Assertions.assertEquals(391026651, model.monthlySchedule().minute()); - Assertions.assertEquals(6617635569838446210L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPolicyInner model = new SnapshotPolicyInner().withLocation("xwabmqoe") - .withTags(mapOf("mqlgk", "frvtpuqu", "ongbjcnt", "btndo")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(574519404) - .withMinute(175295404) - .withUsedBytes(8357004354243931890L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1229712399) - .withHour(754766432) - .withMinute(1395198209) - .withUsedBytes(5859921089947739287L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(585875953) - .withDay("bgdknnqv") - .withHour(1989846717) - .withMinute(2039923498) - .withUsedBytes(3284262391210683675L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(577659304) - .withDaysOfMonth("gsahmkycgrauw") - .withHour(1509662637) - .withMinute(391026651) - .withUsedBytes(6617635569838446210L)) - .withEnabled(false); - model = BinaryData.fromObject(model).toObject(SnapshotPolicyInner.class); - Assertions.assertEquals("xwabmqoe", model.location()); - Assertions.assertEquals("frvtpuqu", model.tags().get("mqlgk")); - Assertions.assertEquals(574519404, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(175295404, model.hourlySchedule().minute()); - Assertions.assertEquals(8357004354243931890L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1229712399, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(754766432, model.dailySchedule().hour()); - Assertions.assertEquals(1395198209, model.dailySchedule().minute()); - Assertions.assertEquals(5859921089947739287L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(585875953, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("bgdknnqv", model.weeklySchedule().day()); - Assertions.assertEquals(1989846717, model.weeklySchedule().hour()); - Assertions.assertEquals(2039923498, model.weeklySchedule().minute()); - Assertions.assertEquals(3284262391210683675L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(577659304, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("gsahmkycgrauw", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1509662637, model.monthlySchedule().hour()); - Assertions.assertEquals(391026651, model.monthlySchedule().minute()); - Assertions.assertEquals(6617635569838446210L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, model.enabled()); - } - - // 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/SnapshotPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java deleted file mode 100644 index 1f9b74126dc3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.DailySchedule; -import com.azure.resourcemanager.netapp.models.HourlySchedule; -import com.azure.resourcemanager.netapp.models.MonthlySchedule; -import com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotPolicyPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotPolicyPatch model = BinaryData.fromString( - "{\"location\":\"r\",\"id\":\"dsnfdsdoakgtdl\",\"name\":\"kzevdlhewpusds\",\"type\":\"wvogvbbejdc\",\"tags\":{\"ufgmjzrwrdg\":\"qmoa\",\"bminrfdwoyuhhzi\":\"twaenuuzko\"},\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1032750510,\"minute\":1209152959,\"usedBytes\":6074773218082221902},\"dailySchedule\":{\"snapshotsToKeep\":9753041,\"hour\":1101350352,\"minute\":1130868680,\"usedBytes\":1203862565285552699},\"weeklySchedule\":{\"snapshotsToKeep\":466480272,\"day\":\"qu\",\"hour\":674060065,\"minute\":1894418598,\"usedBytes\":4284376679308974213},\"monthlySchedule\":{\"snapshotsToKeep\":326357229,\"daysOfMonth\":\"z\",\"hour\":1413149705,\"minute\":2064945633,\"usedBytes\":4209147679224285340},\"enabled\":true,\"provisioningState\":\"hc\"}}") - .toObject(SnapshotPolicyPatch.class); - Assertions.assertEquals("r", model.location()); - Assertions.assertEquals("qmoa", model.tags().get("ufgmjzrwrdg")); - Assertions.assertEquals(1032750510, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1209152959, model.hourlySchedule().minute()); - Assertions.assertEquals(6074773218082221902L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(9753041, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1101350352, model.dailySchedule().hour()); - Assertions.assertEquals(1130868680, model.dailySchedule().minute()); - Assertions.assertEquals(1203862565285552699L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(466480272, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("qu", model.weeklySchedule().day()); - Assertions.assertEquals(674060065, model.weeklySchedule().hour()); - Assertions.assertEquals(1894418598, model.weeklySchedule().minute()); - Assertions.assertEquals(4284376679308974213L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(326357229, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("z", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1413149705, model.monthlySchedule().hour()); - Assertions.assertEquals(2064945633, model.monthlySchedule().minute()); - Assertions.assertEquals(4209147679224285340L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPolicyPatch model = new SnapshotPolicyPatch().withLocation("r") - .withTags(mapOf("ufgmjzrwrdg", "qmoa", "bminrfdwoyuhhzi", "twaenuuzko")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1032750510) - .withMinute(1209152959) - .withUsedBytes(6074773218082221902L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(9753041) - .withHour(1101350352) - .withMinute(1130868680) - .withUsedBytes(1203862565285552699L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(466480272) - .withDay("qu") - .withHour(674060065) - .withMinute(1894418598) - .withUsedBytes(4284376679308974213L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(326357229) - .withDaysOfMonth("z") - .withHour(1413149705) - .withMinute(2064945633) - .withUsedBytes(4209147679224285340L)) - .withEnabled(true); - model = BinaryData.fromObject(model).toObject(SnapshotPolicyPatch.class); - Assertions.assertEquals("r", model.location()); - Assertions.assertEquals("qmoa", model.tags().get("ufgmjzrwrdg")); - Assertions.assertEquals(1032750510, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1209152959, model.hourlySchedule().minute()); - Assertions.assertEquals(6074773218082221902L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(9753041, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1101350352, model.dailySchedule().hour()); - Assertions.assertEquals(1130868680, model.dailySchedule().minute()); - Assertions.assertEquals(1203862565285552699L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(466480272, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("qu", model.weeklySchedule().day()); - Assertions.assertEquals(674060065, model.weeklySchedule().hour()); - Assertions.assertEquals(1894418598, model.weeklySchedule().minute()); - Assertions.assertEquals(4284376679308974213L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(326357229, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("z", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1413149705, model.monthlySchedule().hour()); - Assertions.assertEquals(2064945633, model.monthlySchedule().minute()); - Assertions.assertEquals(4209147679224285340L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.enabled()); - } - - // 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/SnapshotPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java deleted file mode 100644 index 24b89f03f48f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties; -import com.azure.resourcemanager.netapp.models.DailySchedule; -import com.azure.resourcemanager.netapp.models.HourlySchedule; -import com.azure.resourcemanager.netapp.models.MonthlySchedule; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotPolicyProperties model = BinaryData.fromString( - "{\"hourlySchedule\":{\"snapshotsToKeep\":1540347463,\"minute\":708336176,\"usedBytes\":6230905056677671460},\"dailySchedule\":{\"snapshotsToKeep\":1453287617,\"hour\":37759464,\"minute\":1319234884,\"usedBytes\":4059865532309630153},\"weeklySchedule\":{\"snapshotsToKeep\":2028743450,\"day\":\"mciodhkhazxkhn\",\"hour\":240189382,\"minute\":1895789611,\"usedBytes\":4122808446567257102},\"monthlySchedule\":{\"snapshotsToKeep\":364905356,\"daysOfMonth\":\"kdwbwhkszz\",\"hour\":2022074677,\"minute\":1970109066,\"usedBytes\":1268636454015112326},\"enabled\":false,\"provisioningState\":\"qgsfraoyzkoow\"}") - .toObject(SnapshotPolicyProperties.class); - Assertions.assertEquals(1540347463, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(708336176, model.hourlySchedule().minute()); - Assertions.assertEquals(6230905056677671460L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1453287617, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(37759464, model.dailySchedule().hour()); - Assertions.assertEquals(1319234884, model.dailySchedule().minute()); - Assertions.assertEquals(4059865532309630153L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(2028743450, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("mciodhkhazxkhn", model.weeklySchedule().day()); - Assertions.assertEquals(240189382, model.weeklySchedule().hour()); - Assertions.assertEquals(1895789611, model.weeklySchedule().minute()); - Assertions.assertEquals(4122808446567257102L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(364905356, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("kdwbwhkszz", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(2022074677, model.monthlySchedule().hour()); - Assertions.assertEquals(1970109066, model.monthlySchedule().minute()); - Assertions.assertEquals(1268636454015112326L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPolicyProperties model = new SnapshotPolicyProperties() - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1540347463) - .withMinute(708336176) - .withUsedBytes(6230905056677671460L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1453287617) - .withHour(37759464) - .withMinute(1319234884) - .withUsedBytes(4059865532309630153L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(2028743450) - .withDay("mciodhkhazxkhn") - .withHour(240189382) - .withMinute(1895789611) - .withUsedBytes(4122808446567257102L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(364905356) - .withDaysOfMonth("kdwbwhkszz") - .withHour(2022074677) - .withMinute(1970109066) - .withUsedBytes(1268636454015112326L)) - .withEnabled(false); - model = BinaryData.fromObject(model).toObject(SnapshotPolicyProperties.class); - Assertions.assertEquals(1540347463, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(708336176, model.hourlySchedule().minute()); - Assertions.assertEquals(6230905056677671460L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1453287617, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(37759464, model.dailySchedule().hour()); - Assertions.assertEquals(1319234884, model.dailySchedule().minute()); - Assertions.assertEquals(4059865532309630153L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(2028743450, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("mciodhkhazxkhn", model.weeklySchedule().day()); - Assertions.assertEquals(240189382, model.weeklySchedule().hour()); - Assertions.assertEquals(1895789611, model.weeklySchedule().minute()); - Assertions.assertEquals(4122808446567257102L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(364905356, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("kdwbwhkszz", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(2022074677, model.monthlySchedule().hour()); - Assertions.assertEquals(1970109066, model.monthlySchedule().minute()); - Assertions.assertEquals(1268636454015112326L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, 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 deleted file mode 100644 index 2168bf1e6b56..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotProperties; - -public final class SnapshotPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotProperties model = BinaryData.fromString( - "{\"snapshotId\":\"ao\",\"created\":\"2021-02-23T21:26:17Z\",\"provisioningState\":\"pqblylsyxkqjnsj\"}") - .toObject(SnapshotProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotProperties model = new SnapshotProperties(); - model = BinaryData.fromObject(model).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 deleted file mode 100644 index 09792b548b02..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotRestoreFilesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotRestoreFiles model - = BinaryData.fromString("{\"filePaths\":[\"vti\"],\"destinationPath\":\"xsdszuempsb\"}") - .toObject(SnapshotRestoreFiles.class); - Assertions.assertEquals("vti", model.filePaths().get(0)); - Assertions.assertEquals("xsdszuempsb", model.destinationPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotRestoreFiles model - = new SnapshotRestoreFiles().withFilePaths(Arrays.asList("vti")).withDestinationPath("xsdszuempsb"); - model = BinaryData.fromObject(model).toObject(SnapshotRestoreFiles.class); - Assertions.assertEquals("vti", model.filePaths().get(0)); - Assertions.assertEquals("xsdszuempsb", 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 deleted file mode 100644 index 4018cb54e871..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.snapshots() - .delete("bmikost", "z", "kiwbuqnyoph", "fy", "sgcrpfbcunezzce", 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 deleted file mode 100644 index 760052b9dbc5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Snapshot; -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 SnapshotsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"location\":\"yqo\",\"properties\":{\"snapshotId\":\"qoxwd\",\"created\":\"2021-07-30T17:53:09Z\",\"provisioningState\":\"xiqxeiiqbimh\"},\"id\":\"wwinhehf\",\"name\":\"pofvwb\",\"type\":\"blembnkbwvqvxkd\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - Snapshot response = manager.snapshots() - .getWithResponse("zotqyryuzcb", "qqvxmvwfgtayxons", "peujlzqn", "cvsql", "nzoibgsxgnx", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("yqo", 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 deleted file mode 100644 index 9cfba7cab76b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Snapshot; -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 SnapshotsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"location\":\"kqscazuawxtzx\",\"properties\":{\"snapshotId\":\"mwabzxrvxc\",\"created\":\"2021-11-23T17:17:10Z\",\"provisioningState\":\"phai\"},\"id\":\"xyasflvgsgzw\",\"name\":\"wakoihkn\",\"type\":\"mjblmljhlny\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.snapshots() - .list("lkafhonqjuje", "ckpzvcpopmxeln", "clt", "jedexxmlf", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kqscazuawxtzx", 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 deleted file mode 100644 index 2801e9081a04..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; -import com.azure.resourcemanager.netapp.models.SnapshotsList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotsListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotsList model = BinaryData.fromString( - "{\"value\":[{\"location\":\"eddgssofw\",\"properties\":{\"snapshotId\":\"qal\",\"created\":\"2021-10-24T21:45:29Z\",\"provisioningState\":\"jijpxac\"},\"id\":\"udfnbyxba\",\"name\":\"abjy\",\"type\":\"ayffim\"},{\"location\":\"zrtuzq\",\"properties\":{\"snapshotId\":\"exn\",\"created\":\"2021-10-08T20:33:25Z\",\"provisioningState\":\"nwnwme\"},\"id\":\"syyceuzsoibjud\",\"name\":\"frxtrthzvaytdwk\",\"type\":\"brqubp\"},{\"location\":\"xhexiilivpdti\",\"properties\":{\"snapshotId\":\"tdqoaxoruzfgsq\",\"created\":\"2021-04-24T02:41:36Z\",\"provisioningState\":\"rxxle\"},\"id\":\"ramxjezwlwnw\",\"name\":\"uqlcvydy\",\"type\":\"atdooaojkniod\"}]}") - .toObject(SnapshotsList.class); - Assertions.assertEquals("eddgssofw", model.value().get(0).location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotsList model = new SnapshotsList().withValue(Arrays.asList(new SnapshotInner().withLocation("eddgssofw"), - new SnapshotInner().withLocation("zrtuzq"), new SnapshotInner().withLocation("xhexiilivpdti"))); - model = BinaryData.fromObject(model).toObject(SnapshotsList.class); - Assertions.assertEquals("eddgssofw", model.value().get(0).location()); - } -} 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 deleted file mode 100644 index 58a0471a7bdf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotsRestoreFilesMockTests { - @Test - public void testRestoreFiles() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.snapshots() - .restoreFiles("elfwy", "wl", "xjwet", "psihcla", "zvaylptrsqqw", - new SnapshotRestoreFiles().withFilePaths(Arrays.asList("cmwqkchcxwa", "fewz", "kjexfdeqvhp")) - .withDestinationPath("lkkshkbffmbmx"), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.java deleted file mode 100644 index 652af7db6d3b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Snapshot; -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 SnapshotsUpdateMockTests { - @Test - public void testUpdate() throws Exception { - String responseStr - = "{\"location\":\"dmspof\",\"properties\":{\"snapshotId\":\"uhrylniofr\",\"created\":\"2021-07-21T02:06:58Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"tkvnlvxbcuiiznkt\",\"name\":\"f\",\"type\":\"nsnvpd\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - Snapshot response = manager.snapshots() - .update("vqihebwtswbzuwf", "duragegizvc", "felisdjub", "gbqi", "kxkbsazgakgacyr", "datam", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dmspof", response.location()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java deleted file mode 100644 index 1952ff6bba4c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; - -public final class SubscriptionQuotaItemInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubscriptionQuotaItemInner model = BinaryData.fromString( - "{\"properties\":{\"current\":124550903,\"default\":1175944343},\"id\":\"kbldngkpocipa\",\"name\":\"yxoegukgjnp\",\"type\":\"ucgygevqz\"}") - .toObject(SubscriptionQuotaItemInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubscriptionQuotaItemInner model = new SubscriptionQuotaItemInner(); - model = BinaryData.fromObject(model).toObject(SubscriptionQuotaItemInner.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.java deleted file mode 100644 index 221aa7cfa312..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItemList; -import java.util.Arrays; - -public final class SubscriptionQuotaItemListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubscriptionQuotaItemList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"current\":1916962672,\"default\":972559338},\"id\":\"kg\",\"name\":\"sauuimj\",\"type\":\"vxieduugidyj\"},{\"properties\":{\"current\":857489891,\"default\":786534004},\"id\":\"svexcsonpclhoco\",\"name\":\"slkevle\",\"type\":\"gz\"},{\"properties\":{\"current\":635098272,\"default\":1240175495},\"id\":\"faxkffeii\",\"name\":\"hl\",\"type\":\"m\"},{\"properties\":{\"current\":72720177,\"default\":1090911341},\"id\":\"mzsb\",\"name\":\"zoggigrxwburvjxx\",\"type\":\"nspydptkoenkoukn\"}]}") - .toObject(SubscriptionQuotaItemList.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubscriptionQuotaItemList model - = new SubscriptionQuotaItemList().withValue(Arrays.asList(new SubscriptionQuotaItemInner(), - new SubscriptionQuotaItemInner(), new SubscriptionQuotaItemInner(), new SubscriptionQuotaItemInner())); - model = BinaryData.fromObject(model).toObject(SubscriptionQuotaItemList.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.java deleted file mode 100644 index 6f48a1e70ccd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemProperties; - -public final class SubscriptionQuotaItemPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubscriptionQuotaItemProperties model = BinaryData.fromString("{\"current\":278176639,\"default\":599264802}") - .toObject(SubscriptionQuotaItemProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubscriptionQuotaItemProperties model = new SubscriptionQuotaItemProperties(); - model = BinaryData.fromObject(model).toObject(SubscriptionQuotaItemProperties.class); - } -} 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 deleted file mode 100644 index 610e706a8ff8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumeInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumeInfoInner model = BinaryData.fromString( - "{\"properties\":{\"path\":\"ftul\",\"size\":9148960841724922095,\"parentPath\":\"ceamtm\",\"provisioningState\":\"u\"},\"id\":\"ejwcwwqiok\",\"name\":\"ssxmojms\",\"type\":\"p\"}") - .toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("ftul", model.path()); - Assertions.assertEquals(9148960841724922095L, model.size()); - Assertions.assertEquals("ceamtm", model.parentPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeInfoInner model - = new SubvolumeInfoInner().withPath("ftul").withSize(9148960841724922095L).withParentPath("ceamtm"); - model = BinaryData.fromObject(model).toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("ftul", model.path()); - Assertions.assertEquals(9148960841724922095L, model.size()); - Assertions.assertEquals("ceamtm", 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 deleted file mode 100644 index e396d43022b4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumeModelInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumeModelInner model = BinaryData.fromString( - "{\"id\":\"yklyhpluodpvruud\",\"name\":\"zibt\",\"type\":\"stgktst\",\"properties\":{\"path\":\"eclze\",\"parentPath\":\"bcvhzlhpl\",\"size\":4639837566947642597,\"bytesUsed\":7621126373333808650,\"permissions\":\"qfbumlkxtrqjf\",\"creationTimeStamp\":\"2021-09-13T05:47Z\",\"accessedTimeStamp\":\"2021-09-19T15:04:58Z\",\"modifiedTimeStamp\":\"2021-04-24T16:12:25Z\",\"changedTimeStamp\":\"2021-03-23T13:40:47Z\",\"provisioningState\":\"fwsrtawcoezbrhu\"}}") - .toObject(SubvolumeModelInner.class); - Assertions.assertEquals("eclze", model.path()); - Assertions.assertEquals("bcvhzlhpl", model.parentPath()); - Assertions.assertEquals(4639837566947642597L, model.size()); - Assertions.assertEquals(7621126373333808650L, model.bytesUsed()); - Assertions.assertEquals("qfbumlkxtrqjf", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-13T05:47Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-19T15:04:58Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-24T16:12:25Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-23T13:40:47Z"), model.changedTimestamp()); - Assertions.assertEquals("fwsrtawcoezbrhu", model.provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeModelInner model = new SubvolumeModelInner().withPath("eclze") - .withParentPath("bcvhzlhpl") - .withSize(4639837566947642597L) - .withBytesUsed(7621126373333808650L) - .withPermissions("qfbumlkxtrqjf") - .withCreationTimestamp(OffsetDateTime.parse("2021-09-13T05:47Z")) - .withAccessedTimestamp(OffsetDateTime.parse("2021-09-19T15:04:58Z")) - .withModifiedTimestamp(OffsetDateTime.parse("2021-04-24T16:12:25Z")) - .withChangedTimestamp(OffsetDateTime.parse("2021-03-23T13:40:47Z")) - .withProvisioningState("fwsrtawcoezbrhu"); - model = BinaryData.fromObject(model).toObject(SubvolumeModelInner.class); - Assertions.assertEquals("eclze", model.path()); - Assertions.assertEquals("bcvhzlhpl", model.parentPath()); - Assertions.assertEquals(4639837566947642597L, model.size()); - Assertions.assertEquals(7621126373333808650L, model.bytesUsed()); - Assertions.assertEquals("qfbumlkxtrqjf", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-13T05:47Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-19T15:04:58Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-24T16:12:25Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-23T13:40:47Z"), model.changedTimestamp()); - Assertions.assertEquals("fwsrtawcoezbrhu", 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 deleted file mode 100644 index 98533070087b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelProperties; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumeModelPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumeModelProperties model = BinaryData.fromString( - "{\"path\":\"kh\",\"parentPath\":\"ygo\",\"size\":1410009075037068900,\"bytesUsed\":9221028808795014470,\"permissions\":\"bvleorfmluiqtqzf\",\"creationTimeStamp\":\"2021-05-04T19:19:19Z\",\"accessedTimeStamp\":\"2021-06-05T20:28:23Z\",\"modifiedTimeStamp\":\"2021-03-05T04:35Z\",\"changedTimeStamp\":\"2021-05-23T06:21:06Z\",\"provisioningState\":\"ryeu\"}") - .toObject(SubvolumeModelProperties.class); - Assertions.assertEquals("kh", model.path()); - Assertions.assertEquals("ygo", model.parentPath()); - Assertions.assertEquals(1410009075037068900L, model.size()); - Assertions.assertEquals(9221028808795014470L, model.bytesUsed()); - Assertions.assertEquals("bvleorfmluiqtqzf", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-04T19:19:19Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-05T20:28:23Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-05T04:35Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-23T06:21:06Z"), model.changedTimestamp()); - Assertions.assertEquals("ryeu", model.provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeModelProperties model = new SubvolumeModelProperties().withPath("kh") - .withParentPath("ygo") - .withSize(1410009075037068900L) - .withBytesUsed(9221028808795014470L) - .withPermissions("bvleorfmluiqtqzf") - .withCreationTimestamp(OffsetDateTime.parse("2021-05-04T19:19:19Z")) - .withAccessedTimestamp(OffsetDateTime.parse("2021-06-05T20:28:23Z")) - .withModifiedTimestamp(OffsetDateTime.parse("2021-03-05T04:35Z")) - .withChangedTimestamp(OffsetDateTime.parse("2021-05-23T06:21:06Z")) - .withProvisioningState("ryeu"); - model = BinaryData.fromObject(model).toObject(SubvolumeModelProperties.class); - Assertions.assertEquals("kh", model.path()); - Assertions.assertEquals("ygo", model.parentPath()); - Assertions.assertEquals(1410009075037068900L, model.size()); - Assertions.assertEquals(9221028808795014470L, model.bytesUsed()); - Assertions.assertEquals("bvleorfmluiqtqzf", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-04T19:19:19Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-05T20:28:23Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-05T04:35Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-23T06:21:06Z"), model.changedTimestamp()); - Assertions.assertEquals("ryeu", 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 deleted file mode 100644 index 9ef3897f2d6c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumePatchParamsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumePatchParams model = BinaryData.fromString("{\"size\":3671939650811911074,\"path\":\"rc\"}") - .toObject(SubvolumePatchParams.class); - Assertions.assertEquals(3671939650811911074L, model.size()); - Assertions.assertEquals("rc", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumePatchParams model = new SubvolumePatchParams().withSize(3671939650811911074L).withPath("rc"); - model = BinaryData.fromObject(model).toObject(SubvolumePatchParams.class); - Assertions.assertEquals(3671939650811911074L, model.size()); - Assertions.assertEquals("rc", 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 deleted file mode 100644 index ed2a779b6210..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.SubvolumePatchRequest; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumePatchRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumePatchRequest model - = BinaryData.fromString("{\"properties\":{\"size\":5324799638709264406,\"path\":\"x\"}}") - .toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(5324799638709264406L, model.size()); - Assertions.assertEquals("x", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumePatchRequest model = new SubvolumePatchRequest().withSize(5324799638709264406L).withPath("x"); - model = BinaryData.fromObject(model).toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(5324799638709264406L, model.size()); - Assertions.assertEquals("x", 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 deleted file mode 100644 index a5a19974c0bf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumeProperties model = BinaryData.fromString( - "{\"path\":\"prvkwcfzqljyxgtc\",\"size\":6617307512008189308,\"parentPath\":\"bsdshmkxmaehvbbx\",\"provisioningState\":\"iplt\"}") - .toObject(SubvolumeProperties.class); - Assertions.assertEquals("prvkwcfzqljyxgtc", model.path()); - Assertions.assertEquals(6617307512008189308L, model.size()); - Assertions.assertEquals("bsdshmkxmaehvbbx", model.parentPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeProperties model = new SubvolumeProperties().withPath("prvkwcfzqljyxgtc") - .withSize(6617307512008189308L) - .withParentPath("bsdshmkxmaehvbbx"); - model = BinaryData.fromObject(model).toObject(SubvolumeProperties.class); - Assertions.assertEquals("prvkwcfzqljyxgtc", model.path()); - Assertions.assertEquals(6617307512008189308L, model.size()); - Assertions.assertEquals("bsdshmkxmaehvbbx", 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 deleted file mode 100644 index 29e5afff120c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -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 SubvolumesCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"path\":\"vwwskondcbr\",\"size\":4473926182933643908,\"parentPath\":\"qejo\",\"provisioningState\":\"Succeeded\"},\"id\":\"jqo\",\"name\":\"bpihehcecybmrqbr\",\"type\":\"bbmpxdlvykfre\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - SubvolumeInfo response = manager.subvolumes() - .define("fhjirwgdnqzbrfk") - .withExistingVolume("rbgjekglkl", "yulidwcwvm", "eg", "o") - .withPath("hzmtksjc") - .withSize(650585422726036151L) - .withParentPath("sxcdgljplkeuach") - .create(); - - Assertions.assertEquals("vwwskondcbr", response.path()); - Assertions.assertEquals(4473926182933643908L, response.size()); - Assertions.assertEquals("qejo", 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 deleted file mode 100644 index 7dbb4b2b74ab..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SubvolumesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.subvolumes() - .delete("rkolawjm", "smwr", "kcdxfzzzw", "jafi", "lhguyn", 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 deleted file mode 100644 index 624031502e69..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeModel; -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 SubvolumesGetMetadataMockTests { - @Test - public void testGetMetadata() throws Exception { - String responseStr - = "{\"id\":\"dphtv\",\"name\":\"lajv\",\"type\":\"jchcsrlzknmzla\",\"properties\":{\"path\":\"pdwvnphcn\",\"parentPath\":\"tpjhm\",\"size\":5508989168713615858,\"bytesUsed\":6447183236703446242,\"permissions\":\"iwdcxsmlzzhzd\",\"creationTimeStamp\":\"2021-11-09T09:45:39Z\",\"accessedTimeStamp\":\"2021-07-29T14:49:37Z\",\"modifiedTimeStamp\":\"2021-06-28T09:26:46Z\",\"changedTimeStamp\":\"2021-09-17T08:33:19Z\",\"provisioningState\":\"Succeeded\"}}"; - - 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("", "", AzureEnvironment.AZURE)); - - SubvolumeModel response = manager.subvolumes() - .getMetadata("chl", "mltx", "whmozusgzvlnsnnj", "fpafolpymwamxq", "rag", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pdwvnphcn", response.path()); - Assertions.assertEquals("tpjhm", response.parentPath()); - Assertions.assertEquals(5508989168713615858L, response.size()); - Assertions.assertEquals(6447183236703446242L, response.bytesUsed()); - Assertions.assertEquals("iwdcxsmlzzhzd", response.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-09T09:45:39Z"), response.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-29T14:49:37Z"), response.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T09:26:46Z"), response.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-17T08:33:19Z"), 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 deleted file mode 100644 index d4017e719146..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -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 SubvolumesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"path\":\"uuyjucejikz\",\"size\":4989085639302436817,\"parentPath\":\"tzejetjklnt\",\"provisioningState\":\"yjuzkdb\"},\"id\":\"o\",\"name\":\"xrzvhqjwtrhtgvgz\",\"type\":\"c\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - SubvolumeInfo response = manager.subvolumes() - .getWithResponse("sfuztlvtmv", "gbwidqlvh", "koveof", "zrvjfnmjmvlwyzgi", "lkujrllfojui", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("uuyjucejikz", response.path()); - Assertions.assertEquals(4989085639302436817L, response.size()); - Assertions.assertEquals("tzejetjklnt", 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 deleted file mode 100644 index b1b2dc9dde1e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -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 SubvolumesListByVolumeMockTests { - @Test - public void testListByVolume() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"path\":\"ulbmoichdlp\",\"size\":1458552691352112238,\"parentPath\":\"nt\",\"provisioningState\":\"atzviqsowsaael\"},\"id\":\"ttcjuhplrvkmjc\",\"name\":\"mjvlgfgg\",\"type\":\"vkyylizrzbjpsf\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.subvolumes() - .listByVolume("qotoihiqakydiwfb", "kwpzdqtvh", "spodaqax", "ipietgbe", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ulbmoichdlp", response.iterator().next().path()); - Assertions.assertEquals(1458552691352112238L, response.iterator().next().size()); - Assertions.assertEquals("nt", 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 deleted file mode 100644 index 8c381f4653bb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; -import com.azure.resourcemanager.netapp.models.SubvolumesList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumesListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"path\":\"aeqphchqnr\",\"size\":4162908248726599775,\"parentPath\":\"huwrykqgaifm\",\"provisioningState\":\"klbydv\"},\"id\":\"bejdznxcv\",\"name\":\"srhnjivo\",\"type\":\"v\"}],\"nextLink\":\"ovqfzge\"}") - .toObject(SubvolumesList.class); - Assertions.assertEquals("aeqphchqnr", model.value().get(0).path()); - Assertions.assertEquals(4162908248726599775L, model.value().get(0).size()); - Assertions.assertEquals("huwrykqgaifm", model.value().get(0).parentPath()); - Assertions.assertEquals("ovqfzge", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumesList model - = new SubvolumesList().withValue(Arrays.asList(new SubvolumeInfoInner().withPath("aeqphchqnr") - .withSize(4162908248726599775L) - .withParentPath("huwrykqgaifm"))).withNextLink("ovqfzge"); - model = BinaryData.fromObject(model).toObject(SubvolumesList.class); - Assertions.assertEquals("aeqphchqnr", model.value().get(0).path()); - Assertions.assertEquals(4162908248726599775L, model.value().get(0).size()); - Assertions.assertEquals("huwrykqgaifm", model.value().get(0).parentPath()); - Assertions.assertEquals("ovqfzge", model.nextLink()); - } -} 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 deleted file mode 100644 index 3c2f7bd40ab7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class SvmPeerCommandResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SvmPeerCommandResponseInner model = BinaryData.fromString("{\"svmPeeringCommand\":\"hyxxrwlycoduhpk\"}") - .toObject(SvmPeerCommandResponseInner.class); - Assertions.assertEquals("hyxxrwlycoduhpk", model.svmPeeringCommand()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SvmPeerCommandResponseInner model = new SvmPeerCommandResponseInner().withSvmPeeringCommand("hyxxrwlycoduhpk"); - model = BinaryData.fromObject(model).toObject(SvmPeerCommandResponseInner.class); - Assertions.assertEquals("hyxxrwlycoduhpk", 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 deleted file mode 100644 index f97a9aaada39..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.NetworkFeatures; -import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; -import org.junit.jupiter.api.Assertions; - -public final class UpdateNetworkSiblingSetRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateNetworkSiblingSetRequest model = BinaryData.fromString( - "{\"networkSiblingSetId\":\"bt\",\"subnetId\":\"wrqpue\",\"networkSiblingSetStateId\":\"ckzywbiexzfeyue\",\"networkFeatures\":\"Standard_Basic\"}") - .toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("bt", model.networkSiblingSetId()); - Assertions.assertEquals("wrqpue", model.subnetId()); - Assertions.assertEquals("ckzywbiexzfeyue", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateNetworkSiblingSetRequest model = new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("bt") - .withSubnetId("wrqpue") - .withNetworkSiblingSetStateId("ckzywbiexzfeyue") - .withNetworkFeatures(NetworkFeatures.STANDARD_BASIC); - model = BinaryData.fromObject(model).toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("bt", model.networkSiblingSetId()); - Assertions.assertEquals("wrqpue", model.subnetId()); - Assertions.assertEquals("ckzywbiexzfeyue", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); - } -} 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 deleted file mode 100644 index 6d7ddbd06897..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.UserAssignedIdentity; - -public final class UserAssignedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"21f4a1bf-897e-4508-b0d7-cb1bbbdf1afa\",\"clientId\":\"c9d9b013-01f2-44e3-9534-5f81ffb1ac2f\"}") - .toObject(UserAssignedIdentity.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAssignedIdentity model = new UserAssignedIdentity(); - model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupPropertiesTests.java deleted file mode 100644 index 62481499d388..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupPropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeBackupProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumeBackupPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeBackupProperties model = BinaryData - .fromString( - "{\"backupPolicyId\":\"ldnkwwtppjfl\",\"policyEnforced\":false,\"backupVaultId\":\"aokonzmnsik\"}") - .toObject(VolumeBackupProperties.class); - Assertions.assertEquals("ldnkwwtppjfl", model.backupPolicyId()); - Assertions.assertEquals(false, model.policyEnforced()); - Assertions.assertEquals("aokonzmnsik", model.backupVaultId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeBackupProperties model = new VolumeBackupProperties().withBackupPolicyId("ldnkwwtppjfl") - .withPolicyEnforced(false) - .withBackupVaultId("aokonzmnsik"); - model = BinaryData.fromObject(model).toObject(VolumeBackupProperties.class); - Assertions.assertEquals("ldnkwwtppjfl", model.backupPolicyId()); - Assertions.assertEquals(false, model.policyEnforced()); - Assertions.assertEquals("aokonzmnsik", model.backupVaultId()); - } -} 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 deleted file mode 100644 index 1fd9a6facfaf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeBackups; -import org.junit.jupiter.api.Assertions; - -public final class VolumeBackupsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeBackups model = BinaryData.fromString( - "{\"volumeName\":\"iibfggj\",\"volumeResourceId\":\"olvrw\",\"backupsCount\":148831092,\"policyEnabled\":false}") - .toObject(VolumeBackups.class); - Assertions.assertEquals("iibfggj", model.volumeName()); - Assertions.assertEquals("olvrw", model.volumeResourceId()); - Assertions.assertEquals(148831092, model.backupsCount()); - Assertions.assertEquals(false, model.policyEnabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeBackups model = new VolumeBackups().withVolumeName("iibfggj") - .withVolumeResourceId("olvrw") - .withBackupsCount(148831092) - .withPolicyEnabled(false); - model = BinaryData.fromObject(model).toObject(VolumeBackups.class); - Assertions.assertEquals("iibfggj", model.volumeName()); - Assertions.assertEquals("olvrw", model.volumeResourceId()); - Assertions.assertEquals(148831092, model.backupsCount()); - Assertions.assertEquals(false, 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 deleted file mode 100644 index 465d163b27e1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumeGroupsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumeGroups().delete("hotj", "wlpxuzzjg", "refqy", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.java deleted file mode 100644 index 8796f4803ac9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; -import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumePatchPropertiesDataProtectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePatchPropertiesDataProtection model = BinaryData.fromString( - "{\"backup\":{\"backupPolicyId\":\"knso\",\"policyEnforced\":false,\"backupVaultId\":\"xbldtlwwrlkdmtn\"},\"snapshot\":{\"snapshotPolicyId\":\"kotl\"}}") - .toObject(VolumePatchPropertiesDataProtection.class); - Assertions.assertEquals("knso", model.backup().backupPolicyId()); - Assertions.assertEquals(false, model.backup().policyEnforced()); - Assertions.assertEquals("xbldtlwwrlkdmtn", model.backup().backupVaultId()); - Assertions.assertEquals("kotl", model.snapshot().snapshotPolicyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatchPropertiesDataProtection model = new VolumePatchPropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("knso") - .withPolicyEnforced(false) - .withBackupVaultId("xbldtlwwrlkdmtn")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("kotl")); - model = BinaryData.fromObject(model).toObject(VolumePatchPropertiesDataProtection.class); - Assertions.assertEquals("knso", model.backup().backupPolicyId()); - Assertions.assertEquals(false, model.backup().policyEnforced()); - Assertions.assertEquals("xbldtlwwrlkdmtn", model.backup().backupVaultId()); - Assertions.assertEquals("kotl", model.snapshot().snapshotPolicyId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java deleted file mode 100644 index 08f562b3a03d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ChownMode; -import com.azure.resourcemanager.netapp.models.ExportPolicyRule; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VolumePatchPropertiesExportPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePatchPropertiesExportPolicy model = BinaryData.fromString( - "{\"rules\":[{\"ruleIndex\":486073857,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"npcdpumnzgm\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"}]}") - .toObject(VolumePatchPropertiesExportPolicy.class); - Assertions.assertEquals(486073857, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(true, model.rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).unixReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).cifs()); - Assertions.assertEquals(true, model.rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.rules().get(0).nfsv41()); - Assertions.assertEquals("npcdpumnzgm", model.rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.RESTRICTED, model.rules().get(0).chownMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatchPropertiesExportPolicy model = new VolumePatchPropertiesExportPolicy() - .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(486073857) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(true) - .withNfsv41(true) - .withAllowedClients("npcdpumnzgm") - .withHasRootAccess(false) - .withChownMode(ChownMode.RESTRICTED))); - model = BinaryData.fromObject(model).toObject(VolumePatchPropertiesExportPolicy.class); - Assertions.assertEquals(486073857, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(true, model.rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).unixReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).cifs()); - Assertions.assertEquals(true, model.rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.rules().get(0).nfsv41()); - Assertions.assertEquals("npcdpumnzgm", model.rules().get(0).allowedClients()); - Assertions.assertEquals(false, 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/VolumePatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java deleted file mode 100644 index c81eefbdb4eb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties; -import com.azure.resourcemanager.netapp.models.ChownMode; -import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy; -import com.azure.resourcemanager.netapp.models.ExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration; -import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; -import com.azure.resourcemanager.netapp.models.VolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; -import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VolumePatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePatchProperties model = BinaryData.fromString( - "{\"serviceLevel\":\"Premium\",\"usageThreshold\":5529528892048026868,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1736041382,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"hkoymkcdyhbp\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":668813662,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"sytgadgvraea\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"}]},\"protocolTypes\":[\"rrwlquuijfqkace\",\"iipfpubj\"],\"throughputMibps\":80.4325,\"dataProtection\":{\"backup\":{\"backupPolicyId\":\"tohqkvpuvksgp\",\"policyEnforced\":true,\"backupVaultId\":\"nynfsynljphuo\"},\"snapshot\":{\"snapshotPolicyId\":\"dlqiyntorzih\"}},\"isDefaultQuotaEnabled\":false,\"defaultUserQuotaInKiBs\":1763238729707641338,\"defaultGroupQuotaInKiBs\":8731733727418388460,\"unixPermissions\":\"slyzrpzbchckqq\",\"coolAccess\":true,\"coolnessPeriod\":671328296,\"coolAccessRetrievalPolicy\":\"OnRead\",\"snapshotDirectoryVisible\":false,\"smbAccessBasedEnumeration\":\"Disabled\",\"smbNonBrowsable\":\"Enabled\"}") - .toObject(VolumePatchProperties.class); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(5529528892048026868L, model.usageThreshold()); - Assertions.assertEquals(1736041382, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).cifs()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("hkoymkcdyhbp", model.exportPolicy().rules().get(0).allowedClients()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("rrwlquuijfqkace", model.protocolTypes().get(0)); - Assertions.assertEquals(80.4325F, model.throughputMibps()); - Assertions.assertEquals("tohqkvpuvksgp", model.dataProtection().backup().backupPolicyId()); - Assertions.assertEquals(true, model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("nynfsynljphuo", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("dlqiyntorzih", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(false, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(1763238729707641338L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(8731733727418388460L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("slyzrpzbchckqq", model.unixPermissions()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(671328296, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.ON_READ, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(false, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, model.smbAccessBasedEnumeration()); - Assertions.assertEquals(SmbNonBrowsable.ENABLED, model.smbNonBrowsable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatchProperties model = new VolumePatchProperties().withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(5529528892048026868L) - .withExportPolicy(new VolumePatchPropertiesExportPolicy().withRules(Arrays.asList( - new ExportPolicyRule().withRuleIndex(1736041382) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("hkoymkcdyhbp") - .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule().withRuleIndex(668813662) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(true) - .withNfsv41(true) - .withAllowedClients("sytgadgvraea") - .withHasRootAccess(false) - .withChownMode(ChownMode.RESTRICTED)))) - .withProtocolTypes(Arrays.asList("rrwlquuijfqkace", "iipfpubj")) - .withThroughputMibps(80.4325F) - .withDataProtection(new VolumePatchPropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("tohqkvpuvksgp") - .withPolicyEnforced(true) - .withBackupVaultId("nynfsynljphuo")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("dlqiyntorzih"))) - .withIsDefaultQuotaEnabled(false) - .withDefaultUserQuotaInKiBs(1763238729707641338L) - .withDefaultGroupQuotaInKiBs(8731733727418388460L) - .withUnixPermissions("slyzrpzbchckqq") - .withCoolAccess(true) - .withCoolnessPeriod(671328296) - .withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy.ON_READ) - .withSnapshotDirectoryVisible(false) - .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED) - .withSmbNonBrowsable(SmbNonBrowsable.ENABLED); - model = BinaryData.fromObject(model).toObject(VolumePatchProperties.class); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(5529528892048026868L, model.usageThreshold()); - Assertions.assertEquals(1736041382, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).cifs()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("hkoymkcdyhbp", model.exportPolicy().rules().get(0).allowedClients()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("rrwlquuijfqkace", model.protocolTypes().get(0)); - Assertions.assertEquals(80.4325F, model.throughputMibps()); - Assertions.assertEquals("tohqkvpuvksgp", model.dataProtection().backup().backupPolicyId()); - Assertions.assertEquals(true, model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("nynfsynljphuo", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("dlqiyntorzih", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(false, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(1763238729707641338L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(8731733727418388460L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("slyzrpzbchckqq", model.unixPermissions()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(671328296, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.ON_READ, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(false, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, model.smbAccessBasedEnumeration()); - Assertions.assertEquals(SmbNonBrowsable.ENABLED, model.smbNonBrowsable()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java deleted file mode 100644 index eabbafa23296..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ChownMode; -import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy; -import com.azure.resourcemanager.netapp.models.ExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration; -import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; -import com.azure.resourcemanager.netapp.models.VolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.VolumePatch; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; -import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumePatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePatch model = BinaryData.fromString( - "{\"properties\":{\"serviceLevel\":\"Flexible\",\"usageThreshold\":5460739394049509501,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1665526827,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"dcvd\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1383619855,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"xrslpm\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":966378800,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"vmbmp\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1745081298,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"kcpwiy\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"}]},\"protocolTypes\":[\"bexkpzksmondj\"],\"throughputMibps\":87.20647,\"dataProtection\":{\"backup\":{\"backupPolicyId\":\"pomgkopkwhojvp\",\"policyEnforced\":false,\"backupVaultId\":\"xysmoc\"},\"snapshot\":{\"snapshotPolicyId\":\"fqvm\"}},\"isDefaultQuotaEnabled\":false,\"defaultUserQuotaInKiBs\":9205614201426151802,\"defaultGroupQuotaInKiBs\":5899001695027882086,\"unixPermissions\":\"lxprglyatddckcbc\",\"coolAccess\":true,\"coolnessPeriod\":465544934,\"coolAccessRetrievalPolicy\":\"Never\",\"snapshotDirectoryVisible\":false,\"smbAccessBasedEnumeration\":\"Enabled\",\"smbNonBrowsable\":\"Disabled\"},\"location\":\"hos\",\"tags\":{\"hwflu\":\"qrhzoymibmrqyib\",\"voqacpiexpbt\":\"zdtmhrkwofy\",\"nqxwbp\":\"iwbwoenwashrtdtk\"},\"id\":\"kulpiujwaasi\",\"name\":\"qiiobyuqer\",\"type\":\"qlpqwcciuq\"}") - .toObject(VolumePatch.class); - Assertions.assertEquals("hos", model.location()); - Assertions.assertEquals("qrhzoymibmrqyib", model.tags().get("hwflu")); - Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.serviceLevel()); - Assertions.assertEquals(5460739394049509501L, model.usageThreshold()); - Assertions.assertEquals(1665526827, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).cifs()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("dcvd", model.exportPolicy().rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("bexkpzksmondj", model.protocolTypes().get(0)); - Assertions.assertEquals(87.20647F, model.throughputMibps()); - Assertions.assertEquals("pomgkopkwhojvp", model.dataProtection().backup().backupPolicyId()); - Assertions.assertEquals(false, model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("xysmoc", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("fqvm", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(false, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(9205614201426151802L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(5899001695027882086L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("lxprglyatddckcbc", model.unixPermissions()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(465544934, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.NEVER, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(false, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.ENABLED, model.smbAccessBasedEnumeration()); - Assertions.assertEquals(SmbNonBrowsable.DISABLED, model.smbNonBrowsable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatch model = new VolumePatch().withLocation("hos") - .withTags(mapOf("hwflu", "qrhzoymibmrqyib", "voqacpiexpbt", "zdtmhrkwofy", "nqxwbp", "iwbwoenwashrtdtk")) - .withServiceLevel(ServiceLevel.FLEXIBLE) - .withUsageThreshold(5460739394049509501L) - .withExportPolicy(new VolumePatchPropertiesExportPolicy().withRules(Arrays.asList( - new ExportPolicyRule().withRuleIndex(1665526827) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(false) - .withNfsv3(true) - .withNfsv41(false) - .withAllowedClients("dcvd") - .withHasRootAccess(false) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule().withRuleIndex(1383619855) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(true) - .withNfsv41(false) - .withAllowedClients("xrslpm") - .withHasRootAccess(false) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule().withRuleIndex(966378800) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(true) - .withNfsv41(false) - .withAllowedClients("vmbmp") - .withHasRootAccess(true) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule().withRuleIndex(1745081298) - .withUnixReadOnly(false) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("kcpwiy") - .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED)))) - .withProtocolTypes(Arrays.asList("bexkpzksmondj")) - .withThroughputMibps(87.20647F) - .withDataProtection(new VolumePatchPropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("pomgkopkwhojvp") - .withPolicyEnforced(false) - .withBackupVaultId("xysmoc")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("fqvm"))) - .withIsDefaultQuotaEnabled(false) - .withDefaultUserQuotaInKiBs(9205614201426151802L) - .withDefaultGroupQuotaInKiBs(5899001695027882086L) - .withUnixPermissions("lxprglyatddckcbc") - .withCoolAccess(true) - .withCoolnessPeriod(465544934) - .withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy.NEVER) - .withSnapshotDirectoryVisible(false) - .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.ENABLED) - .withSmbNonBrowsable(SmbNonBrowsable.DISABLED); - model = BinaryData.fromObject(model).toObject(VolumePatch.class); - Assertions.assertEquals("hos", model.location()); - Assertions.assertEquals("qrhzoymibmrqyib", model.tags().get("hwflu")); - Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.serviceLevel()); - Assertions.assertEquals(5460739394049509501L, model.usageThreshold()); - Assertions.assertEquals(1665526827, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).cifs()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("dcvd", model.exportPolicy().rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("bexkpzksmondj", model.protocolTypes().get(0)); - Assertions.assertEquals(87.20647F, model.throughputMibps()); - Assertions.assertEquals("pomgkopkwhojvp", model.dataProtection().backup().backupPolicyId()); - Assertions.assertEquals(false, model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("xysmoc", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("fqvm", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(false, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(9205614201426151802L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(5899001695027882086L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("lxprglyatddckcbc", model.unixPermissions()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(465544934, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.NEVER, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(false, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.ENABLED, model.smbAccessBasedEnumeration()); - Assertions.assertEquals(SmbNonBrowsable.DISABLED, model.smbNonBrowsable()); - } - - // 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/VolumePropertiesDataProtectionTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesDataProtectionTests.java deleted file mode 100644 index d93c1f343576..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesDataProtectionTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.EndpointType; -import com.azure.resourcemanager.netapp.models.RemotePath; -import com.azure.resourcemanager.netapp.models.ReplicationObject; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -import com.azure.resourcemanager.netapp.models.VolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; -import com.azure.resourcemanager.netapp.models.VolumeRelocationProperties; -import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumePropertiesDataProtectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePropertiesDataProtection model = BinaryData.fromString( - "{\"backup\":{\"backupPolicyId\":\"fthnzdn\",\"policyEnforced\":false,\"backupVaultId\":\"nayqi\"},\"replication\":{\"replicationId\":\"duhavhqlkt\",\"endpointType\":\"dst\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"lbg\",\"remotePath\":{\"externalHostName\":\"duiertgcc\",\"serverName\":\"mvaolps\",\"volumeName\":\"lqlfm\"},\"remoteVolumeRegion\":\"n\",\"destinationReplications\":[{\"resourceId\":\"zpswiydmc\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"dxssadbzm\",\"zone\":\"dfznudaodv\"},{\"resourceId\":\"bncblylpstdbhhx\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"zucerscdntnev\",\"zone\":\"wjmy\"},{\"resourceId\":\"dsslswt\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"iofz\",\"zone\":\"qsemwabne\"}]},\"snapshot\":{\"snapshotPolicyId\":\"hszhedplvwiwu\"},\"volumeRelocation\":{\"relocationRequested\":false,\"readyToBeFinalized\":false}}") - .toObject(VolumePropertiesDataProtection.class); - Assertions.assertEquals("fthnzdn", model.backup().backupPolicyId()); - Assertions.assertEquals(false, model.backup().policyEnforced()); - Assertions.assertEquals("nayqi", model.backup().backupVaultId()); - Assertions.assertEquals(EndpointType.DST, model.replication().endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replication().replicationSchedule()); - Assertions.assertEquals("lbg", model.replication().remoteVolumeResourceId()); - Assertions.assertEquals("duiertgcc", model.replication().remotePath().externalHostname()); - Assertions.assertEquals("mvaolps", model.replication().remotePath().serverName()); - Assertions.assertEquals("lqlfm", model.replication().remotePath().volumeName()); - Assertions.assertEquals("n", model.replication().remoteVolumeRegion()); - Assertions.assertEquals("hszhedplvwiwu", model.snapshot().snapshotPolicyId()); - Assertions.assertEquals(false, model.volumeRelocation().relocationRequested()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePropertiesDataProtection model = new VolumePropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("fthnzdn") - .withPolicyEnforced(false) - .withBackupVaultId("nayqi")) - .withReplication(new ReplicationObject().withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.HOURLY) - .withRemoteVolumeResourceId("lbg") - .withRemotePath(new RemotePath().withExternalHostname("duiertgcc") - .withServerName("mvaolps") - .withVolumeName("lqlfm")) - .withRemoteVolumeRegion("n")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("hszhedplvwiwu")) - .withVolumeRelocation(new VolumeRelocationProperties().withRelocationRequested(false)); - model = BinaryData.fromObject(model).toObject(VolumePropertiesDataProtection.class); - Assertions.assertEquals("fthnzdn", model.backup().backupPolicyId()); - Assertions.assertEquals(false, model.backup().policyEnforced()); - Assertions.assertEquals("nayqi", model.backup().backupVaultId()); - Assertions.assertEquals(EndpointType.DST, model.replication().endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replication().replicationSchedule()); - Assertions.assertEquals("lbg", model.replication().remoteVolumeResourceId()); - Assertions.assertEquals("duiertgcc", model.replication().remotePath().externalHostname()); - Assertions.assertEquals("mvaolps", model.replication().remotePath().serverName()); - Assertions.assertEquals("lqlfm", model.replication().remotePath().volumeName()); - Assertions.assertEquals("n", model.replication().remoteVolumeRegion()); - Assertions.assertEquals("hszhedplvwiwu", model.snapshot().snapshotPolicyId()); - Assertions.assertEquals(false, model.volumeRelocation().relocationRequested()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.java deleted file mode 100644 index 0dd8cba91b54..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ChownMode; -import com.azure.resourcemanager.netapp.models.ExportPolicyRule; -import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VolumePropertiesExportPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePropertiesExportPolicy model = BinaryData.fromString( - "{\"rules\":[{\"ruleIndex\":393815457,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"blytk\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1562521656,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"vasrruvwb\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"},{\"ruleIndex\":332567109,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"t\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"}]}") - .toObject(VolumePropertiesExportPolicy.class); - Assertions.assertEquals(393815457, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(false, model.rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).unixReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).cifs()); - Assertions.assertEquals(false, model.rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.rules().get(0).nfsv41()); - Assertions.assertEquals("blytk", model.rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.rules().get(0).chownMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePropertiesExportPolicy model = new VolumePropertiesExportPolicy().withRules(Arrays.asList( - new ExportPolicyRule().withRuleIndex(393815457) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("blytk") - .withHasRootAccess(false) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule().withRuleIndex(1562521656) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(true) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("vasrruvwb") - .withHasRootAccess(true) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule().withRuleIndex(332567109) - .withUnixReadOnly(false) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("t") - .withHasRootAccess(false) - .withChownMode(ChownMode.UNRESTRICTED))); - model = BinaryData.fromObject(model).toObject(VolumePropertiesExportPolicy.class); - Assertions.assertEquals(393815457, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(false, model.rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).unixReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).cifs()); - Assertions.assertEquals(false, model.rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.rules().get(0).nfsv41()); - Assertions.assertEquals("blytk", model.rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.rules().get(0).chownMode()); - } -} 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 deleted file mode 100644 index ba6a5a1f3e12..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner; -import com.azure.resourcemanager.netapp.models.Type; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumeQuotaRuleInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeQuotaRuleInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Moving\",\"quotaSizeInKiBs\":2185926262396381637,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"zphv\"},\"location\":\"uyqncygupkvipmd\",\"tags\":{\"totxhojujb\":\"xqupevzhf\"},\"id\":\"pelmcuvhixbjxyf\",\"name\":\"n\",\"type\":\"lrcoolsttpki\"}") - .toObject(VolumeQuotaRuleInner.class); - Assertions.assertEquals("uyqncygupkvipmd", model.location()); - Assertions.assertEquals("xqupevzhf", model.tags().get("totxhojujb")); - Assertions.assertEquals(2185926262396381637L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("zphv", model.quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRuleInner model = new VolumeQuotaRuleInner().withLocation("uyqncygupkvipmd") - .withTags(mapOf("totxhojujb", "xqupevzhf")) - .withQuotaSizeInKiBs(2185926262396381637L) - .withQuotaType(Type.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("zphv"); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRuleInner.class); - Assertions.assertEquals("uyqncygupkvipmd", model.location()); - Assertions.assertEquals("xqupevzhf", model.tags().get("totxhojujb")); - Assertions.assertEquals(2185926262396381637L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("zphv", model.quotaTarget()); - } - - // 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/VolumeQuotaRulePatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java deleted file mode 100644 index 95e5b79eced7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumeQuotaRulePatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeQuotaRulePatch model = BinaryData.fromString( - "{\"tags\":{\"xcbihw\":\"ithtywu\",\"twjchrdg\":\"knfd\"},\"properties\":{\"provisioningState\":\"Creating\",\"quotaSizeInKiBs\":7107037042754238104,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"ndz\"}}") - .toObject(VolumeQuotaRulePatch.class); - Assertions.assertEquals("ithtywu", model.tags().get("xcbihw")); - Assertions.assertEquals(7107037042754238104L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("ndz", model.quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRulePatch model = new VolumeQuotaRulePatch().withTags(mapOf("xcbihw", "ithtywu", "twjchrdg", "knfd")) - .withQuotaSizeInKiBs(7107037042754238104L) - .withQuotaType(Type.DEFAULT_USER_QUOTA) - .withQuotaTarget("ndz"); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRulePatch.class); - Assertions.assertEquals("ithtywu", model.tags().get("xcbihw")); - Assertions.assertEquals(7107037042754238104L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("ndz", model.quotaTarget()); - } - - // 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/VolumeQuotaRulesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java deleted file mode 100644 index 252460f4a509..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -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 VolumeQuotaRulesCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":8137290998530659210,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"bze\"},\"location\":\"whoqhnlbqnbldxe\",\"tags\":{\"oucs\":\"gschorimkrsrr\"},\"id\":\"fldpuviyfc\",\"name\":\"abeolhbhlvbm\",\"type\":\"uqibsxtkcu\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - VolumeQuotaRule response = manager.volumeQuotaRules() - .define("ybww") - .withRegion("f") - .withExistingVolume("dtfgxqbawpcbb", "zqcyknap", "ofyuicd", "zb") - .withTags(mapOf("ccrrvweyoxoyyu", "muvapc", "oqboshbragapyyr", "phaimmoi", "pavbo", "fsv")) - .withQuotaSizeInKiBs(3215408047972779814L) - .withQuotaType(Type.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("m") - .create(); - - Assertions.assertEquals("whoqhnlbqnbldxe", response.location()); - Assertions.assertEquals("gschorimkrsrr", response.tags().get("oucs")); - Assertions.assertEquals(8137290998530659210L, response.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, response.quotaType()); - Assertions.assertEquals("bze", response.quotaTarget()); - } - - // 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/VolumeQuotaRulesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java deleted file mode 100644 index 91bee8bea1f8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumeQuotaRulesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumeQuotaRules() - .delete("rxklobdxnazpmk", "lmv", "vfxzopjh", "zxlioh", "d", 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 deleted file mode 100644 index bd16d98cf489..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -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 VolumeQuotaRulesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Patching\",\"quotaSizeInKiBs\":8259010476237708124,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"ngnbdxxew\"},\"location\":\"invudbch\",\"tags\":{\"crqctmxxdtddmflh\":\"tvq\",\"voxczytpr\":\"ytxzvtznapxbanno\"},\"id\":\"nwvroevytlyokrr\",\"name\":\"o\",\"type\":\"uxvnsasbcrymodi\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - VolumeQuotaRule response = manager.volumeQuotaRules() - .getWithResponse("nsduugwbsre", "rfqkfuar", "nlvhhtklnvnafvv", "yfedevjbo", "lcqxypokk", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("invudbch", response.location()); - Assertions.assertEquals("tvq", response.tags().get("crqctmxxdtddmflh")); - Assertions.assertEquals(8259010476237708124L, response.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, response.quotaType()); - Assertions.assertEquals("ngnbdxxew", 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 deleted file mode 100644 index 5b98db532702..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -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 VolumeQuotaRulesListByVolumeMockTests { - @Test - public void testListByVolume() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":3989297053775783525,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"oxaxm\"},\"location\":\"qalhhjnh\",\"tags\":{\"qtanarfdlpuk\":\"dyynfsvkhgb\",\"neizjcpe\":\"py\",\"hpfpazjzoywjxhp\":\"gkhnmgbrouxddbh\"},\"id\":\"ulontacnpqwteht\",\"name\":\"evrh\",\"type\":\"ljyoogwx\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.volumeQuotaRules() - .listByVolume("etndnbfqyggagf", "nlgmtrwahzjmu", "ftbyrplro", "kpigqfusu", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qalhhjnh", response.iterator().next().location()); - Assertions.assertEquals("dyynfsvkhgb", response.iterator().next().tags().get("qtanarfdlpuk")); - Assertions.assertEquals(3989297053775783525L, response.iterator().next().quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, response.iterator().next().quotaType()); - Assertions.assertEquals("oxaxm", 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 deleted file mode 100644 index e27de5a7e022..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRulesList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumeQuotaRulesListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeQuotaRulesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":4753379128237183611,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"tsgumhj\"},\"location\":\"ikkx\",\"tags\":{\"vuzlm\":\"olbq\"},\"id\":\"felfktg\",\"name\":\"lcrpw\",\"type\":\"xeznoi\"},{\"properties\":{\"provisioningState\":\"Patching\",\"quotaSizeInKiBs\":336408309015246228,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"nbsazejjoqkag\"},\"location\":\"sxtta\",\"tags\":{\"mkqjj\":\"xnfaazpxdtnk\",\"pyouaibrebqaays\":\"wuenvr\"},\"id\":\"kixqtnqtt\",\"name\":\"zlwfffiakp\",\"type\":\"pqqmted\"}]}") - .toObject(VolumeQuotaRulesList.class); - Assertions.assertEquals("ikkx", model.value().get(0).location()); - Assertions.assertEquals("olbq", model.value().get(0).tags().get("vuzlm")); - Assertions.assertEquals(4753379128237183611L, model.value().get(0).quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("tsgumhj", model.value().get(0).quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRulesList model = new VolumeQuotaRulesList().withValue(Arrays.asList( - new VolumeQuotaRuleInner().withLocation("ikkx") - .withTags(mapOf("vuzlm", "olbq")) - .withQuotaSizeInKiBs(4753379128237183611L) - .withQuotaType(Type.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("tsgumhj"), - new VolumeQuotaRuleInner().withLocation("sxtta") - .withTags(mapOf("mkqjj", "xnfaazpxdtnk", "pyouaibrebqaays", "wuenvr")) - .withQuotaSizeInKiBs(336408309015246228L) - .withQuotaType(Type.DEFAULT_USER_QUOTA) - .withQuotaTarget("nbsazejjoqkag"))); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesList.class); - Assertions.assertEquals("ikkx", model.value().get(0).location()); - Assertions.assertEquals("olbq", model.value().get(0).tags().get("vuzlm")); - Assertions.assertEquals(4753379128237183611L, model.value().get(0).quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("tsgumhj", model.value().get(0).quotaTarget()); - } - - // 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/VolumeQuotaRulesPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java deleted file mode 100644 index bc3634a52bf7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRulesProperties; -import com.azure.resourcemanager.netapp.models.Type; -import org.junit.jupiter.api.Assertions; - -public final class VolumeQuotaRulesPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeQuotaRulesProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Moving\",\"quotaSizeInKiBs\":1232834909698748994,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"wvtylbfpncurdo\"}") - .toObject(VolumeQuotaRulesProperties.class); - Assertions.assertEquals(1232834909698748994L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("wvtylbfpncurdo", model.quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRulesProperties model = new VolumeQuotaRulesProperties().withQuotaSizeInKiBs(1232834909698748994L) - .withQuotaType(Type.INDIVIDUAL_USER_QUOTA) - .withQuotaTarget("wvtylbfpncurdo"); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesProperties.class); - Assertions.assertEquals(1232834909698748994L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("wvtylbfpncurdo", model.quotaTarget()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.java deleted file mode 100644 index 7ebdaf532ab9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeRelocationProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumeRelocationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeRelocationProperties model - = BinaryData.fromString("{\"relocationRequested\":false,\"readyToBeFinalized\":false}") - .toObject(VolumeRelocationProperties.class); - Assertions.assertEquals(false, model.relocationRequested()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeRelocationProperties model = new VolumeRelocationProperties().withRelocationRequested(false); - model = BinaryData.fromObject(model).toObject(VolumeRelocationProperties.class); - Assertions.assertEquals(false, model.relocationRequested()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRevertTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRevertTests.java deleted file mode 100644 index bb66f6858295..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRevertTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeRevert; -import org.junit.jupiter.api.Assertions; - -public final class VolumeRevertTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeRevert model = BinaryData.fromString("{\"snapshotId\":\"d\"}").toObject(VolumeRevert.class); - Assertions.assertEquals("d", model.snapshotId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeRevert model = new VolumeRevert().withSnapshotId("d"); - model = BinaryData.fromObject(model).toObject(VolumeRevert.class); - Assertions.assertEquals("d", model.snapshotId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeSnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeSnapshotPropertiesTests.java deleted file mode 100644 index 3915fa036e8c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeSnapshotPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumeSnapshotPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeSnapshotProperties model = BinaryData.fromString("{\"snapshotPolicyId\":\"dkzzewkfvhqcrail\"}") - .toObject(VolumeSnapshotProperties.class); - Assertions.assertEquals("dkzzewkfvhqcrail", model.snapshotPolicyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeSnapshotProperties model = new VolumeSnapshotProperties().withSnapshotPolicyId("dkzzewkfvhqcrail"); - model = BinaryData.fromObject(model).toObject(VolumeSnapshotProperties.class); - Assertions.assertEquals("dkzzewkfvhqcrail", model.snapshotPolicyId()); - } -} 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 deleted file mode 100644 index a4764c1b14fd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SvmPeerCommandResponse; -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 VolumesAuthorizeExternalReplicationMockTests { - @Test - public void testAuthorizeExternalReplication() throws Exception { - String responseStr = "{\"svmPeeringCommand\":\"ex\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - SvmPeerCommandResponse response = manager.volumes() - .authorizeExternalReplication("hzvechndbnwieho", "ewjwiuubw", "fqsfa", "aqtferr", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ex", response.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 deleted file mode 100644 index 587ea7e7bb7e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.AuthorizeRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesAuthorizeReplicationMockTests { - @Test - public void testAuthorizeReplication() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumes() - .authorizeReplication("onqzinkfkbgbzbow", "eqocljmygvk", "qkjjeokbz", "fezrx", - new AuthorizeRequest().withRemoteVolumeResourceId("zurtleipqxbkwvz"), 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 deleted file mode 100644 index 36bfdb8e8324..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesBreakFileLocksMockTests { - @Test - public void testBreakFileLocks() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumes() - .breakFileLocks("jrcg", "gydcw", "oxjumvqqo", "ihrraiouaub", - new BreakFileLocksRequest().withClientIp("tloqxfuojrn").withConfirmRunningDisruptiveOperation(false), - 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 deleted file mode 100644 index 3df46a64a3ea..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesBreakReplicationMockTests { - @Test - public void testBreakReplication() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumes() - .breakReplication("etnluankrrfx", "eebtijvacvb", "qzbqqxlajrnwxa", "evehjkuyxoaf", - 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 deleted file mode 100644 index 54e1616eafa3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesDeleteReplicationMockTests { - @Test - public void testDeleteReplication() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumes() - .deleteReplication("ibcysihsgqc", "dhohsdtmcdzsuf", "ohdxbzlmcmu", "pcvhdbevwqqxeys", - 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 deleted file mode 100644 index 3b3d85988d68..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesFinalizeRelocationMockTests { - @Test - public void testFinalizeRelocation() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumes() - .finalizeRelocation("bjwgnyfus", "zsvtuikzhajqgl", "fh", "l", 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 deleted file mode 100644 index 500401d7c638..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; -import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserResponse; -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 VolumesListGetGroupIdListForLdapUserMockTests { - @Test - public void testListGetGroupIdListForLdapUser() throws Exception { - String responseStr = "{\"groupIdsForLdapUser\":[\"slzojh\",\"ctfnmdxotng\"]}"; - - 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("", "", AzureEnvironment.AZURE)); - - GetGroupIdListForLdapUserResponse response = manager.volumes() - .listGetGroupIdListForLdapUser("l", "z", "asccbiui", "zdlyjdfqw", - new GetGroupIdListForLdapUserRequest().withUsername("kyoqufdv"), com.azure.core.util.Context.NONE); - - Assertions.assertEquals("slzojh", 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 deleted file mode 100644 index fef5c7dbc1a6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ListQuotaReportResponse; -import com.azure.resourcemanager.netapp.models.Type; -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 VolumesListQuotaReportMockTests { - @Test - public void testListQuotaReport() throws Exception { - String responseStr - = "{\"value\":[{\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"fczbgom\",\"quotaLimitUsedInKiBs\":6180206974862965470,\"quotaLimitTotalInKiBs\":2354871388013628710,\"percentageUsed\":90.87945,\"isDerivedQuota\":false}],\"nextLink\":\"i\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - ListQuotaReportResponse response = manager.volumes() - .listQuotaReport("dgug", "yzihgrkyuizabsn", "fpphoj", "evy", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, response.value().get(0).quotaType()); - Assertions.assertEquals("fczbgom", response.value().get(0).quotaTarget()); - Assertions.assertEquals(6180206974862965470L, response.value().get(0).quotaLimitUsedInKiBs()); - Assertions.assertEquals(2354871388013628710L, response.value().get(0).quotaLimitTotalInKiBs()); - Assertions.assertEquals(90.87945F, response.value().get(0).percentageUsed()); - Assertions.assertEquals(false, response.value().get(0).isDerivedQuota()); - Assertions.assertEquals("i", response.nextLink()); - } -} 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 deleted file mode 100644 index b8f81ca1ce88..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.EndpointType; -import com.azure.resourcemanager.netapp.models.Replication; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -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 VolumesListReplicationsMockTests { - @Test - public void testListReplications() throws Exception { - String responseStr - = "{\"value\":[{\"replicationId\":\"ypundmbxhugc\",\"endpointType\":\"src\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"lgorb\",\"remoteVolumeRegion\":\"tp\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.volumes() - .listReplications("jh", "mgixhcmavmqfou", "or", "cgyypro", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(EndpointType.SRC, response.iterator().next().endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, response.iterator().next().replicationSchedule()); - Assertions.assertEquals("lgorb", response.iterator().next().remoteVolumeResourceId()); - Assertions.assertEquals("tp", 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 deleted file mode 100644 index 326759cd245c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponse; -import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesPeerExternalClusterMockTests { - @Test - public void testPeerExternalCluster() throws Exception { - String responseStr = "{\"peerAcceptCommand\":\"bkpbzpcpiljh\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - ClusterPeerCommandResponse response = manager.volumes() - .peerExternalCluster("dlat", "tmzlbiojlv", "hrbbpneqvcwwyy", "r", - new PeerClusterForVolumeMigrationRequest().withPeerIpAddresses(Arrays.asList("chpp", "prsnmokayzejn")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("bkpbzpcpiljh", response.peerAcceptCommand()); - } -} 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 deleted file mode 100644 index 776a218afb4f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.PoolChangeRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesPoolChangeMockTests { - @Test - public void testPoolChange() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumes() - .poolChange("kmfx", "pjwogqqno", "pud", "dabtqwp", - new PoolChangeRequest().withNewPoolResourceId("yawbzasqbu"), 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 deleted file mode 100644 index cb69a5eebdf4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesReInitializeReplicationMockTests { - @Test - public void testReInitializeReplication() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumes() - .reInitializeReplication("nzvdfbzdixzmq", "noda", "opqhewjptmc", "sbostzel", - 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 deleted file mode 100644 index e8f3cc7d2997..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.MirrorState; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; -import com.azure.resourcemanager.netapp.models.ReplicationStatus; -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 VolumesReplicationStatusWithResponseMockTests { - @Test - public void testReplicationStatusWithResponse() throws Exception { - String responseStr - = "{\"healthy\":false,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Broken\",\"totalProgress\":\"mexiitdfuxt\",\"errorMessage\":\"siibmiybnnustgn\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - ReplicationStatus response = manager.volumes() - .replicationStatusWithResponse("qltfaey", "inmfgvxirp", "hriypoqeyhlqhy", "prlpy", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.healthy()); - Assertions.assertEquals(RelationshipStatus.IDLE, response.relationshipStatus()); - Assertions.assertEquals(MirrorState.BROKEN, response.mirrorState()); - Assertions.assertEquals("mexiitdfuxt", response.totalProgress()); - Assertions.assertEquals("siibmiybnnustgn", 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 deleted file mode 100644 index 43f11fb6ca51..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesResyncReplicationMockTests { - @Test - public void testResyncReplication() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumes() - .resyncReplication("dtzfjltfvnzcy", "t", "tpvopvpbdb", "qgqqihedsvqwthmk", - 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 deleted file mode 100644 index 33ec7287ca1e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.VolumeRevert; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesRevertMockTests { - @Test - public void testRevert() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumes() - .revert("ntvlwijpsttexo", "qpwcyyufmh", "uncuw", "qspkcdqzhlctd", - new VolumeRevert().withSnapshotId("nqndyfpchrqbn"), 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 deleted file mode 100644 index 236ebe98aa97..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest 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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesRevertRelocationMockTests { - @Test - public void testRevertRelocation() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.volumes() - .revertRelocation("qryxyn", "nzrdpsovwxz", "ptgoeiybbabp", "hv", 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 deleted file mode 100644 index a92b5011b563..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import org.junit.jupiter.api.Assertions; - -public final class WeeklyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WeeklySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":1074129183,\"day\":\"erqf\",\"hour\":62182202,\"minute\":2077702872,\"usedBytes\":2726192915830006028}") - .toObject(WeeklySchedule.class); - Assertions.assertEquals(1074129183, model.snapshotsToKeep()); - Assertions.assertEquals("erqf", model.day()); - Assertions.assertEquals(62182202, model.hour()); - Assertions.assertEquals(2077702872, model.minute()); - Assertions.assertEquals(2726192915830006028L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WeeklySchedule model = new WeeklySchedule().withSnapshotsToKeep(1074129183) - .withDay("erqf") - .withHour(62182202) - .withMinute(2077702872) - .withUsedBytes(2726192915830006028L); - model = BinaryData.fromObject(model).toObject(WeeklySchedule.class); - Assertions.assertEquals(1074129183, model.snapshotsToKeep()); - Assertions.assertEquals("erqf", model.day()); - Assertions.assertEquals(62182202, model.hour()); - Assertions.assertEquals(2077702872, model.minute()); - Assertions.assertEquals(2726192915830006028L, model.usedBytes()); - } -}