diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 0f16931be4ae..39208ee85174 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -312,7 +312,7 @@ com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.2.0;1.3.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-healthbot;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-confluent;1.2.0;1.3.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-digitaltwins;1.3.0;1.4.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-netapp;1.9.0;1.10.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-netapp;1.9.0;1.10.0 com.azure.resourcemanager:azure-resourcemanager-storagecache;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-redisenterprise;2.1.0;2.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-hybridkubernetes;1.0.0;1.1.0-beta.2 diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index ed4ec6b158c0..867f24449807 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,14 +1,269 @@ # Release History -## 1.10.0-beta.2 (Unreleased) +## 1.10.0 (2025-11-14) -### Features Added +- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2025-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.SnapshotPoliciesList` was removed -### Other Changes +#### `models.VolumeQuotaRulesList` was removed + +#### `models.BackupPoliciesList` was removed + +#### `models.SnapshotsList` was removed + +#### `models.VolumeGroupList` was removed + +#### `models.RelationshipStatus` was removed + +#### `models.UsagesListResult` was removed + +#### `models.OperationListResult` was removed + +#### `models.BackupsList` was removed + +#### `models.BackupVaultsList` was removed + +#### `models.SubscriptionQuotaItemList` was removed + +#### `models.RegionInfosList` was removed + +#### `models.VolumeList` was removed + +#### `models.CapacityPoolList` was removed + +#### `models.SubvolumesList` was removed + +#### `models.ListReplications` was removed + +#### `models.NetAppAccountList` was removed + +#### `models.ServiceSpecification` was modified + +* `ServiceSpecification()` was changed to private access +* `withLogSpecifications(java.util.List)` was removed +* `withMetricSpecifications(java.util.List)` was removed + +#### `models.MetricSpecification` was modified + +* `MetricSpecification()` was changed to private access +* `withAggregationType(java.lang.String)` was removed +* `withInternalMetricName(java.lang.String)` was removed +* `withSourceMdmNamespace(java.lang.String)` was removed +* `withDimensions(java.util.List)` was removed +* `withEnableRegionalMdmAccount(java.lang.Boolean)` was removed +* `withDisplayDescription(java.lang.String)` was removed +* `withSupportedAggregationTypes(java.util.List)` was removed +* `withUnit(java.lang.String)` was removed +* `withSourceMdmAccount(java.lang.String)` was removed +* `withFillGapWithZero(java.lang.Boolean)` was removed +* `withIsInternal(java.lang.Boolean)` was removed +* `withCategory(java.lang.String)` was removed +* `withResourceIdDimensionNameOverride(java.lang.String)` was removed +* `withDisplayName(java.lang.String)` was removed +* `withSupportedTimeGrainTypes(java.util.List)` was removed +* `withName(java.lang.String)` was removed + +#### `models.BackupStatus` was modified + +* `models.RelationshipStatus relationshipStatus()` -> `models.VolumeBackupRelationshipStatus relationshipStatus()` + +#### `models.ReplicationStatus` was modified + +* `models.RelationshipStatus relationshipStatus()` -> `models.VolumeReplicationRelationshipStatus relationshipStatus()` + +#### `models.Volume` was modified + +* `listReplications(com.azure.core.util.Context)` was removed + +#### `models.OperationDisplay` was modified + +* `OperationDisplay()` was changed to private access +* `withProvider(java.lang.String)` was removed +* `withDescription(java.lang.String)` was removed +* `withResource(java.lang.String)` was removed +* `withOperation(java.lang.String)` was removed + +#### `models.VolumePatch` was modified + +* `withTags(java.util.Map)` was removed +* `withLocation(java.lang.String)` was removed + +#### `models.CapacityPool$Definition` was modified + +* `withCustomThroughputMibps(java.lang.Float)` was removed + +#### `models.UsageName` was modified + +* `UsageName()` was changed to private access +* `withLocalizedValue(java.lang.String)` was removed +* `withValue(java.lang.String)` was removed + +#### `models.LogSpecification` was modified + +* `LogSpecification()` was changed to private access +* `withName(java.lang.String)` was removed +* `withDisplayName(java.lang.String)` was removed + +#### `models.CapacityPool$Update` was modified + +* `withCustomThroughputMibps(java.lang.Float)` was removed + +#### `models.CapacityPool` was modified + +* `java.lang.Float customThroughputMibps()` -> `java.lang.Integer customThroughputMibps()` + +#### `models.ProvisioningState` was modified + +* `models.ProvisioningState[] values()` -> `java.util.Collection values()` +* `valueOf(java.lang.String)` was removed +* `toString()` was removed + +#### `models.NicInfo` was modified + +* `NicInfo()` was changed to private access +* `withVolumeResourceIds(java.util.List)` was removed + +#### `models.VolumeBackups` was modified + +* `VolumeBackups()` was changed to private access +* `withBackupsCount(java.lang.Integer)` was removed +* `withPolicyEnabled(java.lang.Boolean)` was removed +* `withVolumeName(java.lang.String)` was removed +* `withVolumeResourceId(java.lang.String)` was removed + +#### `models.DestinationReplication` was modified + +* `DestinationReplication()` was changed to private access +* `withResourceId(java.lang.String)` was removed +* `withRegion(java.lang.String)` was removed +* `withReplicationType(models.ReplicationType)` was removed +* `withZone(java.lang.String)` was removed + +#### `models.RestoreStatus` was modified + +* `models.RelationshipStatus relationshipStatus()` -> `models.VolumeRestoreRelationshipStatus relationshipStatus()` + +#### `models.BackupPolicyPatch` was modified + +* `withTags(java.util.Map)` was removed +* `withLocation(java.lang.String)` was removed + +#### `models.Volumes` was modified + +* `listReplications(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed + +#### `models.NetAppAccountPatch` was modified + +* `withTags(java.util.Map)` was removed +* `withLocation(java.lang.String)` was removed + +#### `models.RegionInfoAvailabilityZoneMappingsItem` was modified + +* `RegionInfoAvailabilityZoneMappingsItem()` was changed to private access +* `withAvailabilityZone(java.lang.String)` was removed +* `withIsAvailable(java.lang.Boolean)` was removed + +#### `models.CapacityPoolPatch` was modified + +* `withLocation(java.lang.String)` was removed +* `java.lang.Float customThroughputMibps()` -> `java.lang.Integer customThroughputMibps()` +* `withCustomThroughputMibps(java.lang.Float)` was removed +* `withTags(java.util.Map)` was removed + +#### `models.Dimension` was modified + +* `Dimension()` was changed to private access +* `withName(java.lang.String)` was removed +* `withDisplayName(java.lang.String)` was removed + +#### `models.Snapshots` was modified + +* `update(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Object)` was removed +* `update(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Object,com.azure.core.util.Context)` was removed + +### Features Added + +* `models.NetAppResourceQuotaLimitsAccounts` was added + +* `models.MountTargetProperties` was added + +* `models.ReplicationMirrorState` was added + +* `models.ListReplicationsRequest` was added + +* `models.VolumeReplicationRelationshipStatus` was added + +* `models.Exclude` was added + +* `models.VolumeBackupRelationshipStatus` was added + +* `models.VolumeRestoreRelationshipStatus` was added + +#### `models.SnapshotPolicyVolumeList` was modified + +* `nextLink()` was added + +#### `models.Volume` was modified + +* `listReplications(models.ListReplicationsRequest,com.azure.core.util.Context)` was added + +#### `models.VolumePatch` was modified + +* `tags()` was added +* `location()` was added + +#### `models.CapacityPool$Definition` was modified + +* `withCustomThroughputMibps(java.lang.Integer)` was added + +#### `models.CapacityPool$Update` was modified + +* `withCustomThroughputMibps(java.lang.Integer)` was added + +#### `NetAppFilesManager` was modified + +* `netAppResourceQuotaLimitsAccounts()` was added + +#### `models.VolumeGroupDetails` was modified + +* `systemData()` was added + +#### `models.ProvisioningState` was modified + +* `ProvisioningState()` was added + +#### `models.BackupPolicyPatch` was modified + +* `tags()` was added +* `location()` was added + +#### `models.Volumes` was modified + +* `listReplications(java.lang.String,java.lang.String,java.lang.String,java.lang.String,models.ListReplicationsRequest,com.azure.core.util.Context)` was added + +#### `models.NetAppAccountPatch` was modified + +* `location()` was added +* `tags()` was added + +#### `models.CapacityPoolPatch` was modified + +* `withCustomThroughputMibps(java.lang.Integer)` was added +* `tags()` was added +* `location()` was added + +#### `models.Replication` was modified + +* `replicationCreationTime()` was added +* `mirrorState()` was added +* `replicationDeletionTime()` was added + +#### `models.SubscriptionQuotaItem` was modified + +* `usage()` was added ## 1.10.0-beta.1 (2025-10-15) diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index ace1f13b15ca..d74b89947811 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-2025-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 api-version 2025-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.10.0-beta.1 + 1.10.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md index a3c9de643e67..9efb1f0e562a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md +++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md @@ -52,15 +52,6 @@ - [MigrateBackups](#backupsundervolume_migratebackups) -## Buckets - -- [CreateOrUpdate](#buckets_createorupdate) -- [Delete](#buckets_delete) -- [GenerateCredentials](#buckets_generatecredentials) -- [Get](#buckets_get) -- [List](#buckets_list) -- [Update](#buckets_update) - ## NetAppResource - [CheckFilePathAvailability](#netappresource_checkfilepathavailability) @@ -118,7 +109,6 @@ - [Get](#snapshots_get) - [List](#snapshots_list) - [RestoreFiles](#snapshots_restorefiles) -- [Update](#snapshots_update) ## Subvolumes @@ -158,7 +148,6 @@ - [Get](#volumes_get) - [List](#volumes_list) - [ListGetGroupIdListForLdapUser](#volumes_listgetgroupidlistforldapuser) -- [ListQuotaReport](#volumes_listquotareport) - [ListReplications](#volumes_listreplications) - [PeerExternalCluster](#volumes_peerexternalcluster) - [PerformReplicationTransfer](#volumes_performreplicationtransfer) @@ -186,8 +175,7 @@ import java.util.Arrays; */ public final class AccountsChangeKeyVaultSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_ChangeKeyVault.json + * x-ms-original-file: 2025-09-01/Accounts_ChangeKeyVault.json */ /** * Sample code: Accounts_ChangeKeyVault. @@ -219,8 +207,7 @@ import java.util.Arrays; */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_CreateOrUpdate.json + * x-ms-original-file: 2025-09-01/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -232,8 +219,7 @@ public final class AccountsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_CreateOrUpdateAD.json + * x-ms-original-file: 2025-09-01/Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. @@ -269,8 +255,7 @@ public final class AccountsCreateOrUpdateSamples { */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: 2025-09-01/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. @@ -291,8 +276,7 @@ public final class AccountsDeleteSamples { */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Get.json + * x-ms-original-file: 2025-09-01/Accounts_Get.json */ /** * Sample code: Accounts_Get. @@ -313,8 +297,7 @@ public final class AccountsGetByResourceGroupSamples { */ public final class AccountsGetChangeKeyVaultInformationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_GetChangeKeyVaultInformation.json + * x-ms-original-file: 2025-09-01/Accounts_GetChangeKeyVaultInformation.json */ /** * Sample code: Accounts_GetChangeKeyVaultInformation. @@ -336,15 +319,14 @@ public final class AccountsGetChangeKeyVaultInformationSamples { */ public final class AccountsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_ListBySubscription.json + * x-ms-original-file: 2025-09-01/Accounts_ListBySubscription.json */ /** - * Sample code: Accounts_List. + * Sample code: Accounts_ListBySubscription. * * @param manager Entry point to NetAppFilesManager. */ - public static void accountsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + public static void accountsListBySubscription(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.accounts().list(com.azure.core.util.Context.NONE); } } @@ -358,8 +340,7 @@ public final class AccountsListSamples { */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_List.json + * x-ms-original-file: 2025-09-01/Accounts_List.json */ /** * Sample code: Accounts_List. @@ -380,8 +361,7 @@ public final class AccountsListByResourceGroupSamples { */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_RenewCredentials.json + * x-ms-original-file: 2025-09-01/Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. @@ -404,8 +384,7 @@ import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; */ public final class AccountsTransitionToCmkSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_TransitionEncryptionKey.json + * x-ms-original-file: 2025-09-01/Accounts_TransitionEncryptionKey.json */ /** * Sample code: Accounts_MigrateEncryptionKey. @@ -435,8 +414,7 @@ import java.util.Map; */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Update.json + * x-ms-original-file: 2025-09-01/Accounts_Update.json */ /** * Sample code: Accounts_Update. @@ -472,9 +450,7 @@ public final class AccountsUpdateSamples { */ public final class BackupPoliciesCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Create. - * json + * x-ms-original-file: 2025-09-01/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. @@ -503,9 +479,7 @@ public final class BackupPoliciesCreateSamples { */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Delete. - * json + * x-ms-original-file: 2025-09-01/BackupPolicies_Delete.json */ /** * Sample code: BackupPolicies_Delete. @@ -527,9 +501,7 @@ public final class BackupPoliciesDeleteSamples { */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Get. - * json + * x-ms-original-file: 2025-09-01/BackupPolicies_Get.json */ /** * Sample code: Backups_Get. @@ -551,9 +523,7 @@ public final class BackupPoliciesGetSamples { */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_List. - * json + * x-ms-original-file: 2025-09-01/BackupPolicies_List.json */ /** * Sample code: BackupPolicies_List. @@ -576,9 +546,7 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy; */ public final class BackupPoliciesUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Update. - * json + * x-ms-original-file: 2025-09-01/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. @@ -607,9 +575,7 @@ public final class BackupPoliciesUpdateSamples { */ public final class BackupVaultsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Create. - * json + * x-ms-original-file: 2025-09-01/BackupVaults_Create.json */ /** * Sample code: BackupVault_CreateOrUpdate. @@ -634,9 +600,7 @@ public final class BackupVaultsCreateOrUpdateSamples { */ public final class BackupVaultsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Delete. - * json + * x-ms-original-file: 2025-09-01/BackupVaults_Delete.json */ /** * Sample code: BackupVaults_Delete. @@ -657,8 +621,7 @@ public final class BackupVaultsDeleteSamples { */ public final class BackupVaultsGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Get.json + * x-ms-original-file: 2025-09-01/BackupVaults_Get.json */ /** * Sample code: BackupVaults_Get. @@ -679,8 +642,7 @@ public final class BackupVaultsGetSamples { */ public final class BackupVaultsListByNetAppAccountSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_List.json + * x-ms-original-file: 2025-09-01/BackupVaults_List.json */ /** * Sample code: BackupVaults_List. @@ -705,9 +667,7 @@ import java.util.Map; */ public final class BackupVaultsUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Update. - * json + * x-ms-original-file: 2025-09-01/BackupVaults_Update.json */ /** * Sample code: BackupVaults_Update. @@ -743,8 +703,7 @@ public final class BackupVaultsUpdateSamples { */ public final class BackupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_Create.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_Create.json */ /** * Sample code: BackupsUnderBackupVault_Create. @@ -771,8 +730,7 @@ public final class BackupsCreateSamples { */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_Delete.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_Delete.json */ /** * Sample code: BackupsUnderBackupVault_Delete. @@ -794,8 +752,7 @@ public final class BackupsDeleteSamples { */ public final class BackupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_Get.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_Get.json */ /** * Sample code: BackupsUnderBackupVault_Get. @@ -817,8 +774,7 @@ public final class BackupsGetSamples { */ public final class BackupsGetLatestStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_LatestBackupStatus.json + * x-ms-original-file: 2025-09-01/Volumes_LatestBackupStatus.json */ /** * Sample code: Volumes_BackupStatus. @@ -840,8 +796,7 @@ public final class BackupsGetLatestStatusSamples { */ public final class BackupsGetVolumeLatestRestoreStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_LatestRestoreStatus.json + * x-ms-original-file: 2025-09-01/Volumes_LatestRestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. @@ -864,8 +819,7 @@ public final class BackupsGetVolumeLatestRestoreStatusSamples { */ public final class BackupsListByVaultSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_List.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_List.json */ /** * Sample code: Backups_List. @@ -888,8 +842,7 @@ import com.azure.resourcemanager.netapp.models.Backup; */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_Update.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_Update.json */ /** * Sample code: BackupsUnderBackupVault_Update. @@ -915,8 +868,7 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; */ public final class BackupsUnderAccountMigrateBackupsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderAccount_Migrate.json + * x-ms-original-file: 2025-09-01/BackupsUnderAccount_Migrate.json */ /** * Sample code: BackupsUnderAccount_Migrate. @@ -943,8 +895,7 @@ import java.util.Arrays; */ public final class BackupsUnderBackupVaultRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_SingleFileRestore.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_SingleFileRestore.json */ /** * Sample code: Backups_SingleFileRestore. @@ -972,8 +923,7 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; */ public final class BackupsUnderVolumeMigrateBackupsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderVolume_Migrate.json + * x-ms-original-file: 2025-09-01/BackupsUnderVolume_Migrate.json */ /** * Sample code: BackupsUnderVolume_Migrate. @@ -989,168 +939,6 @@ public final class BackupsUnderVolumeMigrateBackupsSamples { } ``` -### Buckets_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.BucketPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerProperties; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NfsUser; - -/** - * Samples for Buckets CreateOrUpdate. - */ -public final class BucketsCreateOrUpdateSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_CreateOrUpdate - * .json - */ - /** - * Sample code: Buckets_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .define("bucket1") - .withExistingVolume("myRG", "account1", "pool1", "volume1") - .withPath("/path") - .withFileSystemUser(new FileSystemUser().withNfsUser(new NfsUser().withUserId(1001L).withGroupId(1000L))) - .withServer(new BucketServerProperties().withFqdn("fullyqualified.domainname.com") - .withCertificateObject("")) - .withPermissions(BucketPermissions.READ_ONLY) - .create(); - } -} -``` - -### Buckets_Delete - -```java -/** - * Samples for Buckets Delete. - */ -public final class BucketsDeleteSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Delete.json - */ - /** - * Sample code: Buckets_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets().delete("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); - } -} -``` - -### Buckets_GenerateCredentials - -```java -import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; - -/** - * Samples for Buckets GenerateCredentials. - */ -public final class BucketsGenerateCredentialsSamples { - /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Buckets_GenerateCredentials.json - */ - /** - * Sample code: Buckets_GenerateCredentials. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsGenerateCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .generateCredentialsWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", - new BucketCredentialsExpiry().withKeyPairExpiryDays(3), com.azure.core.util.Context.NONE); - } -} -``` - -### Buckets_Get - -```java -/** - * Samples for Buckets Get. - */ -public final class BucketsGetSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Get.json - */ - /** - * Sample code: Buckets_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); - } -} -``` - -### Buckets_List - -```java -/** - * Samples for Buckets List. - */ -public final class BucketsListSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_List.json - */ - /** - * Sample code: Buckets_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} -``` - -### Buckets_Update - -```java -import com.azure.resourcemanager.netapp.models.Bucket; -import com.azure.resourcemanager.netapp.models.BucketPatchPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; - -/** - * Samples for Buckets Update. - */ -public final class BucketsUpdateSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Update.json - */ - /** - * Sample code: Buckets_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - Bucket resource = manager.buckets() - .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com") - .withCertificateObject("")) - .withPermissions(BucketPatchPermissions.READ_WRITE) - .apply(); - } -} -``` - ### NetAppResource_CheckFilePathAvailability ```java @@ -1161,8 +949,7 @@ import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * CheckFilePathAvailability.json + * x-ms-original-file: 2025-09-01/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. @@ -1174,7 +961,7 @@ public final class NetAppResourceCheckFilePathAvailabilitySamples { .checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest() .withName("my-exact-filepth") .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), com.azure.core.util.Context.NONE); } } @@ -1191,9 +978,7 @@ import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; */ public final class NetAppResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/CheckNameAvailability. - * json + * x-ms-original-file: 2025-09-01/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. @@ -1222,9 +1007,7 @@ import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; */ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/CheckQuotaAvailability - * .json + * x-ms-original-file: 2025-09-01/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. @@ -1252,8 +1035,7 @@ import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * NetworkSiblingSet_Query.json + * x-ms-original-file: 2025-09-01/NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. @@ -1265,7 +1047,7 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples { .queryNetworkSiblingSetWithResponse("eastus", new QueryNetworkSiblingSetRequest() .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333") .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), com.azure.core.util.Context.NONE); } } @@ -1279,8 +1061,7 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples { */ public final class NetAppResourceQueryRegionInfoSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfo.json + * x-ms-original-file: 2025-09-01/RegionInfo.json */ /** * Sample code: RegionInfo_Query. @@ -1304,8 +1085,7 @@ import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * NetworkSiblingSet_Update.json + * x-ms-original-file: 2025-09-01/NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. @@ -1317,7 +1097,7 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples { .updateNetworkSiblingSet("eastus", new UpdateNetworkSiblingSetRequest() .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333") .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") .withNetworkSiblingSetStateId("12345_44420.8001578125") .withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE); } @@ -1332,8 +1112,7 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples { */ public final class NetAppResourceQuotaLimitsGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: 2025-09-01/NetAppResourceQuotaLimits_Get.json */ /** * Sample code: QuotaLimits. @@ -1355,8 +1134,7 @@ public final class NetAppResourceQuotaLimitsGetSamples { */ public final class NetAppResourceQuotaLimitsListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: 2025-09-01/NetAppResourceQuotaLimits_List.json */ /** * Sample code: QuotaLimits. @@ -1377,16 +1155,14 @@ public final class NetAppResourceQuotaLimitsListSamples { */ public final class NetAppResourceQuotaLimitsAccountGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/QuotaLimitsAccount_Get - * .json + * x-ms-original-file: 2025-09-01/NetAppResourceQuotaLimitsAccount_Get.json */ /** - * Sample code: Volumes_RestoreStatus. + * Sample code: QuotaLimits. * * @param manager Entry point to NetAppFilesManager. */ - public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.netAppResourceQuotaLimitsAccounts() .getWithResponse("myRG", "myAccount", "poolsPerAccount", com.azure.core.util.Context.NONE); } @@ -1401,15 +1177,14 @@ public final class NetAppResourceQuotaLimitsAccountGetSamples { */ public final class NetAppResourceQuotaLimitsAccountListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * QuotaLimitsAccount_List.json + * x-ms-original-file: 2025-09-01/NetAppResourceQuotaLimitsAccount_List.json */ /** - * Sample code: QuotaLimitsAccount_List. + * Sample code: QuotaLimits. * * @param manager Entry point to NetAppFilesManager. */ - public static void quotaLimitsAccountList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.netAppResourceQuotaLimitsAccounts().list("myRG", "myAccount", com.azure.core.util.Context.NONE); } } @@ -1423,8 +1198,7 @@ public final class NetAppResourceQuotaLimitsAccountListSamples { */ public final class NetAppResourceRegionInfosGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfos_Get.json + * x-ms-original-file: 2025-09-01/RegionInfos_Get.json */ /** * Sample code: RegionInfos_Get. @@ -1445,8 +1219,7 @@ public final class NetAppResourceRegionInfosGetSamples { */ public final class NetAppResourceRegionInfosListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfos_List.json + * x-ms-original-file: 2025-09-01/RegionInfos_List.json */ /** * Sample code: RegionInfos_List. @@ -1467,8 +1240,7 @@ public final class NetAppResourceRegionInfosListSamples { */ public final class NetAppResourceUsagesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Usages_Get.json + * x-ms-original-file: 2025-09-01/Usages_Get.json */ /** * Sample code: Usages_Get. @@ -1490,8 +1262,7 @@ public final class NetAppResourceUsagesGetSamples { */ public final class NetAppResourceUsagesListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Usages_List.json + * x-ms-original-file: 2025-09-01/Usages_List.json */ /** * Sample code: Usages_List. @@ -1512,8 +1283,7 @@ public final class NetAppResourceUsagesListSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/OperationList.json + * x-ms-original-file: 2025-09-01/OperationList.json */ /** * Sample code: OperationList. @@ -1537,9 +1307,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_CreateOrUpdate. - * json + * x-ms-original-file: 2025-09-01/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -1558,8 +1326,7 @@ public final class PoolsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Pools_CreateOrUpdate_CustomThroughput.json + * x-ms-original-file: 2025-09-01/Pools_CreateOrUpdate_CustomThroughput.json */ /** * Sample code: Pools_CreateOrUpdate_CustomThroughput. @@ -1574,7 +1341,7 @@ public final class PoolsCreateOrUpdateSamples { .withExistingNetAppAccount("myRG", "account1") .withSize(4398046511104L) .withServiceLevel(ServiceLevel.FLEXIBLE) - .withCustomThroughputMibps(128.0F) + .withCustomThroughputMibps(128) .withQosType(QosType.MANUAL) .create(); } @@ -1589,8 +1356,7 @@ public final class PoolsCreateOrUpdateSamples { */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Delete.json + * x-ms-original-file: 2025-09-01/Pools_Delete.json */ /** * Sample code: Pools_Delete. @@ -1611,8 +1377,7 @@ public final class PoolsDeleteSamples { */ public final class PoolsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Pools_Get_CustomThroughput.json + * x-ms-original-file: 2025-09-01/Pools_Get_CustomThroughput.json */ /** * Sample code: Pools_Get_CustomThroughput. @@ -1624,8 +1389,7 @@ public final class PoolsGetSamples { } /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Get.json + * x-ms-original-file: 2025-09-01/Pools_Get.json */ /** * Sample code: Pools_Get. @@ -1646,8 +1410,7 @@ public final class PoolsGetSamples { */ public final class PoolsListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_List.json + * x-ms-original-file: 2025-09-01/Pools_List.json */ /** * Sample code: Pools_List. @@ -1670,8 +1433,7 @@ import com.azure.resourcemanager.netapp.models.CapacityPool; */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Update.json + * x-ms-original-file: 2025-09-01/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -1685,8 +1447,7 @@ public final class PoolsUpdateSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Pools_Update_CustomThroughput.json + * x-ms-original-file: 2025-09-01/Pools_Update_CustomThroughput.json */ /** * Sample code: Pools_Update_CustomThroughput. @@ -1715,8 +1476,7 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * SnapshotPolicies_Create.json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. @@ -1748,8 +1508,7 @@ public final class SnapshotPoliciesCreateSamples { */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * SnapshotPolicies_Delete.json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. @@ -1771,9 +1530,7 @@ public final class SnapshotPoliciesDeleteSamples { */ public final class SnapshotPoliciesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_Get. - * json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. @@ -1795,9 +1552,7 @@ public final class SnapshotPoliciesGetSamples { */ public final class SnapshotPoliciesListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_List. - * json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. @@ -1818,8 +1573,7 @@ public final class SnapshotPoliciesListSamples { */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * SnapshotPolicies_ListVolumes.json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. @@ -1847,8 +1601,7 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * SnapshotPolicies_Update.json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. @@ -1880,8 +1633,7 @@ public final class SnapshotPoliciesUpdateSamples { */ public final class SnapshotsCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: 2025-09-01/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. @@ -1906,8 +1658,7 @@ public final class SnapshotsCreateSamples { */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: 2025-09-01/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. @@ -1929,8 +1680,7 @@ public final class SnapshotsDeleteSamples { */ public final class SnapshotsGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: 2025-09-01/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. @@ -1952,8 +1702,7 @@ public final class SnapshotsGetSamples { */ public final class SnapshotsListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_List.json + * x-ms-original-file: 2025-09-01/Snapshots_List.json */ /** * Sample code: Snapshots_List. @@ -1977,8 +1726,7 @@ import java.util.Arrays; */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Snapshots_SingleFileRestore.json + * x-ms-original-file: 2025-09-01/Snapshots_SingleFileRestore.json */ /** * Sample code: Snapshots_SingleFileRestore. @@ -1994,36 +1742,6 @@ public final class SnapshotsRestoreFilesSamples { } ``` -### Snapshots_Update - -```java -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.serializer.SerializerEncoding; -import java.io.IOException; - -/** - * Samples for Snapshots Update. - */ -public final class SnapshotsUpdateSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Update.json - */ - /** - * Sample code: Snapshots_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) throws IOException { - manager.snapshots() - .update("myRG", "account1", "pool1", "volume1", "snapshot1", - SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("{}", Object.class, SerializerEncoding.JSON), - com.azure.core.util.Context.NONE); - } -} -``` - ### Subvolumes_Create ```java @@ -2032,8 +1750,7 @@ public final class SnapshotsUpdateSamples { */ public final class SubvolumesCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: 2025-09-01/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. @@ -2058,8 +1775,7 @@ public final class SubvolumesCreateSamples { */ public final class SubvolumesDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: 2025-09-01/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. @@ -2081,8 +1797,7 @@ public final class SubvolumesDeleteSamples { */ public final class SubvolumesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: 2025-09-01/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. @@ -2104,9 +1819,7 @@ public final class SubvolumesGetSamples { */ public final class SubvolumesGetMetadataSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Metadata. - * json + * x-ms-original-file: 2025-09-01/Subvolumes_Metadata.json */ /** * Sample code: Subvolumes_Metadata. @@ -2128,8 +1841,7 @@ public final class SubvolumesGetMetadataSamples { */ public final class SubvolumesListByVolumeSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: 2025-09-01/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. @@ -2152,8 +1864,7 @@ import com.azure.resourcemanager.netapp.models.SubvolumeInfo; */ public final class SubvolumesUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: 2025-09-01/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. @@ -2185,8 +1896,7 @@ import java.util.Arrays; */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_Create_SapHana.json + * x-ms-original-file: 2025-09-01/VolumeGroups_Create_SapHana.json */ /** * Sample code: VolumeGroups_Create_SapHana. @@ -2346,8 +2056,7 @@ public final class VolumeGroupsCreateSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_Create_Oracle.json + * x-ms-original-file: 2025-09-01/VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. @@ -2700,9 +2409,7 @@ public final class VolumeGroupsCreateSamples { */ public final class VolumeGroupsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Delete. - * json + * x-ms-original-file: 2025-09-01/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. @@ -2723,8 +2430,7 @@ public final class VolumeGroupsDeleteSamples { */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_Get_SapHana.json + * x-ms-original-file: 2025-09-01/VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. @@ -2736,8 +2442,7 @@ public final class VolumeGroupsGetSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_Get_Oracle.json + * x-ms-original-file: 2025-09-01/VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. @@ -2758,8 +2463,7 @@ public final class VolumeGroupsGetSamples { */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_List_Oracle.json + * x-ms-original-file: 2025-09-01/VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. @@ -2771,8 +2475,7 @@ public final class VolumeGroupsListByNetAppAccountSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_List_SapHana.json + * x-ms-original-file: 2025-09-01/VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. @@ -2795,8 +2498,7 @@ import com.azure.resourcemanager.netapp.models.Type; */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeQuotaRules_Create.json + * x-ms-original-file: 2025-09-01/VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. @@ -2824,8 +2526,7 @@ public final class VolumeQuotaRulesCreateSamples { */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeQuotaRules_Delete.json + * x-ms-original-file: 2025-09-01/VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. @@ -2847,9 +2548,7 @@ public final class VolumeQuotaRulesDeleteSamples { */ public final class VolumeQuotaRulesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_Get. - * json + * x-ms-original-file: 2025-09-01/VolumeQuotaRules_Get.json */ /** * Sample code: VolumeQuotaRules_Get. @@ -2872,9 +2571,7 @@ public final class VolumeQuotaRulesGetSamples { */ public final class VolumeQuotaRulesListByVolumeSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_List. - * json + * x-ms-original-file: 2025-09-01/VolumeQuotaRules_List.json */ /** * Sample code: VolumeQuotaRules_List. @@ -2898,8 +2595,7 @@ import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeQuotaRules_Update.json + * x-ms-original-file: 2025-09-01/VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. @@ -2924,8 +2620,7 @@ public final class VolumeQuotaRulesUpdateSamples { */ public final class VolumesAuthorizeExternalReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_AuthorizeExternalReplication.json + * x-ms-original-file: 2025-09-01/Volumes_AuthorizeExternalReplication.json */ /** * Sample code: Volumes_AuthorizeExternalReplication. @@ -2950,8 +2645,7 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest; */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_AuthorizeReplication.json + * x-ms-original-file: 2025-09-01/Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -2978,9 +2672,7 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; */ public final class VolumesBreakFileLocksSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_BreakFileLocks - * .json + * x-ms-original-file: 2025-09-01/Volumes_BreakFileLocks.json */ /** * Sample code: Volumes_BreakFileLocks. @@ -3006,8 +2698,7 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_BreakReplication.json + * x-ms-original-file: 2025-09-01/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. @@ -3032,9 +2723,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_CreateOrUpdate - * .json + * x-ms-original-file: 2025-09-01/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. @@ -3049,7 +2738,7 @@ public final class VolumesCreateOrUpdateSamples { .withCreationToken("my-unique-file-path") .withUsageThreshold(107374182400L) .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withServiceLevel(ServiceLevel.PREMIUM) .create(); } @@ -3064,8 +2753,7 @@ public final class VolumesCreateOrUpdateSamples { */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: 2025-09-01/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. @@ -3086,8 +2774,7 @@ public final class VolumesDeleteSamples { */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_DeleteReplication.json + * x-ms-original-file: 2025-09-01/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. @@ -3108,8 +2795,7 @@ public final class VolumesDeleteReplicationSamples { */ public final class VolumesFinalizeExternalReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_FinalizeExternalReplication.json + * x-ms-original-file: 2025-09-01/Volumes_FinalizeExternalReplication.json */ /** * Sample code: Volumes_FinalizeExternalReplication. @@ -3131,8 +2817,7 @@ public final class VolumesFinalizeExternalReplicationSamples { */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_FinalizeRelocation.json + * x-ms-original-file: 2025-09-01/Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. @@ -3153,8 +2838,7 @@ public final class VolumesFinalizeRelocationSamples { */ public final class VolumesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Get.json + * x-ms-original-file: 2025-09-01/Volumes_Get.json */ /** * Sample code: Volumes_Get. @@ -3175,8 +2859,7 @@ public final class VolumesGetSamples { */ public final class VolumesListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_List.json + * x-ms-original-file: 2025-09-01/Volumes_List.json */ /** * Sample code: Volumes_List. @@ -3199,9 +2882,7 @@ import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; */ public final class VolumesListGetGroupIdListForLdapUserSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/GroupIdListForLDAPUser - * .json + * x-ms-original-file: 2025-09-01/GroupIdListForLDAPUser.json */ /** * Sample code: GetGroupIdListForUser. @@ -3216,38 +2897,18 @@ 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/2025-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 +import com.azure.resourcemanager.netapp.models.Exclude; +import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; + /** * Samples for Volumes ListReplications. */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ListReplications.json + * x-ms-original-file: 2025-09-01/Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. @@ -3255,7 +2916,9 @@ public final class VolumesListReplicationsSamples { * @param manager Entry point to NetAppFilesManager. */ public static void volumesListReplications(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().listReplications("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + manager.volumes() + .listReplications("myRG", "account1", "pool1", "volume1", + new ListReplicationsRequest().withExclude(Exclude.NONE), com.azure.core.util.Context.NONE); } } ``` @@ -3271,8 +2934,7 @@ import java.util.Arrays; */ public final class VolumesPeerExternalClusterSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_PeerExternalCluster.json + * x-ms-original-file: 2025-09-01/Volumes_PeerExternalCluster.json */ /** * Sample code: Volumes_PeerExternalCluster. @@ -3297,8 +2959,7 @@ public final class VolumesPeerExternalClusterSamples { */ public final class VolumesPerformReplicationTransferSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_PerformReplicationTransfer.json + * x-ms-original-file: 2025-09-01/Volumes_PerformReplicationTransfer.json */ /** * Sample code: Volumes_PerformReplicationTransfer. @@ -3322,9 +2983,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest; */ public final class VolumesPoolChangeSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_PoolChange. - * json + * x-ms-original-file: 2025-09-01/Volumes_PoolChange.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -3348,8 +3007,7 @@ public final class VolumesPoolChangeSamples { */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: 2025-09-01/Volumes_PopulateAvailabilityZones.json */ /** * Sample code: Volumes_PopulateAvailabilityZones. @@ -3371,8 +3029,7 @@ public final class VolumesPopulateAvailabilityZoneSamples { */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ReInitializeReplication.json + * x-ms-original-file: 2025-09-01/Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. @@ -3396,8 +3053,7 @@ import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ReestablishReplication.json + * x-ms-original-file: 2025-09-01/Volumes_ReestablishReplication.json */ /** * Sample code: Volumes_ReestablishReplication. @@ -3424,8 +3080,7 @@ import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest; */ public final class VolumesRelocateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: 2025-09-01/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. @@ -3448,8 +3103,7 @@ public final class VolumesRelocateSamples { */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ReplicationStatus.json + * x-ms-original-file: 2025-09-01/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. @@ -3471,8 +3125,7 @@ public final class VolumesReplicationStatusSamples { */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ResetCifsPassword.json + * x-ms-original-file: 2025-09-01/Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. @@ -3493,8 +3146,7 @@ public final class VolumesResetCifsPasswordSamples { */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ResyncReplication.json + * x-ms-original-file: 2025-09-01/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. @@ -3517,8 +3169,7 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert; */ public final class VolumesRevertSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: 2025-09-01/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. @@ -3542,8 +3193,7 @@ public final class VolumesRevertSamples { */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_RevertRelocation.json + * x-ms-original-file: 2025-09-01/Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. @@ -3564,9 +3214,7 @@ public final class VolumesRevertRelocationSamples { */ public final class VolumesSplitCloneFromParentSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_SplitClone. - * json + * x-ms-original-file: 2025-09-01/Volumes_SplitClone.json */ /** * Sample code: Volumes_SplitClone. @@ -3590,8 +3238,7 @@ import com.azure.resourcemanager.netapp.models.Volume; */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Update.json + * x-ms-original-file: 2025-09-01/Volumes_Update.json */ /** * Sample code: Volumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml index 2e2dda077556..3a8a0cf08244 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml +++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml @@ -1,7 +1,7 @@ 4.0.0 @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-netapp - 1.10.0-beta.2 + 1.10.0 jar Microsoft Azure SDK for NetAppFiles Management - This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2025-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 api-version 2025-09-01. https://github.com/Azure/azure-sdk-for-java @@ -45,7 +45,6 @@ UTF-8 0 0 - true diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java index 49115ed7ffa9..75a5d99763eb 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp; @@ -32,7 +32,6 @@ import com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsImpl; import com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsImpl; import com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesImpl; -import com.azure.resourcemanager.netapp.implementation.BucketsImpl; import com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder; import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsImpl; import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsImpl; @@ -54,7 +53,6 @@ import com.azure.resourcemanager.netapp.models.BackupsUnderAccounts; import com.azure.resourcemanager.netapp.models.BackupsUnderBackupVaults; import com.azure.resourcemanager.netapp.models.BackupsUnderVolumes; -import com.azure.resourcemanager.netapp.models.Buckets; import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits; import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimitsAccounts; import com.azure.resourcemanager.netapp.models.NetAppResourceRegionInfos; @@ -83,17 +81,11 @@ public final class NetAppFilesManager { private Operations operations; - private NetAppResources netAppResources; - - private NetAppResourceUsages netAppResourceUsages; - - private NetAppResourceQuotaLimits netAppResourceQuotaLimits; - - private NetAppResourceRegionInfos netAppResourceRegionInfos; + private NetAppResourceQuotaLimitsAccounts netAppResourceQuotaLimitsAccounts; - private Accounts accounts; + private VolumeGroups volumeGroups; - private Pools pools; + private Backups backups; private Volumes volumes; @@ -105,23 +97,27 @@ public final class NetAppFilesManager { private VolumeQuotaRules volumeQuotaRules; - private VolumeGroups volumeGroups; + private BackupVaults backupVaults; - private Subvolumes subvolumes; + private NetAppResourceQuotaLimits netAppResourceQuotaLimits; - private Backups backups; + private NetAppResourceRegionInfos netAppResourceRegionInfos; - private NetAppResourceQuotaLimitsAccounts netAppResourceQuotaLimitsAccounts; + private Accounts accounts; - private BackupVaults backupVaults; + private BackupsUnderAccounts backupsUnderAccounts; + + private Pools pools; private BackupsUnderBackupVaults backupsUnderBackupVaults; private BackupsUnderVolumes backupsUnderVolumes; - private BackupsUnderAccounts backupsUnderAccounts; + private Subvolumes subvolumes; - private Buckets buckets; + private NetAppResources netAppResources; + + private NetAppResourceUsages netAppResourceUsages; private final NetAppManagementClient clientObject; @@ -351,77 +347,40 @@ public Operations operations() { } /** - * Gets the resource collection API of NetAppResources. - * - * @return Resource collection API of NetAppResources. - */ - public NetAppResources netAppResources() { - if (this.netAppResources == null) { - this.netAppResources = new NetAppResourcesImpl(clientObject.getNetAppResources(), this); - } - return netAppResources; - } - - /** - * Gets the resource collection API of NetAppResourceUsages. - * - * @return Resource collection API of NetAppResourceUsages. - */ - public NetAppResourceUsages netAppResourceUsages() { - if (this.netAppResourceUsages == null) { - this.netAppResourceUsages = new NetAppResourceUsagesImpl(clientObject.getNetAppResourceUsages(), this); - } - return netAppResourceUsages; - } - - /** - * Gets the resource collection API of NetAppResourceQuotaLimits. - * - * @return Resource collection API of NetAppResourceQuotaLimits. - */ - public NetAppResourceQuotaLimits netAppResourceQuotaLimits() { - if (this.netAppResourceQuotaLimits == null) { - this.netAppResourceQuotaLimits - = new NetAppResourceQuotaLimitsImpl(clientObject.getNetAppResourceQuotaLimits(), this); - } - return netAppResourceQuotaLimits; - } - - /** - * Gets the resource collection API of NetAppResourceRegionInfos. + * Gets the resource collection API of NetAppResourceQuotaLimitsAccounts. * - * @return Resource collection API of NetAppResourceRegionInfos. + * @return Resource collection API of NetAppResourceQuotaLimitsAccounts. */ - public NetAppResourceRegionInfos netAppResourceRegionInfos() { - if (this.netAppResourceRegionInfos == null) { - this.netAppResourceRegionInfos - = new NetAppResourceRegionInfosImpl(clientObject.getNetAppResourceRegionInfos(), this); + public NetAppResourceQuotaLimitsAccounts netAppResourceQuotaLimitsAccounts() { + if (this.netAppResourceQuotaLimitsAccounts == null) { + this.netAppResourceQuotaLimitsAccounts + = new NetAppResourceQuotaLimitsAccountsImpl(clientObject.getNetAppResourceQuotaLimitsAccounts(), this); } - return netAppResourceRegionInfos; + return netAppResourceQuotaLimitsAccounts; } /** - * Gets the resource collection API of Accounts. It manages NetAppAccount. + * Gets the resource collection API of VolumeGroups. It manages VolumeGroupDetails. * - * @return Resource collection API of Accounts. + * @return Resource collection API of VolumeGroups. */ - public Accounts accounts() { - if (this.accounts == null) { - this.accounts = new AccountsImpl(clientObject.getAccounts(), this); + public VolumeGroups volumeGroups() { + if (this.volumeGroups == null) { + this.volumeGroups = new VolumeGroupsImpl(clientObject.getVolumeGroups(), this); } - return accounts; + return volumeGroups; } /** - * Gets the resource collection API of Pools. It manages CapacityPool. + * Gets the resource collection API of Backups. It manages Backup. * - * @return Resource collection API of Pools. + * @return Resource collection API of Backups. */ - public Pools pools() { - if (this.pools == null) { - this.pools = new PoolsImpl(clientObject.getPools(), this); + public Backups backups() { + if (this.backups == null) { + this.backups = new BackupsImpl(clientObject.getBackups(), this); } - return pools; + return backups; } /** @@ -485,64 +444,77 @@ public VolumeQuotaRules volumeQuotaRules() { } /** - * Gets the resource collection API of VolumeGroups. It manages VolumeGroupDetails. + * Gets the resource collection API of BackupVaults. It manages BackupVault. * - * @return Resource collection API of VolumeGroups. + * @return Resource collection API of BackupVaults. */ - public VolumeGroups volumeGroups() { - if (this.volumeGroups == null) { - this.volumeGroups = new VolumeGroupsImpl(clientObject.getVolumeGroups(), this); + public BackupVaults backupVaults() { + if (this.backupVaults == null) { + this.backupVaults = new BackupVaultsImpl(clientObject.getBackupVaults(), this); } - return volumeGroups; + return backupVaults; } /** - * Gets the resource collection API of Subvolumes. It manages SubvolumeInfo. + * Gets the resource collection API of NetAppResourceQuotaLimits. * - * @return Resource collection API of Subvolumes. + * @return Resource collection API of NetAppResourceQuotaLimits. */ - public Subvolumes subvolumes() { - if (this.subvolumes == null) { - this.subvolumes = new SubvolumesImpl(clientObject.getSubvolumes(), this); + public NetAppResourceQuotaLimits netAppResourceQuotaLimits() { + if (this.netAppResourceQuotaLimits == null) { + this.netAppResourceQuotaLimits + = new NetAppResourceQuotaLimitsImpl(clientObject.getNetAppResourceQuotaLimits(), this); } - return subvolumes; + return netAppResourceQuotaLimits; } /** - * Gets the resource collection API of Backups. It manages Backup. + * Gets the resource collection API of NetAppResourceRegionInfos. * - * @return Resource collection API of Backups. + * @return Resource collection API of NetAppResourceRegionInfos. */ - public Backups backups() { - if (this.backups == null) { - this.backups = new BackupsImpl(clientObject.getBackups(), this); + public NetAppResourceRegionInfos netAppResourceRegionInfos() { + if (this.netAppResourceRegionInfos == null) { + this.netAppResourceRegionInfos + = new NetAppResourceRegionInfosImpl(clientObject.getNetAppResourceRegionInfos(), this); } - return backups; + return netAppResourceRegionInfos; } /** - * Gets the resource collection API of NetAppResourceQuotaLimitsAccounts. + * Gets the resource collection API of Accounts. It manages NetAppAccount. * - * @return Resource collection API of NetAppResourceQuotaLimitsAccounts. + * @return Resource collection API of Accounts. */ - public NetAppResourceQuotaLimitsAccounts netAppResourceQuotaLimitsAccounts() { - if (this.netAppResourceQuotaLimitsAccounts == null) { - this.netAppResourceQuotaLimitsAccounts - = new NetAppResourceQuotaLimitsAccountsImpl(clientObject.getNetAppResourceQuotaLimitsAccounts(), this); + public Accounts accounts() { + if (this.accounts == null) { + this.accounts = new AccountsImpl(clientObject.getAccounts(), this); } - return netAppResourceQuotaLimitsAccounts; + return accounts; } /** - * Gets the resource collection API of BackupVaults. It manages BackupVault. + * Gets the resource collection API of BackupsUnderAccounts. * - * @return Resource collection API of BackupVaults. + * @return Resource collection API of BackupsUnderAccounts. */ - public BackupVaults backupVaults() { - if (this.backupVaults == null) { - this.backupVaults = new BackupVaultsImpl(clientObject.getBackupVaults(), this); + public BackupsUnderAccounts backupsUnderAccounts() { + if (this.backupsUnderAccounts == null) { + this.backupsUnderAccounts = new BackupsUnderAccountsImpl(clientObject.getBackupsUnderAccounts(), this); } - return backupVaults; + return backupsUnderAccounts; + } + + /** + * Gets the resource collection API of Pools. It manages CapacityPool. + * + * @return Resource collection API of Pools. + */ + public Pools pools() { + if (this.pools == null) { + this.pools = new PoolsImpl(clientObject.getPools(), this); + } + return pools; } /** @@ -571,27 +543,39 @@ public BackupsUnderVolumes backupsUnderVolumes() { } /** - * Gets the resource collection API of BackupsUnderAccounts. + * Gets the resource collection API of Subvolumes. It manages SubvolumeInfo. * - * @return Resource collection API of BackupsUnderAccounts. + * @return Resource collection API of Subvolumes. */ - public BackupsUnderAccounts backupsUnderAccounts() { - if (this.backupsUnderAccounts == null) { - this.backupsUnderAccounts = new BackupsUnderAccountsImpl(clientObject.getBackupsUnderAccounts(), this); + public Subvolumes subvolumes() { + if (this.subvolumes == null) { + this.subvolumes = new SubvolumesImpl(clientObject.getSubvolumes(), this); } - return backupsUnderAccounts; + return subvolumes; + } + + /** + * Gets the resource collection API of NetAppResources. + * + * @return Resource collection API of NetAppResources. + */ + public NetAppResources netAppResources() { + if (this.netAppResources == null) { + this.netAppResources = new NetAppResourcesImpl(clientObject.getNetAppResources(), this); + } + return netAppResources; } /** - * Gets the resource collection API of Buckets. It manages Bucket. + * Gets the resource collection API of NetAppResourceUsages. * - * @return Resource collection API of Buckets. + * @return Resource collection API of NetAppResourceUsages. */ - public Buckets buckets() { - if (this.buckets == null) { - this.buckets = new BucketsImpl(clientObject.getBuckets(), this); + public NetAppResourceUsages netAppResourceUsages() { + if (this.netAppResourceUsages == null) { + this.netAppResourceUsages = new NetAppResourceUsagesImpl(clientObject.getNetAppResourceUsages(), this); } - return buckets; + return netAppResourceUsages; } /** 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 442bcdf9d465..0ce6e2c81f77 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -22,96 +22,96 @@ */ public interface AccountsClient { /** - * Describe all NetApp Accounts in a subscription - * - * List and describe all NetApp accounts in the subscription. + * Get the NetApp account. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedIterable}. + * @return the NetApp account along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, + Context context); /** - * Describe all NetApp Accounts in a subscription - * - * List and describe all NetApp accounts in the subscription. + * Get the NetApp account. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedIterable}. + * @return the NetApp account. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName); /** - * Describe all NetApp Accounts in a resource group - * - * List and describe all NetApp accounts in the resource group. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of netApp account resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, NetAppAccountInner body); /** - * Describe all NetApp Accounts in a resource group - * - * List and describe all NetApp accounts in the resource group. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of netApp account resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, NetAppAccountInner body, Context context); /** - * Describe a NetApp Account - * - * Get the NetApp account. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. + * @param body NetApp Account object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account along with {@link Response}. + * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, - Context context); + NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body); /** - * Describe a NetApp Account - * - * Get the NetApp account. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName); + NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body, + Context context); /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -122,13 +122,11 @@ Response getByResourceGroupWithResponse(String resourceGroup * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, NetAppAccountInner body); + SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, + String accountName, NetAppAccountPatch body); /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -140,13 +138,11 @@ SyncPoller, NetAppAccountInner> beginCreateOrUpda * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, NetAppAccountInner body, Context context); + SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, + String accountName, NetAppAccountPatch body, Context context); /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -157,12 +153,10 @@ SyncPoller, NetAppAccountInner> beginCreateOrUpda * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body); + NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body); /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -174,12 +168,9 @@ SyncPoller, NetAppAccountInner> beginCreateOrUpda * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body, - Context context); + NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body, Context context); /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -193,8 +184,6 @@ NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, SyncPoller, Void> beginDelete(String resourceGroupName, String accountName); /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -209,8 +198,6 @@ NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context); /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -223,8 +210,6 @@ NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, void delete(String resourceGroupName, String accountName); /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -238,76 +223,53 @@ NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, void delete(String resourceGroupName, String accountName, Context context); /** - * Update a NetApp account - * - * Patch the specified NetApp account. + * List and describe all NetApp accounts in the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp account resource. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, - String accountName, NetAppAccountPatch body); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); /** - * Update a NetApp account - * - * Patch the specified NetApp account. + * List and describe all NetApp accounts in the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp account resource. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, - String accountName, NetAppAccountPatch body, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Update a NetApp account - * - * Patch the specified NetApp account. + * List and describe all NetApp accounts in the subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); /** - * Update a NetApp account - * - * Patch the specified NetApp account. + * List and describe all NetApp accounts in the subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -322,8 +284,6 @@ SyncPoller, NetAppAccountInner> beginUpdate(Strin SyncPoller, Void> beginRenewCredentials(String resourceGroupName, String accountName); /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -340,8 +300,6 @@ SyncPoller, Void> beginRenewCredentials(String resourceGroupNam Context context); /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -355,8 +313,6 @@ SyncPoller, Void> beginRenewCredentials(String resourceGroupNam void renewCredentials(String resourceGroupName, String accountName); /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -371,8 +327,6 @@ SyncPoller, Void> beginRenewCredentials(String resourceGroupNam void renewCredentials(String resourceGroupName, String accountName, Context context); /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -387,8 +341,6 @@ SyncPoller, Void> beginRenewCredentials(String resourceGroupNam SyncPoller, Void> beginTransitionToCmk(String resourceGroupName, String accountName); /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -406,8 +358,6 @@ SyncPoller, Void> beginTransitionToCmk(String resourceGroupName EncryptionTransitionRequest body, Context context); /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -421,8 +371,6 @@ SyncPoller, Void> beginTransitionToCmk(String resourceGroupName void transitionToCmk(String resourceGroupName, String accountName); /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -439,8 +387,6 @@ void transitionToCmk(String resourceGroupName, String accountName, EncryptionTra Context context); /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -450,16 +396,13 @@ 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 result of getKeyVaultStatus with information about how volumes - * under NetApp account are encrypted. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GetKeyVaultStatusResponseInner> beginGetChangeKeyVaultInformation(String resourceGroupName, String accountName); /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -470,16 +413,13 @@ 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 result of getKeyVaultStatus with information about how volumes - * under NetApp account are encrypted. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GetKeyVaultStatusResponseInner> beginGetChangeKeyVaultInformation(String resourceGroupName, String accountName, Context context); /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -489,14 +429,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 result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resourceGroupName, String accountName); /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -507,15 +445,13 @@ 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. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resourceGroupName, String accountName, Context context); /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -530,8 +466,6 @@ GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resourceGroup SyncPoller, Void> beginChangeKeyVault(String resourceGroupName, String accountName); /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -549,8 +483,6 @@ SyncPoller, Void> beginChangeKeyVault(String resourceGroupName, ChangeKeyVault body, Context context); /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -564,8 +496,6 @@ SyncPoller, Void> beginChangeKeyVault(String resourceGroupName, void changeKeyVault(String resourceGroupName, String accountName); /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java index 757269fa8ad2..27a3641788f9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -19,39 +19,6 @@ */ public interface BackupPoliciesClient { /** - * List backup policies - * - * List backup policies for Netapp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName); - - /** - * List backup policies - * - * List backup policies for Netapp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName, Context context); - - /** - * Get a backup Policy - * * Get a particular backup Policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -68,8 +35,6 @@ Response getWithResponse(String resourceGroupName, String acc Context context); /** - * Get a backup Policy - * * Get a particular backup Policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -84,8 +49,6 @@ Response getWithResponse(String resourceGroupName, String acc BackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName); /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +65,6 @@ SyncPoller, BackupPolicyInner> beginCreate(String String accountName, String backupPolicyName, BackupPolicyInner body); /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -121,8 +82,6 @@ SyncPoller, BackupPolicyInner> beginCreate(String String accountName, String backupPolicyName, BackupPolicyInner body, Context context); /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -139,8 +98,6 @@ BackupPolicyInner create(String resourceGroupName, String accountName, String ba BackupPolicyInner body); /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -158,8 +115,6 @@ BackupPolicyInner create(String resourceGroupName, String accountName, String ba BackupPolicyInner body, Context context); /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -176,8 +131,6 @@ SyncPoller, BackupPolicyInner> beginUpdate(String String accountName, String backupPolicyName, BackupPolicyPatch body); /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -195,8 +148,6 @@ SyncPoller, BackupPolicyInner> beginUpdate(String String accountName, String backupPolicyName, BackupPolicyPatch body, Context context); /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -213,8 +164,6 @@ BackupPolicyInner update(String resourceGroupName, String accountName, String ba BackupPolicyPatch body); /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -232,8 +181,6 @@ BackupPolicyInner update(String resourceGroupName, String accountName, String ba BackupPolicyPatch body, Context context); /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -249,8 +196,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String backupPolicyName); /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -267,8 +212,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String backupPolicyName, Context context); /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -282,8 +225,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String accountName, String backupPolicyName); /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -296,4 +237,31 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String accountName, String backupPolicyName, Context context); + + /** + * List backup policies for Netapp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * List backup policies for Netapp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java index 0abfd494ddcd..460f82a46aa1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -19,39 +19,6 @@ */ public interface BackupVaultsClient { /** - * Describe all Backup Vaults - * - * List and describe all Backup Vaults in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Vaults as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByNetAppAccount(String resourceGroupName, String accountName); - - /** - * Describe all Backup Vaults - * - * List and describe all Backup Vaults in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Vaults as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context); - - /** - * Describe the Backup Vault - * * Get the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -68,8 +35,6 @@ Response getWithResponse(String resourceGroupName, String acco Context context); /** - * Describe the Backup Vault - * * Get the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -84,8 +49,6 @@ Response getWithResponse(String resourceGroupName, String acco BackupVaultInner get(String resourceGroupName, String accountName, String backupVaultName); /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +65,6 @@ SyncPoller, BackupVaultInner> beginCreateOrUpdate(S String accountName, String backupVaultName, BackupVaultInner body); /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -121,8 +82,6 @@ SyncPoller, BackupVaultInner> beginCreateOrUpdate(S String accountName, String backupVaultName, BackupVaultInner body, Context context); /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -139,8 +98,6 @@ BackupVaultInner createOrUpdate(String resourceGroupName, String accountName, St BackupVaultInner body); /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -158,8 +115,6 @@ BackupVaultInner createOrUpdate(String resourceGroupName, String accountName, St BackupVaultInner body, Context context); /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -176,8 +131,6 @@ SyncPoller, BackupVaultInner> beginUpdate(String re String backupVaultName, BackupVaultPatch body); /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -195,8 +148,6 @@ SyncPoller, BackupVaultInner> beginUpdate(String re String backupVaultName, BackupVaultPatch body, Context context); /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -213,8 +164,6 @@ BackupVaultInner update(String resourceGroupName, String accountName, String bac BackupVaultPatch body); /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -232,8 +181,6 @@ BackupVaultInner update(String resourceGroupName, String accountName, String bac Context context); /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -249,8 +196,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String backupVaultName); /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -267,8 +212,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String Context context); /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -282,8 +225,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String accountName, String backupVaultName); /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -296,4 +237,31 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String accountName, String backupVaultName, Context context); + + /** + * List and describe all Backup Vaults in the NetApp account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Vaults as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName); + + /** + * List and describe all Backup Vaults in the NetApp account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Vaults as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java index 05de10aa11ad..c8063c0db64c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -21,117 +21,6 @@ */ public interface BackupsClient { /** - * Get the latest backup status of a volume - * - * Get the latest status of the backup for a 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 latest status of the backup for a volume along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getLatestStatusWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context); - - /** - * Get the latest backup status of a volume - * - * Get the latest status of the backup for a 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 latest status of the backup for a volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - BackupStatusInner getLatestStatus(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Get the latest restore status of a volume - * - * Get the latest status of the restore for a 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 latest status of the restore for a volume along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getVolumeLatestRestoreStatusWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context); - - /** - * Get the latest restore status of a volume - * - * Get the latest status of the restore for a 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 latest status of the restore for a volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - RestoreStatusInner getVolumeLatestRestoreStatus(String resourceGroupName, String accountName, String poolName, - String volumeName); - - /** - * List Backups - * - * List all backups Under a Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backups as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName); - - /** - * List Backups - * - * List all backups Under a Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the - * specified 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 list of Backups as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName, - String filter, Context context); - - /** - * Describe the Backup under Backup Vault - * * Get the specified Backup under Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -149,8 +38,6 @@ Response getWithResponse(String resourceGroupName, String accountNa String backupName, Context context); /** - * Describe the Backup under Backup Vault - * * Get the specified Backup under Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -166,8 +53,6 @@ Response getWithResponse(String resourceGroupName, String accountNa BackupInner get(String resourceGroupName, String accountName, String backupVaultName, String backupName); /** - * Create a backup - * * Create a backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -185,8 +70,6 @@ SyncPoller, BackupInner> beginCreate(String resourceGrou String backupVaultName, String backupName, BackupInner body); /** - * Create a backup - * * Create a backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -205,8 +88,6 @@ SyncPoller, BackupInner> beginCreate(String resourceGrou String backupVaultName, String backupName, BackupInner body, Context context); /** - * Create a backup - * * Create a backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -224,8 +105,6 @@ BackupInner create(String resourceGroupName, String accountName, String backupVa BackupInner body); /** - * Create a backup - * * Create a backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -244,8 +123,6 @@ BackupInner create(String resourceGroupName, String accountName, String backupVa BackupInner body, Context context); /** - * Patch a backup - * * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -262,8 +139,6 @@ SyncPoller, BackupInner> beginUpdate(String resourceGrou String backupVaultName, String backupName); /** - * Patch a backup - * * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -282,8 +157,6 @@ SyncPoller, BackupInner> beginUpdate(String resourceGrou String backupVaultName, String backupName, BackupPatch body, Context context); /** - * Patch a backup - * * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -299,8 +172,6 @@ SyncPoller, BackupInner> beginUpdate(String resourceGrou BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName); /** - * Patch a backup - * * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -319,8 +190,6 @@ BackupInner update(String resourceGroupName, String accountName, String backupVa BackupPatch body, Context context); /** - * Delete backup - * * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -337,8 +206,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String backupName); /** - * Delete backup - * * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -356,8 +223,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String backupName, Context context); /** - * Delete backup - * * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -372,8 +237,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName); /** - * Delete backup - * * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -388,4 +251,101 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, Context context); + + /** + * List all backups Under a Backup Vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param backupVaultName The name of the Backup Vault. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backups as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName); + + /** + * List all backups Under a Backup Vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param backupVaultName The name of the Backup Vault. + * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the + * specified 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 list of Backups as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName, + String filter, Context context); + + /** + * Get the latest status of the backup for a 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 latest status of the backup for a volume along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getLatestStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); + + /** + * Get the latest status of the backup for a 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 latest status of the backup for a volume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + BackupStatusInner getLatestStatus(String resourceGroupName, String accountName, String poolName, String volumeName); + + /** + * Get the latest status of the restore for a 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 latest status of the restore for a volume along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getVolumeLatestRestoreStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); + + /** + * Get the latest status of the restore for a 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 latest status of the restore for a volume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RestoreStatusInner getVolumeLatestRestoreStatus(String resourceGroupName, String accountName, String poolName, + String volumeName); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java index c6c412209142..0d83cf5a9c43 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -16,8 +16,6 @@ */ public interface BackupsUnderAccountsClient { /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -33,8 +31,6 @@ SyncPoller, Void> beginMigrateBackups(String resourceGroupName, BackupsMigrationRequest body); /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -51,8 +47,6 @@ SyncPoller, Void> beginMigrateBackups(String resourceGroupName, BackupsMigrationRequest body, Context context); /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -66,8 +60,6 @@ SyncPoller, Void> beginMigrateBackups(String resourceGroupName, void migrateBackups(String resourceGroupName, String accountName, BackupsMigrationRequest body); /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java index 590bf356e98e..64eff53622cc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -16,8 +16,6 @@ */ public interface BackupsUnderBackupVaultsClient { /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -35,8 +33,6 @@ SyncPoller, Void> beginRestoreFiles(String resourceGroupName, S String backupVaultName, String backupName, BackupRestoreFiles body); /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -55,8 +51,6 @@ SyncPoller, Void> beginRestoreFiles(String resourceGroupName, S String backupVaultName, String backupName, BackupRestoreFiles body, Context context); /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -73,8 +67,6 @@ void restoreFiles(String resourceGroupName, String accountName, String backupVau BackupRestoreFiles body); /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java index 6f8b97e2af64..ebf94d686b6b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -16,8 +16,6 @@ */ public interface BackupsUnderVolumesClient { /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -35,8 +33,6 @@ SyncPoller, Void> beginMigrateBackups(String resourceGroupName, String poolName, String volumeName, BackupsMigrationRequest body); /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -55,8 +51,6 @@ SyncPoller, Void> beginMigrateBackups(String resourceGroupName, String poolName, String volumeName, BackupsMigrationRequest body, Context context); /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -73,8 +67,6 @@ void migrateBackups(String resourceGroupName, String accountName, String poolNam BackupsMigrationRequest body); /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java deleted file mode 100644 index d2166a52158d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java +++ /dev/null @@ -1,396 +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; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner; -import com.azure.resourcemanager.netapp.fluent.models.BucketInner; -import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; -import com.azure.resourcemanager.netapp.models.BucketPatch; - -/** - * An instance of this class provides access to all the operations defined in BucketsClient. - */ -public interface BucketsClient { - /** - * Describes all buckets belonging to a volume - * - * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 list of volume bucket resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Describes all buckets belonging to a volume - * - * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 list of volume bucket resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context); - - /** - * Describe a volume's bucket - * - * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, - * connect to the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume's bucket along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, Context context); - - /** - * Describe a volume's bucket - * - * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, - * connect to the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume's bucket. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - BucketInner get(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName); - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of bucket resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BucketInner> beginCreateOrUpdate(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketInner body); - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of bucket resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BucketInner> beginCreateOrUpdate(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketInner body, Context context); - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - BucketInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, BucketInner body); - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - BucketInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, BucketInner body, Context context); - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of bucket resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BucketInner> beginUpdate(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketPatch body); - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of bucket resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BucketInner> beginUpdate(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketPatch body, Context context); - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - BucketInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, BucketPatch body); - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - BucketInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, BucketPatch body, Context context); - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName); - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, Context context); - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName); - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName, - Context context); - - /** - * Generate bucket access credentials - * - * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date - * and time of key pair (in UTC). - * - * @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 bucketName The name of the bucket. - * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response generateCredentialsWithResponse(String resourceGroupName, - String accountName, String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body, - Context context); - - /** - * Generate bucket access credentials - * - * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date - * and time of key pair (in UTC). - * - * @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 bucketName The name of the bucket. - * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - BucketGenerateCredentialsInner generateCredentials(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, BucketCredentialsExpiry body); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java index 290eba0adb2b..9dc942a052a9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -12,26 +12,26 @@ */ public interface NetAppManagementClient { /** - * Gets The ID of the target subscription. The value must be an UUID. - * - * @return the subscriptionId value. - */ - String getSubscriptionId(); - - /** - * Gets server parameter. + * Gets Service host. * * @return the endpoint value. */ String getEndpoint(); /** - * Gets Api Version. + * Gets Version parameter. * * @return the apiVersion value. */ String getApiVersion(); + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + String getSubscriptionId(); + /** * Gets The HTTP pipeline to send requests through. * @@ -54,46 +54,25 @@ public interface NetAppManagementClient { OperationsClient getOperations(); /** - * Gets the NetAppResourcesClient object to access its operations. - * - * @return the NetAppResourcesClient object. - */ - NetAppResourcesClient getNetAppResources(); - - /** - * Gets the NetAppResourceUsagesClient object to access its operations. - * - * @return the NetAppResourceUsagesClient object. - */ - NetAppResourceUsagesClient getNetAppResourceUsages(); - - /** - * Gets the NetAppResourceQuotaLimitsClient object to access its operations. - * - * @return the NetAppResourceQuotaLimitsClient object. - */ - NetAppResourceQuotaLimitsClient getNetAppResourceQuotaLimits(); - - /** - * Gets the NetAppResourceRegionInfosClient object to access its operations. + * Gets the NetAppResourceQuotaLimitsAccountsClient object to access its operations. * - * @return the NetAppResourceRegionInfosClient object. + * @return the NetAppResourceQuotaLimitsAccountsClient object. */ - NetAppResourceRegionInfosClient getNetAppResourceRegionInfos(); + NetAppResourceQuotaLimitsAccountsClient getNetAppResourceQuotaLimitsAccounts(); /** - * Gets the AccountsClient object to access its operations. + * Gets the VolumeGroupsClient object to access its operations. * - * @return the AccountsClient object. + * @return the VolumeGroupsClient object. */ - AccountsClient getAccounts(); + VolumeGroupsClient getVolumeGroups(); /** - * Gets the PoolsClient object to access its operations. + * Gets the BackupsClient object to access its operations. * - * @return the PoolsClient object. + * @return the BackupsClient object. */ - PoolsClient getPools(); + BackupsClient getBackups(); /** * Gets the VolumesClient object to access its operations. @@ -131,39 +110,46 @@ public interface NetAppManagementClient { VolumeQuotaRulesClient getVolumeQuotaRules(); /** - * Gets the VolumeGroupsClient object to access its operations. + * Gets the BackupVaultsClient object to access its operations. * - * @return the VolumeGroupsClient object. + * @return the BackupVaultsClient object. */ - VolumeGroupsClient getVolumeGroups(); + BackupVaultsClient getBackupVaults(); /** - * Gets the SubvolumesClient object to access its operations. + * Gets the NetAppResourceQuotaLimitsClient object to access its operations. * - * @return the SubvolumesClient object. + * @return the NetAppResourceQuotaLimitsClient object. */ - SubvolumesClient getSubvolumes(); + NetAppResourceQuotaLimitsClient getNetAppResourceQuotaLimits(); /** - * Gets the BackupsClient object to access its operations. + * Gets the NetAppResourceRegionInfosClient object to access its operations. * - * @return the BackupsClient object. + * @return the NetAppResourceRegionInfosClient object. */ - BackupsClient getBackups(); + NetAppResourceRegionInfosClient getNetAppResourceRegionInfos(); /** - * Gets the NetAppResourceQuotaLimitsAccountsClient object to access its operations. + * Gets the AccountsClient object to access its operations. * - * @return the NetAppResourceQuotaLimitsAccountsClient object. + * @return the AccountsClient object. */ - NetAppResourceQuotaLimitsAccountsClient getNetAppResourceQuotaLimitsAccounts(); + AccountsClient getAccounts(); /** - * Gets the BackupVaultsClient object to access its operations. + * Gets the BackupsUnderAccountsClient object to access its operations. * - * @return the BackupVaultsClient object. + * @return the BackupsUnderAccountsClient object. */ - BackupVaultsClient getBackupVaults(); + BackupsUnderAccountsClient getBackupsUnderAccounts(); + + /** + * Gets the PoolsClient object to access its operations. + * + * @return the PoolsClient object. + */ + PoolsClient getPools(); /** * Gets the BackupsUnderBackupVaultsClient object to access its operations. @@ -180,16 +166,23 @@ public interface NetAppManagementClient { BackupsUnderVolumesClient getBackupsUnderVolumes(); /** - * Gets the BackupsUnderAccountsClient object to access its operations. + * Gets the SubvolumesClient object to access its operations. * - * @return the BackupsUnderAccountsClient object. + * @return the SubvolumesClient object. */ - BackupsUnderAccountsClient getBackupsUnderAccounts(); + SubvolumesClient getSubvolumes(); /** - * Gets the BucketsClient object to access its operations. + * Gets the NetAppResourcesClient object to access its operations. * - * @return the BucketsClient object. + * @return the NetAppResourcesClient object. */ - BucketsClient getBuckets(); + NetAppResourcesClient getNetAppResources(); + + /** + * Gets the NetAppResourceUsagesClient object to access its operations. + * + * @return the NetAppResourceUsagesClient object. + */ + NetAppResourceUsagesClient getNetAppResourceUsages(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java index 4168cf6268f0..745fd6ec2b75 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -9,76 +9,68 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; /** * An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsAccountsClient. */ public interface NetAppResourceQuotaLimitsAccountsClient { /** - * Gets a list of quota limits for all quotas that are under account. - * - * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * Get the default, current and usages account quota limit. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of quota limits for all quotas that are under account as paginated response with - * {@link PagedIterable}. + * @return the default, current and usages account quota limit along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, + String quotaLimitName, Context context); /** - * Gets a list of quota limits for all quotas that are under account. - * - * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * Get the default, current and usages account quota limit. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. + * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of quota limits for all quotas that are under account as paginated response with - * {@link PagedIterable}. + * @return the default, current and usages account quota limit. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + SubscriptionQuotaItemInner get(String resourceGroupName, String accountName, String quotaLimitName); /** - * Gets the quota limits for the specific quota that is provided under the account. - * - * Get the default, current and usages account quota limit. + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param quotaLimitName The name of the Quota Limit. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default, current and usages account quota limit along with {@link Response}. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName, - Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); /** - * Gets the quota limits for the specific quota that is provided under the account. - * - * Get the default, current and usages account quota limit. + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default, current and usages account quota limit. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - QuotaItemInner get(String resourceGroupName, String accountName, String quotaLimitName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java index 9c46cb25b567..a4d3f0f34ca0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -9,69 +9,61 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; /** * An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsClient. */ public interface NetAppResourceQuotaLimitsClient { /** - * Get quota limits - * - * Get the default and current limits for quotas. + * Get the default and current quota limit. * * @param location The name of the Azure region. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. + * @return the default and current quota limit along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String location); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String location, String quotaLimitName, Context context); /** - * Get quota limits - * - * Get the default and current limits for quotas. + * Get the default and current quota limit. * * @param location The name of the Azure region. - * @param context The context to associate with this operation. + * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. + * @return the default and current quota limit. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String location, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + SubscriptionQuotaItemInner get(String location, String quotaLimitName); /** - * Get quota limits - * - * Get the default and current subscription quota limit. + * Get the default and current limits for quotas. * * @param location The name of the Azure region. - * @param quotaLimitName The name of the Quota Limit. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit along with {@link Response}. + * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String location, String quotaLimitName, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location); /** - * Get quota limits - * - * Get the default and current subscription quota limit. + * Get the default and current limits for quotas. * * @param location The name of the Azure region. - * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - QuotaItemInner get(String location, String quotaLimitName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java index d1077d2c2671..62504a072652 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -16,60 +16,52 @@ */ public interface NetAppResourceRegionInfosClient { /** - * Describes region specific information. - * - * Provides region specific information. + * Provides storage to network proximity and logical zone mapping information. * * @param location The name of the Azure region. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of regionInfo resources as paginated response with {@link PagedIterable}. + * @return information regarding regionInfo Item along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String location); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String location, Context context); /** - * Describes region specific information. - * - * Provides region specific information. + * Provides storage to network proximity and logical zone mapping information. * * @param location The name of the Azure region. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of regionInfo resources as paginated response with {@link PagedIterable}. + * @return information regarding regionInfo Item. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String location, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + RegionInfoResourceInner get(String location); /** - * Describes region specific information. - * - * Provides storage to network proximity and logical zone mapping information. + * Provides region specific information. * * @param location The name of the Azure region. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding regionInfo Item along with {@link Response}. + * @return list of regionInfo resources as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String location, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location); /** - * Describes region specific information. - * - * Provides storage to network proximity and logical zone mapping information. + * Provides region specific information. * * @param location The name of the Azure region. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding regionInfo Item. + * @return list of regionInfo resources as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - RegionInfoResourceInner get(String location); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java index 7016d2184f1c..13c0723473f1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -20,11 +20,13 @@ public interface NetAppResourceUsagesClient { * * Get current subscription usages. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages as paginated response with {@link PagedIterable}. + * @return usages + * + * Get current subscription usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String location); @@ -34,12 +36,14 @@ public interface NetAppResourceUsagesClient { * * Get current subscription usages. * - * @param location The name of the Azure region. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages as paginated response with {@link PagedIterable}. + * @return usages + * + * Get current subscription usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String location, Context context); @@ -55,7 +59,9 @@ public interface NetAppResourceUsagesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usage of the specific type along with {@link Response}. + * @return specific type of usage + * + * Get current subscription usage of the specific type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String location, String usageType, Context context); @@ -70,7 +76,9 @@ public interface NetAppResourceUsagesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usage of the specific type. + * @return specific type of usage + * + * Get current subscription usage of the specific type. */ @ServiceMethod(returns = ReturnType.SINGLE) UsageResultInner get(String location, String usageType); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java index a1f1ed54b7a0..23e2ffb36e63 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -28,8 +28,8 @@ public interface NetAppResourcesClient { * * Check if a resource name is available. * - * @param location The name of the Azure region. - * @param body Name availability request. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -45,8 +45,8 @@ Response checkNameAvailabilityWithResponse(Strin * * Check if a resource name is available. * - * @param location The name of the Azure region. - * @param body Name availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -60,8 +60,8 @@ Response checkNameAvailabilityWithResponse(Strin * * Check if a file path is available. * - * @param location The name of the Azure region. - * @param body File path availability request. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -77,8 +77,8 @@ Response checkFilePathAvailabilityWithResponse(S * * Check if a file path is available. * - * @param location The name of the Azure region. - * @param body File path availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -92,8 +92,8 @@ Response checkFilePathAvailabilityWithResponse(S * * Check if a quota is available. * - * @param location The name of the Azure region. - * @param body Quota availability request. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -109,8 +109,8 @@ Response checkQuotaAvailabilityWithResponse(Stri * * Check if a quota is available. * - * @param location The name of the Azure region. - * @param body Quota availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -124,7 +124,7 @@ Response checkQuotaAvailabilityWithResponse(Stri * * Provides storage to network proximity and logical zone mapping information. * - * @param location The name of the Azure region. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -139,7 +139,7 @@ Response checkQuotaAvailabilityWithResponse(Stri * * Provides storage to network proximity and logical zone mapping information. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -153,13 +153,13 @@ Response checkQuotaAvailabilityWithResponse(Stri * * Get details of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Network sibling set to query. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified network sibling set along with {@link Response}. + * @return describes the contents of a network sibling set along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response queryNetworkSiblingSetWithResponse(String location, @@ -170,12 +170,12 @@ Response queryNetworkSiblingSetWithResponse(String locat * * Get details of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Network sibling set to query. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified network sibling set. + * @return describes the contents of a network sibling set. */ @ServiceMethod(returns = ReturnType.SINGLE) NetworkSiblingSetInner queryNetworkSiblingSet(String location, QueryNetworkSiblingSetRequest body); @@ -185,12 +185,12 @@ Response queryNetworkSiblingSetWithResponse(String locat * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of network sibling set. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetworkSiblingSetInner> beginUpdateNetworkSiblingSet(String location, @@ -201,13 +201,13 @@ SyncPoller, NetworkSiblingSetInner> beginUpda * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of network sibling set. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetworkSiblingSetInner> beginUpdateNetworkSiblingSet(String location, @@ -218,12 +218,12 @@ SyncPoller, NetworkSiblingSetInner> beginUpda * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network sibling set. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) NetworkSiblingSetInner updateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body); @@ -233,13 +233,13 @@ SyncPoller, NetworkSiblingSetInner> beginUpda * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network sibling set. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) NetworkSiblingSetInner updateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body, diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java index 0bfc9a564a96..5aaee7dbf486 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -15,27 +15,25 @@ */ public interface OperationsClient { /** - * Describes the Resource Provider - * - * Lists all of the available Microsoft.NetApp Rest API operations. + * List the operations for the provider. * * @throws com.azure.core.management.exception.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 the request to list Cloud Volume operations as paginated response with {@link PagedIterable}. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** - * Describes the Resource Provider - * - * Lists all of the available Microsoft.NetApp Rest API operations. + * List the operations for the provider. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 the request to list Cloud Volume operations as paginated response with {@link PagedIterable}. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java index 6a5d0105cb74..ef3633bab84f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -19,39 +19,6 @@ */ public interface PoolsClient { /** - * Describe all Capacity Pools - * - * List all capacity pools in the NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName); - - /** - * Describe all Capacity Pools - * - * List all capacity pools in the NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName, Context context); - - /** - * Describe a Capacity Pool - * * Get details of the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -68,8 +35,6 @@ Response getWithResponse(String resourceGroupName, String acc Context context); /** - * Describe a Capacity Pool - * * Get details of the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -84,8 +49,6 @@ Response getWithResponse(String resourceGroupName, String acc CapacityPoolInner get(String resourceGroupName, String accountName, String poolName); /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +65,6 @@ SyncPoller, CapacityPoolInner> beginCreateOrUpdate String accountName, String poolName, CapacityPoolInner body); /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -121,8 +82,6 @@ SyncPoller, CapacityPoolInner> beginCreateOrUpdate String accountName, String poolName, CapacityPoolInner body, Context context); /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -139,8 +98,6 @@ CapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, S CapacityPoolInner body); /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -158,8 +115,6 @@ CapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, S CapacityPoolInner body, Context context); /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -176,8 +131,6 @@ SyncPoller, CapacityPoolInner> beginUpdate(String String accountName, String poolName, CapacityPoolPatch body); /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -195,8 +148,6 @@ SyncPoller, CapacityPoolInner> beginUpdate(String String accountName, String poolName, CapacityPoolPatch body, Context context); /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -212,8 +163,6 @@ SyncPoller, CapacityPoolInner> beginUpdate(String CapacityPoolInner update(String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body); /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -231,8 +180,6 @@ CapacityPoolInner update(String resourceGroupName, String accountName, String po Context context); /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -247,8 +194,6 @@ CapacityPoolInner update(String resourceGroupName, String accountName, String po SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName); /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -265,8 +210,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String Context context); /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -280,8 +223,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String accountName, String poolName); /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -294,4 +235,31 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String accountName, String poolName, Context context); + + /** + * List all capacity pools in the NetApp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of capacity pool resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * List all capacity pools in the NetApp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of capacity pool resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java index 8a1402bba486..57cc9fc7fb0f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -19,33 +19,6 @@ * An instance of this class provides access to all the operations defined in SnapshotPoliciesClient. */ public interface SnapshotPoliciesClient { - /** - * List snapshot policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName); - - /** - * List snapshot policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName, Context context); - /** * Get a snapshot Policy. * @@ -234,8 +207,33 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String accountName, String snapshotPolicyName, Context context); /** - * Get volumes for snapshot policy + * List snapshot policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * List snapshot policy. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** * Get volumes associated with snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -252,8 +250,6 @@ Response listVolumesWithResponse(String resourceG String snapshotPolicyName, Context context); /** - * Get volumes for snapshot policy - * * Get volumes associated with snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java index 6872d4d486e9..a895756a149f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -19,44 +19,6 @@ */ public interface SnapshotsClient { /** - * Describe all snapshots - * - * List all snapshots associated with 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 list of Snapshots as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Describe all snapshots - * - * List all snapshots associated with 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 list of Snapshots as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context); - - /** - * Describe a snapshot - * * Get details of the specified snapshot. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -75,8 +37,6 @@ Response getWithResponse(String resourceGroupName, String account String volumeName, String snapshotName, Context context); /** - * Describe a snapshot - * * Get details of the specified snapshot. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -94,8 +54,6 @@ SnapshotInner get(String resourceGroupName, String accountName, String poolName, String snapshotName); /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -114,8 +72,6 @@ SyncPoller, SnapshotInner> beginCreate(String resource String poolName, String volumeName, String snapshotName, SnapshotInner body); /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -135,8 +91,6 @@ SyncPoller, SnapshotInner> beginCreate(String resource String poolName, String volumeName, String snapshotName, SnapshotInner body, Context context); /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -155,8 +109,6 @@ SnapshotInner create(String resourceGroupName, String accountName, String poolNa String snapshotName, SnapshotInner body); /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -176,90 +128,41 @@ SnapshotInner create(String resourceGroupName, String accountName, String poolNa String snapshotName, SnapshotInner body, Context context); /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of snapshot of a Volume. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SnapshotInner> beginUpdate(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName, Object body); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName); /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of snapshot of a Volume. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SnapshotInner> beginUpdate(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName, Object body, Context context); - - /** - * Update a snapshot - * - * Patch a snapshot. - * - * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Object body); - - /** - * Update a snapshot - * - * Patch a snapshot. - * - * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Object body, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, Context context); /** - * Delete a snapshot - * * Delete snapshot. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -270,15 +173,11 @@ SnapshotInner update(String resourceGroupName, String accountName, String poolNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); /** - * Delete a snapshot - * * Delete snapshot. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -290,51 +189,44 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, + Context context); /** - * Delete a snapshot - * - * Delete snapshot. + * List all snapshots associated with 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 snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshots as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Delete a snapshot - * - * Delete snapshot. + * List all snapshots associated with 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 snapshotName The name of the snapshot. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshots as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -353,8 +245,6 @@ SyncPoller, Void> beginRestoreFiles(String resourceGroupName, S String volumeName, String snapshotName, SnapshotRestoreFiles body); /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -374,8 +264,6 @@ SyncPoller, Void> beginRestoreFiles(String resourceGroupName, S String volumeName, String snapshotName, SnapshotRestoreFiles body, Context context); /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -393,8 +281,6 @@ void restoreFiles(String resourceGroupName, String accountName, String poolName, String snapshotName, SnapshotRestoreFiles body); /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java index d320098fb0f6..b352be15c93a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -20,45 +20,6 @@ */ public interface SubvolumesClient { /** - * List of all the subvolumes - * - * Returns a list of the subvolumes in 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 list of Subvolumes as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName); - - /** - * List of all the subvolumes - * - * Returns a list of the subvolumes in 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 list of Subvolumes as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); - - /** - * Get the path associated with the subvolumeName - * * Returns the path associated with the subvolumeName provided. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -77,8 +38,6 @@ Response getWithResponse(String resourceGroupName, String ac String volumeName, String subvolumeName, Context context); /** - * Get the path associated with the subvolumeName - * * Returns the path associated with the subvolumeName provided. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -96,8 +55,6 @@ SubvolumeInfoInner get(String resourceGroupName, String accountName, String pool String subvolumeName); /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -116,8 +73,6 @@ SyncPoller, SubvolumeInfoInner> beginCreate(Strin String accountName, String poolName, String volumeName, String subvolumeName, SubvolumeInfoInner body); /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -138,8 +93,6 @@ SyncPoller, SubvolumeInfoInner> beginCreate(Strin Context context); /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -158,8 +111,6 @@ SubvolumeInfoInner create(String resourceGroupName, String accountName, String p String subvolumeName, SubvolumeInfoInner body); /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -179,8 +130,6 @@ SubvolumeInfoInner create(String resourceGroupName, String accountName, String p String subvolumeName, SubvolumeInfoInner body, Context context); /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -199,8 +148,6 @@ SyncPoller, SubvolumeInfoInner> beginUpdate(Strin String accountName, String poolName, String volumeName, String subvolumeName, SubvolumePatchRequest body); /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -221,8 +168,6 @@ SyncPoller, SubvolumeInfoInner> beginUpdate(Strin Context context); /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -241,8 +186,6 @@ SubvolumeInfoInner update(String resourceGroupName, String accountName, String p String subvolumeName, SubvolumePatchRequest body); /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -262,8 +205,6 @@ SubvolumeInfoInner update(String resourceGroupName, String accountName, String p String subvolumeName, SubvolumePatchRequest body, Context context); /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -281,8 +222,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String volumeName, String subvolumeName); /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -301,8 +240,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String volumeName, String subvolumeName, Context context); /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -318,8 +255,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -337,8 +272,39 @@ void delete(String resourceGroupName, String accountName, String poolName, Strin Context context); /** - * Describe a subvolume + * Returns a list of the subvolumes in 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 list of Subvolumes as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); + + /** + * Returns a list of the subvolumes in 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 list of Subvolumes as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); + + /** * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -356,8 +322,6 @@ SyncPoller, SubvolumeModelInner> beginGetMetadat String accountName, String poolName, String volumeName, String subvolumeName); /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -376,8 +340,6 @@ SyncPoller, SubvolumeModelInner> beginGetMetadat String accountName, String poolName, String volumeName, String subvolumeName, Context context); /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -395,8 +357,6 @@ SubvolumeModelInner getMetadata(String resourceGroupName, String accountName, St String subvolumeName); /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java index 422ec67089fd..631a981af253 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -19,39 +19,6 @@ */ public interface VolumeGroupsClient { /** - * Describe all volume groups - * - * List all volume groups for given account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByNetAppAccount(String resourceGroupName, String accountName); - - /** - * Describe all volume groups - * - * List all volume groups for given account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context); - - /** - * Describe a Volume Group - * * Get details of the specified volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -68,8 +35,6 @@ Response getWithResponse(String resourceGroupName, Stri String volumeGroupName, Context context); /** - * Describe a Volume Group - * * Get details of the specified volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -84,10 +49,6 @@ Response getWithResponse(String resourceGroupName, Stri VolumeGroupDetailsInner get(String resourceGroupName, String accountName, String volumeGroupName); /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -104,10 +65,6 @@ SyncPoller, VolumeGroupDetailsInner> beginCr String accountName, String volumeGroupName, VolumeGroupDetailsInner body); /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -125,10 +82,6 @@ SyncPoller, VolumeGroupDetailsInner> beginCr String accountName, String volumeGroupName, VolumeGroupDetailsInner body, Context context); /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -145,10 +98,6 @@ VolumeGroupDetailsInner create(String resourceGroupName, String accountName, Str VolumeGroupDetailsInner body); /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -166,8 +115,6 @@ VolumeGroupDetailsInner create(String resourceGroupName, String accountName, Str VolumeGroupDetailsInner body, Context context); /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -183,8 +130,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String volumeGroupName); /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -201,8 +146,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String Context context); /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -216,8 +159,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String accountName, String volumeGroupName); /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -230,4 +171,31 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String accountName, String volumeGroupName, Context context); + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName); + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java index 8f7220266fc5..eb7956740041 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -19,45 +19,6 @@ */ public interface VolumeQuotaRulesClient { /** - * Get all quota rules for a volume - * - * List all quota rules associated with 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 list of Volume Quota Rules as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName); - - /** - * Get all quota rules for a volume - * - * List all quota rules associated with 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 list of Volume Quota Rules as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); - - /** - * Describe a quota rule - * * Get details of the specified quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -76,8 +37,6 @@ Response getWithResponse(String resourceGroupName, String String volumeName, String volumeQuotaRuleName, Context context); /** - * Describe a quota rule - * * Get details of the specified quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -95,8 +54,6 @@ VolumeQuotaRuleInner get(String resourceGroupName, String accountName, String po String volumeQuotaRuleName); /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -115,8 +72,6 @@ SyncPoller, VolumeQuotaRuleInner> beginCreate(S String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRuleInner body); /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -137,8 +92,6 @@ SyncPoller, VolumeQuotaRuleInner> beginCreate(S Context context); /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -157,8 +110,6 @@ VolumeQuotaRuleInner create(String resourceGroupName, String accountName, String String volumeQuotaRuleName, VolumeQuotaRuleInner body); /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -178,8 +129,6 @@ VolumeQuotaRuleInner create(String resourceGroupName, String accountName, String String volumeQuotaRuleName, VolumeQuotaRuleInner body, Context context); /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -198,8 +147,6 @@ SyncPoller, VolumeQuotaRuleInner> beginUpdate(S String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRulePatch body); /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -220,8 +167,6 @@ SyncPoller, VolumeQuotaRuleInner> beginUpdate(S Context context); /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -240,8 +185,6 @@ VolumeQuotaRuleInner update(String resourceGroupName, String accountName, String String volumeQuotaRuleName, VolumeQuotaRulePatch body); /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -261,8 +204,6 @@ VolumeQuotaRuleInner update(String resourceGroupName, String accountName, String String volumeQuotaRuleName, VolumeQuotaRulePatch body, Context context); /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -280,8 +221,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String volumeName, String volumeQuotaRuleName); /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -300,8 +239,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String volumeName, String volumeQuotaRuleName, Context context); /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -318,8 +255,6 @@ void delete(String resourceGroupName, String accountName, String poolName, Strin String volumeQuotaRuleName); /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -335,4 +270,37 @@ void delete(String resourceGroupName, String accountName, String poolName, Strin @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName, Context context); + + /** + * List all quota rules associated with 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 list of Volume Quota Rules as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); + + /** + * List all quota rules associated with 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 list of Volume Quota Rules as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java index 17b32ccf48a2..4d0e89ff44f0 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent; @@ -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; @@ -22,6 +21,7 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; +import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; import com.azure.resourcemanager.netapp.models.PoolChangeRequest; import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; @@ -34,41 +34,6 @@ */ public interface VolumesClient { /** - * Describe all volumes - * - * List all volumes within the capacity pool. - * - * @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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName, String poolName); - - /** - * Describe all volumes - * - * List all volumes within the capacity pool. - * - * @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 context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context); - - /** - * Describe a volume - * * Get the details of the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -86,8 +51,6 @@ Response getWithResponse(String resourceGroupName, String accountNa String volumeName, Context context); /** - * Describe a volume - * * Get the details of the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -103,8 +66,6 @@ Response getWithResponse(String resourceGroupName, String accountNa VolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -122,8 +83,6 @@ SyncPoller, VolumeInner> beginCreateOrUpdate(String reso String poolName, String volumeName, VolumeInner body); /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -142,8 +101,6 @@ SyncPoller, VolumeInner> beginCreateOrUpdate(String reso String poolName, String volumeName, VolumeInner body, Context context); /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -161,8 +118,6 @@ VolumeInner createOrUpdate(String resourceGroupName, String accountName, String VolumeInner body); /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -181,8 +136,6 @@ VolumeInner createOrUpdate(String resourceGroupName, String accountName, String VolumeInner body, Context context); /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -200,8 +153,6 @@ SyncPoller, VolumeInner> beginUpdate(String resourceGrou String poolName, String volumeName, VolumePatch body); /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -220,8 +171,6 @@ SyncPoller, VolumeInner> beginUpdate(String resourceGrou String poolName, String volumeName, VolumePatch body, Context context); /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -239,8 +188,6 @@ VolumeInner update(String resourceGroupName, String accountName, String poolName VolumePatch body); /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -259,8 +206,6 @@ VolumeInner update(String resourceGroupName, String accountName, String poolName VolumePatch body, Context context); /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -277,8 +222,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String volumeName); /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -298,8 +241,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String volumeName, Boolean forceDelete, Context context); /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -314,8 +255,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -334,8 +273,35 @@ void delete(String resourceGroupName, String accountName, String poolName, Strin Context context); /** - * Populate Availability Zone + * List all volumes within the capacity pool. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, String poolName); + + /** + * List all volumes within the capacity pool. * + * @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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context); + + /** * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -345,15 +311,13 @@ void delete(String resourceGroupName, String accountName, String poolName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of volume resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginPopulateAvailabilityZone(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -364,15 +328,13 @@ SyncPoller, VolumeInner> beginPopulateAvailabilityZone(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of volume resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginPopulateAvailabilityZone(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -382,15 +344,13 @@ SyncPoller, VolumeInner> beginPopulateAvailabilityZone(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VolumeInner populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -401,15 +361,13 @@ VolumeInner populateAvailabilityZone(String resourceGroupName, String accountNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VolumeInner populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -427,8 +385,6 @@ SyncPoller, Void> beginRevert(String resourceGroupName, String String volumeName, VolumeRevert body); /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -447,8 +403,6 @@ SyncPoller, Void> beginRevert(String resourceGroupName, String String volumeName, VolumeRevert body, Context context); /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -464,8 +418,6 @@ SyncPoller, Void> beginRevert(String resourceGroupName, String void revert(String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body); /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -483,8 +435,6 @@ void revert(String resourceGroupName, String accountName, String poolName, Strin Context context); /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -501,8 +451,6 @@ SyncPoller, Void> beginResetCifsPassword(String resourceGroupNa String poolName, String volumeName); /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -520,8 +468,6 @@ SyncPoller, Void> beginResetCifsPassword(String resourceGroupNa String poolName, String volumeName, Context context); /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -536,8 +482,6 @@ SyncPoller, Void> beginResetCifsPassword(String resourceGroupNa void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -554,8 +498,6 @@ void resetCifsPassword(String resourceGroupName, String accountName, String pool 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. @@ -565,15 +507,13 @@ void resetCifsPassword(String resourceGroupName, String accountName, String pool * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of volume resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> 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. @@ -584,15 +524,13 @@ SyncPoller, VolumeInner> beginSplitCloneFromParent(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of volume resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> 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. @@ -602,14 +540,12 @@ SyncPoller, VolumeInner> beginSplitCloneFromParent(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VolumeInner 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. @@ -620,15 +556,13 @@ SyncPoller, VolumeInner> beginSplitCloneFromParent(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VolumeInner splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -645,8 +579,6 @@ SyncPoller, Void> beginBreakFileLocks(String resourceGroupName, String poolName, String volumeName); /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -665,8 +597,6 @@ SyncPoller, Void> beginBreakFileLocks(String resourceGroupName, String poolName, String volumeName, BreakFileLocksRequest body, Context context); /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -681,8 +611,6 @@ SyncPoller, Void> beginBreakFileLocks(String resourceGroupName, void breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -700,8 +628,6 @@ void breakFileLocks(String resourceGroupName, String accountName, String poolNam BreakFileLocksRequest body, Context context); /** - * Get Group Id List for LDAP User - * * Returns the list of group Ids for a specific LDAP User. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -712,7 +638,7 @@ void breakFileLocks(String resourceGroupName, String accountName, String poolNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of group Id list for Ldap user. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GetGroupIdListForLdapUserResponseInner> @@ -720,8 +646,6 @@ void breakFileLocks(String resourceGroupName, String accountName, String poolNam String volumeName, GetGroupIdListForLdapUserRequest body); /** - * Get Group Id List for LDAP User - * * Returns the list of group Ids for a specific LDAP User. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -733,7 +657,7 @@ void breakFileLocks(String resourceGroupName, String accountName, String poolNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of group Id list for Ldap user. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GetGroupIdListForLdapUserResponseInner> @@ -741,8 +665,6 @@ void breakFileLocks(String resourceGroupName, String accountName, String poolNam String volumeName, GetGroupIdListForLdapUserRequest body, Context context); /** - * Get Group Id List for LDAP User - * * Returns the list of group Ids for a specific LDAP User. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -753,15 +675,13 @@ void breakFileLocks(String resourceGroupName, String accountName, String poolNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return group Id list for Ldap user. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body); /** - * Get Group Id List for LDAP User - * * Returns the list of group Ids for a specific LDAP User. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -773,89 +693,13 @@ GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(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 group Id list for Ldap user. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) 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 - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -872,8 +716,6 @@ SyncPoller, Void> beginBreakReplication(String resourceGroupNam String poolName, String volumeName); /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -892,8 +734,6 @@ SyncPoller, Void> beginBreakReplication(String resourceGroupNam String poolName, String volumeName, BreakReplicationRequest body, Context context); /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -908,8 +748,6 @@ SyncPoller, Void> beginBreakReplication(String resourceGroupNam void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -927,8 +765,6 @@ void breakReplication(String resourceGroupName, String accountName, String poolN BreakReplicationRequest body, Context context); /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -947,8 +783,6 @@ SyncPoller, Void> beginReestablishReplication(String resourceGr String poolName, String volumeName, ReestablishReplicationRequest body); /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -968,8 +802,6 @@ SyncPoller, Void> beginReestablishReplication(String resourceGr String poolName, String volumeName, ReestablishReplicationRequest body, Context context); /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -987,8 +819,6 @@ void reestablishReplication(String resourceGroupName, String accountName, String ReestablishReplicationRequest body); /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -1007,8 +837,6 @@ void reestablishReplication(String resourceGroupName, String accountName, String ReestablishReplicationRequest body, Context context); /** - * Get volume replication status - * * Get the status of the replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1026,8 +854,6 @@ Response replicationStatusWithResponse(String resourceGr String poolName, String volumeName, Context context); /** - * Get volume replication status - * * Get the status of the replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1044,8 +870,6 @@ ReplicationStatusInner replicationStatus(String resourceGroupName, String accoun String volumeName); /** - * List replications for volume - * * List all replications for a specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1062,14 +886,13 @@ PagedIterable listReplications(String resourceGroupName, Strin String volumeName); /** - * List replications for volume - * * List all replications for a specified 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 body The content of the action request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1078,11 +901,9 @@ PagedIterable listReplications(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listReplications(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); + String volumeName, ListReplicationsRequest body, Context context); /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -1100,8 +921,6 @@ SyncPoller, Void> beginResyncReplication(String resourceGroupNa String poolName, String volumeName); /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -1120,8 +939,6 @@ SyncPoller, Void> beginResyncReplication(String resourceGroupNa String poolName, String volumeName, Context context); /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -1137,8 +954,6 @@ SyncPoller, Void> beginResyncReplication(String resourceGroupNa void resyncReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -1156,8 +971,6 @@ void resyncReplication(String resourceGroupName, String accountName, String pool Context context); /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1174,8 +987,6 @@ SyncPoller, Void> beginDeleteReplication(String resourceGroupNa String poolName, String volumeName); /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1193,8 +1004,6 @@ SyncPoller, Void> beginDeleteReplication(String resourceGroupNa String poolName, String volumeName, Context context); /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1209,8 +1018,6 @@ SyncPoller, Void> beginDeleteReplication(String resourceGroupNa void deleteReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1227,8 +1034,6 @@ void deleteReplication(String resourceGroupName, String accountName, String pool Context context); /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1246,8 +1051,6 @@ SyncPoller, Void> beginAuthorizeReplication(String resourceGrou String poolName, String volumeName, AuthorizeRequest body); /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1266,8 +1069,6 @@ SyncPoller, Void> beginAuthorizeReplication(String resourceGrou String poolName, String volumeName, AuthorizeRequest body, Context context); /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1284,8 +1085,6 @@ void authorizeReplication(String resourceGroupName, String accountName, String p AuthorizeRequest body); /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1303,8 +1102,6 @@ void authorizeReplication(String resourceGroupName, String accountName, String p AuthorizeRequest body, Context context); /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1321,8 +1118,6 @@ SyncPoller, Void> beginReInitializeReplication(String resourceG String poolName, String volumeName); /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1340,8 +1135,6 @@ SyncPoller, Void> beginReInitializeReplication(String resourceG String poolName, String volumeName, Context context); /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1356,8 +1149,6 @@ SyncPoller, Void> beginReInitializeReplication(String resourceG void reInitializeReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1374,8 +1165,6 @@ void reInitializeReplication(String resourceGroupName, String accountName, Strin Context context); /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1386,7 +1175,7 @@ void reInitializeReplication(String resourceGroupName, String accountName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of information about cluster peering process. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterPeerCommandResponseInner> beginPeerExternalCluster( @@ -1394,8 +1183,6 @@ SyncPoller, ClusterPeerCommandRespon PeerClusterForVolumeMigrationRequest body); /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1407,7 +1194,7 @@ SyncPoller, ClusterPeerCommandRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of information about cluster peering process. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterPeerCommandResponseInner> beginPeerExternalCluster( @@ -1415,8 +1202,6 @@ SyncPoller, ClusterPeerCommandRespon PeerClusterForVolumeMigrationRequest body, Context context); /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1427,15 +1212,13 @@ SyncPoller, ClusterPeerCommandRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) ClusterPeerCommandResponseInner peerExternalCluster(String resourceGroupName, String accountName, String poolName, String volumeName, PeerClusterForVolumeMigrationRequest body); /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1447,15 +1230,13 @@ ClusterPeerCommandResponseInner peerExternalCluster(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) ClusterPeerCommandResponseInner peerExternalCluster(String resourceGroupName, String accountName, String poolName, String volumeName, PeerClusterForVolumeMigrationRequest body, Context context); /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -1466,15 +1247,13 @@ ClusterPeerCommandResponseInner peerExternalCluster(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of information about svm peering process. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SvmPeerCommandResponseInner> beginAuthorizeExternalReplication( String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -1486,15 +1265,13 @@ SyncPoller, SvmPeerCommandResponseInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of information about svm peering process. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SvmPeerCommandResponseInner> beginAuthorizeExternalReplication( String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -1505,15 +1282,13 @@ SyncPoller, SvmPeerCommandResponseInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) SvmPeerCommandResponseInner authorizeExternalReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -1525,15 +1300,13 @@ SvmPeerCommandResponseInner authorizeExternalReplication(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) SvmPeerCommandResponseInner authorizeExternalReplication(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -1551,8 +1324,6 @@ SyncPoller, Void> beginFinalizeExternalReplication(String resou String poolName, String volumeName); /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -1571,8 +1342,6 @@ SyncPoller, Void> beginFinalizeExternalReplication(String resou String poolName, String volumeName, Context context); /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -1588,8 +1357,6 @@ SyncPoller, Void> beginFinalizeExternalReplication(String resou void finalizeExternalReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -1607,8 +1374,6 @@ void finalizeExternalReplication(String resourceGroupName, String accountName, S Context context); /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1625,8 +1390,6 @@ SyncPoller, Void> beginPerformReplicationTransfer(String resour String poolName, String volumeName); /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1644,8 +1407,6 @@ SyncPoller, Void> beginPerformReplicationTransfer(String resour String poolName, String volumeName, Context context); /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1660,8 +1421,6 @@ SyncPoller, Void> beginPerformReplicationTransfer(String resour void performReplicationTransfer(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1678,8 +1437,6 @@ void performReplicationTransfer(String resourceGroupName, String accountName, St Context context); /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1697,8 +1454,6 @@ SyncPoller, Void> beginPoolChange(String resourceGroupName, Str String volumeName, PoolChangeRequest body); /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1717,8 +1472,6 @@ SyncPoller, Void> beginPoolChange(String resourceGroupName, Str String volumeName, PoolChangeRequest body, Context context); /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1735,8 +1488,6 @@ void poolChange(String resourceGroupName, String accountName, String poolName, S PoolChangeRequest body); /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1754,8 +1505,6 @@ void poolChange(String resourceGroupName, String accountName, String poolName, S PoolChangeRequest body, Context context); /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1772,8 +1521,6 @@ SyncPoller, Void> beginRelocate(String resourceGroupName, Strin String volumeName); /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1792,8 +1539,6 @@ SyncPoller, Void> beginRelocate(String resourceGroupName, Strin String volumeName, RelocateVolumeRequest body, Context context); /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1808,8 +1553,6 @@ SyncPoller, Void> beginRelocate(String resourceGroupName, Strin void relocate(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1827,8 +1570,6 @@ void relocate(String resourceGroupName, String accountName, String poolName, Str RelocateVolumeRequest body, Context context); /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1845,8 +1586,6 @@ SyncPoller, Void> beginFinalizeRelocation(String resourceGroupN String poolName, String volumeName); /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1864,8 +1603,6 @@ SyncPoller, Void> beginFinalizeRelocation(String resourceGroupN String poolName, String volumeName, Context context); /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1880,8 +1617,6 @@ SyncPoller, Void> beginFinalizeRelocation(String resourceGroupN void finalizeRelocation(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1898,8 +1633,6 @@ void finalizeRelocation(String resourceGroupName, String accountName, String poo Context context); /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1916,8 +1649,6 @@ SyncPoller, Void> beginRevertRelocation(String resourceGroupNam String poolName, String volumeName); /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1935,8 +1666,6 @@ SyncPoller, Void> beginRevertRelocation(String resourceGroupNam String poolName, String volumeName, Context context); /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1951,8 +1680,6 @@ SyncPoller, Void> beginRevertRelocation(String resourceGroupNam void revertRelocation(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. 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 1c675c89c454..667ce9fe0bd8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; @@ -11,7 +11,6 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.AccountEncryption; import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.azure.resourcemanager.netapp.models.LdapConfiguration; import com.azure.resourcemanager.netapp.models.MultiAdStatus; import java.io.IOException; import java.util.List; @@ -52,11 +51,6 @@ public final class AccountProperties implements JsonSerializable writer.writeJson(element)); jsonWriter.writeJsonField("encryption", this.encryption); jsonWriter.writeStringField("nfsV4IDDomain", this.nfsV4IdDomain); - jsonWriter.writeJsonField("ldapConfiguration", this.ldapConfiguration); return jsonWriter.writeEndObject(); } @@ -233,8 +203,6 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti deserializedAccountProperties.nfsV4IdDomain = reader.getString(); } else if ("multiAdStatus".equals(fieldName)) { deserializedAccountProperties.multiAdStatus = MultiAdStatus.fromString(reader.getString()); - } else if ("ldapConfiguration".equals(fieldName)) { - deserializedAccountProperties.ldapConfiguration = LdapConfiguration.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java index 833daf3382a6..b54e65af793a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java index 7c11e1060458..8c1405a06567 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; 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 8b40e7c539ec..d3edfea45baa 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; @@ -22,14 +22,15 @@ @Fluent public final class BackupPolicyInner extends Resource { /* - * A unique read-only string that changes whenever the resource is updated. + * Backup policy Properties */ - private String etag; + private BackupPolicyProperties innerProperties = new BackupPolicyProperties(); /* - * Backup policy Properties + * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields." + * ) */ - private BackupPolicyProperties innerProperties = new BackupPolicyProperties(); + private String etag; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -58,21 +59,24 @@ public BackupPolicyInner() { } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Get the innerProperties property: Backup policy Properties. * - * @return the etag value. + * @return the innerProperties value. */ - public String etag() { - return this.etag; + private BackupPolicyProperties innerProperties() { + return this.innerProperties; } /** - * Get the innerProperties property: Backup policy Properties. + * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields."). * - * @return the innerProperties value. + * @return the etag value. */ - private BackupPolicyProperties innerProperties() { - return this.innerProperties; + public String etag() { + return this.etag; } /** 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 b69917e76822..26bb9663533b 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; 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 a88013884c50..eaf67ecee18f 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java index 88cd9f57546d..d2e1f302ebd5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; @@ -10,7 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.MirrorState; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; +import com.azure.resourcemanager.netapp.models.VolumeBackupRelationshipStatus; import java.io.IOException; /** @@ -26,12 +26,10 @@ public final class BackupStatusInner implements JsonSerializable { - /* - * The Access Key that is required along with the Secret Key to access the bucket. - */ - private String accessKey; - - /* - * The Secret Key that is required along with the Access Key to access the bucket. - */ - private String secretKey; - - /* - * The bucket's Access and Secret key pair expiry date and time (in UTC). - */ - private OffsetDateTime keyPairExpiry; - - /** - * Creates an instance of BucketGenerateCredentialsInner class. - */ - public BucketGenerateCredentialsInner() { - } - - /** - * Get the accessKey property: The Access Key that is required along with the Secret Key to access the bucket. - * - * @return the accessKey value. - */ - public String accessKey() { - return this.accessKey; - } - - /** - * Get the secretKey property: The Secret Key that is required along with the Access Key to access the bucket. - * - * @return the secretKey value. - */ - public String secretKey() { - return this.secretKey; - } - - /** - * Get the keyPairExpiry property: The bucket's Access and Secret key pair expiry date and time (in UTC). - * - * @return the keyPairExpiry value. - */ - public OffsetDateTime keyPairExpiry() { - return this.keyPairExpiry; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of BucketGenerateCredentialsInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of BucketGenerateCredentialsInner 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 BucketGenerateCredentialsInner. - */ - public static BucketGenerateCredentialsInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - BucketGenerateCredentialsInner deserializedBucketGenerateCredentialsInner - = new BucketGenerateCredentialsInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("accessKey".equals(fieldName)) { - deserializedBucketGenerateCredentialsInner.accessKey = reader.getString(); - } else if ("secretKey".equals(fieldName)) { - deserializedBucketGenerateCredentialsInner.secretKey = reader.getString(); - } else if ("keyPairExpiry".equals(fieldName)) { - deserializedBucketGenerateCredentialsInner.keyPairExpiry = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else { - reader.skipChildren(); - } - } - - return deserializedBucketGenerateCredentialsInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java deleted file mode 100644 index ca5e1e0eaff0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java +++ /dev/null @@ -1,281 +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.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.BucketPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerProperties; -import com.azure.resourcemanager.netapp.models.CredentialsStatus; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NetAppProvisioningState; -import java.io.IOException; - -/** - * Bucket resource. - */ -@Fluent -public final class BucketInner extends ProxyResource { - /* - * Bucket properties - */ - private BucketProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of BucketInner class. - */ - public BucketInner() { - } - - /** - * Get the innerProperties property: Bucket properties. - * - * @return the innerProperties value. - */ - private BucketProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the path property: The volume path mounted inside the bucket. The default is the root path '/' if no value is - * provided when the bucket is created. - * - * @return the path value. - */ - public String path() { - return this.innerProperties() == null ? null : this.innerProperties().path(); - } - - /** - * Set the path property: The volume path mounted inside the bucket. The default is the root path '/' if no value is - * provided when the bucket is created. - * - * @param path the path value to set. - * @return the BucketInner object itself. - */ - public BucketInner withPath(String path) { - if (this.innerProperties() == null) { - this.innerProperties = new BucketProperties(); - } - this.innerProperties().withPath(path); - return this; - } - - /** - * Get the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid - * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * - * @return the fileSystemUser value. - */ - public FileSystemUser fileSystemUser() { - return this.innerProperties() == null ? null : this.innerProperties().fileSystemUser(); - } - - /** - * Set the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid - * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * - * @param fileSystemUser the fileSystemUser value to set. - * @return the BucketInner object itself. - */ - public BucketInner withFileSystemUser(FileSystemUser fileSystemUser) { - if (this.innerProperties() == null) { - this.innerProperties = new BucketProperties(); - } - this.innerProperties().withFileSystemUser(fileSystemUser); - return this; - } - - /** - * Get the provisioningState property: Provisioning state of the resource. - * - * @return the provisioningState value. - */ - public NetAppProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the status property: The bucket credentials status. There states: - * - * "NoCredentialsSet": Access and Secret key pair have not been generated. - * "CredentialsExpired": Access and Secret key pair have expired. - * "Active": The certificate has been installed and credentials are unexpired. - * - * @return the status value. - */ - public CredentialsStatus status() { - return this.innerProperties() == null ? null : this.innerProperties().status(); - } - - /** - * Get the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @return the server value. - */ - public BucketServerProperties server() { - return this.innerProperties() == null ? null : this.innerProperties().server(); - } - - /** - * Set the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @param server the server value to set. - * @return the BucketInner object itself. - */ - public BucketInner withServer(BucketServerProperties server) { - if (this.innerProperties() == null) { - this.innerProperties = new BucketProperties(); - } - this.innerProperties().withServer(server); - return this; - } - - /** - * Get the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is - * ReadOnly if no value is provided during bucket creation. - * - * @return the permissions value. - */ - public BucketPermissions permissions() { - return this.innerProperties() == null ? null : this.innerProperties().permissions(); - } - - /** - * Set the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is - * ReadOnly if no value is provided during bucket creation. - * - * @param permissions the permissions value to set. - * @return the BucketInner object itself. - */ - public BucketInner withPermissions(BucketPermissions permissions) { - if (this.innerProperties() == null) { - this.innerProperties = new BucketProperties(); - } - this.innerProperties().withPermissions(permissions); - 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 BucketInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of BucketInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the BucketInner. - */ - public static BucketInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - BucketInner deserializedBucketInner = new BucketInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedBucketInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedBucketInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedBucketInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedBucketInner.innerProperties = BucketProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedBucketInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedBucketInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java deleted file mode 100644 index 408833693534..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java +++ /dev/null @@ -1,211 +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.BucketPatchPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NetAppProvisioningState; -import java.io.IOException; - -/** - * Bucket resource properties for a Patch operation. - */ -@Fluent -public final class BucketPatchProperties implements JsonSerializable { - /* - * The volume path mounted inside the bucket. - */ - private String path; - - /* - * File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the - * user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be - * supplied, but not both. - */ - private FileSystemUser fileSystemUser; - - /* - * Provisioning state of the resource - */ - private NetAppProvisioningState provisioningState; - - /* - * Properties of the server managing the lifecycle of volume buckets - */ - private BucketServerPatchProperties server; - - /* - * Access permissions for the bucket. Either ReadOnly or ReadWrite. - */ - private BucketPatchPermissions permissions; - - /** - * Creates an instance of BucketPatchProperties class. - */ - public BucketPatchProperties() { - } - - /** - * Get the path property: The volume path mounted inside the bucket. - * - * @return the path value. - */ - public String path() { - return this.path; - } - - /** - * Set the path property: The volume path mounted inside the bucket. - * - * @param path the path value to set. - * @return the BucketPatchProperties object itself. - */ - public BucketPatchProperties withPath(String path) { - this.path = path; - return this; - } - - /** - * Get the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid - * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * - * @return the fileSystemUser value. - */ - public FileSystemUser fileSystemUser() { - return this.fileSystemUser; - } - - /** - * Set the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid - * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * - * @param fileSystemUser the fileSystemUser value to set. - * @return the BucketPatchProperties object itself. - */ - public BucketPatchProperties withFileSystemUser(FileSystemUser fileSystemUser) { - this.fileSystemUser = fileSystemUser; - return this; - } - - /** - * Get the provisioningState property: Provisioning state of the resource. - * - * @return the provisioningState value. - */ - public NetAppProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @return the server value. - */ - public BucketServerPatchProperties server() { - return this.server; - } - - /** - * Set the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @param server the server value to set. - * @return the BucketPatchProperties object itself. - */ - public BucketPatchProperties withServer(BucketServerPatchProperties server) { - this.server = server; - return this; - } - - /** - * Get the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite. - * - * @return the permissions value. - */ - public BucketPatchPermissions permissions() { - return this.permissions; - } - - /** - * Set the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite. - * - * @param permissions the permissions value to set. - * @return the BucketPatchProperties object itself. - */ - public BucketPatchProperties withPermissions(BucketPatchPermissions permissions) { - this.permissions = permissions; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (fileSystemUser() != null) { - fileSystemUser().validate(); - } - if (server() != null) { - server().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("path", this.path); - jsonWriter.writeJsonField("fileSystemUser", this.fileSystemUser); - jsonWriter.writeJsonField("server", this.server); - jsonWriter.writeStringField("permissions", this.permissions == null ? null : this.permissions.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of BucketPatchProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of BucketPatchProperties 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 BucketPatchProperties. - */ - public static BucketPatchProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - BucketPatchProperties deserializedBucketPatchProperties = new BucketPatchProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("path".equals(fieldName)) { - deserializedBucketPatchProperties.path = reader.getString(); - } else if ("fileSystemUser".equals(fieldName)) { - deserializedBucketPatchProperties.fileSystemUser = FileSystemUser.fromJson(reader); - } else if ("provisioningState".equals(fieldName)) { - deserializedBucketPatchProperties.provisioningState - = NetAppProvisioningState.fromString(reader.getString()); - } else if ("server".equals(fieldName)) { - deserializedBucketPatchProperties.server = BucketServerPatchProperties.fromJson(reader); - } else if ("permissions".equals(fieldName)) { - deserializedBucketPatchProperties.permissions - = BucketPatchPermissions.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedBucketPatchProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java deleted file mode 100644 index 466d226ad0cc..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java +++ /dev/null @@ -1,241 +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.BucketPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerProperties; -import com.azure.resourcemanager.netapp.models.CredentialsStatus; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NetAppProvisioningState; -import java.io.IOException; - -/** - * Bucket resource properties. - */ -@Fluent -public final class BucketProperties implements JsonSerializable { - /* - * The volume path mounted inside the bucket. The default is the root path '/' if no value is provided when the - * bucket is created. - */ - private String path; - - /* - * File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the - * user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be - * supplied, but not both. - */ - private FileSystemUser fileSystemUser; - - /* - * Provisioning state of the resource - */ - private NetAppProvisioningState provisioningState; - - /* - * The bucket credentials status. There states: - * - * "NoCredentialsSet": Access and Secret key pair have not been generated. - * "CredentialsExpired": Access and Secret key pair have expired. - * "Active": The certificate has been installed and credentials are unexpired. - */ - private CredentialsStatus status; - - /* - * Properties of the server managing the lifecycle of volume buckets - */ - private BucketServerProperties server; - - /* - * Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is ReadOnly if no value is provided - * during bucket creation. - */ - private BucketPermissions permissions; - - /** - * Creates an instance of BucketProperties class. - */ - public BucketProperties() { - } - - /** - * Get the path property: The volume path mounted inside the bucket. The default is the root path '/' if no value is - * provided when the bucket is created. - * - * @return the path value. - */ - public String path() { - return this.path; - } - - /** - * Set the path property: The volume path mounted inside the bucket. The default is the root path '/' if no value is - * provided when the bucket is created. - * - * @param path the path value to set. - * @return the BucketProperties object itself. - */ - public BucketProperties withPath(String path) { - this.path = path; - return this; - } - - /** - * Get the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid - * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * - * @return the fileSystemUser value. - */ - public FileSystemUser fileSystemUser() { - return this.fileSystemUser; - } - - /** - * Set the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid - * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * - * @param fileSystemUser the fileSystemUser value to set. - * @return the BucketProperties object itself. - */ - public BucketProperties withFileSystemUser(FileSystemUser fileSystemUser) { - this.fileSystemUser = fileSystemUser; - return this; - } - - /** - * Get the provisioningState property: Provisioning state of the resource. - * - * @return the provisioningState value. - */ - public NetAppProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the status property: The bucket credentials status. There states: - * - * "NoCredentialsSet": Access and Secret key pair have not been generated. - * "CredentialsExpired": Access and Secret key pair have expired. - * "Active": The certificate has been installed and credentials are unexpired. - * - * @return the status value. - */ - public CredentialsStatus status() { - return this.status; - } - - /** - * Get the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @return the server value. - */ - public BucketServerProperties server() { - return this.server; - } - - /** - * Set the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @param server the server value to set. - * @return the BucketProperties object itself. - */ - public BucketProperties withServer(BucketServerProperties server) { - this.server = server; - return this; - } - - /** - * Get the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is - * ReadOnly if no value is provided during bucket creation. - * - * @return the permissions value. - */ - public BucketPermissions permissions() { - return this.permissions; - } - - /** - * Set the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is - * ReadOnly if no value is provided during bucket creation. - * - * @param permissions the permissions value to set. - * @return the BucketProperties object itself. - */ - public BucketProperties withPermissions(BucketPermissions permissions) { - this.permissions = permissions; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (fileSystemUser() != null) { - fileSystemUser().validate(); - } - if (server() != null) { - server().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("path", this.path); - jsonWriter.writeJsonField("fileSystemUser", this.fileSystemUser); - jsonWriter.writeJsonField("server", this.server); - jsonWriter.writeStringField("permissions", this.permissions == null ? null : this.permissions.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of BucketProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of BucketProperties 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 BucketProperties. - */ - public static BucketProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - BucketProperties deserializedBucketProperties = new BucketProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("path".equals(fieldName)) { - deserializedBucketProperties.path = reader.getString(); - } else if ("fileSystemUser".equals(fieldName)) { - deserializedBucketProperties.fileSystemUser = FileSystemUser.fromJson(reader); - } else if ("provisioningState".equals(fieldName)) { - deserializedBucketProperties.provisioningState - = NetAppProvisioningState.fromString(reader.getString()); - } else if ("status".equals(fieldName)) { - deserializedBucketProperties.status = CredentialsStatus.fromString(reader.getString()); - } else if ("server".equals(fieldName)) { - deserializedBucketProperties.server = BucketServerProperties.fromJson(reader); - } else if ("permissions".equals(fieldName)) { - deserializedBucketProperties.permissions = BucketPermissions.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedBucketProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java index 25ed4882a05c..4ec65b42aeb2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; @@ -23,14 +23,15 @@ @Fluent public final class CapacityPoolInner extends Resource { /* - * A unique read-only string that changes whenever the resource is updated. + * Capacity pool properties */ - private String etag; + private PoolProperties innerProperties = new PoolProperties(); /* - * Capacity pool properties + * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields." + * ) */ - private PoolProperties innerProperties = new PoolProperties(); + private String etag; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -59,21 +60,24 @@ public CapacityPoolInner() { } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Get the innerProperties property: Capacity pool properties. * - * @return the etag value. + * @return the innerProperties value. */ - public String etag() { - return this.etag; + private PoolProperties innerProperties() { + return this.innerProperties; } /** - * Get the innerProperties property: Capacity pool properties. + * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields."). * - * @return the innerProperties value. + * @return the etag value. */ - private PoolProperties innerProperties() { - return this.innerProperties; + public String etag() { + return this.etag; } /** @@ -223,7 +227,7 @@ public Float utilizedThroughputMibps() { * * @return the customThroughputMibps value. */ - public Float customThroughputMibps() { + public Integer customThroughputMibps() { return this.innerProperties() == null ? null : this.innerProperties().customThroughputMibps(); } @@ -234,7 +238,7 @@ public Float customThroughputMibps() { * @param customThroughputMibps the customThroughputMibps value to set. * @return the CapacityPoolInner object itself. */ - public CapacityPoolInner withCustomThroughputMibps(Float customThroughputMibps) { + public CapacityPoolInner withCustomThroughputMibps(Integer customThroughputMibps) { if (this.innerProperties() == null) { this.innerProperties = new PoolProperties(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java index 11cde72136cb..6c28ac17a8b1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Information regarding availability of a resource. */ -@Fluent +@Immutable public final class CheckAvailabilityResponseInner implements JsonSerializable { /* * true indicates name is valid and available. false indicates the name is invalid, @@ -39,7 +39,7 @@ public final class CheckAvailabilityResponseInner implements JsonSerializable { /* * A command that needs to be run on the external ONTAP to accept cluster peering. Will only be present if @@ -25,7 +25,7 @@ public final class ClusterPeerCommandResponseInner implements JsonSerializable { /* @@ -26,7 +26,7 @@ public final class GetGroupIdListForLdapUserResponseInner /** * Creates an instance of GetGroupIdListForLdapUserResponseInner class. */ - public GetGroupIdListForLdapUserResponseInner() { + private GetGroupIdListForLdapUserResponseInner() { } /** @@ -38,17 +38,6 @@ public List groupIdsForLdapUser() { return this.groupIdsForLdapUser; } - /** - * Set the groupIdsForLdapUser property: Group Id list. - * - * @param groupIdsForLdapUser the groupIdsForLdapUser value to set. - * @return the GetGroupIdListForLdapUserResponseInner object itself. - */ - public GetGroupIdListForLdapUserResponseInner withGroupIdsForLdapUser(List groupIdsForLdapUser) { - this.groupIdsForLdapUser = groupIdsForLdapUser; - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseInner.java index 948d7dbae96c..9195c7d98451 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. */ -@Fluent +@Immutable public final class GetKeyVaultStatusResponseInner implements JsonSerializable { /* * Represents the properties of the getKeyVaultStatus. @@ -26,7 +26,7 @@ public final class GetKeyVaultStatusResponseInner implements JsonSerializable 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. * 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 index ecda151f84a1..b31a0df9c944 100644 --- 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 @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Properties which represents Change key vault status. */ -@Fluent +@Immutable public final class GetKeyVaultStatusResponseProperties implements JsonSerializable { /* @@ -43,7 +43,7 @@ public final class GetKeyVaultStatusResponseProperties /** * Creates an instance of GetKeyVaultStatusResponseProperties class. */ - public GetKeyVaultStatusResponseProperties() { + private GetKeyVaultStatusResponseProperties() { } /** @@ -55,17 +55,6 @@ 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. * @@ -75,17 +64,6 @@ 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. @@ -96,18 +74,6 @@ 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. @@ -118,19 +84,6 @@ 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. * 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 6110b6f711ed..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResponseInner.java +++ /dev/null @@ -1,99 +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; - - /** - * 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; - } - - /** - * 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)); - 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 { - 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 292b52b4750f..ec793e09817a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; @@ -12,7 +12,6 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.AccountEncryption; import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.azure.resourcemanager.netapp.models.LdapConfiguration; import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; import com.azure.resourcemanager.netapp.models.MultiAdStatus; import java.io.IOException; @@ -25,17 +24,18 @@ @Fluent public final class NetAppAccountInner extends Resource { /* - * A unique read-only string that changes whenever the resource is updated. + * NetApp Account properties */ - private String etag; + private AccountProperties innerProperties; /* - * NetApp Account properties + * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields." + * ) */ - private AccountProperties innerProperties; + private String etag; /* - * The identity used for the resource. + * The managed service identities assigned to this resource. */ private ManagedServiceIdentity identity; @@ -66,25 +66,28 @@ public NetAppAccountInner() { } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Get the innerProperties property: NetApp Account properties. * - * @return the etag value. + * @return the innerProperties value. */ - public String etag() { - return this.etag; + private AccountProperties innerProperties() { + return this.innerProperties; } /** - * Get the innerProperties property: NetApp Account properties. + * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields."). * - * @return the innerProperties value. + * @return the etag value. */ - private AccountProperties innerProperties() { - return this.innerProperties; + public String etag() { + return this.etag; } /** - * Get the identity property: The identity used for the resource. + * Get the identity property: The managed service identities assigned to this resource. * * @return the identity value. */ @@ -93,7 +96,7 @@ public ManagedServiceIdentity identity() { } /** - * Set the identity property: The identity used for the resource. + * Set the identity property: The managed service identities assigned to this resource. * * @param identity the identity value to set. * @return the NetAppAccountInner object itself. @@ -259,29 +262,6 @@ public MultiAdStatus multiAdStatus() { return this.innerProperties() == null ? null : this.innerProperties().multiAdStatus(); } - /** - * Get the ldapConfiguration property: LDAP Configuration for the account. - * - * @return the ldapConfiguration value. - */ - public LdapConfiguration ldapConfiguration() { - return this.innerProperties() == null ? null : this.innerProperties().ldapConfiguration(); - } - - /** - * Set the ldapConfiguration property: LDAP Configuration for the account. - * - * @param ldapConfiguration the ldapConfiguration value to set. - * @return the NetAppAccountInner object itself. - */ - public NetAppAccountInner withLdapConfiguration(LdapConfiguration ldapConfiguration) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountProperties(); - } - this.innerProperties().withLdapConfiguration(ldapConfiguration); - return this; - } - /** * Validates the instance. * @@ -336,10 +316,10 @@ public static NetAppAccountInner fromJson(JsonReader jsonReader) throws IOExcept } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedNetAppAccountInner.withTags(tags); - } else if ("etag".equals(fieldName)) { - deserializedNetAppAccountInner.etag = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedNetAppAccountInner.innerProperties = AccountProperties.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedNetAppAccountInner.etag = reader.getString(); } else if ("identity".equals(fieldName)) { deserializedNetAppAccountInner.identity = ManagedServiceIdentity.fromJson(reader); } else if ("systemData".equals(fieldName)) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java index 8a27884665d2..69f285e347db 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,11 +16,9 @@ import java.util.List; /** - * Network sibling set - * * Describes the contents of a network sibling set. */ -@Fluent +@Immutable public final class NetworkSiblingSetInner implements JsonSerializable { /* * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. @@ -57,7 +55,7 @@ public final class NetworkSiblingSetInner implements JsonSerializable nicInfoList() { return this.nicInfoList; } - /** - * Set the nicInfoList property: List of NIC information. - * - * @param nicInfoList the nicInfoList value to set. - * @return the NetworkSiblingSetInner object itself. - */ - public NetworkSiblingSetInner withNicInfoList(List nicInfoList) { - this.nicInfoList = nicInfoList; - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java index c3c2fd1d6873..9beb83987fd0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Microsoft.NetApp REST API operation definition. */ -@Fluent +@Immutable public final class OperationInner implements JsonSerializable { /* * Operation name: {provider}/{resource}/{operation} @@ -41,7 +41,7 @@ public final class OperationInner implements JsonSerializable { /** * Creates an instance of OperationInner class. */ - public OperationInner() { + private OperationInner() { } /** @@ -53,17 +53,6 @@ public String name() { return this.name; } - /** - * Set the name property: Operation name: {provider}/{resource}/{operation}. - * - * @param name the name value to set. - * @return the OperationInner object itself. - */ - public OperationInner withName(String name) { - this.name = name; - return this; - } - /** * Get the display property: Display metadata associated with the operation. * @@ -73,17 +62,6 @@ public OperationDisplay display() { return this.display; } - /** - * Set the display property: Display metadata associated with the operation. - * - * @param display the display value to set. - * @return the OperationInner object itself. - */ - public OperationInner withDisplay(OperationDisplay display) { - this.display = display; - return this; - } - /** * Get the origin property: The origin of operations. * @@ -93,17 +71,6 @@ public String origin() { return this.origin; } - /** - * Set the origin property: The origin of operations. - * - * @param origin the origin value to set. - * @return the OperationInner object itself. - */ - public OperationInner withOrigin(String origin) { - this.origin = origin; - return this; - } - /** * Get the innerProperties property: Properties of operation, include metric specifications. * @@ -122,20 +89,6 @@ public ServiceSpecification serviceSpecification() { return this.innerProperties() == null ? null : this.innerProperties().serviceSpecification(); } - /** - * Set the serviceSpecification property: One property of operation, include metric specifications. - * - * @param serviceSpecification the serviceSpecification value to set. - * @return the OperationInner object itself. - */ - public OperationInner withServiceSpecification(ServiceSpecification serviceSpecification) { - if (this.innerProperties() == null) { - this.innerProperties = new OperationProperties(); - } - this.innerProperties().withServiceSpecification(serviceSpecification); - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java index c16c1327579f..4d14f15c9d15 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Properties of operation, include metric specifications. */ -@Fluent +@Immutable public final class OperationProperties implements JsonSerializable { /* * One property of operation, include metric specifications. @@ -25,7 +25,7 @@ public final class OperationProperties implements JsonSerializable { * 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; + private Integer customThroughputMibps; /* * The qos type of the pool @@ -163,7 +163,7 @@ public Float utilizedThroughputMibps() { * * @return the customThroughputMibps value. */ - public Float customThroughputMibps() { + public Integer customThroughputMibps() { return this.customThroughputMibps; } @@ -174,7 +174,7 @@ public Float customThroughputMibps() { * @param customThroughputMibps the customThroughputMibps value to set. * @return the PoolProperties object itself. */ - public PoolProperties withCustomThroughputMibps(Float customThroughputMibps) { + public PoolProperties withCustomThroughputMibps(Integer customThroughputMibps) { this.customThroughputMibps = customThroughputMibps; return this; } @@ -300,7 +300,7 @@ public static PoolProperties fromJson(JsonReader jsonReader) throws IOException } else if ("utilizedThroughputMibps".equals(fieldName)) { deserializedPoolProperties.utilizedThroughputMibps = reader.getNullable(JsonReader::getFloat); } else if ("customThroughputMibps".equals(fieldName)) { - deserializedPoolProperties.customThroughputMibps = reader.getNullable(JsonReader::getFloat); + deserializedPoolProperties.customThroughputMibps = reader.getNullable(JsonReader::getInt); } 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/QuotaItemProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java index c4b3cfd4d4b3..8e029c82e34c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; @@ -34,7 +34,7 @@ public final class QuotaItemProperties implements JsonSerializable { /* * Provides storage to network proximity information in the region. @@ -32,7 +32,7 @@ public final class RegionInfoInner implements JsonSerializable /** * Creates an instance of RegionInfoInner class. */ - public RegionInfoInner() { + private RegionInfoInner() { } /** @@ -44,17 +44,6 @@ public RegionStorageToNetworkProximity storageToNetworkProximity() { return this.storageToNetworkProximity; } - /** - * Set the storageToNetworkProximity property: Provides storage to network proximity information in the region. - * - * @param storageToNetworkProximity the storageToNetworkProximity value to set. - * @return the RegionInfoInner object itself. - */ - public RegionInfoInner withStorageToNetworkProximity(RegionStorageToNetworkProximity storageToNetworkProximity) { - this.storageToNetworkProximity = storageToNetworkProximity; - return this; - } - /** * Get the availabilityZoneMappings property: Provides logical availability zone mappings for the subscription for a * region. @@ -65,19 +54,6 @@ public List availabilityZoneMappings() { return this.availabilityZoneMappings; } - /** - * Set the availabilityZoneMappings property: Provides logical availability zone mappings for the subscription for a - * region. - * - * @param availabilityZoneMappings the availabilityZoneMappings value to set. - * @return the RegionInfoInner object itself. - */ - public RegionInfoInner - withAvailabilityZoneMappings(List availabilityZoneMappings) { - this.availabilityZoneMappings = availabilityZoneMappings; - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java index 330bd475044e..7be16c1deec6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.json.JsonReader; @@ -18,7 +18,7 @@ /** * Information regarding regionInfo Item. */ -@Fluent +@Immutable public final class RegionInfoResourceInner extends ProxyResource { /* * regionInfo properties @@ -48,7 +48,7 @@ public final class RegionInfoResourceInner extends ProxyResource { /** * Creates an instance of RegionInfoResourceInner class. */ - public RegionInfoResourceInner() { + private RegionInfoResourceInner() { } /** @@ -108,21 +108,6 @@ public RegionStorageToNetworkProximity storageToNetworkProximity() { return this.innerProperties() == null ? null : this.innerProperties().storageToNetworkProximity(); } - /** - * Set the storageToNetworkProximity property: Provides storage to network proximity information in the region. - * - * @param storageToNetworkProximity the storageToNetworkProximity value to set. - * @return the RegionInfoResourceInner object itself. - */ - public RegionInfoResourceInner - withStorageToNetworkProximity(RegionStorageToNetworkProximity storageToNetworkProximity) { - if (this.innerProperties() == null) { - this.innerProperties = new RegionInfoInner(); - } - this.innerProperties().withStorageToNetworkProximity(storageToNetworkProximity); - return this; - } - /** * Get the availabilityZoneMappings property: Provides logical availability zone mappings for the subscription for a * region. @@ -133,22 +118,6 @@ public List availabilityZoneMappings() { return this.innerProperties() == null ? null : this.innerProperties().availabilityZoneMappings(); } - /** - * Set the availabilityZoneMappings property: Provides logical availability zone mappings for the subscription for a - * region. - * - * @param availabilityZoneMappings the availabilityZoneMappings value to set. - * @return the RegionInfoResourceInner object itself. - */ - public RegionInfoResourceInner - withAvailabilityZoneMappings(List availabilityZoneMappings) { - if (this.innerProperties() == null) { - this.innerProperties = new RegionInfoInner(); - } - this.innerProperties().withAvailabilityZoneMappings(availabilityZoneMappings); - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java index 822fa4ef1277..291af692f400 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java @@ -1,23 +1,26 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.EndpointType; +import com.azure.resourcemanager.netapp.models.ReplicationMirrorState; import com.azure.resourcemanager.netapp.models.ReplicationSchedule; import java.io.IOException; +import java.time.OffsetDateTime; /** * Replication properties. */ -@Fluent +@Immutable public final class ReplicationInner implements JsonSerializable { /* * UUID v4 used to identify the replication. @@ -44,10 +47,25 @@ public final class ReplicationInner implements JsonSerializable CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("replicationDeletionTime".equals(fieldName)) { + deserializedReplicationInner.replicationDeletionTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java index cb450d4a138d..934d97136d26 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java @@ -1,22 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.MirrorState; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; +import com.azure.resourcemanager.netapp.models.VolumeReplicationRelationshipStatus; import java.io.IOException; /** * Replication status. */ -@Fluent +@Immutable public final class ReplicationStatusInner implements JsonSerializable { /* * Replication health check @@ -26,12 +26,10 @@ public final class ReplicationStatusInner implements JsonSerializable { /* - * List of volumes + * The Volume items on this page */ private List value; + /* + * The link to the next page of items + */ + private String nextLink; + /** * Creates an instance of SnapshotPolicyVolumeListInner class. */ - public SnapshotPolicyVolumeListInner() { + private SnapshotPolicyVolumeListInner() { } /** - * Get the value property: List of volumes. + * Get the value property: The Volume items on this page. * * @return the value value. */ @@ -38,14 +44,12 @@ public List value() { } /** - * Set the value property: List of volumes. + * Get the nextLink property: The link to the next page of items. * - * @param value the value value to set. - * @return the SnapshotPolicyVolumeListInner object itself. + * @return the nextLink value. */ - public SnapshotPolicyVolumeListInner withValue(List value) { - this.value = value; - return this; + public String nextLink() { + return this.nextLink; } /** @@ -54,11 +58,17 @@ public SnapshotPolicyVolumeListInner withValue(List value) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model SnapshotPolicyVolumeListInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SnapshotPolicyVolumeListInner.class); + /** * {@inheritDoc} */ @@ -66,6 +76,7 @@ public void validate() { 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(); } @@ -75,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SnapshotPolicyVolumeListInner if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SnapshotPolicyVolumeListInner. */ public static SnapshotPolicyVolumeListInner fromJson(JsonReader jsonReader) throws IOException { @@ -88,6 +100,8 @@ public static SnapshotPolicyVolumeListInner fromJson(JsonReader jsonReader) thro if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> VolumeInner.fromJson(reader1)); deserializedSnapshotPolicyVolumeListInner.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedSnapshotPolicyVolumeListInner.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java index dd6538c2da3d..f18ea03fee5b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java similarity index 77% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemInner.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java index 718bcd255216..a9f8ccb8a022 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; @@ -16,7 +16,7 @@ * Information regarding Quota Item. */ @Immutable -public final class QuotaItemInner extends ProxyResource { +public final class SubscriptionQuotaItemInner extends ProxyResource { /* * QuotaItem properties */ @@ -43,9 +43,9 @@ public final class QuotaItemInner extends ProxyResource { private String id; /** - * Creates an instance of QuotaItemInner class. + * Creates an instance of SubscriptionQuotaItemInner class. */ - public QuotaItemInner() { + private SubscriptionQuotaItemInner() { } /** @@ -145,37 +145,37 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of QuotaItemInner from the JsonReader. + * Reads an instance of SubscriptionQuotaItemInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of QuotaItemInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. + * @return An instance of SubscriptionQuotaItemInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the QuotaItemInner. + * @throws IOException If an error occurs while reading the SubscriptionQuotaItemInner. */ - public static QuotaItemInner fromJson(JsonReader jsonReader) throws IOException { + public static SubscriptionQuotaItemInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - QuotaItemInner deserializedQuotaItemInner = new QuotaItemInner(); + SubscriptionQuotaItemInner deserializedSubscriptionQuotaItemInner = new SubscriptionQuotaItemInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedQuotaItemInner.id = reader.getString(); + deserializedSubscriptionQuotaItemInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedQuotaItemInner.name = reader.getString(); + deserializedSubscriptionQuotaItemInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedQuotaItemInner.type = reader.getString(); + deserializedSubscriptionQuotaItemInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { - deserializedQuotaItemInner.innerProperties = QuotaItemProperties.fromJson(reader); + deserializedSubscriptionQuotaItemInner.innerProperties = QuotaItemProperties.fromJson(reader); } else if ("systemData".equals(fieldName)) { - deserializedQuotaItemInner.systemData = SystemData.fromJson(reader); + deserializedSubscriptionQuotaItemInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedQuotaItemInner; + return deserializedSubscriptionQuotaItemInner; }); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java index 7dfecd9d6683..558de7278e54 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java index 4e0d02eee786..d9a66ed0df4b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Result of the post subvolume and action is to get metadata of the subvolume. */ -@Fluent +@Immutable public final class SubvolumeModelInner implements JsonSerializable { /* * Resource Id @@ -40,7 +40,7 @@ public final class SubvolumeModelInner implements JsonSerializable { /* * Path to the subvolume @@ -72,7 +72,7 @@ public final class SubvolumeModelProperties implements JsonSerializable { /* * A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if @@ -25,7 +25,7 @@ public final class SvmPeerCommandResponseInner implements JsonSerializable /** * Creates an instance of UsageProperties class. */ - public UsageProperties() { + private UsageProperties() { } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java index 71afe95c71e3..c11a62798330 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; @@ -35,7 +35,7 @@ public final class UsageResultInner implements JsonSerializable { +public final class VolumeGroupDetailsInner extends ProxyResource { + /* + * Volume group properties + */ + private VolumeGroupProperties innerProperties; + /* * Resource location */ private String location; /* - * Resource Id + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - private String id; + private SystemData systemData; /* - * Resource name + * The type of the resource. */ - private String name; + private String type; /* - * Resource type + * The name of the resource. */ - private String type; + private String name; /* - * Volume group properties + * Fully qualified resource Id for the resource. */ - private VolumeGroupProperties innerProperties; + private String id; /** * Creates an instance of VolumeGroupDetailsInner class. @@ -50,6 +56,15 @@ public final class VolumeGroupDetailsInner implements JsonSerializable { /* * Resource location @@ -45,7 +45,7 @@ public final class VolumeGroupInner implements JsonSerializable { /* * Azure lifecycle management @@ -30,7 +30,7 @@ public final class VolumeGroupListProperties implements JsonSerializable zones; + private String etag; /* - * Volume properties + * The availability zones. */ - private VolumeProperties innerProperties = new VolumeProperties(); + private List zones; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -80,7 +80,19 @@ public VolumeInner() { } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Get the innerProperties property: Volume properties. + * + * @return the innerProperties value. + */ + private VolumeProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields."). * * @return the etag value. */ @@ -89,7 +101,7 @@ public String etag() { } /** - * Get the zones property: Availability Zone. + * Get the zones property: The availability zones. * * @return the zones value. */ @@ -98,7 +110,7 @@ public List zones() { } /** - * Set the zones property: Availability Zone. + * Set the zones property: The availability zones. * * @param zones the zones value to set. * @return the VolumeInner object itself. @@ -108,15 +120,6 @@ public VolumeInner withZones(List zones) { return this; } - /** - * Get the innerProperties property: Volume properties. - * - * @return the innerProperties value. - */ - private VolumeProperties innerProperties() { - return this.innerProperties; - } - /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -859,29 +862,6 @@ public VolumeInner withLdapEnabled(Boolean ldapEnabled) { return this; } - /** - * Get the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @return the ldapServerType value. - */ - public LdapServerType ldapServerType() { - return this.innerProperties() == null ? null : this.innerProperties().ldapServerType(); - } - - /** - * Set the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @param ldapServerType the ldapServerType value to set. - * @return the VolumeInner object itself. - */ - public VolumeInner withLdapServerType(LdapServerType ldapServerType) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLdapServerType(ldapServerType); - return this; - } - /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -999,10 +979,7 @@ public VolumeInner withCoolAccessTieringPolicy(CoolAccessTieringPolicy coolAcces * 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. */ @@ -1015,10 +992,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. @@ -1365,29 +1339,6 @@ public Long inheritedSizeInBytes() { return this.innerProperties() == null ? null : this.innerProperties().inheritedSizeInBytes(); } - /** - * Get the language property: Language supported for volume. - * - * @return the language value. - */ - public VolumeLanguage language() { - return this.innerProperties() == null ? null : this.innerProperties().language(); - } - - /** - * Set the language property: Language supported for volume. - * - * @param language the language value to set. - * @return the VolumeInner object itself. - */ - public VolumeInner withLanguage(VolumeLanguage language) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLanguage(language); - return this; - } - /** * 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 b347a9f46624..b03bf0e90072 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java index 5b358004b2d1..f91accd40531 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; @@ -17,14 +17,13 @@ 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.LdapServerType; +import com.azure.resourcemanager.netapp.models.MountTargetProperties; import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; import com.azure.resourcemanager.netapp.models.SecurityStyle; 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; @@ -213,11 +212,6 @@ public final class VolumeProperties implements JsonSerializable tags) { } /** - * Get the provisioningState property: Provisioning state of the resource. + * Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called. * * @return the provisioningState value. */ - public NetAppProvisioningState provisioningState() { + public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java index fcd2904ec53e..ff6793bbeb95 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.fluent.models; @@ -9,7 +9,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.NetAppProvisioningState; +import com.azure.resourcemanager.netapp.models.ProvisioningState; import com.azure.resourcemanager.netapp.models.Type; import java.io.IOException; @@ -19,9 +19,9 @@ @Fluent public final class VolumeQuotaRulesProperties implements JsonSerializable { /* - * Provisioning state of the resource + * Gets the status of the VolumeQuotaRule at the time the operation was called. */ - private NetAppProvisioningState provisioningState; + private ProvisioningState provisioningState; /* * Size of quota @@ -46,11 +46,11 @@ public VolumeQuotaRulesProperties() { } /** - * Get the provisioningState property: Provisioning state of the resource. + * Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called. * * @return the provisioningState value. */ - public NetAppProvisioningState provisioningState() { + public ProvisioningState provisioningState() { return this.provisioningState; } @@ -155,7 +155,7 @@ public static VolumeQuotaRulesProperties fromJson(JsonReader jsonReader) throws if ("provisioningState".equals(fieldName)) { deserializedVolumeQuotaRulesProperties.provisioningState - = NetAppProvisioningState.fromString(reader.getString()); + = ProvisioningState.fromString(reader.getString()); } else if ("quotaSizeInKiBs".equals(fieldName)) { deserializedVolumeQuotaRulesProperties.quotaSizeInKiBs = reader.getNullable(JsonReader::getLong); } else if ("quotaType".equals(fieldName)) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java index 501b25f2d933..cf44821f8452 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the inner data models for NetAppManagementClient. + * Package containing the inner data models for NetAppFiles. * Microsoft NetApp Files Azure Resource Provider specification. */ package com.azure.resourcemanager.netapp.fluent.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java index 7cdd0230fccf..cce54d17684f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the service clients for NetAppManagementClient. + * Package containing the service clients for NetAppFiles. * Microsoft NetApp Files Azure Resource Provider specification. */ package com.azure.resourcemanager.netapp.fluent; 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 a63af100d35a..3921e959c7de 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -38,9 +38,9 @@ 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.implementation.models.NetAppAccountList; import com.azure.resourcemanager.netapp.models.ChangeKeyVault; import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; -import com.azure.resourcemanager.netapp.models.NetAppAccountList; import com.azure.resourcemanager.netapp.models.NetAppAccountPatch; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -74,240 +74,231 @@ public final class AccountsClientImpl implements AccountsClient { * The interface defining all the services for NetAppManagementClientAccounts to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientAccounts") public interface AccountsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getByResourceGroupSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") NetAppAccountInner body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetAppAccountInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") NetAppAccountInner body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetAppAccountInner body, Context context); - @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetAppAccountPatch body, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetAppAccountPatch body, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") - @ExpectedResponses({ 200, 202 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") NetAppAccountPatch body, - @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") - @ExpectedResponses({ 200, 202 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") NetAppAccountPatch body, + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> renewCredentials(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> renewCredentials(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response renewCredentialsSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response renewCredentialsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/transitiontocmk") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> transitionToCmk(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> transitionToCmk(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") EncryptionTransitionRequest body, @HeaderParam("Accept") String accept, - Context context); + @BodyParam("application/json") EncryptionTransitionRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/transitiontocmk") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response transitionToCmkSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response transitionToCmkSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") EncryptionTransitionRequest body, @HeaderParam("Accept") String accept, - Context context); + @BodyParam("application/json") EncryptionTransitionRequest body, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/getKeyVaultStatus") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getChangeKeyVaultInformation(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> getChangeKeyVaultInformation(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/getKeyVaultStatus") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getChangeKeyVaultInformationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getChangeKeyVaultInformationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/changeKeyVault") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> changeKeyVault(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> changeKeyVault(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ChangeKeyVault body, - @HeaderParam("Accept") String accept, Context context); + @BodyParam("application/json") ChangeKeyVault body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/changeKeyVault") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response changeKeyVaultSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response changeKeyVaultSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ChangeKeyVault body, - @HeaderParam("Accept") String accept, Context context); + @BodyParam("application/json") ChangeKeyVault body, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listBySubscriptionNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + Response listBySubscriptionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** - * Describe all NetApp Accounts in a subscription - * - * List and describe all NetApp accounts in the subscription. + * Get the NetApp account. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the NetApp account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String accountName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -316,41 +307,50 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe all NetApp Accounts in a subscription - * - * List and describe all NetApp accounts in the subscription. + * Get the NetApp account. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedFlux}. + * @return the NetApp account on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, accountName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Describe all NetApp Accounts in a subscription - * - * List and describe all NetApp accounts in the subscription. + * Get the NetApp account. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources along with {@link PagedResponse}. + * @return the NetApp account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage() { + public Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, + Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -361,88 +361,48 @@ private PagedResponse listSinglePage() { .log(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Describe all NetApp Accounts in a subscription - * - * List and describe all NetApp accounts in the subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(Context context) { - if (this.client.getEndpoint() == null) { + if (resourceGroupName == null) { throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { + if (accountName == null) { throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); } /** - * Describe all NetApp Accounts in a subscription - * - * List and describe all NetApp accounts in the subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); - } - - /** - * Describe all NetApp Accounts in a subscription - * - * List and describe all NetApp accounts in the subscription. + * Get the NetApp account. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedIterable}. + * @return the NetApp account. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(() -> listSinglePage(context), - nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName) { + return getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } /** - * Describe all NetApp Accounts in a resource group - * - * List and describe all NetApp accounts in the resource group. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the 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 list of NetApp account resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, NetAppAccountInner body) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -455,45 +415,36 @@ private Mono> listByResourceGroupSinglePageAsy return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe all NetApp Accounts in a resource group - * - * List and describe all NetApp accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Describe all NetApp Accounts in a resource group - * - * List and describe all NetApp accounts in the resource group. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the 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 list of NetApp account resources along with {@link PagedResponse}. + * @return netApp account resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { + private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + NetAppAccountInner body) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -508,27 +459,36 @@ private PagedResponse listByResourceGroupSinglePage(String r throw LOGGER.atError() .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (body == null) { + throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, Context.NONE); } /** - * Describe all NetApp Accounts in a resource group - * - * List and describe all NetApp accounts in the resource group. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the operation. * @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 list of NetApp account resources along with {@link PagedResponse}. + * @return netApp account resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) { + private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + NetAppAccountInner body, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -543,164 +503,133 @@ private PagedResponse listByResourceGroupSinglePage(String r throw LOGGER.atError() .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (body == null) { + throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, context); } /** - * Describe all NetApp Accounts in a resource group - * - * List and describe all NetApp accounts in the resource group. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the 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 list of NetApp account resources as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of netApp account resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), - nextLink -> listNextSinglePage(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, NetAppAccountInner> + beginCreateOrUpdateAsync(String resourceGroupName, String accountName, NetAppAccountInner body) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, accountName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + NetAppAccountInner.class, NetAppAccountInner.class, this.client.getContext()); } /** - * Describe all NetApp Accounts in a resource group - * - * List and describe all NetApp accounts in the resource group. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. + * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the 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 list of NetApp account resources as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of netApp account resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), - nextLink -> listNextSinglePage(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, NetAppAccountInner body) { + Response response = createOrUpdateWithResponse(resourceGroupName, accountName, body); + return this.client.getLroResult(response, NetAppAccountInner.class, + NetAppAccountInner.class, Context.NONE); } /** - * Describe a NetApp Account - * - * Get the NetApp account. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of netApp account resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, NetAppAccountInner body, Context context) { + Response response = createOrUpdateWithResponse(resourceGroupName, accountName, body, context); + return this.client.getLroResult(response, NetAppAccountInner.class, + NetAppAccountInner.class, context); } /** - * Describe a NetApp Account - * - * Get the NetApp account. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account on successful completion of {@link Mono}. + * @return netApp account resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, accountName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, + NetAppAccountInner body) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, body).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Describe a NetApp Account - * - * Get the NetApp account. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. + * @param body NetApp Account object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account along with {@link Response}. + * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context); + public NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body) { + return beginCreateOrUpdate(resourceGroupName, accountName, body).getFinalResult(); } /** - * Describe a NetApp Account - * - * Get the NetApp account. + * Create or update the specified NetApp account within the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param body NetApp Account object supplied in the body of the operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName) { - return getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); + public NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body, + Context context) { + return beginCreateOrUpdate(resourceGroupName, accountName, body, context).getFinalResult(); } /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -711,8 +640,8 @@ public NetAppAccountInner getByResourceGroup(String resourceGroupName, String ac * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, NetAppAccountInner body) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + NetAppAccountPatch body) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -733,17 +662,16 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -754,8 +682,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * @return netApp account resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - NetAppAccountInner body) { + private Response updateWithResponse(String resourceGroupName, String accountName, + NetAppAccountPatch body) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -779,15 +707,14 @@ private Response createOrUpdateWithResponse(String resourceGroupName } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, Context.NONE); } /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -799,8 +726,8 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @return netApp account resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - NetAppAccountInner body, Context context) { + private Response updateWithResponse(String resourceGroupName, String accountName, + NetAppAccountPatch body, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -824,15 +751,14 @@ private Response createOrUpdateWithResponse(String resourceGroupName } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), body, accept, context); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, context); } /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -843,17 +769,15 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @return the {@link PollerFlux} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetAppAccountInner> - beginCreateOrUpdateAsync(String resourceGroupName, String accountName, NetAppAccountInner body) { - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, accountName, body); + private PollerFlux, NetAppAccountInner> beginUpdateAsync(String resourceGroupName, + String accountName, NetAppAccountPatch body) { + Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, body); return this.client.getLroResult(mono, this.client.getHttpPipeline(), NetAppAccountInner.class, NetAppAccountInner.class, this.client.getContext()); } /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -864,17 +788,15 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, NetAppAccountInner body) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, body); + public SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, + String accountName, NetAppAccountPatch body) { + Response response = updateWithResponse(resourceGroupName, accountName, body); return this.client.getLroResult(response, NetAppAccountInner.class, NetAppAccountInner.class, Context.NONE); } /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -886,17 +808,15 @@ public SyncPoller, NetAppAccountInner> beginCreat * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, NetAppAccountInner body, Context context) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, body, context); + public SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, + String accountName, NetAppAccountPatch body, Context context) { + Response response = updateWithResponse(resourceGroupName, accountName, body, context); return this.client.getLroResult(response, NetAppAccountInner.class, NetAppAccountInner.class, context); } /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -907,16 +827,14 @@ public SyncPoller, NetAppAccountInner> beginCreat * @return netApp account resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - NetAppAccountInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, body).last() + private Mono updateAsync(String resourceGroupName, String accountName, + NetAppAccountPatch body) { + return beginUpdateAsync(resourceGroupName, accountName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -927,14 +845,12 @@ private Mono createOrUpdateAsync(String resourceGroupName, S * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, body).getFinalResult(); + public NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body) { + return beginUpdate(resourceGroupName, accountName, body).getFinalResult(); } /** - * Create or update a NetApp account - * - * Create or update the specified NetApp account within the resource group. + * Patch the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -946,14 +862,12 @@ public NetAppAccountInner createOrUpdate(String resourceGroupName, String accoun * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body, + public NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, body, context).getFinalResult(); + return beginUpdate(resourceGroupName, accountName, body, context).getFinalResult(); } /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -980,16 +894,13 @@ private Mono>> deleteWithResponseAsync(String resource if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1019,14 +930,11 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, Context.NONE); } /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1057,14 +965,11 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, context); } /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1082,8 +987,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1100,8 +1003,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1120,8 +1021,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1137,8 +1036,6 @@ private Mono deleteAsync(String resourceGroupName, String accountName) { } /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1153,8 +1050,6 @@ public void delete(String resourceGroupName, String accountName) { } /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1170,21 +1065,17 @@ public void delete(String resourceGroupName, String accountName, Context context } /** - * Update a NetApp account - * - * Patch the specified NetApp account. + * List and describe all NetApp accounts in the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - NetAppAccountPatch body) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1197,37 +1088,41 @@ private Mono>> updateWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a NetApp account + * List and describe all NetApp accounts in the resource group. * - * Patch the specified NetApp account. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List and describe all NetApp accounts in the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource along with {@link Response}. + * @return list of NetApp account resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - NetAppAccountPatch body) { + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -1242,37 +1137,25 @@ private Response updateWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), body, accept, Context.NONE); + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Update a NetApp account - * - * Patch the specified NetApp account. + * List and describe all NetApp accounts in the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource along with {@link Response}. + * @return list of NetApp account resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - NetAppAccountPatch body, Context context) { + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -1283,149 +1166,170 @@ private Response updateWithResponse(String resourceGroupName, String .log(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), body, accept, context); + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Update a NetApp account - * - * Patch the specified NetApp account. + * List and describe all NetApp accounts in the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the 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 netApp account resource. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetAppAccountInner> beginUpdateAsync(String resourceGroupName, - String accountName, NetAppAccountPatch body) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - NetAppAccountInner.class, NetAppAccountInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listNextSinglePage(nextLink)); } /** - * Update a NetApp account - * - * Patch the specified NetApp account. + * List and describe all NetApp accounts in the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp account resource. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, - String accountName, NetAppAccountPatch body) { - Response response = updateWithResponse(resourceGroupName, accountName, body); - return this.client.getLroResult(response, NetAppAccountInner.class, - NetAppAccountInner.class, Context.NONE); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listNextSinglePage(nextLink, context)); } /** - * Update a NetApp account - * - * Patch the specified NetApp account. + * List and describe all NetApp accounts in the subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp account resource. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, - String accountName, NetAppAccountPatch body, Context context) { - Response response = updateWithResponse(resourceGroupName, accountName, body, context); - return this.client.getLroResult(response, NetAppAccountInner.class, - NetAppAccountInner.class, context); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a NetApp account + * List and describe all NetApp accounts in the subscription. * - * Patch the specified NetApp account. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * List and describe all NetApp accounts in the subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource on successful completion of {@link Mono}. + * @return list of NetApp account resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, - NetAppAccountPatch body) { - return beginUpdateAsync(resourceGroupName, accountName, body).last() - .flatMap(this.client::getLroFinalResultOrError); + private PagedResponse listSinglePage() { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Update a NetApp account - * - * Patch the specified NetApp account. + * List and describe all NetApp accounts in the subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return list of NetApp account resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body) { - return beginUpdate(resourceGroupName, accountName, body).getFinalResult(); + private PagedResponse listSinglePage(Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Update a NetApp account + * List and describe all NetApp accounts in the subscription. * - * Patch the specified NetApp account. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); + } + + /** + * List and describe all NetApp accounts in the subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param body NetApp Account object supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp account resource. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body, - Context context) { - return beginUpdate(resourceGroupName, accountName, body, context).getFinalResult(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), + nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); } /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -1454,16 +1358,13 @@ private Mono>> renewCredentialsWithResponseAsync(Strin if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.renewCredentials(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.renewCredentials(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -1494,14 +1395,11 @@ private Response renewCredentialsWithResponse(String resourceGroupNa throw LOGGER.atError() .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - final String accept = "application/json"; - return service.renewCredentialsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, Context.NONE); + return service.renewCredentialsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, Context.NONE); } /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -1534,14 +1432,11 @@ private Response renewCredentialsWithResponse(String resourceGroupNa throw LOGGER.atError() .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - final String accept = "application/json"; - return service.renewCredentialsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context); + return service.renewCredentialsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, context); } /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -1561,8 +1456,6 @@ private PollerFlux, Void> beginRenewCredentialsAsync(String res } /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -1580,8 +1473,6 @@ public SyncPoller, Void> beginRenewCredentials(String resourceG } /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -1601,8 +1492,6 @@ public SyncPoller, Void> beginRenewCredentials(String resourceG } /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -1620,8 +1509,6 @@ private Mono renewCredentialsAsync(String resourceGroupName, String accoun } /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -1637,8 +1524,6 @@ public void renewCredentials(String resourceGroupName, String accountName) { } /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -1655,8 +1540,6 @@ public void renewCredentials(String resourceGroupName, String accountName, Conte } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1689,16 +1572,13 @@ private Mono>> transitionToCmkWithResponseAsync(String if (body != null) { body.validate(); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.transitionToCmk(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.transitionToCmk(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1734,14 +1614,11 @@ private Response transitionToCmkWithResponse(String resourceGroupNam if (body != null) { body.validate(); } - final String accept = "application/json"; - return service.transitionToCmkSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.transitionToCmkSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, body, Context.NONE); } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1778,14 +1655,11 @@ private Response transitionToCmkWithResponse(String resourceGroupNam if (body != null) { body.validate(); } - final String accept = "application/json"; - return service.transitionToCmkSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), body, accept, context); + return service.transitionToCmkSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, body, context); } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1806,8 +1680,6 @@ private PollerFlux, Void> beginTransitionToCmkAsync(String reso } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1827,8 +1699,6 @@ private PollerFlux, Void> beginTransitionToCmkAsync(String reso } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1848,8 +1718,6 @@ public SyncPoller, Void> beginTransitionToCmk(String resourceGr } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1868,8 +1736,6 @@ public SyncPoller, Void> beginTransitionToCmk(String resourceGr } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1890,8 +1756,6 @@ public SyncPoller, Void> beginTransitionToCmk(String resourceGr } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1911,8 +1775,6 @@ private Mono transitionToCmkAsync(String resourceGroupName, String account } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1931,8 +1793,6 @@ private Mono transitionToCmkAsync(String resourceGroupName, String account } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1949,8 +1809,6 @@ public void transitionToCmk(String resourceGroupName, String accountName) { } /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -1969,8 +1827,6 @@ public void transitionToCmk(String resourceGroupName, String accountName, Encryp } /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -1980,8 +1836,7 @@ 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 result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted along - * with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getChangeKeyVaultInformationWithResponseAsync(String resourceGroupName, @@ -2003,15 +1858,13 @@ private Mono>> getChangeKeyVaultInformationWithRespons } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getChangeKeyVaultInformation(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, this.client.getApiVersion(), accept, - context)) + .withContext( + context -> service.getChangeKeyVaultInformation(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -2021,8 +1874,7 @@ 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 result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted along - * with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response getChangeKeyVaultInformationWithResponse(String resourceGroupName, @@ -2046,13 +1898,11 @@ private Response getChangeKeyVaultInformationWithResponse(String res .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } final String accept = "application/json"; - return service.getChangeKeyVaultInformationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, Context.NONE); + return service.getChangeKeyVaultInformationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); } /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -2063,8 +1913,7 @@ private Response getChangeKeyVaultInformationWithResponse(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along - * with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response getChangeKeyVaultInformationWithResponse(String resourceGroupName, String accountName, @@ -2088,13 +1937,11 @@ private Response getChangeKeyVaultInformationWithResponse(String res .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } final String accept = "application/json"; - return service.getChangeKeyVaultInformationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context); + return service.getChangeKeyVaultInformationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); } /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -2104,8 +1951,7 @@ private Response getChangeKeyVaultInformationWithResponse(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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 result of getKeyVaultStatus with information about how volumes - * under NetApp account are encrypted. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, GetKeyVaultStatusResponseInner> @@ -2118,8 +1964,6 @@ private Response getChangeKeyVaultInformationWithResponse(String res } /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -2129,8 +1973,7 @@ private Response getChangeKeyVaultInformationWithResponse(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of result of getKeyVaultStatus with information about how volumes - * under NetApp account are encrypted. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GetKeyVaultStatusResponseInner> @@ -2141,8 +1984,6 @@ private Response getChangeKeyVaultInformationWithResponse(String res } /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -2153,8 +1994,7 @@ private Response getChangeKeyVaultInformationWithResponse(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of result of getKeyVaultStatus with information about how volumes - * under NetApp account are encrypted. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GetKeyVaultStatusResponseInner> @@ -2166,8 +2006,6 @@ private Response getChangeKeyVaultInformationWithResponse(String res } /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -2177,8 +2015,7 @@ private Response getChangeKeyVaultInformationWithResponse(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getChangeKeyVaultInformationAsync(String resourceGroupName, @@ -2188,8 +2025,6 @@ private Mono getChangeKeyVaultInformationAsync(S } /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -2199,7 +2034,7 @@ private Mono getChangeKeyVaultInformationAsync(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. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resourceGroupName, String accountName) { @@ -2207,8 +2042,6 @@ public GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resour } /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -2219,7 +2052,7 @@ public GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resourceGroupName, String accountName, @@ -2228,8 +2061,6 @@ public GetKeyVaultStatusResponseInner getChangeKeyVaultInformation(String resour } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2262,16 +2093,13 @@ private Mono>> changeKeyVaultWithResponseAsync(String if (body != null) { body.validate(); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.changeKeyVault(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.changeKeyVault(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2307,14 +2135,11 @@ private Response changeKeyVaultWithResponse(String resourceGroupName if (body != null) { body.validate(); } - final String accept = "application/json"; - return service.changeKeyVaultSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.changeKeyVaultSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, body, Context.NONE); } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2351,14 +2176,11 @@ private Response changeKeyVaultWithResponse(String resourceGroupName if (body != null) { body.validate(); } - final String accept = "application/json"; - return service.changeKeyVaultSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), body, accept, context); + return service.changeKeyVaultSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, body, context); } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2379,8 +2201,6 @@ private PollerFlux, Void> beginChangeKeyVaultAsync(String resou } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2400,8 +2220,6 @@ private PollerFlux, Void> beginChangeKeyVaultAsync(String resou } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2421,8 +2239,6 @@ public SyncPoller, Void> beginChangeKeyVault(String resourceGro } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2441,8 +2257,6 @@ public SyncPoller, Void> beginChangeKeyVault(String resourceGro } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2463,8 +2277,6 @@ public SyncPoller, Void> beginChangeKeyVault(String resourceGro } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2483,8 +2295,6 @@ private Mono changeKeyVaultAsync(String resourceGroupName, String accountN } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2503,8 +2313,6 @@ private Mono changeKeyVaultAsync(String resourceGroupName, String accountN } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2521,8 +2329,6 @@ public void changeKeyVault(String resourceGroupName, String accountName) { } /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -2540,8 +2346,6 @@ public void changeKeyVault(String resourceGroupName, String accountName, ChangeK } /** - * Describe all NetApp Accounts in a subscription - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -2552,7 +2356,7 @@ public void changeKeyVault(String resourceGroupName, String accountName, ChangeK * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -2561,17 +2365,13 @@ private Mono> listBySubscriptionNextSinglePage new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe all NetApp Accounts in a subscription - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -2581,7 +2381,7 @@ private Mono> listBySubscriptionNextSinglePage * @return list of NetApp account resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { + private PagedResponse listNextSinglePage(String nextLink) { if (nextLink == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -2593,14 +2393,12 @@ private PagedResponse listBySubscriptionNextSinglePage(Strin } final String accept = "application/json"; Response res - = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } /** - * Describe all NetApp Accounts in a subscription - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -2611,7 +2409,7 @@ private PagedResponse listBySubscriptionNextSinglePage(Strin * @return list of NetApp account resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { + private PagedResponse listNextSinglePage(String nextLink, Context context) { if (nextLink == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -2622,15 +2420,12 @@ private PagedResponse listBySubscriptionNextSinglePage(Strin "Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } /** - * Describe all NetApp Accounts in a resource group - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -2641,7 +2436,7 @@ private PagedResponse listBySubscriptionNextSinglePage(Strin * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -2650,15 +2445,15 @@ private Mono> listNextSinglePageAsync(String n new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe all NetApp Accounts in a resource group - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -2668,7 +2463,7 @@ private Mono> listNextSinglePageAsync(String n * @return list of NetApp account resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { + private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { if (nextLink == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -2680,14 +2475,12 @@ private PagedResponse listNextSinglePage(String nextLink) { } final String accept = "application/json"; Response res - = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } /** - * Describe all NetApp Accounts in a resource group - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -2698,7 +2491,7 @@ private PagedResponse listNextSinglePage(String nextLink) { * @return list of NetApp account resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { + private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { if (nextLink == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -2709,7 +2502,8 @@ private PagedResponse listNextSinglePage(String nextLink, Co "Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } 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 709303aa2571..39c044abd39e 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -31,26 +31,6 @@ public AccountsImpl(AccountsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); - } - public Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, Context context) { Response inner @@ -80,6 +60,26 @@ public void delete(String resourceGroupName, String accountName, Context context this.serviceClient().delete(resourceGroupName, accountName, context); } + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); + } + public void renewCredentials(String resourceGroupName, String accountName) { this.serviceClient().renewCredentials(resourceGroupName, 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 928e4e778772..1a498e87d267 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java index f807ca983ddb..bfa83e093d33 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -36,7 +36,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient; import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; -import com.azure.resourcemanager.netapp.models.BackupPoliciesList; +import com.azure.resourcemanager.netapp.implementation.models.BackupPoliciesList; import com.azure.resourcemanager.netapp.models.BackupPolicyPatch; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -71,285 +71,121 @@ public final class BackupPoliciesClientImpl implements BackupPoliciesClient { * The interface defining all the services for NetAppManagementClientBackupPolicies to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientBackupPolicies") public interface BackupPoliciesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BackupPolicyInner body, @HeaderParam("Accept") String accept, + @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BackupPolicyInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BackupPolicyInner body, @HeaderParam("Accept") String accept, + @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BackupPolicyInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BackupPolicyPatch body, @HeaderParam("Accept") String accept, + @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BackupPolicyPatch body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BackupPolicyPatch body, @HeaderParam("Accept") String accept, + @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BackupPolicyPatch body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("backupPolicyName") String backupPolicyName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - } + @PathParam("backupPolicyName") String backupPolicyName, Context context); - /** - * List backup policies - * - * List backup policies for Netapp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List backup policies - * - * List backup policies for Netapp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String accountName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName)); - } - - /** - * List backup policies - * - * List backup policies for Netapp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Accept") String accept, Context context); - /** - * List backup policies - * - * List backup policies for Netapp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Accept") String accept, Context context); - /** - * List backup policies - * - * List backup policies for Netapp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - /** - * List backup policies - * - * List backup policies for Netapp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName, Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Get a backup Policy - * * Get a particular backup Policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -384,14 +220,12 @@ private Mono> getWithResponseAsync(String resourceGr } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupPolicyName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a backup Policy - * * Get a particular backup Policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -409,8 +243,6 @@ private Mono getAsync(String resourceGroupName, String accoun } /** - * Get a backup Policy - * * Get a particular backup Policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -448,13 +280,11 @@ public Response getWithResponse(String resourceGroupName, Str .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupPolicyName, this.client.getApiVersion(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, backupPolicyName, accept, context); } /** - * Get a backup Policy - * * Get a particular backup Policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -471,8 +301,6 @@ public BackupPolicyInner get(String resourceGroupName, String accountName, Strin } /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -511,16 +339,16 @@ private Mono>> createWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupPolicyName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, + body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -562,14 +390,14 @@ private Response createWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupPolicyName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, + body, Context.NONE); } /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -612,14 +440,14 @@ private Response createWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupPolicyName, this.client.getApiVersion(), body, accept, context); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, + body, context); } /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -641,8 +469,6 @@ private PollerFlux, BackupPolicyInner> beginCreate } /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -663,8 +489,6 @@ public SyncPoller, BackupPolicyInner> beginCreate( } /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -687,8 +511,6 @@ public SyncPoller, BackupPolicyInner> beginCreate( } /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -708,8 +530,6 @@ private Mono createAsync(String resourceGroupName, String acc } /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -728,8 +548,6 @@ public BackupPolicyInner create(String resourceGroupName, String accountName, St } /** - * Create a backup policy - * * Create a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -749,8 +567,6 @@ public BackupPolicyInner create(String resourceGroupName, String accountName, St } /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -789,16 +605,16 @@ private Mono>> updateWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupPolicyName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, + body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -840,14 +656,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupPolicyName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, + body, Context.NONE); } /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -890,14 +706,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupPolicyName, this.client.getApiVersion(), body, accept, context); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, + body, context); } /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -919,8 +735,6 @@ private PollerFlux, BackupPolicyInner> beginUpdate } /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -941,8 +755,6 @@ public SyncPoller, BackupPolicyInner> beginUpdate( } /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -965,8 +777,6 @@ public SyncPoller, BackupPolicyInner> beginUpdate( } /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -986,8 +796,6 @@ private Mono updateAsync(String resourceGroupName, String acc } /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1006,8 +814,6 @@ public BackupPolicyInner update(String resourceGroupName, String accountName, St } /** - * Patch a backup policy - * * Patch a backup policy for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1027,8 +833,6 @@ public BackupPolicyInner update(String resourceGroupName, String accountName, St } /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1061,16 +865,13 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupPolicyName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1106,14 +907,11 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupPolicyName, this.client.getApiVersion(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, Context.NONE); } /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1150,14 +948,11 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupPolicyName, this.client.getApiVersion(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, context); } /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1178,8 +973,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1198,8 +991,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1219,8 +1010,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1238,8 +1027,6 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1255,8 +1042,6 @@ public void delete(String resourceGroupName, String accountName, String backupPo } /** - * Delete a backup policy - * * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1272,5 +1057,245 @@ public void delete(String resourceGroupName, String accountName, String backupPo beginDelete(resourceGroupName, accountName, backupPolicyName, context).getFinalResult(); } + /** + * List backup policies for Netapp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List backup policies for Netapp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List backup policies for Netapp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List backup policies for Netapp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName, + Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List backup policies for Netapp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * List backup policies for Netapp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + private static final ClientLogger LOGGER = new ClientLogger(BackupPoliciesClientImpl.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java index 2c6a5a82263c..d10560d28760 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -27,16 +27,6 @@ public BackupPoliciesImpl(BackupPoliciesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceGroupName, String accountName) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupPolicyImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String accountName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupPolicyImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String accountName, String backupPolicyName, Context context) { Response inner @@ -66,6 +56,16 @@ public void delete(String resourceGroupName, String accountName, String backupPo this.serviceClient().delete(resourceGroupName, accountName, backupPolicyName, context); } + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupPolicyImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupPolicyImpl(inner1, this.manager())); + } + public BackupPolicy getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java index 47841fce98ba..79ba2535e7d0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java index df32a32dcbb7..2cad0bc0f9ef 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner; import com.azure.resourcemanager.netapp.models.BackupStatus; import com.azure.resourcemanager.netapp.models.MirrorState; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; +import com.azure.resourcemanager.netapp.models.VolumeBackupRelationshipStatus; public final class BackupStatusImpl implements BackupStatus { private BackupStatusInner innerObject; @@ -24,7 +24,7 @@ public Boolean healthy() { return this.innerModel().healthy(); } - public RelationshipStatus relationshipStatus() { + public VolumeBackupRelationshipStatus relationshipStatus() { return this.innerModel().relationshipStatus(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java index 73e478468c7a..223a83effd8b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java index 23778ef6d8f4..189e17a6afb8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -36,8 +36,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.BackupVaultsClient; import com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner; +import com.azure.resourcemanager.netapp.implementation.models.BackupVaultsList; import com.azure.resourcemanager.netapp.models.BackupVaultPatch; -import com.azure.resourcemanager.netapp.models.BackupVaultsList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -71,109 +71,103 @@ public final class BackupVaultsClientImpl implements BackupVaultsClient { * The interface defining all the services for NetAppManagementClientBackupVaults to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientBackupVaults") public interface BackupVaultsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByNetAppAccount(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByNetAppAccountSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BackupVaultInner body, @HeaderParam("Accept") String accept, + @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BackupVaultInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BackupVaultInner body, @HeaderParam("Accept") String accept, + @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BackupVaultInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BackupVaultPatch body, @HeaderParam("Accept") String accept, + @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BackupVaultPatch body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BackupVaultPatch body, @HeaderParam("Accept") String accept, + @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BackupVaultPatch body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("backupVaultName") String backupVaultName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("backupVaultName") String backupVaultName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByNetAppAccount(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByNetAppAccountSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -181,7 +175,7 @@ Response deleteSync(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByNetAppAccountNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -189,192 +183,11 @@ Mono> listByNetAppAccountNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listByNetAppAccountNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Describe all Backup Vaults - * - * List and describe all Backup Vaults in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Vaults along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByNetAppAccountSinglePageAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByNetAppAccount(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Describe all Backup Vaults - * - * List and describe all Backup Vaults in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Vaults as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName) { - return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName), - nextLink -> listByNetAppAccountNextSinglePageAsync(nextLink)); - } - - /** - * Describe all Backup Vaults - * - * List and describe all Backup Vaults in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Vaults along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByNetAppAccountSinglePage(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByNetAppAccountSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Describe all Backup Vaults - * - * List and describe all Backup Vaults in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Vaults along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByNetAppAccountSinglePage(String resourceGroupName, String accountName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByNetAppAccountSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Describe all Backup Vaults - * - * List and describe all Backup Vaults in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Vaults as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listByNetAppAccountSinglePage(resourceGroupName, accountName), - nextLink -> listByNetAppAccountNextSinglePage(nextLink)); - } - - /** - * Describe all Backup Vaults - * - * List and describe all Backup Vaults in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Vaults as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, - Context context) { - return new PagedIterable<>(() -> listByNetAppAccountSinglePage(resourceGroupName, accountName, context), - nextLink -> listByNetAppAccountNextSinglePage(nextLink, context)); - } - - /** - * Describe the Backup Vault - * * Get the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -409,14 +222,12 @@ private Mono> getWithResponseAsync(String resourceGro } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe the Backup Vault - * * Get the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -434,8 +245,6 @@ private Mono getAsync(String resourceGroupName, String account } /** - * Describe the Backup Vault - * * Get the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -473,13 +282,11 @@ public Response getWithResponse(String resourceGroupName, Stri .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, this.client.getApiVersion(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, backupVaultName, accept, context); } /** - * Describe the Backup Vault - * * Get the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -496,8 +303,6 @@ public BackupVaultInner get(String resourceGroupName, String accountName, String } /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -536,16 +341,16 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, + body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -587,14 +392,14 @@ private Response createOrUpdateWithResponse(String resourceGroupName } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, body, + Context.NONE); } /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -637,14 +442,14 @@ private Response createOrUpdateWithResponse(String resourceGroupName } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, this.client.getApiVersion(), body, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, body, + context); } /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -666,8 +471,6 @@ private PollerFlux, BackupVaultInner> beginCreateOr } /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -689,8 +492,6 @@ public SyncPoller, BackupVaultInner> beginCreateOrU } /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -713,8 +514,6 @@ public SyncPoller, BackupVaultInner> beginCreateOrU } /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -734,8 +533,6 @@ private Mono createOrUpdateAsync(String resourceGroupName, Str } /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -754,8 +551,6 @@ public BackupVaultInner createOrUpdate(String resourceGroupName, String accountN } /** - * Create or Update a Backup Vault - * * Create or update the specified Backup Vault in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -775,8 +570,6 @@ public BackupVaultInner createOrUpdate(String resourceGroupName, String accountN } /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -815,16 +608,16 @@ private Mono>> updateWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, + body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -866,14 +659,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, body, + Context.NONE); } /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -916,14 +709,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, this.client.getApiVersion(), body, accept, context); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, body, + context); } /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -945,8 +738,6 @@ private PollerFlux, BackupVaultInner> beginUpdateAs } /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -967,8 +758,6 @@ public SyncPoller, BackupVaultInner> beginUpdate(St } /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -991,8 +780,6 @@ public SyncPoller, BackupVaultInner> beginUpdate(St } /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1012,8 +799,6 @@ private Mono updateAsync(String resourceGroupName, String acco } /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1032,8 +817,6 @@ public BackupVaultInner update(String resourceGroupName, String accountName, Str } /** - * Update NetApp Backup Vault - * * Patch the specified NetApp Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1053,8 +836,6 @@ public BackupVaultInner update(String resourceGroupName, String accountName, Str } /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1087,16 +868,13 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1132,14 +910,11 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, this.client.getApiVersion(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, Context.NONE); } /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1176,14 +951,11 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, this.client.getApiVersion(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, context); } /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1204,8 +976,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1224,8 +994,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1245,8 +1013,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1264,8 +1030,6 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1281,8 +1045,6 @@ public void delete(String resourceGroupName, String accountName, String backupVa } /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1299,8 +1061,172 @@ public void delete(String resourceGroupName, String accountName, String backupVa } /** - * Describe all Backup Vaults + * List and describe all Backup Vaults in the NetApp account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Vaults along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByNetAppAccountSinglePageAsync(String resourceGroupName, + String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByNetAppAccount(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List and describe all Backup Vaults in the NetApp account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Vaults as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName), + nextLink -> listByNetAppAccountNextSinglePageAsync(nextLink)); + } + + /** + * List and describe all Backup Vaults in the NetApp account. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Vaults along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByNetAppAccountSinglePage(String resourceGroupName, + String accountName) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listByNetAppAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List and describe all Backup Vaults in the NetApp account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Vaults along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByNetAppAccountSinglePage(String resourceGroupName, String accountName, + Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listByNetAppAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List and describe all Backup Vaults in the NetApp account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Vaults as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { + return new PagedIterable<>(() -> listByNetAppAccountSinglePage(resourceGroupName, accountName), + nextLink -> listByNetAppAccountNextSinglePage(nextLink)); + } + + /** + * List and describe all Backup Vaults in the NetApp account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Vaults as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, + Context context) { + return new PagedIterable<>(() -> listByNetAppAccountSinglePage(resourceGroupName, accountName, context), + nextLink -> listByNetAppAccountNextSinglePage(nextLink, context)); + } + + /** * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -1328,8 +1254,6 @@ private Mono> listByNetAppAccountNextSinglePageA } /** - * Describe all Backup Vaults - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -1357,8 +1281,6 @@ private PagedResponse listByNetAppAccountNextSinglePage(String } /** - * Describe all Backup Vaults - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java index cd001ed5041f..cbcc76fa3064 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -27,19 +27,6 @@ public BackupVaultsImpl(BackupVaultsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { - PagedIterable inner - = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupVaultImpl(inner1, this.manager())); - } - - public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, - Context context) { - PagedIterable inner - = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupVaultImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, Context context) { Response inner @@ -69,6 +56,19 @@ public void delete(String resourceGroupName, String accountName, String backupVa this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, context); } + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { + PagedIterable inner + = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupVaultImpl(inner1, this.manager())); + } + + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, + Context context) { + PagedIterable inner + = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupVaultImpl(inner1, this.manager())); + } + public BackupVault getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java index 3da437c4c51d..cb17fdfd4183 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -38,8 +38,8 @@ import com.azure.resourcemanager.netapp.fluent.models.BackupInner; import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner; import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner; +import com.azure.resourcemanager.netapp.implementation.models.BackupsList; import com.azure.resourcemanager.netapp.models.BackupPatch; -import com.azure.resourcemanager.netapp.models.BackupsList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -72,186 +72,180 @@ public final class BackupsClientImpl implements BackupsClient { * The interface defining all the services for NetAppManagementClientBackups to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientBackups") public interface BackupsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getLatestStatus(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getLatestStatusSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestRestoreStatus/current") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getVolumeLatestRestoreStatus(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BackupInner body, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestRestoreStatus/current") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getVolumeLatestRestoreStatusSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BackupInner body, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups") - @ExpectedResponses({ 200 }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVault(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @QueryParam("$filter") String filter, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BackupPatch body, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups") - @ExpectedResponses({ 200 }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByVaultSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @QueryParam("$filter") String filter, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BackupPatch body, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> listByVault(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupInner body, + @PathParam("backupVaultName") String backupVaultName, @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response listByVaultSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupInner body, + @PathParam("backupVaultName") String backupVaultName, @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") - @ExpectedResponses({ 200, 202 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getLatestStatus(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupPatch body, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") - @ExpectedResponses({ 200, 202 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getLatestStatusSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupPatch body, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") - @ExpectedResponses({ 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestRestoreStatus/current") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getVolumeLatestRestoreStatus(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}") - @ExpectedResponses({ 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestRestoreStatus/current") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getVolumeLatestRestoreStatusSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByVaultNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listByVaultNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Get the latest backup status of a volume - * - * Get the latest status of the backup for a volume. + * Get the specified Backup under Backup Vault. * * @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 backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the latest status of the backup for a volume along with {@link Response} on successful completion of + * @return the specified Backup under Backup Vault along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getLatestStatusWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String backupVaultName, String backupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -267,58 +261,56 @@ private Mono> getLatestStatusWithResponseAsync(Strin 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 (backupVaultName == null) { + return Mono + .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + if (backupName == null) { + return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getLatestStatus(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the latest backup status of a volume - * - * Get the latest status of the backup for a volume. + * Get the specified Backup under Backup Vault. * * @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 backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the latest status of the backup for a volume on successful completion of {@link Mono}. + * @return the specified Backup under Backup Vault on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getLatestStatusAsync(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return getLatestStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) + private Mono getAsync(String resourceGroupName, String accountName, String backupVaultName, + String backupName) { + return getWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the latest backup status of a volume - * - * Get the latest status of the backup for a volume. + * Get the specified Backup under Backup Vault. * * @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 backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. * @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 latest status of the backup for a volume along with {@link Response}. + * @return the specified Backup under Backup Vault along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getLatestStatusWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { + public Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, + String backupName, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -337,58 +329,52 @@ public Response getLatestStatusWithResponse(String resourceGr throw LOGGER.atError() .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - if (poolName == null) { + if (backupVaultName == null) { throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); } - if (volumeName == null) { + if (backupName == null) { throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); } final String accept = "application/json"; - return service.getLatestStatusSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, backupVaultName, backupName, accept, context); } /** - * Get the latest backup status of a volume - * - * Get the latest status of the backup for a volume. + * Get the specified Backup under Backup Vault. * * @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 backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the latest status of the backup for a volume. + * @return the specified Backup under Backup Vault. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupStatusInner getLatestStatus(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return getLatestStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE) - .getValue(); + public BackupInner get(String resourceGroupName, String accountName, String backupVaultName, String backupName) { + return getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, Context.NONE).getValue(); } /** - * Get the latest restore status of a volume - * - * Get the latest status of the restore for a volume. + * Create a backup under the Backup Vault. * * @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 backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. + * @param body Backup object supplied in the body of the 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 latest status of the restore for a volume along with {@link Response} on successful completion of - * {@link Mono}. + * @return backup under a Backup Vault along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getVolumeLatestRestoreStatusWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String backupVaultName, String backupName, BackupInner body) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -404,59 +390,43 @@ private Mono> getVolumeLatestRestoreStatusWithRespo 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 (backupVaultName == null) { + return Mono + .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + if (backupName == null) { + return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getVolumeLatestRestoreStatus(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, - this.client.getApiVersion(), accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, + contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the latest restore status of a volume - * - * Get the latest status of the restore for a 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 latest status of the restore for a volume on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getVolumeLatestRestoreStatusAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return getVolumeLatestRestoreStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the latest restore status of a volume - * - * Get the latest status of the restore for a volume. + * Create a backup under the Backup Vault. * * @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. + * @param backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. + * @param body Backup object supplied in the body of the 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 latest status of the restore for a volume along with {@link Response}. + * @return backup under a Backup Vault along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getVolumeLatestRestoreStatusWithResponse(String resourceGroupName, - String accountName, String poolName, String volumeName, Context context) { + private Response createWithResponse(String resourceGroupName, String accountName, + String backupVaultName, String backupName, BackupInner body) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -475,289 +445,223 @@ public Response getVolumeLatestRestoreStatusWithResponse(Str throw LOGGER.atError() .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - if (poolName == null) { + if (backupVaultName == null) { throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); } - if (volumeName == null) { + if (backupName == null) { throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); + } + if (body == null) { + throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.getVolumeLatestRestoreStatusSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, contentType, + accept, body, Context.NONE); } /** - * Get the latest restore status of a volume - * - * Get the latest status of the restore for a volume. + * Create a backup under the Backup Vault. * * @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 backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. + * @param body Backup object supplied in the body of the operation. + * @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 latest status of the restore for a volume. + * @return backup under a Backup Vault along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RestoreStatusInner getVolumeLatestRestoreStatus(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return getVolumeLatestRestoreStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, - Context.NONE).getValue(); - } - - /** - * List Backups - * - * List all backups Under a Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the - * specified 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 list of Backups along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVaultSinglePageAsync(String resourceGroupName, String accountName, - String backupVaultName, String filter) { + private Response createWithResponse(String resourceGroupName, String accountName, + String backupVaultName, String backupName, BackupInner body, Context context) { if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + throw LOGGER.atError() + .log(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.")); + throw LOGGER.atError() + .log(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.")); + throw LOGGER.atError() + .log(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.")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); + } + if (backupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); } + if (body == null) { + throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByVault(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, filter, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, contentType, + accept, body, context); } /** - * List Backups - * - * List all backups Under a Backup Vault. + * Create a backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. - * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the - * specified volume. + * @param backupName The name of the backup. + * @param body Backup object supplied in the body of the 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 list of Backups as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of backup under a Backup Vault. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVaultAsync(String resourceGroupName, String accountName, - String backupVaultName, String filter) { - return new PagedFlux<>( - () -> listByVaultSinglePageAsync(resourceGroupName, accountName, backupVaultName, filter), - nextLink -> listByVaultNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, BackupInner> beginCreateAsync(String resourceGroupName, + String accountName, String backupVaultName, String backupName, BackupInner body) { + Mono>> mono + = createWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BackupInner.class, BackupInner.class, this.client.getContext()); } /** - * List Backups - * - * List all backups Under a Backup Vault. + * Create a backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. + * @param body Backup object supplied in the body of the 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 list of Backups as paginated response with {@link PagedFlux}. + * @return the {@link SyncPoller} for polling of backup under a Backup Vault. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVaultAsync(String resourceGroupName, String accountName, - String backupVaultName) { - final String filter = null; - return new PagedFlux<>( - () -> listByVaultSinglePageAsync(resourceGroupName, accountName, backupVaultName, filter), - nextLink -> listByVaultNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, BackupInner> beginCreate(String resourceGroupName, String accountName, + String backupVaultName, String backupName, BackupInner body) { + Response response + = createWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body); + return this.client.getLroResult(response, BackupInner.class, BackupInner.class, + Context.NONE); } /** - * List Backups - * - * List all backups Under a Backup Vault. + * Create a backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. - * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the - * specified volume. + * @param backupName The name of the backup. + * @param body Backup object supplied in the body of the operation. + * @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 list of Backups along with {@link PagedResponse}. + * @return the {@link SyncPoller} for polling of backup under a Backup Vault. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVaultSinglePage(String resourceGroupName, String accountName, - String backupVaultName, String filter) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listByVaultSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, filter, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, BackupInner> beginCreate(String resourceGroupName, String accountName, + String backupVaultName, String backupName, BackupInner body, Context context) { + Response response + = createWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body, context); + return this.client.getLroResult(response, BackupInner.class, BackupInner.class, + context); } /** - * List Backups - * - * List all backups Under a Backup Vault. + * Create a backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. - * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the - * specified volume. - * @param context The context to associate with this operation. + * @param backupName The name of the backup. + * @param body Backup object supplied in the body of the 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 list of Backups along with {@link PagedResponse}. + * @return backup under a Backup Vault on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVaultSinglePage(String resourceGroupName, String accountName, - String backupVaultName, String filter, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listByVaultSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, filter, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + private Mono createAsync(String resourceGroupName, String accountName, String backupVaultName, + String backupName, BackupInner body) { + return beginCreateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * List Backups - * - * List all backups Under a Backup Vault. + * Create a backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. + * @param body Backup object supplied in the body of the 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 list of Backups as paginated response with {@link PagedIterable}. + * @return backup under a Backup Vault. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVault(String resourceGroupName, String accountName, - String backupVaultName) { - final String filter = null; - return new PagedIterable<>(() -> listByVaultSinglePage(resourceGroupName, accountName, backupVaultName, filter), - nextLink -> listByVaultNextSinglePage(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public BackupInner create(String resourceGroupName, String accountName, String backupVaultName, String backupName, + BackupInner body) { + return beginCreate(resourceGroupName, accountName, backupVaultName, backupName, body).getFinalResult(); } /** - * List Backups - * - * List all backups Under a Backup Vault. + * Create a backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. - * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the - * specified volume. + * @param backupName The name of the backup. + * @param body Backup object supplied in the body of the operation. * @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 list of Backups as paginated response with {@link PagedIterable}. + * @return backup under a Backup Vault. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName, - String filter, Context context) { - return new PagedIterable<>( - () -> listByVaultSinglePage(resourceGroupName, accountName, backupVaultName, filter, context), - nextLink -> listByVaultNextSinglePage(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public BackupInner create(String resourceGroupName, String accountName, String backupVaultName, String backupName, + BackupInner body, Context context) { + return beginCreate(resourceGroupName, accountName, backupVaultName, backupName, body, context).getFinalResult(); } /** - * Describe the Backup under Backup Vault - * - * Get the specified Backup under Backup Vault. + * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. + * @param body Backup object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Backup under Backup Vault along with {@link Response} on successful completion of - * {@link Mono}. + * @return backup under a Backup Vault along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String backupVaultName, String backupName, BackupPatch body) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -780,53 +684,33 @@ private Mono> getWithResponseAsync(String resourceGroupNam if (backupName == null) { return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); } + if (body != null) { + body.validate(); + } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, accept, + body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe the Backup under Backup Vault - * - * Get the specified Backup under Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Backup under Backup Vault on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String backupVaultName, - String backupName) { - return getWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Describe the Backup under Backup Vault - * - * Get the specified Backup under Backup Vault. + * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. - * @param context The context to associate with this operation. + * @param body Backup object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Backup under Backup Vault along with {@link Response}. + * @return backup under a Backup Vault along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, - String backupName, Context context) { + private Response updateWithResponse(String resourceGroupName, String accountName, + String backupVaultName, String backupName, BackupPatch body) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -853,101 +737,32 @@ public Response getWithResponse(String resourceGroupName, String ac throw LOGGER.atError() .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), accept, context); - } - - /** - * Describe the Backup under Backup Vault - * - * Get the specified Backup under Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Backup under Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public BackupInner get(String resourceGroupName, String accountName, String backupVaultName, String backupName) { - return getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, Context.NONE).getValue(); - } - - /** - * Create a backup - * - * Create a backup under the Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the 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 backup under a Backup Vault along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName, BackupInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { + if (body != null) { body.validate(); } final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, accept, body, + Context.NONE); } /** - * Create a backup - * - * Create a backup under the Backup Vault. + * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. * @param body Backup object supplied in the body of the operation. + * @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 backup under a Backup Vault along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, BackupInner body) { + private Response updateWithResponse(String resourceGroupName, String accountName, + String backupVaultName, String backupName, BackupPatch body, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -974,99 +789,61 @@ private Response createWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { + if (body != null) { body.validate(); } final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, accept, body, + context); } /** - * Create a backup - * - * Create a backup under the Backup Vault. + * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. * @param body Backup object supplied in the body of the operation. - * @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 backup under a Backup Vault along with {@link Response}. + * @return the {@link PollerFlux} for polling of backup under a Backup Vault. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, BackupInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, BackupInner> beginUpdateAsync(String resourceGroupName, + String accountName, String backupVaultName, String backupName, BackupPatch body) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BackupInner.class, BackupInner.class, this.client.getContext()); } /** - * Create a backup - * - * Create a backup under the Backup Vault. + * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the 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 backup under a Backup Vault. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BackupInner> beginCreateAsync(String resourceGroupName, - String accountName, String backupVaultName, String backupName, BackupInner body) { + private PollerFlux, BackupInner> beginUpdateAsync(String resourceGroupName, + String accountName, String backupVaultName, String backupName) { + final BackupPatch body = null; Mono>> mono - = createWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body); + = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body); return this.client.getLroResult(mono, this.client.getHttpPipeline(), BackupInner.class, BackupInner.class, this.client.getContext()); } /** - * Create a backup - * - * Create a backup under the Backup Vault. + * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -1079,18 +856,38 @@ private PollerFlux, BackupInner> beginCreateAsync(String * @return the {@link SyncPoller} for polling of backup under a Backup Vault. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BackupInner> beginCreate(String resourceGroupName, String accountName, - String backupVaultName, String backupName, BackupInner body) { + public SyncPoller, BackupInner> beginUpdate(String resourceGroupName, String accountName, + String backupVaultName, String backupName, BackupPatch body) { Response response - = createWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body); + = updateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body); return this.client.getLroResult(response, BackupInner.class, BackupInner.class, Context.NONE); } /** - * Create a backup + * Patch a Backup under the Backup Vault. * - * Create a backup under the Backup Vault. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of backup under a Backup Vault. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, BackupInner> beginUpdate(String resourceGroupName, String accountName, + String backupVaultName, String backupName) { + final BackupPatch body = null; + Response response + = updateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body); + return this.client.getLroResult(response, BackupInner.class, BackupInner.class, + Context.NONE); + } + + /** + * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -1104,18 +901,16 @@ public SyncPoller, BackupInner> beginCreate(String resou * @return the {@link SyncPoller} for polling of backup under a Backup Vault. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BackupInner> beginCreate(String resourceGroupName, String accountName, - String backupVaultName, String backupName, BackupInner body, Context context) { + public SyncPoller, BackupInner> beginUpdate(String resourceGroupName, String accountName, + String backupVaultName, String backupName, BackupPatch body, Context context) { Response response - = createWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body, context); + = updateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body, context); return this.client.getLroResult(response, BackupInner.class, BackupInner.class, context); } /** - * Create a backup - * - * Create a backup under the Backup Vault. + * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -1128,37 +923,52 @@ public SyncPoller, BackupInner> beginCreate(String resou * @return backup under a Backup Vault on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync(String resourceGroupName, String accountName, String backupVaultName, - String backupName, BackupInner body) { - return beginCreateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last() + private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName, + String backupName, BackupPatch body) { + return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Create a backup + * Patch a Backup under the Backup Vault. * - * Create a backup under the Backup Vault. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return backup under a Backup Vault on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName, + String backupName) { + final BackupPatch body = null; + return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the 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 backup under a Backup Vault. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupInner create(String resourceGroupName, String accountName, String backupVaultName, String backupName, - BackupInner body) { - return beginCreate(resourceGroupName, accountName, backupVaultName, backupName, body).getFinalResult(); + public BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName) { + final BackupPatch body = null; + return beginUpdate(resourceGroupName, accountName, backupVaultName, backupName, body).getFinalResult(); } /** - * Create a backup - * - * Create a backup under the Backup Vault. + * Patch a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -1172,29 +982,26 @@ public BackupInner create(String resourceGroupName, String accountName, String b * @return backup under a Backup Vault. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupInner create(String resourceGroupName, String accountName, String backupVaultName, String backupName, - BackupInner body, Context context) { - return beginCreate(resourceGroupName, accountName, backupVaultName, backupName, body, context).getFinalResult(); + public BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName, + BackupPatch body, Context context) { + return beginUpdate(resourceGroupName, accountName, backupVaultName, backupName, body, context).getFinalResult(); } /** - * Patch a backup - * - * Patch a Backup under the Backup Vault. + * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the 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 backup under a Backup Vault along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName, BackupPatch body) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String backupVaultName, String backupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1217,35 +1024,27 @@ private Mono>> updateWithResponseAsync(String resource if (backupName == null) { return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); } - if (body != null) { - body.validate(); - } - final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Patch a backup - * - * Patch a Backup under the Backup Vault. + * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the 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 backup under a Backup Vault along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, BackupPatch body) { + private Response deleteWithResponse(String resourceGroupName, String accountName, + String backupVaultName, String backupName) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -1272,33 +1071,26 @@ private Response updateWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); } - if (body != null) { - body.validate(); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, Context.NONE); } /** - * Patch a backup - * - * Patch a Backup under the Backup Vault. + * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the operation. * @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 backup under a Backup Vault along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, BackupPatch body, Context context) { + private Response deleteWithResponse(String resourceGroupName, String accountName, + String backupVaultName, String backupName, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -1325,42 +1117,33 @@ private Response updateWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); } - if (body != null) { - body.validate(); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, context); } /** - * Patch a backup - * - * Patch a Backup under the Backup Vault. + * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the 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 backup under a Backup Vault. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BackupInner> beginUpdateAsync(String resourceGroupName, - String accountName, String backupVaultName, String backupName, BackupPatch body) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String backupVaultName, String backupName) { Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - BackupInner.class, BackupInner.class, this.client.getContext()); + = deleteWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Patch a backup - * - * Patch a Backup under the Backup Vault. + * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -1369,46 +1152,38 @@ private PollerFlux, BackupInner> beginUpdateAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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 backup under a Backup Vault. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BackupInner> beginUpdateAsync(String resourceGroupName, - String accountName, String backupVaultName, String backupName) { - final BackupPatch body = null; - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - BackupInner.class, BackupInner.class, this.client.getContext()); + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String backupVaultName, String backupName) { + Response response = deleteWithResponse(resourceGroupName, accountName, backupVaultName, backupName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** - * Patch a backup - * - * Patch a Backup under the Backup Vault. + * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the operation. + * @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 backup under a Backup Vault. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BackupInner> beginUpdate(String resourceGroupName, String accountName, - String backupVaultName, String backupName, BackupPatch body) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String backupVaultName, String backupName, Context context) { Response response - = updateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(response, BackupInner.class, BackupInner.class, - Context.NONE); + = deleteWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** - * Patch a backup - * - * Patch a Backup under the Backup Vault. + * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -1417,146 +1192,284 @@ public SyncPoller, BackupInner> beginUpdate(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of backup under a Backup Vault. + * @return A {@link Mono} that completes when a successful response is received. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BackupInner> beginUpdate(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { - final BackupPatch body = null; - Response response - = updateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(response, BackupInner.class, BackupInner.class, - Context.NONE); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String backupVaultName, + String backupName) { + return beginDeleteAsync(resourceGroupName, accountName, backupVaultName, backupName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Patch a backup - * - * Patch a Backup under the Backup Vault. + * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the operation. - * @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 backup under a Backup Vault. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BackupInner> beginUpdate(String resourceGroupName, String accountName, - String backupVaultName, String backupName, BackupPatch body, Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body, context); - return this.client.getLroResult(response, BackupInner.class, BackupInner.class, - context); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName) { + beginDelete(resourceGroupName, accountName, backupVaultName, backupName).getFinalResult(); } /** - * Patch a backup - * - * Patch a Backup under the Backup Vault. + * Delete a Backup under the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the operation. + * @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 backup under a Backup Vault on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName, - String backupName, BackupPatch body) { - return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, + Context context) { + beginDelete(resourceGroupName, accountName, backupVaultName, backupName, context).getFinalResult(); } /** - * Patch a backup - * - * Patch a Backup under the Backup Vault. + * List all backups Under a Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. + * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the + * specified 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 backup under a Backup Vault on successful completion of {@link Mono}. + * @return list of Backups along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName, - String backupName) { - final BackupPatch body = null; - return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> listByVaultSinglePageAsync(String resourceGroupName, String accountName, + String backupVaultName, String filter) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (backupVaultName == null) { + return Mono + .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByVault(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, filter, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Patch a backup + * List all backups Under a Backup Vault. * - * Patch a Backup under the Backup Vault. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param backupVaultName The name of the Backup Vault. + * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the + * specified 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 list of Backups as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByVaultAsync(String resourceGroupName, String accountName, + String backupVaultName, String filter) { + return new PagedFlux<>( + () -> listByVaultSinglePageAsync(resourceGroupName, accountName, backupVaultName, filter), + nextLink -> listByVaultNextSinglePageAsync(nextLink)); + } + + /** + * List all backups Under a Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return backup under a Backup Vault. + * @return list of Backups as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName) { - final BackupPatch body = null; - return beginUpdate(resourceGroupName, accountName, backupVaultName, backupName, body).getFinalResult(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByVaultAsync(String resourceGroupName, String accountName, + String backupVaultName) { + final String filter = null; + return new PagedFlux<>( + () -> listByVaultSinglePageAsync(resourceGroupName, accountName, backupVaultName, filter), + nextLink -> listByVaultNextSinglePageAsync(nextLink)); } /** - * Patch a backup + * List all backups Under a Backup Vault. * - * Patch a Backup under the Backup Vault. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param backupVaultName The name of the Backup Vault. + * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the + * specified 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 list of Backups along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByVaultSinglePage(String resourceGroupName, String accountName, + String backupVaultName, String filter) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (backupVaultName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listByVaultSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, filter, accept, + Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List all backups Under a Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. - * @param body Backup object supplied in the body of the operation. + * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the + * specified 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 backup under a Backup Vault. + * @return list of Backups along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName, - BackupPatch body, Context context) { - return beginUpdate(resourceGroupName, accountName, backupVaultName, backupName, body, context).getFinalResult(); + private PagedResponse listByVaultSinglePage(String resourceGroupName, String accountName, + String backupVaultName, String filter, Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (backupVaultName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listByVaultSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, filter, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List all backups Under a Backup Vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param backupVaultName The name of the Backup Vault. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backups as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByVault(String resourceGroupName, String accountName, + String backupVaultName) { + final String filter = null; + return new PagedIterable<>(() -> listByVaultSinglePage(resourceGroupName, accountName, backupVaultName, filter), + nextLink -> listByVaultNextSinglePage(nextLink)); + } + + /** + * List all backups Under a Backup Vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param backupVaultName The name of the Backup Vault. + * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the + * specified 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 list of Backups as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName, + String filter, Context context) { + return new PagedIterable<>( + () -> listByVaultSinglePage(resourceGroupName, accountName, backupVaultName, filter, context), + nextLink -> listByVaultNextSinglePage(nextLink, context)); } /** - * Delete backup - * - * Delete a Backup under the Backup Vault. + * Get the latest status of the backup for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. + * @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}. + * @return the latest status of the backup for a volume along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { + private Mono> getLatestStatusWithResponseAsync(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.")); @@ -1572,87 +1485,54 @@ private Mono>> deleteWithResponseAsync(String resource if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } - if (backupName == null) { - return Mono.error(new IllegalArgumentException("Parameter backupName 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.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.getLatestStatus(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete backup - * - * Delete a Backup under the Backup Vault. + * Get the latest status of the backup for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. + * @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 response body along with {@link Response}. + * @return the latest status of the backup for a volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), accept, Context.NONE); + private Mono getLatestStatusAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return getLatestStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Delete backup - * - * Delete a Backup under the Backup Vault. + * Get the latest status of the backup for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. + * @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 response body along with {@link Response}. + * @return the latest status of the backup for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, Context context) { + public Response getLatestStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -1671,148 +1551,169 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - if (backupVaultName == null) { + if (poolName == null) { throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); + .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } - if (backupName == null) { + if (volumeName == null) { throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); + .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), accept, context); - } - - /** - * Delete backup - * - * Delete a Backup under the Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + return service.getLatestStatusSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context); } /** - * Delete backup - * - * Delete a Backup under the Backup Vault. + * Get the latest status of the backup for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. + * @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. + * @return the latest status of the backup for a volume. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupVaultName, backupName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + @ServiceMethod(returns = ReturnType.SINGLE) + public BackupStatusInner getLatestStatus(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return getLatestStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE) + .getValue(); } /** - * Delete backup - * - * Delete a Backup under the Backup Vault. + * Get the latest status of the restore for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. - * @param context The context to associate with this operation. + * @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. + * @return the latest status of the restore for a volume along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, - String backupVaultName, String backupName, Context context) { - Response response - = deleteWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getVolumeLatestRestoreStatusWithResponseAsync(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.getVolumeLatestRestoreStatus(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, + volumeName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete backup - * - * Delete a Backup under the Backup Vault. + * Get the latest status of the restore for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. + * @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. + * @return the latest status of the restore for a volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String accountName, String backupVaultName, - String backupName) { - return beginDeleteAsync(resourceGroupName, accountName, backupVaultName, backupName).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono getVolumeLatestRestoreStatusAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + return getVolumeLatestRestoreStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Delete backup - * - * Delete a Backup under the Backup Vault. + * Get the latest status of the restore for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. + * @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 latest status of the restore for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName) { - beginDelete(resourceGroupName, accountName, backupVaultName, backupName).getFinalResult(); + public Response getVolumeLatestRestoreStatusWithResponse(String resourceGroupName, + String accountName, String poolName, String volumeName, Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + return service.getVolumeLatestRestoreStatusSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context); } /** - * Delete backup - * - * Delete a Backup under the Backup Vault. + * Get the latest status of the restore for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. - * @param context The context to associate with this operation. + * @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 latest status of the restore for a volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, - Context context) { - beginDelete(resourceGroupName, accountName, backupVaultName, backupName, context).getFinalResult(); + public RestoreStatusInner getVolumeLatestRestoreStatus(String resourceGroupName, String accountName, + String poolName, String volumeName) { + return getVolumeLatestRestoreStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, + Context.NONE).getValue(); } /** - * List Backups - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -1839,8 +1740,6 @@ private Mono> listByVaultNextSinglePageAsync(String n } /** - * List Backups - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -1868,8 +1767,6 @@ private PagedResponse listByVaultNextSinglePage(String nextLink) { } /** - * List Backups - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java index 26f704723bb1..6f2c672ab905 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -30,50 +30,34 @@ public BackupsImpl(BackupsClient innerClient, com.azure.resourcemanager.netapp.N this.serviceManager = serviceManager; } - public Response getLatestStatusWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { - Response inner = this.serviceClient() - .getLatestStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, context); + public Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, + String backupName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new BackupStatusImpl(inner.getValue(), this.manager())); + new BackupImpl(inner.getValue(), this.manager())); } else { return null; } } - public BackupStatus getLatestStatus(String resourceGroupName, String accountName, String poolName, - String volumeName) { - BackupStatusInner inner - = this.serviceClient().getLatestStatus(resourceGroupName, accountName, poolName, volumeName); + public Backup get(String resourceGroupName, String accountName, String backupVaultName, String backupName) { + BackupInner inner = this.serviceClient().get(resourceGroupName, accountName, backupVaultName, backupName); if (inner != null) { - return new BackupStatusImpl(inner, this.manager()); + return new BackupImpl(inner, this.manager()); } else { return null; } } - public Response getVolumeLatestRestoreStatusWithResponse(String resourceGroupName, - String accountName, String poolName, String volumeName, Context context) { - Response inner = this.serviceClient() - .getVolumeLatestRestoreStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new RestoreStatusImpl(inner.getValue(), this.manager())); - } else { - return null; - } + public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName) { + this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, backupName); } - public RestoreStatus getVolumeLatestRestoreStatus(String resourceGroupName, String accountName, String poolName, - String volumeName) { - RestoreStatusInner inner - = this.serviceClient().getVolumeLatestRestoreStatus(resourceGroupName, accountName, poolName, volumeName); - if (inner != null) { - return new RestoreStatusImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, + Context context) { + this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, backupName, context); } public PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName) { @@ -89,34 +73,50 @@ public PagedIterable listByVault(String resourceGroupName, String accoun return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, - String backupName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context); + public Response getLatestStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + Response inner = this.serviceClient() + .getLatestStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new BackupImpl(inner.getValue(), this.manager())); + new BackupStatusImpl(inner.getValue(), this.manager())); } else { return null; } } - public Backup get(String resourceGroupName, String accountName, String backupVaultName, String backupName) { - BackupInner inner = this.serviceClient().get(resourceGroupName, accountName, backupVaultName, backupName); + public BackupStatus getLatestStatus(String resourceGroupName, String accountName, String poolName, + String volumeName) { + BackupStatusInner inner + = this.serviceClient().getLatestStatus(resourceGroupName, accountName, poolName, volumeName); if (inner != null) { - return new BackupImpl(inner, this.manager()); + return new BackupStatusImpl(inner, this.manager()); } else { return null; } } - public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName) { - this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, backupName); + public Response getVolumeLatestRestoreStatusWithResponse(String resourceGroupName, + String accountName, String poolName, String volumeName, Context context) { + Response inner = this.serviceClient() + .getVolumeLatestRestoreStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new RestoreStatusImpl(inner.getValue(), this.manager())); + } else { + return null; + } } - public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, - Context context) { - this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, backupName, context); + public RestoreStatus getVolumeLatestRestoreStatus(String resourceGroupName, String accountName, String poolName, + String volumeName) { + RestoreStatusInner inner + = this.serviceClient().getVolumeLatestRestoreStatus(resourceGroupName, accountName, poolName, volumeName); + if (inner != null) { + return new RestoreStatusImpl(inner, this.manager()); + } else { + return null; + } } public Backup getById(String id) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsClientImpl.java index 6d217c44ded4..948551ef9c6b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -62,33 +62,31 @@ public final class BackupsUnderAccountsClientImpl implements BackupsUnderAccount * The interface defining all the services for NetAppManagementClientBackupsUnderAccounts to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientBackupsUnderAccounts") public interface BackupsUnderAccountsService { - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateBackups") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> migrateBackups(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> migrateBackups(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupsMigrationRequest body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BackupsMigrationRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateBackups") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response migrateBackupsSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response migrateBackupsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupsMigrationRequest body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BackupsMigrationRequest body, Context context); } /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -122,16 +120,14 @@ private Mono>> migrateBackupsWithResponseAsync(String } else { body.validate(); } - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.migrateBackups(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.migrateBackups(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -168,14 +164,12 @@ private Response migrateBackupsWithResponse(String resourceGroupName } else { body.validate(); } - final String accept = "application/json"; - return service.migrateBackupsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), body, accept, Context.NONE); + final String contentType = "application/json"; + return service.migrateBackupsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, body, Context.NONE); } /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -213,14 +207,12 @@ private Response migrateBackupsWithResponse(String resourceGroupName } else { body.validate(); } - final String accept = "application/json"; - return service.migrateBackupsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), body, accept, context); + final String contentType = "application/json"; + return service.migrateBackupsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, body, context); } /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -240,8 +232,6 @@ private PollerFlux, Void> beginMigrateBackupsAsync(String resou } /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -260,8 +250,6 @@ public SyncPoller, Void> beginMigrateBackups(String resourceGro } /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -281,8 +269,6 @@ public SyncPoller, Void> beginMigrateBackups(String resourceGro } /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -300,8 +286,6 @@ private Mono migrateBackupsAsync(String resourceGroupName, String accountN } /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -317,8 +301,6 @@ public void migrateBackups(String resourceGroupName, String accountName, Backups } /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsImpl.java index 573f5a53ff73..0b63400c44ba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsClientImpl.java index 665044fc82db..f0f59b8384e2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -62,35 +62,33 @@ public final class BackupsUnderBackupVaultsClientImpl implements BackupsUnderBac * The interface defining all the services for NetAppManagementClientBackupsUnderBackupVaults to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientBackupsUnderBackupVaults") public interface BackupsUnderBackupVaultsService { - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}/restoreFiles") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> restoreFiles(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> restoreFiles(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupRestoreFiles body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BackupRestoreFiles body, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}/restoreFiles") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response restoreFilesSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response restoreFilesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupRestoreFiles body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BackupRestoreFiles body, + Context context); } /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -133,17 +131,15 @@ private Mono>> restoreFilesWithResponseAsync(String re } else { body.validate(); } - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.restoreFiles(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, - context)) + .withContext(context -> service.restoreFiles(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, + contentType, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -190,14 +186,13 @@ private Response restoreFilesWithResponse(String resourceGroupName, } else { body.validate(); } - final String accept = "application/json"; - return service.restoreFilesSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, Context.NONE); + final String contentType = "application/json"; + return service.restoreFilesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, contentType, + body, Context.NONE); } /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -245,14 +240,13 @@ private Response restoreFilesWithResponse(String resourceGroupName, } else { body.validate(); } - final String accept = "application/json"; - return service.restoreFilesSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, context); + final String contentType = "application/json"; + return service.restoreFilesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, contentType, + body, context); } /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -275,8 +269,6 @@ private PollerFlux, Void> beginRestoreFilesAsync(String resourc } /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -298,8 +290,6 @@ public SyncPoller, Void> beginRestoreFiles(String resourceGroup } /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -322,8 +312,6 @@ public SyncPoller, Void> beginRestoreFiles(String resourceGroup } /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -344,8 +332,6 @@ private Mono restoreFilesAsync(String resourceGroupName, String accountNam } /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -364,8 +350,6 @@ public void restoreFiles(String resourceGroupName, String accountName, String ba } /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsImpl.java index e82e4f5723b4..df5cb91ce962 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesClientImpl.java index 6370d5ae53a1..02f4dc9f131a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -62,35 +62,33 @@ public final class BackupsUnderVolumesClientImpl implements BackupsUnderVolumesC * The interface defining all the services for NetAppManagementClientBackupsUnderVolumes to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientBackupsUnderVolumes") public interface BackupsUnderVolumesService { - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/migrateBackups") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> migrateBackups(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> migrateBackups(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupsMigrationRequest body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BackupsMigrationRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/migrateBackups") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response migrateBackupsSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response migrateBackupsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupsMigrationRequest body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BackupsMigrationRequest body, Context context); } /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -132,17 +130,15 @@ private Mono>> migrateBackupsWithResponseAsync(String } else { body.validate(); } - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.migrateBackups(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, - context)) + .withContext(context -> service.migrateBackups(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, + body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -189,14 +185,13 @@ private Response migrateBackupsWithResponse(String resourceGroupName } else { body.validate(); } - final String accept = "application/json"; - return service.migrateBackupsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, Context.NONE); + final String contentType = "application/json"; + return service.migrateBackupsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, body, + Context.NONE); } /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -244,14 +239,13 @@ private Response migrateBackupsWithResponse(String resourceGroupName } else { body.validate(); } - final String accept = "application/json"; - return service.migrateBackupsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + final String contentType = "application/json"; + return service.migrateBackupsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, body, + context); } /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -274,8 +268,6 @@ private PollerFlux, Void> beginMigrateBackupsAsync(String resou } /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -297,8 +289,6 @@ public SyncPoller, Void> beginMigrateBackups(String resourceGro } /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -321,8 +311,6 @@ public SyncPoller, Void> beginMigrateBackups(String resourceGro } /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -343,8 +331,6 @@ private Mono migrateBackupsAsync(String resourceGroupName, String accountN } /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -363,8 +349,6 @@ public void migrateBackups(String resourceGroupName, String accountName, String } /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesImpl.java index 76adfeecb311..f74de8123cc0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java deleted file mode 100644 index 2e637c0db77c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.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.implementation; - -import com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner; -import com.azure.resourcemanager.netapp.models.BucketGenerateCredentials; -import java.time.OffsetDateTime; - -public final class BucketGenerateCredentialsImpl implements BucketGenerateCredentials { - private BucketGenerateCredentialsInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - BucketGenerateCredentialsImpl(BucketGenerateCredentialsInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String accessKey() { - return this.innerModel().accessKey(); - } - - public String secretKey() { - return this.innerModel().secretKey(); - } - - public OffsetDateTime keyPairExpiry() { - return this.innerModel().keyPairExpiry(); - } - - public BucketGenerateCredentialsInner 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/BucketImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java deleted file mode 100644 index 0af86045e3c2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java +++ /dev/null @@ -1,223 +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.core.http.rest.Response; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.BucketInner; -import com.azure.resourcemanager.netapp.models.Bucket; -import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; -import com.azure.resourcemanager.netapp.models.BucketGenerateCredentials; -import com.azure.resourcemanager.netapp.models.BucketPatch; -import com.azure.resourcemanager.netapp.models.BucketPatchPermissions; -import com.azure.resourcemanager.netapp.models.BucketPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; -import com.azure.resourcemanager.netapp.models.BucketServerProperties; -import com.azure.resourcemanager.netapp.models.CredentialsStatus; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NetAppProvisioningState; - -public final class BucketImpl implements Bucket, Bucket.Definition, Bucket.Update { - private BucketInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String path() { - return this.innerModel().path(); - } - - public FileSystemUser fileSystemUser() { - return this.innerModel().fileSystemUser(); - } - - public NetAppProvisioningState provisioningState() { - return this.innerModel().provisioningState(); - } - - public CredentialsStatus status() { - return this.innerModel().status(); - } - - public BucketServerProperties server() { - return this.innerModel().server(); - } - - public BucketPermissions permissions() { - return this.innerModel().permissions(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public BucketInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String poolName; - - private String volumeName; - - private String bucketName; - - private BucketPatch updateBody; - - public BucketImpl withExistingVolume(String resourceGroupName, String accountName, String poolName, - String volumeName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - this.poolName = poolName; - this.volumeName = volumeName; - return this; - } - - public Bucket create() { - this.innerObject = serviceManager.serviceClient() - .getBuckets() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, bucketName, this.innerModel(), - Context.NONE); - return this; - } - - public Bucket create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getBuckets() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, bucketName, this.innerModel(), - context); - return this; - } - - BucketImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new BucketInner(); - this.serviceManager = serviceManager; - this.bucketName = name; - } - - public BucketImpl update() { - this.updateBody = new BucketPatch(); - return this; - } - - public Bucket apply() { - this.innerObject = serviceManager.serviceClient() - .getBuckets() - .update(resourceGroupName, accountName, poolName, volumeName, bucketName, updateBody, Context.NONE); - return this; - } - - public Bucket apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getBuckets() - .update(resourceGroupName, accountName, poolName, volumeName, bucketName, updateBody, context); - return this; - } - - BucketImpl(BucketInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "netAppAccounts"); - this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "capacityPools"); - this.volumeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "volumes"); - this.bucketName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "buckets"); - } - - public Bucket refresh() { - this.innerObject = serviceManager.serviceClient() - .getBuckets() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, Context.NONE) - .getValue(); - return this; - } - - public Bucket refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getBuckets() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, context) - .getValue(); - return this; - } - - public Response generateCredentialsWithResponse(BucketCredentialsExpiry body, - Context context) { - return serviceManager.buckets() - .generateCredentialsWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, body, - context); - } - - public BucketGenerateCredentials generateCredentials(BucketCredentialsExpiry body) { - return serviceManager.buckets() - .generateCredentials(resourceGroupName, accountName, poolName, volumeName, bucketName, body); - } - - public BucketImpl withPath(String path) { - if (isInCreateMode()) { - this.innerModel().withPath(path); - return this; - } else { - this.updateBody.withPath(path); - return this; - } - } - - public BucketImpl withFileSystemUser(FileSystemUser fileSystemUser) { - if (isInCreateMode()) { - this.innerModel().withFileSystemUser(fileSystemUser); - return this; - } else { - this.updateBody.withFileSystemUser(fileSystemUser); - return this; - } - } - - public BucketImpl withServer(BucketServerProperties server) { - this.innerModel().withServer(server); - return this; - } - - public BucketImpl withPermissions(BucketPermissions permissions) { - this.innerModel().withPermissions(permissions); - return this; - } - - public BucketImpl withServer(BucketServerPatchProperties server) { - this.updateBody.withServer(server); - return this; - } - - public BucketImpl withPermissions(BucketPatchPermissions permissions) { - this.updateBody.withPermissions(permissions); - return this; - } - - private boolean isInCreateMode() { - return this.innerModel() == null || this.innerModel().id() == null; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java deleted file mode 100644 index 43506d08204d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java +++ /dev/null @@ -1,1814 +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.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.BucketsClient; -import com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner; -import com.azure.resourcemanager.netapp.fluent.models.BucketInner; -import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; -import com.azure.resourcemanager.netapp.models.BucketList; -import com.azure.resourcemanager.netapp.models.BucketPatch; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in BucketsClient. - */ -public final class BucketsClientImpl implements BucketsClient { - /** - * The proxy service used to perform REST calls. - */ - private final BucketsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of BucketsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - BucketsClientImpl(NetAppManagementClientImpl client) { - this.service = RestProxy.create(BucketsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientBuckets to be used by the proxy service to - * perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "NetAppManagementClientBuckets") - public interface BucketsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@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" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@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" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BucketInner body, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BucketInner body, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BucketPatch body, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BucketPatch body, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("bucketName") String bucketName, @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}/buckets/{bucketName}/generateCredentials") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> generateCredentials(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BucketCredentialsExpiry 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}/buckets/{bucketName}/generateCredentials") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response generateCredentialsSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BucketCredentialsExpiry body, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Describes all buckets belonging to a volume - * - * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 list of volume bucket resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(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.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Describes all buckets belonging to a volume - * - * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 list of volume bucket resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Describes all buckets belonging to a volume - * - * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 list of volume bucket resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName, - String volumeName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Describes all buckets belonging to a volume - * - * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 list of volume bucket resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Describes all buckets belonging to a volume - * - * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 list of volume bucket resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName, volumeName), - nextLink -> listNextSinglePage(nextLink)); - } - - /** - * Describes all buckets belonging to a volume - * - * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 list of volume bucket resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName, volumeName, context), - nextLink -> listNextSinglePage(nextLink, context)); - } - - /** - * Describe a volume's bucket - * - * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, - * connect to the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume's bucket along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Describe a volume's bucket - * - * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, - * connect to the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume's bucket on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Describe a volume's bucket - * - * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, - * connect to the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume's bucket along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), accept, context); - } - - /** - * Describe a volume's bucket - * - * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, - * connect to the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume's bucket. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public BucketInner get(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName) { - return getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, Context.NONE) - .getValue(); - } - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, String bucketName, BucketInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, accept, Context.NONE); - } - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @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 bucket resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, accept, context); - } - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 bucket resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BucketInner> beginCreateOrUpdateAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, String bucketName, BucketInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - BucketInner.class, BucketInner.class, this.client.getContext()); - } - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of bucket resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BucketInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, String bucketName, BucketInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, body); - return this.client.getLroResult(response, BucketInner.class, BucketInner.class, - Context.NONE); - } - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @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 bucket resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BucketInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, String bucketName, BucketInner body, Context context) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, volumeName, - bucketName, body, context); - return this.client.getLroResult(response, BucketInner.class, BucketInner.class, - context); - } - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, BucketInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public BucketInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, BucketInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, bucketName, body) - .getFinalResult(); - } - - /** - * Creates or updates a bucket for a volume - * - * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @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 bucket resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public BucketInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, BucketInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context) - .getFinalResult(); - } - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketPatch body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, BucketPatch body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, accept, Context.NONE); - } - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @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 bucket resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, BucketPatch body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, accept, context); - } - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 bucket resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BucketInner> beginUpdateAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, String bucketName, BucketPatch body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - BucketInner.class, BucketInner.class, this.client.getContext()); - } - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of bucket resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BucketInner> beginUpdate(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketPatch body) { - Response response - = updateWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, body); - return this.client.getLroResult(response, BucketInner.class, BucketInner.class, - Context.NONE); - } - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @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 bucket resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BucketInner> beginUpdate(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketPatch body, Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context); - return this.client.getLroResult(response, BucketInner.class, BucketInner.class, - context); - } - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, BucketPatch body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public BucketInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, BucketPatch body) { - return beginUpdate(resourceGroupName, accountName, poolName, volumeName, bucketName, body).getFinalResult(); - } - - /** - * Updates a bucket for a volume - * - * Updates the details of a volume bucket. - * - * @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 bucketName The name of the bucket. - * @param body The bucket details including user details, and the volume path that should be mounted inside the - * bucket. - * @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 bucket resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public BucketInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, BucketPatch body, Context context) { - return beginUpdate(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context) - .getFinalResult(); - } - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), accept, Context.NONE); - } - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), accept, context); - } - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName) { - Response response - = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, Context context) { - Response response - = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName) { - beginDelete(resourceGroupName, accountName, poolName, volumeName, bucketName).getFinalResult(); - } - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, Context context) { - beginDelete(resourceGroupName, accountName, poolName, volumeName, bucketName, context).getFinalResult(); - } - - /** - * Generate bucket access credentials - * - * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date - * and time of key pair (in UTC). - * - * @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 bucketName The name of the bucket. - * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> generateCredentialsWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName, - BucketCredentialsExpiry body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.generateCredentials(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, bucketName, - this.client.getApiVersion(), body, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Generate bucket access credentials - * - * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date - * and time of key pair (in UTC). - * - * @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 bucketName The name of the bucket. - * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono generateCredentialsAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body) { - return generateCredentialsWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, - body).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Generate bucket access credentials - * - * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date - * and time of key pair (in UTC). - * - * @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 bucketName The name of the bucket. - * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - * @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 bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response generateCredentialsWithResponse(String resourceGroupName, - String accountName, String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (bucketName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return service.generateCredentialsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, accept, - context); - } - - /** - * Generate bucket access credentials - * - * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date - * and time of key pair (in UTC). - * - * @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 bucketName The name of the bucket. - * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public BucketGenerateCredentialsInner generateCredentials(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body) { - return generateCredentialsWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, body, - Context.NONE).getValue(); - } - - /** - * Describes all buckets belonging to a volume - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume bucket resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Describes all buckets belonging to a volume - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume bucket resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Describes all buckets belonging to a volume - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume bucket resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - private static final ClientLogger LOGGER = new ClientLogger(BucketsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java deleted file mode 100644 index e5b7191e4e79..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java +++ /dev/null @@ -1,231 +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.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.BucketsClient; -import com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner; -import com.azure.resourcemanager.netapp.fluent.models.BucketInner; -import com.azure.resourcemanager.netapp.models.Bucket; -import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; -import com.azure.resourcemanager.netapp.models.BucketGenerateCredentials; -import com.azure.resourcemanager.netapp.models.Buckets; - -public final class BucketsImpl implements Buckets { - private static final ClientLogger LOGGER = new ClientLogger(BucketsImpl.class); - - private final BucketsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public BucketsImpl(BucketsClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable list(String resourceGroupName, String accountName, String poolName, - String volumeName) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, accountName, poolName, volumeName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new BucketImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, accountName, poolName, volumeName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new BucketImpl(inner1, this.manager())); - } - - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new BucketImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public Bucket get(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName) { - BucketInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, bucketName); - if (inner != null) { - return new BucketImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, bucketName); - } - - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, bucketName, context); - } - - public Response generateCredentialsWithResponse(String resourceGroupName, - String accountName, String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body, - Context context) { - Response inner = this.serviceClient() - .generateCredentialsWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, body, - context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new BucketGenerateCredentialsImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public BucketGenerateCredentials generateCredentials(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, BucketCredentialsExpiry body) { - BucketGenerateCredentialsInner inner = this.serviceClient() - .generateCredentials(resourceGroupName, accountName, poolName, volumeName, bucketName, body); - if (inner != null) { - return new BucketGenerateCredentialsImpl(inner, this.manager()); - } else { - return null; - } - } - - public Bucket getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "capacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); - } - String bucketName = ResourceManagerUtils.getValueFromIdByName(id, "buckets"); - if (bucketName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'buckets'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "capacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); - } - String bucketName = ResourceManagerUtils.getValueFromIdByName(id, "buckets"); - if (bucketName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'buckets'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "capacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); - } - String bucketName = ResourceManagerUtils.getValueFromIdByName(id, "buckets"); - if (bucketName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'buckets'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, volumeName, bucketName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "capacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); - } - String bucketName = ResourceManagerUtils.getValueFromIdByName(id, "buckets"); - if (bucketName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'buckets'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, volumeName, bucketName, context); - } - - private BucketsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public BucketImpl define(String name) { - return new BucketImpl(name, this.manager()); - } -} 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 20396bf9b329..311da42b265c 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -78,7 +78,7 @@ public Float utilizedThroughputMibps() { return this.innerModel().utilizedThroughputMibps(); } - public Float customThroughputMibps() { + public Integer customThroughputMibps() { return this.innerModel().customThroughputMibps(); } @@ -222,7 +222,7 @@ public CapacityPoolImpl withTags(Map tags) { } } - public CapacityPoolImpl withCustomThroughputMibps(Float customThroughputMibps) { + public CapacityPoolImpl withCustomThroughputMibps(Integer customThroughputMibps) { if (isInCreateMode()) { this.innerModel().withCustomThroughputMibps(customThroughputMibps); return this; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java index 117762d36710..b9d6de4626da 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java index f1cefd3d6eb2..1336757e463d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java index 71d3e2b26d14..ce25f2863779 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; 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 index 490a00634be1..f9ffb37f583c 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; 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 ec3e3a9a6a02..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResponseImpl.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.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 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 1ee92f3c0762..f7fdcc5c73b5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -13,7 +13,6 @@ 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.LdapConfiguration; import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; import com.azure.resourcemanager.netapp.models.MultiAdStatus; import com.azure.resourcemanager.netapp.models.NetAppAccount; @@ -93,10 +92,6 @@ public MultiAdStatus multiAdStatus() { return this.innerModel().multiAdStatus(); } - public LdapConfiguration ldapConfiguration() { - return this.innerModel().ldapConfiguration(); - } - public Region region() { return Region.fromName(this.regionName()); } @@ -282,16 +277,6 @@ public NetAppAccountImpl withNfsV4IdDomain(String nfsV4IdDomain) { } } - public NetAppAccountImpl withLdapConfiguration(LdapConfiguration ldapConfiguration) { - if (isInCreateMode()) { - this.innerModel().withLdapConfiguration(ldapConfiguration); - return this; - } else { - this.updateBody.withLdapConfiguration(ldapConfiguration); - return this; - } - } - private boolean isInCreateMode() { return this.innerModel() == null || this.innerModel().id() == null; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java index 23e6128f35f2..16afc87512dc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -20,34 +20,34 @@ @ServiceClientBuilder(serviceClients = { NetAppManagementClientImpl.class }) public final class NetAppManagementClientBuilder { /* - * The ID of the target subscription. The value must be an UUID. + * Service host */ - private String subscriptionId; + private String endpoint; /** - * Sets The ID of the target subscription. The value must be an UUID. + * Sets Service host. * - * @param subscriptionId the subscriptionId value. + * @param endpoint the endpoint value. * @return the NetAppManagementClientBuilder. */ - public NetAppManagementClientBuilder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; + public NetAppManagementClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; return this; } /* - * server parameter + * The ID of the target subscription. The value must be an UUID. */ - private String endpoint; + private String subscriptionId; /** - * Sets server parameter. + * Sets The ID of the target subscription. The value must be an UUID. * - * @param endpoint the endpoint value. + * @param subscriptionId the subscriptionId value. * @return the NetAppManagementClientBuilder. */ - public NetAppManagementClientBuilder endpoint(String endpoint) { - this.endpoint = endpoint; + public NetAppManagementClientBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; return this; } @@ -132,7 +132,7 @@ public NetAppManagementClientImpl buildClient() { ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); NetAppManagementClientImpl client = new NetAppManagementClientImpl(localPipeline, localSerializerAdapter, - localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); + localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId); return client; } } 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 d3af04263a8a..6909c6e312f0 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -33,7 +33,6 @@ import com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient; import com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient; import com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient; -import com.azure.resourcemanager.netapp.fluent.BucketsClient; import com.azure.resourcemanager.netapp.fluent.NetAppManagementClient; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; @@ -63,26 +62,12 @@ @ServiceClient(builder = NetAppManagementClientBuilder.class) public final class NetAppManagementClientImpl implements NetAppManagementClient { /** - * The ID of the target subscription. The value must be an UUID. - */ - private final String subscriptionId; - - /** - * Gets The ID of the target subscription. The value must be an UUID. - * - * @return the subscriptionId value. - */ - public String getSubscriptionId() { - return this.subscriptionId; - } - - /** - * server parameter. + * Service host. */ private final String endpoint; /** - * Gets server parameter. + * Gets Service host. * * @return the endpoint value. */ @@ -91,12 +76,12 @@ public String getEndpoint() { } /** - * Api Version. + * Version parameter. */ private final String apiVersion; /** - * Gets Api Version. + * Gets Version parameter. * * @return the apiVersion value. */ @@ -104,6 +89,20 @@ public String getApiVersion() { return this.apiVersion; } + /** + * The ID of the target subscription. The value must be an UUID. + */ + private final String subscriptionId; + + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + /** * The HTTP pipeline to send requests through. */ @@ -161,87 +160,45 @@ public OperationsClient getOperations() { } /** - * The NetAppResourcesClient object to access its operations. - */ - private final NetAppResourcesClient netAppResources; - - /** - * Gets the NetAppResourcesClient object to access its operations. - * - * @return the NetAppResourcesClient object. - */ - public NetAppResourcesClient getNetAppResources() { - return this.netAppResources; - } - - /** - * The NetAppResourceUsagesClient object to access its operations. - */ - private final NetAppResourceUsagesClient netAppResourceUsages; - - /** - * Gets the NetAppResourceUsagesClient object to access its operations. - * - * @return the NetAppResourceUsagesClient object. - */ - public NetAppResourceUsagesClient getNetAppResourceUsages() { - return this.netAppResourceUsages; - } - - /** - * The NetAppResourceQuotaLimitsClient object to access its operations. - */ - private final NetAppResourceQuotaLimitsClient netAppResourceQuotaLimits; - - /** - * Gets the NetAppResourceQuotaLimitsClient object to access its operations. - * - * @return the NetAppResourceQuotaLimitsClient object. - */ - public NetAppResourceQuotaLimitsClient getNetAppResourceQuotaLimits() { - return this.netAppResourceQuotaLimits; - } - - /** - * The NetAppResourceRegionInfosClient object to access its operations. + * The NetAppResourceQuotaLimitsAccountsClient object to access its operations. */ - private final NetAppResourceRegionInfosClient netAppResourceRegionInfos; + private final NetAppResourceQuotaLimitsAccountsClient netAppResourceQuotaLimitsAccounts; /** - * Gets the NetAppResourceRegionInfosClient object to access its operations. + * Gets the NetAppResourceQuotaLimitsAccountsClient object to access its operations. * - * @return the NetAppResourceRegionInfosClient object. + * @return the NetAppResourceQuotaLimitsAccountsClient object. */ - public NetAppResourceRegionInfosClient getNetAppResourceRegionInfos() { - return this.netAppResourceRegionInfos; + public NetAppResourceQuotaLimitsAccountsClient getNetAppResourceQuotaLimitsAccounts() { + return this.netAppResourceQuotaLimitsAccounts; } /** - * The AccountsClient object to access its operations. + * The VolumeGroupsClient object to access its operations. */ - private final AccountsClient accounts; + private final VolumeGroupsClient volumeGroups; /** - * Gets the AccountsClient object to access its operations. + * Gets the VolumeGroupsClient object to access its operations. * - * @return the AccountsClient object. + * @return the VolumeGroupsClient object. */ - public AccountsClient getAccounts() { - return this.accounts; + public VolumeGroupsClient getVolumeGroups() { + return this.volumeGroups; } /** - * The PoolsClient object to access its operations. + * The BackupsClient object to access its operations. */ - private final PoolsClient pools; + private final BackupsClient backups; /** - * Gets the PoolsClient object to access its operations. + * Gets the BackupsClient object to access its operations. * - * @return the PoolsClient object. + * @return the BackupsClient object. */ - public PoolsClient getPools() { - return this.pools; + public BackupsClient getBackups() { + return this.backups; } /** @@ -315,73 +272,87 @@ public VolumeQuotaRulesClient getVolumeQuotaRules() { } /** - * The VolumeGroupsClient object to access its operations. + * The BackupVaultsClient object to access its operations. */ - private final VolumeGroupsClient volumeGroups; + private final BackupVaultsClient backupVaults; /** - * Gets the VolumeGroupsClient object to access its operations. + * Gets the BackupVaultsClient object to access its operations. * - * @return the VolumeGroupsClient object. + * @return the BackupVaultsClient object. */ - public VolumeGroupsClient getVolumeGroups() { - return this.volumeGroups; + public BackupVaultsClient getBackupVaults() { + return this.backupVaults; } /** - * The SubvolumesClient object to access its operations. + * The NetAppResourceQuotaLimitsClient object to access its operations. */ - private final SubvolumesClient subvolumes; + private final NetAppResourceQuotaLimitsClient netAppResourceQuotaLimits; /** - * Gets the SubvolumesClient object to access its operations. + * Gets the NetAppResourceQuotaLimitsClient object to access its operations. * - * @return the SubvolumesClient object. + * @return the NetAppResourceQuotaLimitsClient object. */ - public SubvolumesClient getSubvolumes() { - return this.subvolumes; + public NetAppResourceQuotaLimitsClient getNetAppResourceQuotaLimits() { + return this.netAppResourceQuotaLimits; } /** - * The BackupsClient object to access its operations. + * The NetAppResourceRegionInfosClient object to access its operations. */ - private final BackupsClient backups; + private final NetAppResourceRegionInfosClient netAppResourceRegionInfos; /** - * Gets the BackupsClient object to access its operations. + * Gets the NetAppResourceRegionInfosClient object to access its operations. * - * @return the BackupsClient object. + * @return the NetAppResourceRegionInfosClient object. */ - public BackupsClient getBackups() { - return this.backups; + public NetAppResourceRegionInfosClient getNetAppResourceRegionInfos() { + return this.netAppResourceRegionInfos; } /** - * The NetAppResourceQuotaLimitsAccountsClient object to access its operations. + * The AccountsClient object to access its operations. */ - private final NetAppResourceQuotaLimitsAccountsClient netAppResourceQuotaLimitsAccounts; + private final AccountsClient accounts; /** - * Gets the NetAppResourceQuotaLimitsAccountsClient object to access its operations. + * Gets the AccountsClient object to access its operations. * - * @return the NetAppResourceQuotaLimitsAccountsClient object. + * @return the AccountsClient object. */ - public NetAppResourceQuotaLimitsAccountsClient getNetAppResourceQuotaLimitsAccounts() { - return this.netAppResourceQuotaLimitsAccounts; + public AccountsClient getAccounts() { + return this.accounts; } /** - * The BackupVaultsClient object to access its operations. + * The BackupsUnderAccountsClient object to access its operations. */ - private final BackupVaultsClient backupVaults; + private final BackupsUnderAccountsClient backupsUnderAccounts; /** - * Gets the BackupVaultsClient object to access its operations. + * Gets the BackupsUnderAccountsClient object to access its operations. * - * @return the BackupVaultsClient object. + * @return the BackupsUnderAccountsClient object. */ - public BackupVaultsClient getBackupVaults() { - return this.backupVaults; + public BackupsUnderAccountsClient getBackupsUnderAccounts() { + return this.backupsUnderAccounts; + } + + /** + * The PoolsClient object to access its operations. + */ + private final PoolsClient pools; + + /** + * Gets the PoolsClient object to access its operations. + * + * @return the PoolsClient object. + */ + public PoolsClient getPools() { + return this.pools; } /** @@ -413,31 +384,45 @@ public BackupsUnderVolumesClient getBackupsUnderVolumes() { } /** - * The BackupsUnderAccountsClient object to access its operations. + * The SubvolumesClient object to access its operations. */ - private final BackupsUnderAccountsClient backupsUnderAccounts; + private final SubvolumesClient subvolumes; /** - * Gets the BackupsUnderAccountsClient object to access its operations. + * Gets the SubvolumesClient object to access its operations. * - * @return the BackupsUnderAccountsClient object. + * @return the SubvolumesClient object. */ - public BackupsUnderAccountsClient getBackupsUnderAccounts() { - return this.backupsUnderAccounts; + public SubvolumesClient getSubvolumes() { + return this.subvolumes; } /** - * The BucketsClient object to access its operations. + * The NetAppResourcesClient object to access its operations. */ - private final BucketsClient buckets; + private final NetAppResourcesClient netAppResources; /** - * Gets the BucketsClient object to access its operations. + * Gets the NetAppResourcesClient object to access its operations. * - * @return the BucketsClient object. + * @return the NetAppResourcesClient object. */ - public BucketsClient getBuckets() { - return this.buckets; + public NetAppResourcesClient getNetAppResources() { + return this.netAppResources; + } + + /** + * The NetAppResourceUsagesClient object to access its operations. + */ + private final NetAppResourceUsagesClient netAppResourceUsages; + + /** + * Gets the NetAppResourceUsagesClient object to access its operations. + * + * @return the NetAppResourceUsagesClient object. + */ + public NetAppResourceUsagesClient getNetAppResourceUsages() { + return this.netAppResourceUsages; } /** @@ -447,38 +432,37 @@ public BucketsClient getBuckets() { * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. + * @param endpoint Service host. * @param subscriptionId The ID of the target subscription. The value must be an UUID. - * @param endpoint server parameter. */ NetAppManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, - Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) { + Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; - this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2025-07-01-preview"; + this.subscriptionId = subscriptionId; + this.apiVersion = "2025-09-01"; this.operations = new OperationsClientImpl(this); - this.netAppResources = new NetAppResourcesClientImpl(this); - this.netAppResourceUsages = new NetAppResourceUsagesClientImpl(this); - this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this); - this.netAppResourceRegionInfos = new NetAppResourceRegionInfosClientImpl(this); - this.accounts = new AccountsClientImpl(this); - this.pools = new PoolsClientImpl(this); + this.netAppResourceQuotaLimitsAccounts = new NetAppResourceQuotaLimitsAccountsClientImpl(this); + this.volumeGroups = new VolumeGroupsClientImpl(this); + this.backups = new BackupsClientImpl(this); this.volumes = new VolumesClientImpl(this); this.snapshots = new SnapshotsClientImpl(this); this.snapshotPolicies = new SnapshotPoliciesClientImpl(this); this.backupPolicies = new BackupPoliciesClientImpl(this); this.volumeQuotaRules = new VolumeQuotaRulesClientImpl(this); - this.volumeGroups = new VolumeGroupsClientImpl(this); - this.subvolumes = new SubvolumesClientImpl(this); - this.backups = new BackupsClientImpl(this); - this.netAppResourceQuotaLimitsAccounts = new NetAppResourceQuotaLimitsAccountsClientImpl(this); this.backupVaults = new BackupVaultsClientImpl(this); + this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this); + this.netAppResourceRegionInfos = new NetAppResourceRegionInfosClientImpl(this); + this.accounts = new AccountsClientImpl(this); + this.backupsUnderAccounts = new BackupsUnderAccountsClientImpl(this); + this.pools = new PoolsClientImpl(this); this.backupsUnderBackupVaults = new BackupsUnderBackupVaultsClientImpl(this); this.backupsUnderVolumes = new BackupsUnderVolumesClientImpl(this); - this.backupsUnderAccounts = new BackupsUnderAccountsClientImpl(this); - this.buckets = new BucketsClientImpl(this); + this.subvolumes = new SubvolumesClientImpl(this); + this.netAppResources = new NetAppResourcesClientImpl(this); + this.netAppResourceUsages = new NetAppResourceUsagesClientImpl(this); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java index dc5e955c7640..bd67afced93c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -27,8 +27,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient; -import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; -import com.azure.resourcemanager.netapp.models.QuotaItemList; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; +import com.azure.resourcemanager.netapp.implementation.models.QuotaItemList; import reactor.core.publisher.Mono; /** @@ -60,45 +60,43 @@ public final class NetAppResourceQuotaLimitsAccountsClientImpl implements NetApp * The interface defining all the services for NetAppManagementClientNetAppResourceQuotaLimitsAccounts to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientNetAppResourceQuotaLimitsAccounts") public interface NetAppResourceQuotaLimitsAccountsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits/{quotaLimitName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("quotaLimitName") String quotaLimitName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits/{quotaLimitName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("quotaLimitName") String quotaLimitName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits/{quotaLimitName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("quotaLimitName") String quotaLimitName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits/{quotaLimitName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("quotaLimitName") String quotaLimitName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -106,31 +104,31 @@ Response getSync(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets a list of quota limits for all quotas that are under account. - * - * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * Get the default, current and usages account quota limit. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of quota limits for all quotas that are under account along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the default, current and usages account quota limit along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String accountName, String quotaLimitName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -146,48 +144,49 @@ private Mono> listSinglePageAsync(String resourceG if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + if (quotaLimitName == null) { + return Mono.error(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, quotaLimitName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a list of quota limits for all quotas that are under account. - * - * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * Get the default, current and usages account quota limit. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of quota limits for all quotas that are under account as paginated response with - * {@link PagedFlux}. + * @return the default, current and usages account quota limit on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String accountName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, + String quotaLimitName) { + return getWithResponseAsync(resourceGroupName, accountName, quotaLimitName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets a list of quota limits for all quotas that are under account. - * - * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * Get the default, current and usages account quota limit. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @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 list of quota limits for all quotas that are under account along with {@link PagedResponse}. + * @return the default, current and usages account quota limit along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName) { + public Response getWithResponse(String resourceGroupName, String accountName, + String quotaLimitName, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -206,57 +205,70 @@ private PagedResponse listSinglePage(String resourceGroupName, S throw LOGGER.atError() .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + if (quotaLimitName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); + } final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, quotaLimitName, accept, context); } /** - * Gets a list of quota limits for all quotas that are under account. + * Get the default, current and usages account quota limit. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default, current and usages account quota limit. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SubscriptionQuotaItemInner get(String resourceGroupName, String accountName, String quotaLimitName) { + return getWithResponse(resourceGroupName, accountName, quotaLimitName, Context.NONE).getValue(); + } + + /** * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of quota limits for all quotas that are under account along with {@link PagedResponse}. + * @return a list of quota limits for all quotas that are under account along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName, - Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String accountName) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a list of quota limits for all quotas that are under account. - * * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -265,111 +277,64 @@ private PagedResponse listSinglePage(String resourceGroupName, S * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of quota limits for all quotas that are under account as paginated response with - * {@link PagedIterable}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName), - nextLink -> listNextSinglePage(nextLink)); + private PagedFlux listAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets a list of quota limits for all quotas that are under account. - * * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of quota limits for all quotas that are under account as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName, Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, context), - nextLink -> listNextSinglePage(nextLink, context)); - } - - /** - * Gets the quota limits for the specific quota that is provided under the account. - * - * Get the default, current and usages account quota limit. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param quotaLimitName The name of the Quota Limit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default, current and usages account quota limit along with {@link Response} on successful completion - * of {@link Mono}. + * @return a list of quota limits for all quotas that are under account along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String quotaLimitName) { + private PagedResponse listSinglePage(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + throw LOGGER.atError() + .log(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.")); + throw LOGGER.atError() + .log(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.")); + throw LOGGER.atError() + .log(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 (quotaLimitName == null) { - return Mono.error(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, quotaLimitName, this.client.getApiVersion(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the quota limits for the specific quota that is provided under the account. - * - * Get the default, current and usages account quota limit. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param quotaLimitName The name of the Quota Limit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default, current and usages account quota limit on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String quotaLimitName) { - return getWithResponseAsync(resourceGroupName, accountName, quotaLimitName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Gets the quota limits for the specific quota that is provided under the account. - * - * Get the default, current and usages account quota limit. + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param quotaLimitName The name of the Quota Limit. * @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 default, current and usages account quota limit along with {@link Response}. + * @return a list of quota limits for all quotas that are under account along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName, + private PagedResponse listSinglePage(String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() @@ -389,36 +354,50 @@ public Response getWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - if (quotaLimitName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); - } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, quotaLimitName, this.client.getApiVersion(), accept, context); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Gets the quota limits for the specific quota that is provided under the account. - * - * Get the default, current and usages account quota limit. + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default, current and usages account quota limit. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public QuotaItemInner get(String resourceGroupName, String accountName, String quotaLimitName) { - return getWithResponse(resourceGroupName, accountName, quotaLimitName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName), + nextLink -> listNextSinglePage(nextLink)); } /** - * Gets a list of quota limits for all quotas that are under account. + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, + Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -429,7 +408,7 @@ public QuotaItemInner get(String resourceGroupName, String accountName, String q * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -439,14 +418,12 @@ private Mono> listNextSinglePageAsync(String nextL } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a list of quota limits for all quotas that are under account. - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -456,7 +433,7 @@ private Mono> listNextSinglePageAsync(String nextL * @return a list of quota limits for all quotas that are under account along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { + private PagedResponse listNextSinglePage(String nextLink) { if (nextLink == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -473,8 +450,6 @@ private PagedResponse listNextSinglePage(String nextLink) { } /** - * Gets a list of quota limits for all quotas that are under account. - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -485,7 +460,7 @@ private PagedResponse listNextSinglePage(String nextLink) { * @return a list of quota limits for all quotas that are under account along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { + private PagedResponse listNextSinglePage(String nextLink, Context context) { if (nextLink == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java index dee5d469e586..099531f96fee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -10,9 +10,9 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient; -import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimitsAccounts; -import com.azure.resourcemanager.netapp.models.QuotaItem; +import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; public final class NetAppResourceQuotaLimitsAccountsImpl implements NetAppResourceQuotaLimitsAccounts { private static final ClientLogger LOGGER = new ClientLogger(NetAppResourceQuotaLimitsAccountsImpl.class); @@ -27,37 +27,38 @@ public NetAppResourceQuotaLimitsAccountsImpl(NetAppResourceQuotaLimitsAccountsCl this.serviceManager = serviceManager; } - public PagedIterable list(String resourceGroupName, String accountName) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new QuotaItemImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String accountName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new QuotaItemImpl(inner1, this.manager())); - } - - public Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName, - Context context) { - Response inner + public Response getWithResponse(String resourceGroupName, String accountName, + String quotaLimitName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, accountName, quotaLimitName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new QuotaItemImpl(inner.getValue(), this.manager())); + new SubscriptionQuotaItemImpl(inner.getValue(), this.manager())); } else { return null; } } - public QuotaItem get(String resourceGroupName, String accountName, String quotaLimitName) { - QuotaItemInner inner = this.serviceClient().get(resourceGroupName, accountName, quotaLimitName); + public SubscriptionQuotaItem get(String resourceGroupName, String accountName, String quotaLimitName) { + SubscriptionQuotaItemInner inner = this.serviceClient().get(resourceGroupName, accountName, quotaLimitName); if (inner != null) { - return new QuotaItemImpl(inner, this.manager()); + return new SubscriptionQuotaItemImpl(inner, this.manager()); } else { return null; } } + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SubscriptionQuotaItemImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SubscriptionQuotaItemImpl(inner1, this.manager())); + } + private NetAppResourceQuotaLimitsAccountsClient serviceClient() { return this.innerClient; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java index 8f294889e7da..3aa6df278073 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -27,8 +27,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; -import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; -import com.azure.resourcemanager.netapp.models.QuotaItemList; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; +import com.azure.resourcemanager.netapp.implementation.models.QuotaItemList; import reactor.core.publisher.Mono; /** @@ -60,72 +60,70 @@ public final class NetAppResourceQuotaLimitsClientImpl implements NetAppResource * The interface defining all the services for NetAppManagementClientNetAppResourceQuotaLimits to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientNetAppResourceQuotaLimits") public interface NetAppResourceQuotaLimitsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("quotaLimitName") String quotaLimitName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("quotaLimitName") String quotaLimitName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @PathParam("quotaLimitName") String quotaLimitName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @PathParam("quotaLimitName") String quotaLimitName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Get quota limits - * - * Get the default and current limits for quotas. + * Get the default and current quota limit. * * @param location The name of the Azure region. + * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current limits for quotas along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the default and current quota limit along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String location) { + private Mono> getWithResponseAsync(String location, String quotaLimitName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -137,79 +135,45 @@ private Mono> listSinglePageAsync(String location) if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } + if (quotaLimitName == null) { + return Mono.error(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, quotaLimitName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get quota limits - * - * Get the default and current limits for quotas. - * - * @param location The name of the Azure region. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current limits for quotas as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String location) { - return new PagedFlux<>(() -> listSinglePageAsync(location), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Get quota limits - * - * Get the default and current limits for quotas. + * Get the default and current quota limit. * * @param location The name of the Azure region. + * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current limits for quotas along with {@link PagedResponse}. + * @return the default and current quota limit on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String location) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - location, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + private Mono getAsync(String location, String quotaLimitName) { + return getWithResponseAsync(location, quotaLimitName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get quota limits - * - * Get the default and current limits for quotas. + * Get the default and current quota limit. * * @param location The name of the Azure region. + * @param quotaLimitName The name of the Quota Limit. * @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 default and current limits for quotas along with {@link PagedResponse}. + * @return the default and current quota limit along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String location, Context context) { + public Response getWithResponse(String location, String quotaLimitName, + Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -224,62 +188,42 @@ private PagedResponse listSinglePage(String location, Context co throw LOGGER.atError() .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); } + if (quotaLimitName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); + } final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - location, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + location, quotaLimitName, accept, context); } /** - * Get quota limits - * - * Get the default and current limits for quotas. + * Get the default and current quota limit. * * @param location The name of the Azure region. + * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. + * @return the default and current quota limit. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String location) { - return new PagedIterable<>(() -> listSinglePage(location), nextLink -> listNextSinglePage(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public SubscriptionQuotaItemInner get(String location, String quotaLimitName) { + return getWithResponse(location, quotaLimitName, Context.NONE).getValue(); } /** - * Get quota limits - * * Get the default and current limits for quotas. * * @param location The name of the Azure region. - * @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 default and current limits for quotas as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String location, Context context) { - return new PagedIterable<>(() -> listSinglePage(location, context), - nextLink -> listNextSinglePage(nextLink, context)); - } - - /** - * Get quota limits - * - * Get the default and current subscription quota limit. - * - * @param location The name of the Azure region. - * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit along with {@link Response} on successful completion of + * @return the default and current limits for quotas along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String location, String quotaLimitName) { + private Mono> listSinglePageAsync(String location) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -291,48 +235,73 @@ private Mono> getWithResponseAsync(String location, Str if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - if (quotaLimitName == null) { - return Mono.error(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - quotaLimitName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get quota limits + * Get the default and current limits for quotas. * - * Get the default and current subscription quota limit. + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default and current limits for quotas as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location) { + return new PagedFlux<>(() -> listSinglePageAsync(location), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Get the default and current limits for quotas. * * @param location The name of the Azure region. - * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit on successful completion of {@link Mono}. + * @return the default and current limits for quotas along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String location, String quotaLimitName) { - return getWithResponseAsync(location, quotaLimitName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + private PagedResponse listSinglePage(String location) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Get quota limits - * - * Get the default and current subscription quota limit. + * Get the default and current limits for quotas. * * @param location The name of the Azure region. - * @param quotaLimitName The name of the Quota Limit. * @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 default and current subscription quota limit along with {@link Response}. + * @return the default and current limits for quotas along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String location, String quotaLimitName, Context context) { + private PagedResponse listSinglePage(String location, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -347,35 +316,44 @@ public Response getWithResponse(String location, String quotaLim throw LOGGER.atError() .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - if (quotaLimitName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); - } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), location, quotaLimitName, - this.client.getApiVersion(), accept, context); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Get quota limits - * - * Get the default and current subscription quota limit. + * Get the default and current limits for quotas. * * @param location The name of the Azure region. - * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public QuotaItemInner get(String location, String quotaLimitName) { - return getWithResponse(location, quotaLimitName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location) { + return new PagedIterable<>(() -> listSinglePage(location), nextLink -> listNextSinglePage(nextLink)); } /** - * Get quota limits + * Get the default and current limits for quotas. * + * @param location The name of the Azure region. + * @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 default and current limits for quotas as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location, Context context) { + return new PagedIterable<>(() -> listSinglePage(location, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -386,7 +364,7 @@ public QuotaItemInner get(String location, String quotaLimitName) { * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -396,14 +374,12 @@ private Mono> listNextSinglePageAsync(String nextL } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get quota limits - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -413,7 +389,7 @@ private Mono> listNextSinglePageAsync(String nextL * @return the default and current limits for quotas along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { + private PagedResponse listNextSinglePage(String nextLink) { if (nextLink == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -430,8 +406,6 @@ private PagedResponse listNextSinglePage(String nextLink) { } /** - * Get quota limits - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -442,7 +416,7 @@ private PagedResponse listNextSinglePage(String nextLink) { * @return the default and current limits for quotas along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { + private PagedResponse listNextSinglePage(String nextLink, Context context) { if (nextLink == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java index 5e1797966d34..b9eb3501decb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -10,9 +10,9 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; -import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits; -import com.azure.resourcemanager.netapp.models.QuotaItem; +import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; public final class NetAppResourceQuotaLimitsImpl implements NetAppResourceQuotaLimits { private static final ClientLogger LOGGER = new ClientLogger(NetAppResourceQuotaLimitsImpl.class); @@ -27,35 +27,36 @@ public NetAppResourceQuotaLimitsImpl(NetAppResourceQuotaLimitsClient innerClient this.serviceManager = serviceManager; } - public PagedIterable list(String location) { - PagedIterable inner = this.serviceClient().list(location); - return ResourceManagerUtils.mapPage(inner, inner1 -> new QuotaItemImpl(inner1, this.manager())); - } - - public PagedIterable list(String location, Context context) { - PagedIterable inner = this.serviceClient().list(location, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new QuotaItemImpl(inner1, this.manager())); - } - - public Response getWithResponse(String location, String quotaLimitName, Context context) { - Response inner = this.serviceClient().getWithResponse(location, quotaLimitName, context); + public Response getWithResponse(String location, String quotaLimitName, Context context) { + Response inner + = this.serviceClient().getWithResponse(location, quotaLimitName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new QuotaItemImpl(inner.getValue(), this.manager())); + new SubscriptionQuotaItemImpl(inner.getValue(), this.manager())); } else { return null; } } - public QuotaItem get(String location, String quotaLimitName) { - QuotaItemInner inner = this.serviceClient().get(location, quotaLimitName); + public SubscriptionQuotaItem get(String location, String quotaLimitName) { + SubscriptionQuotaItemInner inner = this.serviceClient().get(location, quotaLimitName); if (inner != null) { - return new QuotaItemImpl(inner, this.manager()); + return new SubscriptionQuotaItemImpl(inner, this.manager()); } else { return null; } } + public PagedIterable list(String location) { + PagedIterable inner = this.serviceClient().list(location); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SubscriptionQuotaItemImpl(inner1, this.manager())); + } + + public PagedIterable list(String location, Context context) { + PagedIterable inner = this.serviceClient().list(location, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SubscriptionQuotaItemImpl(inner1, this.manager())); + } + private NetAppResourceQuotaLimitsClient serviceClient() { return this.innerClient; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosClientImpl.java index 4c8dfb525006..9b46908a691b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -28,7 +28,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient; import com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner; -import com.azure.resourcemanager.netapp.models.RegionInfosList; +import com.azure.resourcemanager.netapp.implementation.models.RegionInfosList; import reactor.core.publisher.Mono; /** @@ -60,69 +60,68 @@ public final class NetAppResourceRegionInfosClientImpl implements NetAppResource * The interface defining all the services for NetAppManagementClientNetAppResourceRegionInfos to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientNetAppResourceRegionInfos") public interface NetAppResourceRegionInfosService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos/default") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos/default") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos/default") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos/default") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Describes region specific information. - * - * Provides region specific information. + * Provides storage to network proximity and logical zone mapping information. * * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of regionInfo resources along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return information regarding regionInfo Item along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String location) { + private Mono> getWithResponseAsync(String location) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -136,42 +135,37 @@ private Mono> listSinglePageAsync(String } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describes region specific information. - * - * Provides region specific information. + * Provides storage to network proximity and logical zone mapping information. * * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of regionInfo resources as paginated response with {@link PagedFlux}. + * @return information regarding regionInfo Item on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String location) { - return new PagedFlux<>(() -> listSinglePageAsync(location), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String location) { + return getWithResponseAsync(location).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Describes region specific information. - * - * Provides region specific information. + * Provides storage to network proximity and logical zone mapping information. * * @param location The name of the Azure region. + * @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 list of regionInfo resources along with {@link PagedResponse}. + * @return information regarding regionInfo Item along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String location) { + public Response getWithResponse(String location, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -187,143 +181,113 @@ private PagedResponse listSinglePage(String location) { .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); } final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - location, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + location, accept, context); } /** - * Describes region specific information. - * - * Provides region specific information. + * Provides storage to network proximity and logical zone mapping information. * * @param location The name of the Azure region. - * @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 list of regionInfo resources along with {@link PagedResponse}. + * @return information regarding regionInfo Item. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String location, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - location, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + public RegionInfoResourceInner get(String location) { + return getWithResponse(location, Context.NONE).getValue(); } /** - * Describes region specific information. - * * Provides region specific information. * * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of regionInfo resources as paginated response with {@link PagedIterable}. + * @return list of regionInfo resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String location) { - return new PagedIterable<>(() -> listSinglePage(location), nextLink -> listNextSinglePage(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location) { + 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 (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describes region specific information. - * * Provides region specific information. * * @param location The name of the Azure region. - * @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 list of regionInfo resources as paginated response with {@link PagedIterable}. + * @return list of regionInfo resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String location, Context context) { - return new PagedIterable<>(() -> listSinglePage(location, context), - nextLink -> listNextSinglePage(nextLink, context)); + private PagedFlux listAsync(String location) { + return new PagedFlux<>(() -> listSinglePageAsync(location), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Describes region specific information. - * - * Provides storage to network proximity and logical zone mapping information. + * Provides region specific information. * * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding regionInfo Item along with {@link Response} on successful completion of - * {@link Mono}. + * @return list of regionInfo resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String location) { + private PagedResponse listSinglePage(String location) { if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + throw LOGGER.atError() + .log(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.")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Describes region specific information. - * - * Provides storage to network proximity and logical zone mapping information. - * - * @param location The name of the Azure region. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding regionInfo Item on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String location) { - return getWithResponseAsync(location).flatMap(res -> Mono.justOrEmpty(res.getValue())); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Describes region specific information. - * - * Provides storage to network proximity and logical zone mapping information. + * Provides region specific information. * * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding regionInfo Item along with {@link Response}. + * @return list of regionInfo resources along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String location, Context context) { + private PagedResponse listSinglePage(String location, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -339,29 +303,43 @@ public Response getWithResponse(String location, Contex .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), accept, context); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Describes region specific information. - * - * Provides storage to network proximity and logical zone mapping information. + * Provides region specific information. * * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding regionInfo Item. + * @return list of regionInfo resources as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public RegionInfoResourceInner get(String location) { - return getWithResponse(location, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location) { + return new PagedIterable<>(() -> listSinglePage(location), nextLink -> listNextSinglePage(nextLink)); } /** - * Describes region specific information. + * Provides region specific information. * + * @param location The name of the Azure region. + * @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 list of regionInfo resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location, Context context) { + return new PagedIterable<>(() -> listSinglePage(location, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -387,8 +365,6 @@ private Mono> listNextSinglePageAsync(Str } /** - * Describes region specific information. - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -415,8 +391,6 @@ private PagedResponse listNextSinglePage(String nextLin } /** - * Describes region specific information. - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosImpl.java index 9ef546fe34a0..8580610a4301 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -27,16 +27,6 @@ public NetAppResourceRegionInfosImpl(NetAppResourceRegionInfosClient innerClient this.serviceManager = serviceManager; } - public PagedIterable list(String location) { - PagedIterable inner = this.serviceClient().list(location); - return ResourceManagerUtils.mapPage(inner, inner1 -> new RegionInfoResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(String location, Context context) { - PagedIterable inner = this.serviceClient().list(location, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new RegionInfoResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String location, Context context) { Response inner = this.serviceClient().getWithResponse(location, context); if (inner != null) { @@ -56,6 +46,16 @@ public RegionInfoResource get(String location) { } } + public PagedIterable list(String location) { + PagedIterable inner = this.serviceClient().list(location); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RegionInfoResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String location, Context context) { + PagedIterable inner = this.serviceClient().list(location, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RegionInfoResourceImpl(inner1, this.manager())); + } + private NetAppResourceRegionInfosClient serviceClient() { return this.innerClient; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java index e02a640b10c4..7968d5975e58 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -28,7 +28,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient; import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner; -import com.azure.resourcemanager.netapp.models.UsagesListResult; +import com.azure.resourcemanager.netapp.implementation.models.UsagesListResult; import reactor.core.publisher.Mono; /** @@ -60,41 +60,41 @@ public final class NetAppResourceUsagesClientImpl implements NetAppResourceUsage * The interface defining all the services for NetAppManagementClientNetAppResourceUsages to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientNetAppResourceUsages") public interface NetAppResourceUsagesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @PathParam("usageType") String usageType, @QueryParam("api-version") String apiVersion, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("usageType") String usageType, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @PathParam("usageType") String usageType, @QueryParam("api-version") String apiVersion, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("usageType") String usageType, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -102,14 +102,14 @@ Response getSync(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** @@ -117,11 +117,13 @@ Response listNextSync(@PathParam(value = "nextLink", encoded = * * Get current subscription usages. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return usages + * + * Get current subscription usages along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location) { @@ -138,8 +140,8 @@ private Mono> listSinglePageAsync(String locatio } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -150,11 +152,13 @@ private Mono> listSinglePageAsync(String locatio * * Get current subscription usages. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages as paginated response with {@link PagedFlux}. + * @return usages + * + * Get current subscription usages as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String location) { @@ -166,11 +170,13 @@ private PagedFlux listAsync(String location) { * * Get current subscription usages. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages along with {@link PagedResponse}. + * @return usages + * + * Get current subscription usages along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage(String location) { @@ -189,8 +195,8 @@ private PagedResponse listSinglePage(String location) { .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); } final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - location, this.client.getApiVersion(), accept, Context.NONE); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -200,12 +206,14 @@ private PagedResponse listSinglePage(String location) { * * Get current subscription usages. * - * @param location The name of the Azure region. + * @param location The location name. * @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 current subscription usages along with {@link PagedResponse}. + * @return usages + * + * Get current subscription usages along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage(String location, Context context) { @@ -224,8 +232,8 @@ private PagedResponse listSinglePage(String location, Context .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); } final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - location, this.client.getApiVersion(), accept, context); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -235,11 +243,13 @@ private PagedResponse listSinglePage(String location, Context * * Get current subscription usages. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages as paginated response with {@link PagedIterable}. + * @return usages + * + * Get current subscription usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String location) { @@ -251,12 +261,14 @@ public PagedIterable list(String location) { * * Get current subscription usages. * - * @param location The name of the Azure region. + * @param location The location name. * @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 current subscription usages as paginated response with {@link PagedIterable}. + * @return usages + * + * Get current subscription usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String location, Context context) { @@ -274,7 +286,9 @@ public PagedIterable list(String location, Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usage of the specific type along with {@link Response} on successful completion of + * @return specific type of usage + * + * Get current subscription usage of the specific type along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -295,8 +309,8 @@ private Mono> getWithResponseAsync(String location, S } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - usageType, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, usageType, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -310,7 +324,9 @@ private Mono> getWithResponseAsync(String location, 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 current subscription usage of the specific type on successful completion of {@link Mono}. + * @return specific type of usage + * + * Get current subscription usage of the specific type on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String location, String usageType) { @@ -328,7 +344,9 @@ private Mono getAsync(String location, String usageType) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usage of the specific type along with {@link Response}. + * @return specific type of usage + * + * Get current subscription usage of the specific type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String location, String usageType, Context context) { @@ -351,8 +369,8 @@ public Response getWithResponse(String location, String usageT .log(new IllegalArgumentException("Parameter usageType is required and cannot be null.")); } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), location, usageType, - this.client.getApiVersion(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + location, usageType, accept, context); } /** @@ -365,7 +383,9 @@ public Response getWithResponse(String location, String usageT * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usage of the specific type. + * @return specific type of usage + * + * Get current subscription usage of the specific type. */ @ServiceMethod(returns = ReturnType.SINGLE) public UsageResultInner get(String location, String usageType) { @@ -381,7 +401,9 @@ public UsageResultInner get(String location, String usageType) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return usages + * + * Get current subscription usages along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -408,7 +430,9 @@ private Mono> listNextSinglePageAsync(String nex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages along with {@link PagedResponse}. + * @return usages + * + * Get current subscription usages along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNextSinglePage(String nextLink) { @@ -438,7 +462,9 @@ private PagedResponse listNextSinglePage(String nextLink) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages along with {@link PagedResponse}. + * @return usages + * + * Get current subscription usages along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNextSinglePage(String nextLink, Context context) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java index bffc73ec8d0a..ecd46eb81d46 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java index 0919817e60d1..0aba8830988d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -70,121 +70,113 @@ public final class NetAppResourcesClientImpl implements NetAppResourcesClient { * The interface defining all the services for NetAppManagementClientNetAppResources to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientNetAppResources") public interface NetAppResourcesService { - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ResourceNameAvailabilityRequest body, @HeaderParam("Accept") String accept, + Mono> checkNameAvailability(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ResourceNameAvailabilityRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response checkNameAvailabilitySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ResourceNameAvailabilityRequest body, @HeaderParam("Accept") String accept, + Response checkNameAvailabilitySync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ResourceNameAvailabilityRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkFilePathAvailability(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") FilePathAvailabilityRequest body, @HeaderParam("Accept") String accept, + Mono> checkFilePathAvailability(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") FilePathAvailabilityRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response checkFilePathAvailabilitySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") FilePathAvailabilityRequest body, @HeaderParam("Accept") String accept, + Response checkFilePathAvailabilitySync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") FilePathAvailabilityRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkQuotaAvailability(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") QuotaAvailabilityRequest body, - @HeaderParam("Accept") String accept, Context context); + Mono> checkQuotaAvailability(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") QuotaAvailabilityRequest body, + Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response checkQuotaAvailabilitySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") QuotaAvailabilityRequest body, - @HeaderParam("Accept") String accept, Context context); + Response checkQuotaAvailabilitySync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") QuotaAvailabilityRequest body, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryRegionInfo(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> queryRegionInfo(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response queryRegionInfoSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Response queryRegionInfoSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryNetworkSiblingSet(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") QueryNetworkSiblingSetRequest body, @HeaderParam("Accept") String accept, + Mono> queryNetworkSiblingSet(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") QueryNetworkSiblingSetRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response queryNetworkSiblingSetSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") QueryNetworkSiblingSetRequest body, @HeaderParam("Accept") String accept, + Response queryNetworkSiblingSetSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") QueryNetworkSiblingSetRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateNetworkSiblingSet(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UpdateNetworkSiblingSetRequest body, @HeaderParam("Accept") String accept, + Mono>> updateNetworkSiblingSet(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") UpdateNetworkSiblingSetRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateNetworkSiblingSetSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UpdateNetworkSiblingSetRequest body, @HeaderParam("Accept") String accept, + Response updateNetworkSiblingSetSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") UpdateNetworkSiblingSetRequest body, Context context); } @@ -193,8 +185,8 @@ Response updateNetworkSiblingSetSync(@HostParam("$host") String endp * * Check if a resource name is available. * - * @param location The name of the Azure region. - * @param body Name availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -220,10 +212,12 @@ private Mono> checkNameAvailabilityWith } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), - this.client.getSubscriptionId(), location, this.client.getApiVersion(), body, accept, context)) + .withContext( + context -> service.checkNameAvailability(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -232,8 +226,8 @@ private Mono> checkNameAvailabilityWith * * Check if a resource name is available. * - * @param location The name of the Azure region. - * @param body Name availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -250,8 +244,8 @@ private Mono checkNameAvailabilityAsync(String l * * Check if a resource name is available. * - * @param location The name of the Azure region. - * @param body Name availability request. + * @param location The location name. + * @param body The request body. * @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. @@ -280,9 +274,10 @@ public Response checkNameAvailabilityWithRespons } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.checkNameAvailabilitySync(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), body, accept, context); + return service.checkNameAvailabilitySync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, context); } /** @@ -290,8 +285,8 @@ public Response checkNameAvailabilityWithRespons * * Check if a resource name is available. * - * @param location The name of the Azure region. - * @param body Name availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -307,8 +302,8 @@ public CheckAvailabilityResponseInner checkNameAvailability(String location, Res * * Check if a file path is available. * - * @param location The name of the Azure region. - * @param body File path availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -334,10 +329,12 @@ private Mono> checkFilePathAvailability } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.checkFilePathAvailability(this.client.getEndpoint(), - this.client.getSubscriptionId(), location, this.client.getApiVersion(), body, accept, context)) + .withContext( + context -> service.checkFilePathAvailability(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -346,8 +343,8 @@ private Mono> checkFilePathAvailability * * Check if a file path is available. * - * @param location The name of the Azure region. - * @param body File path availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -365,8 +362,8 @@ private Mono checkFilePathAvailabilityAsync(Stri * * Check if a file path is available. * - * @param location The name of the Azure region. - * @param body File path availability request. + * @param location The location name. + * @param body The request body. * @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. @@ -395,9 +392,10 @@ public Response checkFilePathAvailabilityWithRes } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.checkFilePathAvailabilitySync(this.client.getEndpoint(), this.client.getSubscriptionId(), - location, this.client.getApiVersion(), body, accept, context); + return service.checkFilePathAvailabilitySync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, context); } /** @@ -405,8 +403,8 @@ public Response checkFilePathAvailabilityWithRes * * Check if a file path is available. * - * @param location The name of the Azure region. - * @param body File path availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -422,8 +420,8 @@ public CheckAvailabilityResponseInner checkFilePathAvailability(String location, * * Check if a quota is available. * - * @param location The name of the Azure region. - * @param body Quota availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -449,10 +447,12 @@ private Mono> checkQuotaAvailabilityWit } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.checkQuotaAvailability(this.client.getEndpoint(), - this.client.getSubscriptionId(), location, this.client.getApiVersion(), body, accept, context)) + .withContext( + context -> service.checkQuotaAvailability(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -461,8 +461,8 @@ private Mono> checkQuotaAvailabilityWit * * Check if a quota is available. * - * @param location The name of the Azure region. - * @param body Quota availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -479,8 +479,8 @@ private Mono checkQuotaAvailabilityAsync(String * * Check if a quota is available. * - * @param location The name of the Azure region. - * @param body Quota availability request. + * @param location The location name. + * @param body The request body. * @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. @@ -509,9 +509,10 @@ public Response checkQuotaAvailabilityWithRespon } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.checkQuotaAvailabilitySync(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), body, accept, context); + return service.checkQuotaAvailabilitySync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, context); } /** @@ -519,8 +520,8 @@ public Response checkQuotaAvailabilityWithRespon * * Check if a quota is available. * - * @param location The name of the Azure region. - * @param body Quota availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -536,7 +537,7 @@ public CheckAvailabilityResponseInner checkQuotaAvailability(String location, Qu * * Provides storage to network proximity and logical zone mapping information. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -558,8 +559,8 @@ private Mono> queryRegionInfoWithResponseAsync(String } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.queryRegionInfo(this.client.getEndpoint(), this.client.getSubscriptionId(), - location, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.queryRegionInfo(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -568,7 +569,7 @@ private Mono> queryRegionInfoWithResponseAsync(String * * Provides storage to network proximity and logical zone mapping information. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -584,7 +585,7 @@ private Mono queryRegionInfoAsync(String location) { * * Provides storage to network proximity and logical zone mapping information. * - * @param location The name of the Azure region. + * @param location The location name. * @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. @@ -608,8 +609,8 @@ public Response queryRegionInfoWithResponse(String location, Co .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); } final String accept = "application/json"; - return service.queryRegionInfoSync(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), accept, context); + return service.queryRegionInfoSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context); } /** @@ -617,7 +618,7 @@ public Response queryRegionInfoWithResponse(String location, Co * * Provides storage to network proximity and logical zone mapping information. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -633,12 +634,12 @@ public RegionInfoInner queryRegionInfo(String location) { * * Get details of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Network sibling set to query. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified network sibling set along with {@link Response} on successful completion of + * @return describes the contents of a network sibling set along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -660,10 +661,12 @@ private Mono> queryNetworkSiblingSetWithRespons } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.queryNetworkSiblingSet(this.client.getEndpoint(), - this.client.getSubscriptionId(), location, this.client.getApiVersion(), body, accept, context)) + .withContext( + context -> service.queryNetworkSiblingSet(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -672,12 +675,12 @@ private Mono> queryNetworkSiblingSetWithRespons * * Get details of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Network sibling set to query. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified network sibling set on successful completion of {@link Mono}. + * @return describes the contents of a network sibling set on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono queryNetworkSiblingSetAsync(String location, @@ -690,13 +693,13 @@ private Mono queryNetworkSiblingSetAsync(String location * * Get details of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Network sibling set to query. + * @param location The location name. + * @param body The request body. * @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 details of the specified network sibling set along with {@link Response}. + * @return describes the contents of a network sibling set along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response queryNetworkSiblingSetWithResponse(String location, @@ -720,9 +723,10 @@ public Response queryNetworkSiblingSetWithResponse(Strin } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.queryNetworkSiblingSetSync(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), body, accept, context); + return service.queryNetworkSiblingSetSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, context); } /** @@ -730,12 +734,12 @@ public Response queryNetworkSiblingSetWithResponse(Strin * * Get details of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Network sibling set to query. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified network sibling set. + * @return describes the contents of a network sibling set. */ @ServiceMethod(returns = ReturnType.SINGLE) public NetworkSiblingSetInner queryNetworkSiblingSet(String location, QueryNetworkSiblingSetRequest body) { @@ -747,12 +751,12 @@ public NetworkSiblingSetInner queryNetworkSiblingSet(String location, QueryNetwo * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network sibling set along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateNetworkSiblingSetWithResponseAsync(String location, @@ -773,10 +777,12 @@ private Mono>> updateNetworkSiblingSetWithResponseAsyn } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateNetworkSiblingSet(this.client.getEndpoint(), - this.client.getSubscriptionId(), location, this.client.getApiVersion(), body, accept, context)) + .withContext( + context -> service.updateNetworkSiblingSet(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -785,12 +791,12 @@ private Mono>> updateNetworkSiblingSetWithResponseAsyn * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network sibling set along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response updateNetworkSiblingSetWithResponse(String location, @@ -814,9 +820,10 @@ private Response updateNetworkSiblingSetWithResponse(String location } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateNetworkSiblingSetSync(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), body, accept, Context.NONE); + return service.updateNetworkSiblingSetSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, Context.NONE); } /** @@ -824,13 +831,13 @@ private Response updateNetworkSiblingSetWithResponse(String location * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @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 network sibling set along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response updateNetworkSiblingSetWithResponse(String location, @@ -854,9 +861,10 @@ private Response updateNetworkSiblingSetWithResponse(String location } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateNetworkSiblingSetSync(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - this.client.getApiVersion(), body, accept, context); + return service.updateNetworkSiblingSetSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, contentType, accept, body, context); } /** @@ -864,12 +872,12 @@ private Response updateNetworkSiblingSetWithResponse(String location * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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 network sibling set. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetworkSiblingSetInner> @@ -885,12 +893,12 @@ private Response updateNetworkSiblingSetWithResponse(String location * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of network sibling set. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetworkSiblingSetInner> @@ -905,13 +913,13 @@ private Response updateNetworkSiblingSetWithResponse(String location * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @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 network sibling set. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetworkSiblingSetInner> @@ -926,12 +934,12 @@ private Response updateNetworkSiblingSetWithResponse(String location * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network sibling set on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateNetworkSiblingSetAsync(String location, @@ -944,12 +952,12 @@ private Mono updateNetworkSiblingSetAsync(String locatio * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network sibling set. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public NetworkSiblingSetInner updateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body) { @@ -961,13 +969,13 @@ public NetworkSiblingSetInner updateNetworkSiblingSet(String location, UpdateNet * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @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 network sibling set. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public NetworkSiblingSetInner updateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body, diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java index 1b3c17803b58..236948441129 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java index 991ecd96c5f7..f9a7030b9d15 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationImpl.java index 39de63d0d0f4..bfe35ce21334 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java index f2735f548b84..065138c6c6b6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -28,7 +28,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.OperationsClient; import com.azure.resourcemanager.netapp.fluent.models.OperationInner; -import com.azure.resourcemanager.netapp.models.OperationListResult; +import com.azure.resourcemanager.netapp.implementation.models.OperationListResult; import reactor.core.publisher.Mono; /** @@ -60,21 +60,21 @@ public final class OperationsClientImpl implements OperationsClient { * The interface defining all the services for NetAppManagementClientOperations to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientOperations") public interface OperationsService { @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.NetApp/operations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.NetApp/operations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -82,25 +82,23 @@ Response listSync(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Describes the Resource Provider - * - * Lists all of the available Microsoft.NetApp Rest API operations. + * List the operations for the provider. * * @throws 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 the request to list Cloud Volume operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -118,13 +116,12 @@ private Mono> listSinglePageAsync() { } /** - * Describes the Resource Provider - * - * Lists all of the available Microsoft.NetApp Rest API operations. + * List the operations for the provider. * * @throws 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 the request to list Cloud Volume operations as paginated response with {@link PagedFlux}. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -132,13 +129,11 @@ private PagedFlux listAsync() { } /** - * Describes the Resource Provider - * - * Lists all of the available Microsoft.NetApp Rest API operations. + * List the operations for the provider. * * @throws 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 the request to list Cloud Volume operations along with {@link PagedResponse}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage() { @@ -155,15 +150,13 @@ private PagedResponse listSinglePage() { } /** - * Describes the Resource Provider - * - * Lists all of the available Microsoft.NetApp Rest API operations. + * List the operations for the provider. * * @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 result of the request to list Cloud Volume operations along with {@link PagedResponse}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage(Context context) { @@ -180,13 +173,12 @@ private PagedResponse listSinglePage(Context context) { } /** - * Describes the Resource Provider - * - * Lists all of the available Microsoft.NetApp Rest API operations. + * List the operations for the provider. * * @throws 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 the request to list Cloud Volume operations as paginated response with {@link PagedIterable}. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -194,15 +186,14 @@ public PagedIterable list() { } /** - * Describes the Resource Provider - * - * Lists all of the available Microsoft.NetApp Rest API operations. + * List the operations for the provider. * * @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 result of the request to list Cloud Volume operations as paginated response with {@link PagedIterable}. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -210,16 +201,14 @@ public PagedIterable list(Context context) { } /** - * Describes the Resource Provider - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Cloud Volume operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -238,15 +227,13 @@ private Mono> listNextSinglePageAsync(String nextL } /** - * Describes the Resource Provider - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Cloud Volume operations along with {@link PagedResponse}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNextSinglePage(String nextLink) { @@ -267,8 +254,6 @@ private PagedResponse listNextSinglePage(String nextLink) { } /** - * Describes the Resource Provider - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -276,7 +261,7 @@ private PagedResponse listNextSinglePage(String nextLink) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 the request to list Cloud Volume operations along with {@link PagedResponse}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNextSinglePage(String nextLink, Context context) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java index 9331c1270c6a..c74dfd980221 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java index 5e8b855071e9..a50e3e88e964 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -36,7 +36,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.PoolsClient; import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; -import com.azure.resourcemanager.netapp.models.CapacityPoolList; +import com.azure.resourcemanager.netapp.implementation.models.CapacityPoolList; import com.azure.resourcemanager.netapp.models.CapacityPoolPatch; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -70,109 +70,101 @@ public final class PoolsClientImpl implements PoolsClient { * The interface defining all the services for NetAppManagementClientPools to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientPools") public interface PoolsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CapacityPoolInner body, @HeaderParam("Accept") String accept, + @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") CapacityPoolInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CapacityPoolInner body, @HeaderParam("Accept") String accept, + @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") CapacityPoolInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CapacityPoolPatch body, @HeaderParam("Accept") String accept, + @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") CapacityPoolPatch body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CapacityPoolPatch body, @HeaderParam("Accept") String accept, + @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") CapacityPoolPatch body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -180,193 +172,17 @@ Response deleteSync(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Describe all Capacity Pools - * - * List all capacity pools in the NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Describe all Capacity Pools - * - * List all capacity pools in the NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String accountName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Describe all Capacity Pools - * - * List all capacity pools in the NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Describe all Capacity Pools - * - * List all capacity pools in the NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Describe all Capacity Pools - * - * List all capacity pools in the NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName), - nextLink -> listNextSinglePage(nextLink)); - } - - /** - * Describe all Capacity Pools - * - * List all capacity pools in the NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName, Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, context), - nextLink -> listNextSinglePage(nextLink, context)); - } - - /** - * Describe a Capacity Pool - * * Get details of the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -401,14 +217,12 @@ private Mono> getWithResponseAsync(String resourceGr } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe a Capacity Pool - * * Get details of the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -426,8 +240,6 @@ private Mono getAsync(String resourceGroupName, String accoun } /** - * Describe a Capacity Pool - * * Get details of the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -465,13 +277,11 @@ public Response getWithResponse(String resourceGroupName, Str .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, this.client.getApiVersion(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, accept, context); } /** - * Describe a Capacity Pool - * * Get details of the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -488,8 +298,6 @@ public CapacityPoolInner get(String resourceGroupName, String accountName, Strin } /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -527,16 +335,16 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -578,14 +386,14 @@ private Response createOrUpdateWithResponse(String resourceGroupName } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, + Context.NONE); } /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -628,14 +436,14 @@ private Response createOrUpdateWithResponse(String resourceGroupName } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, this.client.getApiVersion(), body, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, + context); } /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -657,8 +465,6 @@ private PollerFlux, CapacityPoolInner> beginCreate } /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -679,8 +485,6 @@ public SyncPoller, CapacityPoolInner> beginCreateO } /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -703,8 +507,6 @@ public SyncPoller, CapacityPoolInner> beginCreateO } /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -724,8 +526,6 @@ private Mono createOrUpdateAsync(String resourceGroupName, St } /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -744,8 +544,6 @@ public CapacityPoolInner createOrUpdate(String resourceGroupName, String account } /** - * Create or Update the specified capacity pool within the resource group - * * Create or Update a capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -765,8 +563,6 @@ public CapacityPoolInner createOrUpdate(String resourceGroupName, String account } /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -804,16 +600,16 @@ private Mono>> updateWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -855,14 +651,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, + Context.NONE); } /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -905,14 +701,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, this.client.getApiVersion(), body, accept, context); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, + context); } /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -933,8 +729,6 @@ private PollerFlux, CapacityPoolInner> beginUpdate } /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -955,8 +749,6 @@ public SyncPoller, CapacityPoolInner> beginUpdate( } /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -978,8 +770,6 @@ public SyncPoller, CapacityPoolInner> beginUpdate( } /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -999,8 +789,6 @@ private Mono updateAsync(String resourceGroupName, String acc } /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1019,8 +807,6 @@ public CapacityPoolInner update(String resourceGroupName, String accountName, St } /** - * Update a capacity pool - * * Patch the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1040,8 +826,6 @@ public CapacityPoolInner update(String resourceGroupName, String accountName, St } /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1073,16 +857,13 @@ private Mono>> deleteWithResponseAsync(String resource if (poolName == null) { return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1117,14 +898,11 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, this.client.getApiVersion(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, Context.NONE); } /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1161,14 +939,11 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, this.client.getApiVersion(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, context); } /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1188,8 +963,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1208,8 +981,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1229,8 +1000,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1248,8 +1017,6 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1265,8 +1032,6 @@ public void delete(String resourceGroupName, String accountName, String poolName } /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1283,8 +1048,168 @@ public void delete(String resourceGroupName, String accountName, String poolName } /** - * Describe all Capacity Pools + * List all capacity pools in the NetApp Account. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of capacity pool resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List all capacity pools in the NetApp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of capacity pool resources as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List all capacity pools in the NetApp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of capacity pool resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List all capacity pools in the NetApp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of capacity pool resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName, + Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List all capacity pools in the NetApp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of capacity pool resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * List all capacity pools in the NetApp Account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of capacity pool resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -1311,8 +1236,6 @@ private Mono> listNextSinglePageAsync(String ne } /** - * Describe all Capacity Pools - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -1340,8 +1263,6 @@ private PagedResponse listNextSinglePage(String nextLink) { } /** - * Describe all Capacity Pools - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java index c458d0655b3f..ca02b6db4443 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -26,16 +26,6 @@ public PoolsImpl(PoolsClient innerClient, com.azure.resourcemanager.netapp.NetAp this.serviceManager = serviceManager; } - public PagedIterable list(String resourceGroupName, String accountName) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new CapacityPoolImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String accountName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new CapacityPoolImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, Context context) { Response inner @@ -65,6 +55,16 @@ public void delete(String resourceGroupName, String accountName, String poolName this.serviceClient().delete(resourceGroupName, accountName, poolName, context); } + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CapacityPoolImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CapacityPoolImpl(inner1, this.manager())); + } + public CapacityPool getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoImpl.java index a4f49ff2fcb0..e20de765e900 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoResourceImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoResourceImpl.java index 75b06404841d..a169a5bc0b9e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoResourceImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoResourceImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationImpl.java index 371b33d31697..c203e48f7711 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationImpl.java @@ -1,13 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; import com.azure.resourcemanager.netapp.models.EndpointType; import com.azure.resourcemanager.netapp.models.Replication; +import com.azure.resourcemanager.netapp.models.ReplicationMirrorState; import com.azure.resourcemanager.netapp.models.ReplicationSchedule; +import java.time.OffsetDateTime; public final class ReplicationImpl implements Replication { private ReplicationInner innerObject; @@ -39,6 +41,18 @@ public String remoteVolumeRegion() { return this.innerModel().remoteVolumeRegion(); } + public ReplicationMirrorState mirrorState() { + return this.innerModel().mirrorState(); + } + + public OffsetDateTime replicationCreationTime() { + return this.innerModel().replicationCreationTime(); + } + + public OffsetDateTime replicationDeletionTime() { + return this.innerModel().replicationDeletionTime(); + } + public ReplicationInner innerModel() { return this.innerObject; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java index 68917a5c5bcb..9eabd436396d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; import com.azure.resourcemanager.netapp.models.MirrorState; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; import com.azure.resourcemanager.netapp.models.ReplicationStatus; +import com.azure.resourcemanager.netapp.models.VolumeReplicationRelationshipStatus; public final class ReplicationStatusImpl implements ReplicationStatus { private ReplicationStatusInner innerObject; @@ -24,7 +24,7 @@ public Boolean healthy() { return this.innerModel().healthy(); } - public RelationshipStatus relationshipStatus() { + public VolumeReplicationRelationshipStatus relationshipStatus() { return this.innerModel().relationshipStatus(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ResourceManagerUtils.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ResourceManagerUtils.java index 7e5ec6e67acb..8c999b7e1f16 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ResourceManagerUtils.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ResourceManagerUtils.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java index f97fddfce2a0..83e1de80ef4a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner; import com.azure.resourcemanager.netapp.models.MirrorState; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; import com.azure.resourcemanager.netapp.models.RestoreStatus; +import com.azure.resourcemanager.netapp.models.VolumeRestoreRelationshipStatus; public final class RestoreStatusImpl implements RestoreStatus { private RestoreStatusInner innerObject; @@ -24,7 +24,7 @@ public Boolean healthy() { return this.innerModel().healthy(); } - public RelationshipStatus relationshipStatus() { + public VolumeRestoreRelationshipStatus relationshipStatus() { return this.innerModel().relationshipStatus(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java index 3f3141bb567d..26ee3e6272c9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java index 0a5626de35df..136cd636f30e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -37,7 +37,7 @@ import com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient; import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner; import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner; -import com.azure.resourcemanager.netapp.models.SnapshotPoliciesList; +import com.azure.resourcemanager.netapp.implementation.models.SnapshotPoliciesList; import com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -72,290 +72,138 @@ public final class SnapshotPoliciesClientImpl implements SnapshotPoliciesClient * The interface defining all the services for NetAppManagementClientSnapshotPolicies to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientSnapshotPolicies") public interface SnapshotPoliciesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotPolicyInner body, @HeaderParam("Accept") String accept, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SnapshotPolicyInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotPolicyInner body, @HeaderParam("Accept") String accept, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SnapshotPolicyInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotPolicyPatch body, @HeaderParam("Accept") String accept, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SnapshotPolicyPatch body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotPolicyPatch body, @HeaderParam("Accept") String accept, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SnapshotPolicyPatch body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotPolicyName") String snapshotPolicyName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotPolicyName") String snapshotPolicyName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVolumes(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listVolumesSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List snapshot policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List snapshot policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String accountName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName)); - } - /** - * List snapshot policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listVolumes(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, + Context context); - /** - * List snapshot policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listVolumesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, + Context context); - /** - * List snapshot policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - /** - * List snapshot policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName, Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** @@ -393,8 +241,8 @@ private Mono> getWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -454,8 +302,8 @@ public Response getWithResponse(String resourceGroupName, S .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, snapshotPolicyName, accept, context); } /** @@ -513,10 +361,12 @@ private Mono> createWithResponseAsync(String resou } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, snapshotPolicyName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, + accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -582,9 +432,11 @@ public Response createWithResponse(String resourceGroupName } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, snapshotPolicyName, this.client.getApiVersion(), body, accept, context); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, accept, + body, context); } /** @@ -644,10 +496,12 @@ private Mono>> updateWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, snapshotPolicyName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, + accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -693,9 +547,11 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, snapshotPolicyName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, accept, + body, Context.NONE); } /** @@ -741,9 +597,11 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, snapshotPolicyName, this.client.getApiVersion(), body, accept, context); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, accept, + body, context); } /** @@ -898,10 +756,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -941,9 +798,8 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, snapshotPolicyName, this.client.getApiVersion(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, Context.NONE); } /** @@ -983,9 +839,8 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, context); } /** @@ -1094,8 +949,167 @@ public void delete(String resourceGroupName, String accountName, String snapshot } /** - * Get volumes for snapshot policy + * List snapshot policy. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List snapshot policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List snapshot policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List snapshot policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName, + Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List snapshot policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * List snapshot policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** * Get volumes associated with snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1131,14 +1145,12 @@ private Mono> listVolumesWithResponseAsy } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listVolumes(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.listVolumes(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get volumes for snapshot policy - * * Get volumes associated with snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1157,8 +1169,6 @@ private Mono listVolumesAsync(String resourceGrou } /** - * Get volumes for snapshot policy - * * Get volumes associated with snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1196,13 +1206,11 @@ public Response listVolumesWithResponse(String re .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); } final String accept = "application/json"; - return service.listVolumesSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context); + return service.listVolumesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, accept, context); } /** - * Get volumes for snapshot policy - * * Get volumes associated with snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1219,5 +1227,84 @@ public SnapshotPolicyVolumeListInner listVolumes(String resourceGroupName, Strin return listVolumesWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE).getValue(); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + private static final ClientLogger LOGGER = new ClientLogger(SnapshotPoliciesClientImpl.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java index ae8a86063680..7048916c50d8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -29,16 +29,6 @@ public SnapshotPoliciesImpl(SnapshotPoliciesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceGroupName, String accountName) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotPolicyImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String accountName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotPolicyImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { Response inner @@ -68,6 +58,16 @@ public void delete(String resourceGroupName, String accountName, String snapshot this.serviceClient().delete(resourceGroupName, accountName, snapshotPolicyName, context); } + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotPolicyImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotPolicyImpl(inner1, this.manager())); + } + public Response listVolumesWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { Response inner diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java index fa3d8081b37a..b745400ffd39 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java index 212400399079..5dcead309683 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -33,6 +33,10 @@ public List value() { } } + public String nextLink() { + return this.innerModel().nextLink(); + } + public SnapshotPolicyVolumeListInner innerModel() { return this.innerObject; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java index 94c3192a895f..f0c24b55afc5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -12,7 +12,6 @@ import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; import com.azure.core.annotation.Post; import com.azure.core.annotation.Put; @@ -37,8 +36,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.SnapshotsClient; import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; +import com.azure.resourcemanager.netapp.implementation.models.SnapshotsList; import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; -import com.azure.resourcemanager.netapp.models.SnapshotsList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -72,354 +71,127 @@ public final class SnapshotsClientImpl implements SnapshotsClient { * The interface defining all the services for NetAppManagementClientSnapshots to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientSnapshots") public interface SnapshotsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@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" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@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" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotName") String snapshotName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotName") String snapshotName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") @ExpectedResponses({ 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotInner body, @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotName") String snapshotName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SnapshotInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") @ExpectedResponses({ 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotInner body, @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotName") String snapshotName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SnapshotInner body, Context context); - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") - @ExpectedResponses({ 200, 202 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") Object body, @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotName") String snapshotName, Context context); - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") - @ExpectedResponses({ 200, 202 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") Object body, @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotName") String snapshotName, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") - @ExpectedResponses({ 200, 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") - @ExpectedResponses({ 200, 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> restoreFiles(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> restoreFiles(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotRestoreFiles body, @HeaderParam("Accept") String accept, - Context context); + @PathParam("snapshotName") String snapshotName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") SnapshotRestoreFiles body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response restoreFilesSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response restoreFilesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotRestoreFiles body, @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Describe all snapshots - * - * List all snapshots associated with 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 list of Snapshots along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(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.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Describe all snapshots - * - * List all snapshots associated with 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 list of Snapshots as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName, volumeName)); - } - - /** - * Describe all snapshots - * - * List all snapshots associated with 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 list of Snapshots along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName, - String volumeName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } - - /** - * Describe all snapshots - * - * List all snapshots associated with 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 list of Snapshots along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } + @PathParam("snapshotName") String snapshotName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") SnapshotRestoreFiles body, Context context); - /** - * Describe all snapshots - * - * List all snapshots associated with 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 list of Snapshots as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName, volumeName)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - /** - * Describe all snapshots - * - * List all snapshots associated with 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 list of Snapshots as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName, volumeName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Describe a snapshot - * * Get details of the specified snapshot. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -461,15 +233,13 @@ private Mono> getWithResponseAsync(String resourceGroupN } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe a snapshot - * * Get details of the specified snapshot. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -490,8 +260,6 @@ private Mono getAsync(String resourceGroupName, String accountNam } /** - * Describe a snapshot - * * Get details of the specified snapshot. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -539,13 +307,11 @@ public Response getWithResponse(String resourceGroupName, String .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, snapshotName, accept, context); } /** - * Describe a snapshot - * * Get details of the specified snapshot. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -566,8 +332,6 @@ public SnapshotInner get(String resourceGroupName, String accountName, String po } /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -613,17 +377,16 @@ private Mono>> createWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, - accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, + contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -675,14 +438,14 @@ private Response createWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, + contentType, accept, body, Context.NONE); } /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -735,14 +498,14 @@ private Response createWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, accept, context); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, + contentType, accept, body, context); } /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -766,8 +529,6 @@ private PollerFlux, SnapshotInner> beginCreateAsync(St } /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -791,8 +552,6 @@ public SyncPoller, SnapshotInner> beginCreate(String r } /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -818,8 +577,6 @@ public SyncPoller, SnapshotInner> beginCreate(String r } /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -841,8 +598,6 @@ private Mono createAsync(String resourceGroupName, String account } /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -863,8 +618,6 @@ public SnapshotInner create(String resourceGroupName, String accountName, String } /** - * Create a snapshot - * * Create the specified snapshot within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -887,24 +640,21 @@ public SnapshotInner create(String resourceGroupName, String accountName, String } /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the 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 snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName, Object body) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -929,36 +679,29 @@ private Mono>> updateWithResponseAsync(String resource if (snapshotName == null) { return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, - accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the 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 snapshot of a Volume along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Object body) { + private Response deleteWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -989,34 +732,28 @@ private Response updateWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, + Context.NONE); } /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the operation. * @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 snapshot of a Volume along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Object body, Context context) { + private Response deleteWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -1047,177 +784,148 @@ private Response updateWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, + context); } /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the 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 snapshot of a Volume. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SnapshotInner> beginUpdateAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, String snapshotName, Object body) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName) { Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SnapshotInner.class, SnapshotInner.class, this.client.getContext()); + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the 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 snapshot of a Volume. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SnapshotInner> beginUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, String snapshotName, Object body) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName) { Response response - = updateWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); - return this.client.getLroResult(response, SnapshotInner.class, - SnapshotInner.class, Context.NONE); + = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the operation. * @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 snapshot of a Volume. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SnapshotInner> beginUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, String snapshotName, Object body, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, Context context) { Response response - = updateWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); - return this.client.getLroResult(response, SnapshotInner.class, - SnapshotInner.class, context); + = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the 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 snapshot of a Volume on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Object body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).last() + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the 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 snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Object body) { - return beginUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).getFinalResult(); + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName) { + beginDelete(resourceGroupName, accountName, poolName, volumeName, snapshotName).getFinalResult(); } /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the operation. * @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 snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Object body, Context context) { - return beginUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) - .getFinalResult(); + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Context context) { + beginDelete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context).getFinalResult(); } /** - * Delete a snapshot - * - * Delete snapshot. + * List all snapshots associated with 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 snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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 list of Snapshots along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName) { + private Mono> listSinglePageAsync(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.")); @@ -1239,35 +947,49 @@ private Mono>> deleteWithResponseAsync(String resource if (volumeName == null) { return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - if (snapshotName == null) { - return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a snapshot + * List all snapshots associated with the volume. * - * Delete snapshot. + * @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 list of Snapshots as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List all snapshots associated with 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 snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return list of Snapshots along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName) { + private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName, + String volumeName) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -1294,34 +1016,30 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), accept, Context.NONE); + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Delete a snapshot - * - * Delete snapshot. + * List all snapshots associated with 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 snapshotName The name of the snapshot. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return list of Snapshots along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context) { + private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -1348,152 +1066,53 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), accept, context); - } - - /** - * Delete a snapshot - * - * Delete snapshot. - * - * @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 snapshotName The name of the snapshot. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete a snapshot - * - * Delete snapshot. - * - * @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 snapshotName The name of the snapshot. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName) { - Response response - = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete a snapshot - * - * Delete snapshot. - * - * @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 snapshotName The name of the snapshot. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context) { - Response response - = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete a snapshot - * - * Delete snapshot. - * - * @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 snapshotName The name of the snapshot. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).last() - .flatMap(this.client::getLroFinalResultOrError); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Delete a snapshot - * - * Delete snapshot. + * List all snapshots associated with 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 snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshots as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName) { - beginDelete(resourceGroupName, accountName, poolName, volumeName, snapshotName).getFinalResult(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName, volumeName), + nextLink -> listNextSinglePage(nextLink)); } /** - * Delete a snapshot - * - * Delete snapshot. + * List all snapshots associated with 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 snapshotName The name of the snapshot. * @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 list of Snapshots as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Context context) { - beginDelete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context).getFinalResult(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName, volumeName, context), + nextLink -> listNextSinglePage(nextLink, context)); } /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1539,17 +1158,15 @@ private Mono>> restoreFilesWithResponseAsync(String re } else { body.validate(); } - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.restoreFiles(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, - accept, context)) + .withContext(context -> service.restoreFiles(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, + contentType, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1601,14 +1218,13 @@ private Response restoreFilesWithResponse(String resourceGroupName, } else { body.validate(); } - final String accept = "application/json"; - return service.restoreFilesSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, accept, Context.NONE); + final String contentType = "application/json"; + return service.restoreFilesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, + contentType, body, Context.NONE); } /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1661,14 +1277,13 @@ private Response restoreFilesWithResponse(String resourceGroupName, } else { body.validate(); } - final String accept = "application/json"; - return service.restoreFilesSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, accept, context); + final String contentType = "application/json"; + return service.restoreFilesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, + contentType, body, context); } /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1692,8 +1307,6 @@ private PollerFlux, Void> beginRestoreFilesAsync(String resourc } /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1716,8 +1329,6 @@ public SyncPoller, Void> beginRestoreFiles(String resourceGroup } /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1741,8 +1352,6 @@ public SyncPoller, Void> beginRestoreFiles(String resourceGroup } /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1764,8 +1373,6 @@ private Mono restoreFilesAsync(String resourceGroupName, String accountNam } /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1785,8 +1392,6 @@ public void restoreFiles(String resourceGroupName, String accountName, String po } /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1807,5 +1412,83 @@ public void restoreFiles(String resourceGroupName, String accountName, String po .getFinalResult(); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshots along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshots along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshots along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + private static final ClientLogger LOGGER = new ClientLogger(SnapshotsClientImpl.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java index 63b730ed6215..a5ed854c418a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -28,20 +28,6 @@ public SnapshotsImpl(SnapshotsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String resourceGroupName, String accountName, String poolName, - String volumeName) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, accountName, poolName, volumeName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, accountName, poolName, volumeName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, Context context) { Response inner = this.serviceClient() @@ -65,28 +51,6 @@ public Snapshot get(String resourceGroupName, String accountName, String poolNam } } - public Snapshot update(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Object body) { - SnapshotInner inner - = this.serviceClient().update(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); - if (inner != null) { - return new SnapshotImpl(inner, this.manager()); - } else { - return null; - } - } - - public Snapshot update(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Object body, Context context) { - SnapshotInner inner = this.serviceClient() - .update(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); - if (inner != null) { - return new SnapshotImpl(inner, this.manager()); - } else { - return null; - } - } - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, snapshotName); @@ -97,6 +61,20 @@ public void delete(String resourceGroupName, String accountName, String poolName this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); } + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, poolName, volumeName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, poolName, volumeName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotImpl(inner1, this.manager())); + } + public void restoreFiles(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, SnapshotRestoreFiles body) { this.serviceClient().restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/QuotaItemImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java similarity index 67% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/QuotaItemImpl.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java index ae9c81194bad..d39e7c4a198c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/QuotaItemImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java @@ -1,19 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; import com.azure.core.management.SystemData; -import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; -import com.azure.resourcemanager.netapp.models.QuotaItem; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; +import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; -public final class QuotaItemImpl implements QuotaItem { - private QuotaItemInner innerObject; +public final class SubscriptionQuotaItemImpl implements SubscriptionQuotaItem { + private SubscriptionQuotaItemInner innerObject; private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - QuotaItemImpl(QuotaItemInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + SubscriptionQuotaItemImpl(SubscriptionQuotaItemInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } @@ -46,7 +47,7 @@ public Integer usage() { return this.innerModel().usage(); } - public QuotaItemInner innerModel() { + public SubscriptionQuotaItemInner innerModel() { return this.innerObject; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java index 1bec1259aa7b..27bb2344dedf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java index 0689baf30fc6..7a19ea56e7b5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java index 70c0173c52df..47fe7e82333c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -38,8 +38,8 @@ import com.azure.resourcemanager.netapp.fluent.SubvolumesClient; import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner; +import com.azure.resourcemanager.netapp.implementation.models.SubvolumesList; import com.azure.resourcemanager.netapp.models.SubvolumePatchRequest; -import com.azure.resourcemanager.netapp.models.SubvolumesList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -73,376 +73,149 @@ public final class SubvolumesClientImpl implements SubvolumesClient { * The interface defining all the services for NetAppManagementClientSubvolumes to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientSubvolumes") public interface SubvolumesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVolume(@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" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByVolumeSync(@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" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("subvolumeName") String subvolumeName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("subvolumeName") String subvolumeName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SubvolumeInfoInner body, @HeaderParam("Accept") String accept, + @PathParam("subvolumeName") String subvolumeName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SubvolumeInfoInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SubvolumeInfoInner body, @HeaderParam("Accept") String accept, + @PathParam("subvolumeName") String subvolumeName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SubvolumeInfoInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SubvolumePatchRequest body, @HeaderParam("Accept") String accept, + @PathParam("subvolumeName") String subvolumeName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SubvolumePatchRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SubvolumePatchRequest body, @HeaderParam("Accept") String accept, + @PathParam("subvolumeName") String subvolumeName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SubvolumePatchRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("subvolumeName") String subvolumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByVolume(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByVolumeSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("subvolumeName") String subvolumeName, @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}/subvolumes/{subvolumeName}/getMetadata") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getMetadata(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> getMetadata(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("subvolumeName") String subvolumeName, @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}/subvolumes/{subvolumeName}/getMetadata") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getMetadataSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getMetadataSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("subvolumeName") String subvolumeName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByVolumeNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listByVolumeNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List of all the subvolumes - * - * Returns a list of the subvolumes in 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 list of Subvolumes along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVolumeSinglePageAsync(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.listByVolume(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List of all the subvolumes - * - * Returns a list of the subvolumes in 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 list of Subvolumes as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVolumeAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return new PagedFlux<>(() -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), - nextLink -> listByVolumeNextSinglePageAsync(nextLink)); - } - - /** - * List of all the subvolumes - * - * Returns a list of the subvolumes in 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 list of Subvolumes along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVolumeSinglePage(String resourceGroupName, String accountName, - String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByVolumeSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List of all the subvolumes - * - * Returns a list of the subvolumes in 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 list of Subvolumes along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVolumeSinglePage(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByVolumeSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List of all the subvolumes - * - * Returns a list of the subvolumes in 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 list of Subvolumes as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return new PagedIterable<>(() -> listByVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName), - nextLink -> listByVolumeNextSinglePage(nextLink)); - } - - /** - * List of all the subvolumes - * - * Returns a list of the subvolumes in 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 list of Subvolumes as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - return new PagedIterable<>( - () -> listByVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName, context), - nextLink -> listByVolumeNextSinglePage(nextLink, context)); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Get the path associated with the subvolumeName - * * Returns the path associated with the subvolumeName provided. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -484,15 +257,13 @@ private Mono> getWithResponseAsync(String resourceG } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the path associated with the subvolumeName - * * Returns the path associated with the subvolumeName provided. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -513,8 +284,6 @@ private Mono getAsync(String resourceGroupName, String accou } /** - * Get the path associated with the subvolumeName - * * Returns the path associated with the subvolumeName provided. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -562,13 +331,11 @@ public Response getWithResponse(String resourceGroupName, St .log(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, subvolumeName, accept, context); } /** - * Get the path associated with the subvolumeName - * * Returns the path associated with the subvolumeName provided. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -589,8 +356,6 @@ public SubvolumeInfoInner get(String resourceGroupName, String accountName, Stri } /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -636,17 +401,16 @@ private Mono>> createWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), body, - accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -698,14 +462,14 @@ private Response createWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + contentType, accept, body, Context.NONE); } /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -758,14 +522,14 @@ private Response createWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), body, accept, context); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + contentType, accept, body, context); } /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -789,8 +553,6 @@ private PollerFlux, SubvolumeInfoInner> beginCrea } /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -814,8 +576,6 @@ public SyncPoller, SubvolumeInfoInner> beginCreat } /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -841,8 +601,6 @@ public SyncPoller, SubvolumeInfoInner> beginCreat } /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -864,8 +622,6 @@ private Mono createAsync(String resourceGroupName, String ac } /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -886,8 +642,6 @@ public SubvolumeInfoInner create(String resourceGroupName, String accountName, S } /** - * Create or clone a new subvolume - * * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -910,8 +664,6 @@ public SubvolumeInfoInner create(String resourceGroupName, String accountName, S } /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -957,17 +709,16 @@ private Mono>> updateWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), body, - accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1019,14 +770,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + contentType, accept, body, Context.NONE); } /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1079,14 +830,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), body, accept, context); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + contentType, accept, body, context); } /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1110,8 +861,6 @@ private PollerFlux, SubvolumeInfoInner> beginUpda } /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1135,8 +884,6 @@ public SyncPoller, SubvolumeInfoInner> beginUpdat } /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1162,8 +909,6 @@ public SyncPoller, SubvolumeInfoInner> beginUpdat } /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1185,8 +930,6 @@ private Mono updateAsync(String resourceGroupName, String ac } /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1207,8 +950,6 @@ public SubvolumeInfoInner update(String resourceGroupName, String accountName, S } /** - * Update a subvolume - * * Patch a subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1231,8 +972,6 @@ public SubvolumeInfoInner update(String resourceGroupName, String accountName, S } /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1272,17 +1011,14 @@ private Mono>> deleteWithResponseAsync(String resource if (subvolumeName == null) { return Mono.error(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); } - final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1328,14 +1064,12 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + Context.NONE); } /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1382,14 +1116,12 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + context); } /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1412,8 +1144,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1435,8 +1165,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1459,8 +1187,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1481,8 +1207,6 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1501,8 +1225,6 @@ public void delete(String resourceGroupName, String accountName, String poolName } /** - * Delete a subvolume - * * Delete subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1522,8 +1244,208 @@ public void delete(String resourceGroupName, String accountName, String poolName } /** - * Describe a subvolume + * Returns a list of the subvolumes in 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 list of Subvolumes along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByVolumeSinglePageAsync(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.listByVolume(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Returns a list of the subvolumes in 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 list of Subvolumes as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByVolumeAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + return new PagedFlux<>(() -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), + nextLink -> listByVolumeNextSinglePageAsync(nextLink)); + } + + /** + * Returns a list of the subvolumes in 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 list of Subvolumes along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByVolumeSinglePage(String resourceGroupName, String accountName, + String poolName, String volumeName) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listByVolumeSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, + Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Returns a list of the subvolumes in 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 list of Subvolumes along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByVolumeSinglePage(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listByVolumeSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Returns a list of the subvolumes in 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 list of Subvolumes as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return new PagedIterable<>(() -> listByVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName), + nextLink -> listByVolumeNextSinglePage(nextLink)); + } + + /** + * Returns a list of the subvolumes in 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 list of Subvolumes as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return new PagedIterable<>( + () -> listByVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName, context), + nextLink -> listByVolumeNextSinglePage(nextLink, context)); + } + + /** * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1565,15 +1487,13 @@ private Mono>> getMetadataWithResponseAsync(String res } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getMetadata(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), + .withContext(context -> service.getMetadata(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1620,13 +1540,12 @@ private Response getMetadataWithResponse(String resourceGroupName, S .log(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.getMetadataSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.getMetadataSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + accept, Context.NONE); } /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1674,13 +1593,12 @@ private Response getMetadataWithResponse(String resourceGroupName, S .log(new IllegalArgumentException("Parameter subvolumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.getMetadataSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, context); + return service.getMetadataSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, subvolumeName, + accept, context); } /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1703,8 +1621,6 @@ private PollerFlux, SubvolumeModelInner> beginGe } /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1727,8 +1643,6 @@ public SyncPoller, SubvolumeModelInner> beginGet } /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1752,8 +1666,6 @@ public SyncPoller, SubvolumeModelInner> beginGet } /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1774,8 +1686,6 @@ private Mono getMetadataAsync(String resourceGroupName, Str } /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1795,8 +1705,6 @@ public SubvolumeModelInner getMetadata(String resourceGroupName, String accountN } /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1818,8 +1726,6 @@ public SubvolumeModelInner getMetadata(String resourceGroupName, String accountN } /** - * List of all the subvolumes - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -1846,8 +1752,6 @@ private Mono> listByVolumeNextSinglePageAsync( } /** - * List of all the subvolumes - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -1875,8 +1779,6 @@ private PagedResponse listByVolumeNextSinglePage(String next } /** - * List of all the subvolumes - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java index cca6c8a7360b..a35b7a5c3215 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -29,20 +29,6 @@ public SubvolumesImpl(SubvolumesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName) { - PagedIterable inner - = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SubvolumeInfoImpl(inner1, this.manager())); - } - - public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - PagedIterable inner - = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SubvolumeInfoImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName, Context context) { Response inner = this.serviceClient() @@ -76,6 +62,20 @@ public void delete(String resourceGroupName, String accountName, String poolName this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); } + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName) { + PagedIterable inner + = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SubvolumeInfoImpl(inner1, this.manager())); + } + + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + PagedIterable inner + = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SubvolumeInfoImpl(inner1, this.manager())); + } + public SubvolumeModel getMetadata(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { SubvolumeModelInner inner diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java index 84032e28c012..68a81ec87a88 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java index a17f848f37ef..ea822f6fcc2d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java index a5288a88c97f..54297bc302ab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner; import com.azure.resourcemanager.netapp.models.VolumeGroupDetails; @@ -24,10 +25,6 @@ public final class VolumeGroupDetailsImpl implements VolumeGroupDetails, VolumeG this.serviceManager = serviceManager; } - public String location() { - return this.innerModel().location(); - } - public String id() { return this.innerModel().id(); } @@ -40,6 +37,14 @@ public String type() { return this.innerModel().type(); } + public String location() { + return this.innerModel().location(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + public String provisioningState() { return this.innerModel().provisioningState(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java index 76c2f576d89e..af5974d05be6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java index d479643223b0..8face5e2b276 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -36,7 +36,7 @@ import com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient; import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner; import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner; -import com.azure.resourcemanager.netapp.models.VolumeGroupList; +import com.azure.resourcemanager.netapp.implementation.models.VolumeGroupList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -70,269 +70,103 @@ public final class VolumeGroupsClientImpl implements VolumeGroupsClient { * The interface defining all the services for NetAppManagementClientVolumeGroups to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientVolumeGroups") public interface VolumeGroupsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByNetAppAccount(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByNetAppAccountSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("volumeGroupName") String volumeGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("volumeGroupName") String volumeGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("volumeGroupName") String volumeGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("volumeGroupName") String volumeGroupName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("volumeGroupName") String volumeGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumeGroupDetailsInner body, @HeaderParam("Accept") String accept, + @PathParam("volumeGroupName") String volumeGroupName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") VolumeGroupDetailsInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("volumeGroupName") String volumeGroupName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumeGroupDetailsInner body, @HeaderParam("Accept") String accept, + @PathParam("volumeGroupName") String volumeGroupName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") VolumeGroupDetailsInner body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("volumeGroupName") String volumeGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("volumeGroupName") String volumeGroupName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("volumeGroupName") String volumeGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - } + @PathParam("volumeGroupName") String volumeGroupName, Context context); - /** - * Describe all volume groups - * - * List all volume groups for given account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByNetAppAccountSinglePageAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByNetAppAccount(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Describe all volume groups - * - * List all volume groups for given account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName) { - return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName)); - } - - /** - * Describe all volume groups - * - * List all volume groups for given account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByNetAppAccountSinglePage(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByNetAppAccountSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByNetAppAccount(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Accept") String accept, Context context); - /** - * Describe all volume groups - * - * List all volume groups for given account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByNetAppAccountSinglePage(String resourceGroupName, String accountName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByNetAppAccountSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByNetAppAccountSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Accept") String accept, Context context); - /** - * Describe all volume groups - * - * List all volume groups for given account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listByNetAppAccountSinglePage(resourceGroupName, accountName)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByNetAppAccountNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * Describe all volume groups - * - * List all volume groups for given account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, - Context context) { - return new PagedIterable<>(() -> listByNetAppAccountSinglePage(resourceGroupName, accountName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByNetAppAccountNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** - * Describe a Volume Group - * * Get details of the specified volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -368,14 +202,12 @@ private Mono> getWithResponseAsync(String reso } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, volumeGroupName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, volumeGroupName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe a Volume Group - * * Get details of the specified volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -394,8 +226,6 @@ private Mono getAsync(String resourceGroupName, String } /** - * Describe a Volume Group - * * Get details of the specified volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -433,13 +263,11 @@ public Response getWithResponse(String resourceGroupNam .log(new IllegalArgumentException("Parameter volumeGroupName is required and cannot be null.")); } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, volumeGroupName, this.client.getApiVersion(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, volumeGroupName, accept, context); } /** - * Describe a Volume Group - * * Get details of the specified volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -456,10 +284,6 @@ public VolumeGroupDetailsInner get(String resourceGroupName, String accountName, } /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -498,18 +322,16 @@ private Mono>> createWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, volumeGroupName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, volumeGroupName, contentType, accept, + body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -551,16 +373,14 @@ private Response createWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, volumeGroupName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, volumeGroupName, contentType, accept, body, + Context.NONE); } /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -603,16 +423,14 @@ private Response createWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, volumeGroupName, this.client.getApiVersion(), body, accept, context); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, volumeGroupName, contentType, accept, body, + context); } /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -635,10 +453,6 @@ private PollerFlux, VolumeGroupDetailsInner> } /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -659,10 +473,6 @@ public SyncPoller, VolumeGroupDetailsInner> } /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -686,10 +496,6 @@ public SyncPoller, VolumeGroupDetailsInner> } /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -709,10 +515,6 @@ private Mono createAsync(String resourceGroupName, Stri } /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -731,10 +533,6 @@ public VolumeGroupDetailsInner create(String resourceGroupName, String accountNa } /** - * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in - * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes - * thereafter. - * * Create a volume group along with specified volumes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -754,8 +552,6 @@ public VolumeGroupDetailsInner create(String resourceGroupName, String accountNa } /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -788,16 +584,13 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter volumeGroupName is required and cannot be null.")); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, volumeGroupName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, volumeGroupName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -833,14 +626,11 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeGroupName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, volumeGroupName, this.client.getApiVersion(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, volumeGroupName, Context.NONE); } /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -877,14 +667,11 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeGroupName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, volumeGroupName, this.client.getApiVersion(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, volumeGroupName, context); } /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -905,8 +692,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -925,8 +710,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -946,8 +729,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -965,8 +746,6 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -982,8 +761,6 @@ public void delete(String resourceGroupName, String accountName, String volumeGr } /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -999,5 +776,253 @@ public void delete(String resourceGroupName, String accountName, String volumeGr beginDelete(resourceGroupName, accountName, volumeGroupName, context).getFinalResult(); } + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByNetAppAccountSinglePageAsync(String resourceGroupName, + String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByNetAppAccount(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName), + nextLink -> listByNetAppAccountNextSinglePageAsync(nextLink)); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByNetAppAccountSinglePage(String resourceGroupName, + String accountName) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listByNetAppAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByNetAppAccountSinglePage(String resourceGroupName, String accountName, + Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listByNetAppAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { + return new PagedIterable<>(() -> listByNetAppAccountSinglePage(resourceGroupName, accountName), + nextLink -> listByNetAppAccountNextSinglePage(nextLink)); + } + + /** + * List all volume groups for given account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, + Context context) { + return new PagedIterable<>(() -> listByNetAppAccountSinglePage(resourceGroupName, accountName, context), + nextLink -> listByNetAppAccountNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByNetAppAccountNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByNetAppAccountNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByNetAppAccountNextSinglePage(String nextLink) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listByNetAppAccountNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByNetAppAccountNextSinglePage(String nextLink, Context context) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listByNetAppAccountNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + private static final ClientLogger LOGGER = new ClientLogger(VolumeGroupsClientImpl.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java index df4a412f9cc4..af9e30f8b652 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -29,19 +29,6 @@ public VolumeGroupsImpl(VolumeGroupsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { - PagedIterable inner - = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeGroupImpl(inner1, this.manager())); - } - - public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, - Context context) { - PagedIterable inner - = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeGroupImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String accountName, String volumeGroupName, Context context) { Response inner @@ -71,6 +58,19 @@ public void delete(String resourceGroupName, String accountName, String volumeGr this.serviceClient().delete(resourceGroupName, accountName, volumeGroupName, context); } + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { + PagedIterable inner + = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeGroupImpl(inner1, this.manager())); + } + + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, + Context context) { + PagedIterable inner + = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeGroupImpl(inner1, this.manager())); + } + public VolumeGroupDetails getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java index 8ff8762a212b..cd87b76e397e 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -8,7 +8,6 @@ import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; import com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit; import com.azure.resourcemanager.netapp.models.AuthorizeRequest; @@ -23,8 +22,8 @@ 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.LdapServerType; -import com.azure.resourcemanager.netapp.models.ListQuotaReportResponse; +import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; +import com.azure.resourcemanager.netapp.models.MountTargetProperties; import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; @@ -38,7 +37,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; @@ -239,10 +237,6 @@ public Boolean ldapEnabled() { return this.innerModel().ldapEnabled(); } - public LdapServerType ldapServerType() { - return this.innerModel().ldapServerType(); - } - public Boolean coolAccess() { return this.innerModel().coolAccess(); } @@ -353,10 +347,6 @@ public Long inheritedSizeInBytes() { return this.innerModel().inheritedSizeInBytes(); } - public VolumeLanguage language() { - return this.innerModel().language(); - } - public Region region() { return Region.fromName(this.regionName()); } @@ -511,14 +501,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); } @@ -540,8 +522,9 @@ public PagedIterable listReplications() { return serviceManager.volumes().listReplications(resourceGroupName, accountName, poolName, volumeName); } - public PagedIterable listReplications(Context context) { - return serviceManager.volumes().listReplications(resourceGroupName, accountName, poolName, volumeName, context); + public PagedIterable listReplications(ListReplicationsRequest body, Context context) { + return serviceManager.volumes() + .listReplications(resourceGroupName, accountName, poolName, volumeName, body, context); } public void resyncReplication() { @@ -823,11 +806,6 @@ public VolumeImpl withLdapEnabled(Boolean ldapEnabled) { return this; } - public VolumeImpl withLdapServerType(LdapServerType ldapServerType) { - this.innerModel().withLdapServerType(ldapServerType); - return this; - } - public VolumeImpl withCoolAccess(Boolean coolAccess) { if (isInCreateMode()) { this.innerModel().withCoolAccess(coolAccess); @@ -943,11 +921,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/VolumeQuotaRuleImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java index d5a80a03b8f7..1bb9609a5934 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -8,7 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner; -import com.azure.resourcemanager.netapp.models.NetAppProvisioningState; +import com.azure.resourcemanager.netapp.models.ProvisioningState; import com.azure.resourcemanager.netapp.models.Type; import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; import com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch; @@ -49,7 +49,7 @@ public SystemData systemData() { return this.innerModel().systemData(); } - public NetAppProvisioningState provisioningState() { + public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java index 2a8ffc46ea17..9539841b8674 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -36,8 +36,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient; import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner; +import com.azure.resourcemanager.netapp.implementation.models.VolumeQuotaRulesList; import com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRulesList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -71,337 +71,133 @@ public final class VolumeQuotaRulesClientImpl implements VolumeQuotaRulesClient * The interface defining all the services for NetAppManagementClientVolumeQuotaRules to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientVolumeQuotaRules") public interface VolumeQuotaRulesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVolume(@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" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByVolumeSync(@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" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumeQuotaRuleInner body, @HeaderParam("Accept") String accept, - Context context); + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VolumeQuotaRuleInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumeQuotaRuleInner body, @HeaderParam("Accept") String accept, - Context context); + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VolumeQuotaRuleInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumeQuotaRulePatch body, @HeaderParam("Accept") String accept, - Context context); + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VolumeQuotaRulePatch body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumeQuotaRulePatch body, @HeaderParam("Accept") String accept, - Context context); + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VolumeQuotaRulePatch body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get all quota rules for a volume - * - * List all quota rules associated with 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 list of Volume Quota Rules along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVolumeSinglePageAsync(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.listByVolume(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get all quota rules for a volume - * - * List all quota rules associated with 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 list of Volume Quota Rules as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVolumeAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return new PagedFlux<>(() -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName)); - } + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, Context context); - /** - * Get all quota rules for a volume - * - * List all quota rules associated with 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 list of Volume Quota Rules along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVolumeSinglePage(String resourceGroupName, String accountName, - String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByVolumeSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByVolume(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @HeaderParam("Accept") String accept, Context context); - /** - * Get all quota rules for a volume - * - * List all quota rules associated with 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 list of Volume Quota Rules along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVolumeSinglePage(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByVolumeSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByVolumeSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @HeaderParam("Accept") String accept, Context context); - /** - * Get all quota rules for a volume - * - * List all quota rules associated with 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 list of Volume Quota Rules as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVolume(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return new PagedIterable<>(() -> listByVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByVolumeNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * Get all quota rules for a volume - * - * List all quota rules associated with 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 list of Volume Quota Rules as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVolume(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { - return new PagedIterable<>( - () -> listByVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByVolumeNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** - * Describe a quota rule - * * Get details of the specified quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -444,15 +240,13 @@ private Mono> getWithResponseAsync(String resourc } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), - accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, + volumeQuotaRuleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe a quota rule - * * Get details of the specified quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -473,8 +267,6 @@ private Mono getAsync(String resourceGroupName, String acc } /** - * Describe a quota rule - * * Get details of the specified quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -522,13 +314,11 @@ public Response getWithResponse(String resourceGroupName, .log(new IllegalArgumentException("Parameter volumeQuotaRuleName is required and cannot be null.")); } final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, accept, context); } /** - * Describe a quota rule - * * Get details of the specified quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -549,8 +339,6 @@ public VolumeQuotaRuleInner get(String resourceGroupName, String accountName, St } /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -597,17 +385,16 @@ private Mono>> createWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), - body, accept, context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, + volumeQuotaRuleName, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -659,15 +446,14 @@ private Response createWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), body, accept, - Context.NONE); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, + contentType, accept, body, Context.NONE); } /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -720,14 +506,14 @@ private Response createWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), body, accept, context); + return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, + contentType, accept, body, context); } /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -752,8 +538,6 @@ private PollerFlux, VolumeQuotaRuleInner> begin } /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -777,8 +561,6 @@ public SyncPoller, VolumeQuotaRuleInner> beginC } /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -804,8 +586,6 @@ public SyncPoller, VolumeQuotaRuleInner> beginC } /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -827,8 +607,6 @@ private Mono createAsync(String resourceGroupName, String } /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -850,8 +628,6 @@ public VolumeQuotaRuleInner create(String resourceGroupName, String accountName, } /** - * Create a quota rule - * * Create the specified quota rule within the given volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -874,8 +650,6 @@ public VolumeQuotaRuleInner create(String resourceGroupName, String accountName, } /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -922,17 +696,16 @@ private Mono>> updateWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), - body, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, + volumeQuotaRuleName, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -984,15 +757,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), body, accept, - Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, + contentType, accept, body, Context.NONE); } /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1045,14 +817,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), body, accept, context); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, + contentType, accept, body, context); } /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1077,8 +849,6 @@ private PollerFlux, VolumeQuotaRuleInner> begin } /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1102,8 +872,6 @@ public SyncPoller, VolumeQuotaRuleInner> beginU } /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1129,8 +897,6 @@ public SyncPoller, VolumeQuotaRuleInner> beginU } /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1152,8 +918,6 @@ private Mono updateAsync(String resourceGroupName, String } /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1175,8 +939,6 @@ public VolumeQuotaRuleInner update(String resourceGroupName, String accountName, } /** - * Update a quota rule - * * Patch a quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1199,8 +961,6 @@ public VolumeQuotaRuleInner update(String resourceGroupName, String accountName, } /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1241,17 +1001,14 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter volumeQuotaRuleName is required and cannot be null.")); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), - accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, + volumeQuotaRuleName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1297,14 +1054,12 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeQuotaRuleName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, + Context.NONE); } /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1351,14 +1106,12 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeQuotaRuleName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, + context); } /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1381,8 +1134,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1404,8 +1155,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1428,8 +1177,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1450,8 +1197,6 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1470,8 +1215,6 @@ public void delete(String resourceGroupName, String accountName, String poolName } /** - * Delete a quota rule - * * Delete quota rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1491,5 +1234,289 @@ public void delete(String resourceGroupName, String accountName, String poolName .getFinalResult(); } + /** + * List all quota rules associated with 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 list of Volume Quota Rules along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByVolumeSinglePageAsync(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.listByVolume(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List all quota rules associated with 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 list of Volume Quota Rules as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByVolumeAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + return new PagedFlux<>(() -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), + nextLink -> listByVolumeNextSinglePageAsync(nextLink)); + } + + /** + * List all quota rules associated with 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 list of Volume Quota Rules along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByVolumeSinglePage(String resourceGroupName, String accountName, + String poolName, String volumeName) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listByVolumeSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, + volumeName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List all quota rules associated with 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 list of Volume Quota Rules along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByVolumeSinglePage(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listByVolumeSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List all quota rules associated with 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 list of Volume Quota Rules as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByVolume(String resourceGroupName, String accountName, + String poolName, String volumeName) { + return new PagedIterable<>(() -> listByVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName), + nextLink -> listByVolumeNextSinglePage(nextLink)); + } + + /** + * List all quota rules associated with 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 list of Volume Quota Rules as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByVolume(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + return new PagedIterable<>( + () -> listByVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName, context), + nextLink -> listByVolumeNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Volume Quota Rules along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByVolumeNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByVolumeNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Volume Quota Rules along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByVolumeNextSinglePage(String nextLink) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listByVolumeNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Volume Quota Rules along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByVolumeNextSinglePage(String nextLink, Context context) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listByVolumeNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + private static final ClientLogger LOGGER = new ClientLogger(VolumeQuotaRulesClientImpl.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java index 3d94a162d297..d3ce07564e3b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -27,20 +27,6 @@ public VolumeQuotaRulesImpl(VolumeQuotaRulesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName) { - PagedIterable inner - = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeQuotaRuleImpl(inner1, this.manager())); - } - - public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - PagedIterable inner - = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeQuotaRuleImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName, Context context) { Response inner = this.serviceClient() @@ -74,6 +60,20 @@ public void delete(String resourceGroupName, String accountName, String poolName this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context); } + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName) { + PagedIterable inner + = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeQuotaRuleImpl(inner1, this.manager())); + } + + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + PagedIterable inner + = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeQuotaRuleImpl(inner1, this.manager())); + } + public VolumeQuotaRule getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java index 9ed13910774a..9f074cc577b9 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -38,21 +38,21 @@ 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; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; +import com.azure.resourcemanager.netapp.implementation.models.ListReplications; +import com.azure.resourcemanager.netapp.implementation.models.VolumeList; import com.azure.resourcemanager.netapp.models.AuthorizeRequest; import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; -import com.azure.resourcemanager.netapp.models.ListReplications; +import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; import com.azure.resourcemanager.netapp.models.PoolChangeRequest; import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest; -import com.azure.resourcemanager.netapp.models.VolumeList; import com.azure.resourcemanager.netapp.models.VolumePatch; import com.azure.resourcemanager.netapp.models.VolumeRevert; import java.nio.ByteBuffer; @@ -87,630 +87,587 @@ public final class VolumesClientImpl implements VolumesClient { * The interface defining all the services for NetAppManagementClientVolumes to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetAppManagementClientVolumes") public interface VolumesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VolumeInner body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VolumeInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VolumeInner body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VolumeInner body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VolumePatch body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VolumePatch body, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VolumePatch body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VolumePatch body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("forceDelete") Boolean forceDelete, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("forceDelete") Boolean forceDelete, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("forceDelete") Boolean forceDelete, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("forceDelete") Boolean forceDelete, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> populateAvailabilityZone(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> populateAvailabilityZone(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @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}/populateAvailabilityZone") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response populateAvailabilityZoneSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response populateAvailabilityZoneSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> revert(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> revert(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VolumeRevert body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") VolumeRevert body, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response revertSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response revertSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VolumeRevert body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") VolumeRevert body, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> resetCifsPassword(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> resetCifsPassword(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response resetCifsPasswordSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response resetCifsPasswordSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> splitCloneFromParent(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> splitCloneFromParent(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @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({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response splitCloneFromParentSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response splitCloneFromParentSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> breakFileLocks(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> breakFileLocks(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BreakFileLocksRequest body, - @HeaderParam("Accept") String accept, Context context); + @BodyParam("application/json") BreakFileLocksRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response breakFileLocksSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response breakFileLocksSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BreakFileLocksRequest body, - @HeaderParam("Accept") String accept, Context context); + @BodyParam("application/json") BreakFileLocksRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listGetGroupIdListForLdapUser(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> listGetGroupIdListForLdapUser(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") GetGroupIdListForLdapUserRequest body, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") GetGroupIdListForLdapUserRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listGetGroupIdListForLdapUserSync(@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, - @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}/listQuotaReport") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listQuotaReportSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response listGetGroupIdListForLdapUserSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") GetGroupIdListForLdapUserRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> breakReplication(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> breakReplication(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BreakReplicationRequest body, - @HeaderParam("Accept") String accept, Context context); + @BodyParam("application/json") BreakReplicationRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response breakReplicationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response breakReplicationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BreakReplicationRequest body, - @HeaderParam("Accept") String accept, Context context); + @BodyParam("application/json") BreakReplicationRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> reestablishReplication(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> reestablishReplication(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ReestablishReplicationRequest body, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") ReestablishReplicationRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response reestablishReplicationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response reestablishReplicationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ReestablishReplicationRequest body, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") ReestablishReplicationRequest body, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> replicationStatus(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> replicationStatus(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response replicationStatusSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response replicationStatusSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @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}/listReplications") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listReplications(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> listReplications(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, @BodyParam("application/json") ListReplicationsRequest body, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listReplicationsSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response listReplicationsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, @BodyParam("application/json") ListReplicationsRequest body, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> resyncReplication(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> resyncReplication(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response resyncReplicationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response resyncReplicationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deleteReplication(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> deleteReplication(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteReplicationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteReplicationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> authorizeReplication(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> authorizeReplication(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") AuthorizeRequest body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") AuthorizeRequest body, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response authorizeReplicationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response authorizeReplicationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") AuthorizeRequest body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") AuthorizeRequest body, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> reInitializeReplication(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> reInitializeReplication(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response reInitializeReplicationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response reInitializeReplicationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/peerExternalCluster") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> peerExternalCluster(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> peerExternalCluster(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") PeerClusterForVolumeMigrationRequest body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") PeerClusterForVolumeMigrationRequest body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/peerExternalCluster") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response peerExternalClusterSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response peerExternalClusterSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") PeerClusterForVolumeMigrationRequest body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") PeerClusterForVolumeMigrationRequest body, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeExternalReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> authorizeExternalReplication(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> authorizeExternalReplication(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @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}/authorizeExternalReplication") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response authorizeExternalReplicationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response authorizeExternalReplicationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeExternalReplication") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> finalizeExternalReplication(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> finalizeExternalReplication(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeExternalReplication") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response finalizeExternalReplicationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response finalizeExternalReplicationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/performReplicationTransfer") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> performReplicationTransfer(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> performReplicationTransfer(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/performReplicationTransfer") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response performReplicationTransferSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response performReplicationTransferSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> poolChange(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> poolChange(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") PoolChangeRequest body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") PoolChangeRequest body, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response poolChangeSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response poolChangeSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") PoolChangeRequest body, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") PoolChangeRequest body, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> relocate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> relocate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") RelocateVolumeRequest body, - @HeaderParam("Accept") String accept, Context context); + @BodyParam("application/json") RelocateVolumeRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response relocateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response relocateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") RelocateVolumeRequest body, - @HeaderParam("Accept") String accept, Context context); + @BodyParam("application/json") RelocateVolumeRequest body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> finalizeRelocation(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> finalizeRelocation(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response finalizeRelocationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response finalizeRelocationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> revertRelocation(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> revertRelocation(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response revertRelocationSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response revertRelocationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listReplicationsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listReplicationsNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** - * Describe all volumes - * - * List all volumes within the capacity pool. + * Get the details of the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the 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 list of volume resources along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the details of the specified volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String accountName, - String poolName) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -729,49 +686,51 @@ private Mono> listSinglePageAsync(String resourceGrou 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.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe all volumes - * - * List all volumes within the capacity pool. + * Get the details of the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the 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 list of volume resources as paginated response with {@link PagedFlux}. + * @return the details of the specified volume on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Describe all volumes - * - * List all volumes within the capacity pool. + * Get the details of the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the 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 list of volume resources along with {@link PagedResponse}. + * @return the details of the specified volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName) { + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -794,289 +753,85 @@ private PagedResponse listSinglePage(String resourceGroupName, Stri throw LOGGER.atError() .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } + if (volumeName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, accept, context); } /** - * Describe all volumes + * Get the details of the specified volume. * - * List all volumes within the capacity pool. + * @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 details of the specified volume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName) { + return getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE).getValue(); + } + + /** + * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. - * @param context The context to associate with this operation. + * @param volumeName The name of the volume. + * @param body Volume object supplied in the body of the 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 list of volume resources along with {@link PagedResponse}. + * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, VolumeInner body) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, + accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Describe all volumes - * - * List all volumes within the capacity pool. - * - * @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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName, String poolName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName), - nextLink -> listNextSinglePage(nextLink)); - } - - /** - * Describe all volumes - * - * List all volumes within the capacity pool. - * - * @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 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 list of volume resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String accountName, String poolName, - Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName, context), - nextLink -> listNextSinglePage(nextLink, context)); - } - - /** - * Describe a volume - * - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the 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 details of the specified volume along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Describe a volume - * - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the 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 details of the specified volume on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Describe a volume - * - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the 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 details of the specified volume along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); - } - - /** - * Describe a volume - * - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the 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 details of the specified volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName) { - return getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE).getValue(); - } - - /** - * Create or Update a volume - * - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @param body Volume object supplied in the body of the 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 volume resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, VolumeInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create or Update a volume - * - * Create or update the specified volume within the capacity pool. + * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. @@ -1122,14 +877,14 @@ private Response createOrUpdateWithResponse(String resourceGroupName } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, + body, Context.NONE); } /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1177,14 +932,14 @@ private Response createOrUpdateWithResponse(String resourceGroupName } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, + body, context); } /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1207,8 +962,6 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn } /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1231,8 +984,6 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate(Stri } /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1256,8 +1007,6 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate(Stri } /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1278,8 +1027,6 @@ private Mono createOrUpdateAsync(String resourceGroupName, String a } /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1299,8 +1046,6 @@ public VolumeInner createOrUpdate(String resourceGroupName, String accountName, } /** - * Create or Update a volume - * * Create or update the specified volume within the capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1322,8 +1067,6 @@ public VolumeInner createOrUpdate(String resourceGroupName, String accountName, } /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1365,17 +1108,16 @@ private Mono>> updateWithResponseAsync(String resource } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, + accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1422,14 +1164,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, + body, Context.NONE); } /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1477,14 +1219,14 @@ private Response updateWithResponse(String resourceGroupName, String } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, + body, context); } /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1507,8 +1249,6 @@ private PollerFlux, VolumeInner> beginUpdateAsync(String } /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1530,8 +1270,6 @@ public SyncPoller, VolumeInner> beginUpdate(String resou } /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1555,8 +1293,6 @@ public SyncPoller, VolumeInner> beginUpdate(String resou } /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1577,8 +1313,6 @@ private Mono updateAsync(String resourceGroupName, String accountNa } /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1598,8 +1332,6 @@ public VolumeInner update(String resourceGroupName, String accountName, String p } /** - * Update a volume - * * Patch the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1620,8 +1352,6 @@ public VolumeInner update(String resourceGroupName, String accountName, String p } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1659,17 +1389,14 @@ private Mono>> deleteWithResponseAsync(String resource 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.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, forceDelete, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, forceDelete, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1712,14 +1439,12 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, forceDelete, this.client.getApiVersion(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, forceDelete, + Context.NONE); } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1763,14 +1488,12 @@ private Response deleteWithResponse(String resourceGroupName, String throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, forceDelete, this.client.getApiVersion(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, forceDelete, + context); } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1794,8 +1517,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1818,8 +1539,6 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1842,8 +1561,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1865,8 +1582,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1890,8 +1605,6 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1913,8 +1626,6 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1934,8 +1645,6 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1953,8 +1662,6 @@ public void delete(String resourceGroupName, String accountName, String poolName } /** - * Delete a volume - * * Delete the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1975,21 +1682,199 @@ public void delete(String resourceGroupName, String accountName, String poolName } /** - * Populate Availability Zone - * - * This operation will populate availability zone information for a volume. + * List all volumes within the capacity pool. * * @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 volume resource along with {@link Response} on successful completion of {@link Mono}. + * @return list of volume resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> populateAvailabilityZoneWithResponseAsync(String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + String poolName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List all volumes within the capacity pool. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume resources as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List all volumes within the capacity pool. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List all volumes within the capacity pool. + * + * @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 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 list of volume resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName, String poolName, + Context context) { + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List all volumes within the capacity pool. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, String poolName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * List all volumes within the capacity pool. + * + * @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 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 list of volume resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, poolName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * This operation will populate availability zone information for a 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 response body along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> populateAvailabilityZoneWithResponseAsync(String resourceGroupName, String accountName, String poolName, String volumeName) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -2014,15 +1899,13 @@ private Mono>> populateAvailabilityZoneWithResponseAsy } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.populateAvailabilityZone(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.populateAvailabilityZone(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, + volumeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2032,7 +1915,7 @@ private Mono>> populateAvailabilityZoneWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response populateAvailabilityZoneWithResponse(String resourceGroupName, String accountName, @@ -2064,13 +1947,12 @@ private Response populateAvailabilityZoneWithResponse(String resourc .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.populateAvailabilityZoneSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.populateAvailabilityZoneSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, + Context.NONE); } /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2081,7 +1963,7 @@ private Response populateAvailabilityZoneWithResponse(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response populateAvailabilityZoneWithResponse(String resourceGroupName, String accountName, @@ -2113,13 +1995,11 @@ private Response populateAvailabilityZoneWithResponse(String resourc .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.populateAvailabilityZoneSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.populateAvailabilityZoneSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context); } /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2129,7 +2009,7 @@ private Response populateAvailabilityZoneWithResponse(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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 volume resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginPopulateAvailabilityZoneAsync( @@ -2141,8 +2021,6 @@ private PollerFlux, VolumeInner> beginPopulateAvailabili } /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2152,7 +2030,7 @@ private PollerFlux, VolumeInner> beginPopulateAvailabili * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of volume resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginPopulateAvailabilityZone(String resourceGroupName, @@ -2164,8 +2042,6 @@ public SyncPoller, VolumeInner> beginPopulateAvailabilit } /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2176,7 +2052,7 @@ public SyncPoller, VolumeInner> beginPopulateAvailabilit * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of volume resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginPopulateAvailabilityZone(String resourceGroupName, @@ -2188,8 +2064,6 @@ public SyncPoller, VolumeInner> beginPopulateAvailabilit } /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2199,7 +2073,7 @@ public SyncPoller, VolumeInner> beginPopulateAvailabilit * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono populateAvailabilityZoneAsync(String resourceGroupName, String accountName, @@ -2209,8 +2083,6 @@ private Mono populateAvailabilityZoneAsync(String resourceGroupName } /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2220,7 +2092,7 @@ private Mono populateAvailabilityZoneAsync(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VolumeInner populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, @@ -2229,8 +2101,6 @@ public VolumeInner populateAvailabilityZone(String resourceGroupName, String acc } /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2241,7 +2111,7 @@ public VolumeInner populateAvailabilityZone(String resourceGroupName, String acc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VolumeInner populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, @@ -2251,8 +2121,6 @@ public VolumeInner populateAvailabilityZone(String resourceGroupName, String acc } /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2294,17 +2162,15 @@ private Mono>> revertWithResponseAsync(String resource } else { body.validate(); } - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext( - context -> service.revert(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.revert(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, + body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2351,14 +2217,13 @@ private Response revertWithResponse(String resourceGroupName, String } else { body.validate(); } - final String accept = "application/json"; - return service.revertSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, Context.NONE); + final String contentType = "application/json"; + return service.revertSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, body, + Context.NONE); } /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2406,14 +2271,13 @@ private Response revertWithResponse(String resourceGroupName, String } else { body.validate(); } - final String accept = "application/json"; - return service.revertSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + final String contentType = "application/json"; + return service.revertSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, body, + context); } /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2436,8 +2300,6 @@ private PollerFlux, Void> beginRevertAsync(String resourceGroup } /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2458,8 +2320,6 @@ public SyncPoller, Void> beginRevert(String resourceGroupName, } /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2482,8 +2342,6 @@ public SyncPoller, Void> beginRevert(String resourceGroupName, } /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2504,8 +2362,6 @@ private Mono revertAsync(String resourceGroupName, String accountName, Str } /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2524,8 +2380,6 @@ public void revert(String resourceGroupName, String accountName, String poolName } /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2545,8 +2399,6 @@ public void revert(String resourceGroupName, String accountName, String poolName } /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2582,17 +2434,13 @@ private Mono>> resetCifsPasswordWithResponseAsync(Stri 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.resetCifsPassword(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.resetCifsPassword(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2633,14 +2481,11 @@ private Response resetCifsPasswordWithResponse(String resourceGroupN throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.resetCifsPasswordSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.resetCifsPasswordSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, Context.NONE); } /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2682,14 +2527,11 @@ private Response resetCifsPasswordWithResponse(String resourceGroupN throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.resetCifsPasswordSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.resetCifsPasswordSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context); } /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2711,8 +2553,6 @@ private PollerFlux, Void> beginResetCifsPasswordAsync(String re } /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2733,8 +2573,6 @@ public SyncPoller, Void> beginResetCifsPassword(String resource } /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2756,8 +2594,6 @@ public SyncPoller, Void> beginResetCifsPassword(String resource } /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2777,8 +2613,6 @@ private Mono resetCifsPasswordAsync(String resourceGroupName, String accou } /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2795,8 +2629,6 @@ public void resetCifsPassword(String resourceGroupName, String accountName, Stri } /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2815,8 +2647,6 @@ public void resetCifsPassword(String resourceGroupName, String accountName, Stri } /** - * 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. @@ -2826,7 +2656,7 @@ public void resetCifsPassword(String resourceGroupName, String accountName, 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 volume resource along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> splitCloneFromParentWithResponseAsync(String resourceGroupName, @@ -2854,15 +2684,12 @@ private Mono>> splitCloneFromParentWithResponseAsync(S } 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)) + .withContext(context -> service.splitCloneFromParent(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. @@ -2872,7 +2699,7 @@ private Mono>> splitCloneFromParentWithResponseAsync(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 volume resource along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response splitCloneFromParentWithResponse(String resourceGroupName, String accountName, @@ -2904,13 +2731,12 @@ private Response splitCloneFromParentWithResponse(String resourceGro .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.splitCloneFromParentSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.splitCloneFromParentSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, + Context.NONE); } /** - * 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. @@ -2921,7 +2747,7 @@ private Response splitCloneFromParentWithResponse(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response splitCloneFromParentWithResponse(String resourceGroupName, String accountName, @@ -2953,13 +2779,11 @@ private Response splitCloneFromParentWithResponse(String resourceGro .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.splitCloneFromParentSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.splitCloneFromParentSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, 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. @@ -2969,7 +2793,7 @@ private Response splitCloneFromParentWithResponse(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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 volume resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginSplitCloneFromParentAsync(String resourceGroupName, @@ -2981,8 +2805,6 @@ private PollerFlux, VolumeInner> beginSplitCloneFromPare } /** - * 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. @@ -2992,7 +2814,7 @@ private PollerFlux, VolumeInner> beginSplitCloneFromPare * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of volume resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginSplitCloneFromParent(String resourceGroupName, @@ -3004,8 +2826,6 @@ public SyncPoller, VolumeInner> beginSplitCloneFromParen } /** - * 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. @@ -3016,7 +2836,7 @@ public SyncPoller, VolumeInner> beginSplitCloneFromParen * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of volume resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginSplitCloneFromParent(String resourceGroupName, @@ -3028,8 +2848,6 @@ public SyncPoller, VolumeInner> beginSplitCloneFromParen } /** - * 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. @@ -3039,7 +2857,7 @@ public SyncPoller, VolumeInner> beginSplitCloneFromParen * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono splitCloneFromParentAsync(String resourceGroupName, String accountName, String poolName, @@ -3049,8 +2867,6 @@ private Mono splitCloneFromParentAsync(String resourceGroupName, St } /** - * 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. @@ -3060,7 +2876,7 @@ private Mono splitCloneFromParentAsync(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VolumeInner splitCloneFromParent(String resourceGroupName, String accountName, String poolName, @@ -3069,8 +2885,6 @@ public VolumeInner splitCloneFromParent(String resourceGroupName, String account } /** - * 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. @@ -3081,7 +2895,7 @@ public VolumeInner splitCloneFromParent(String resourceGroupName, String account * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VolumeInner splitCloneFromParent(String resourceGroupName, String accountName, String poolName, @@ -3091,8 +2905,6 @@ public VolumeInner splitCloneFromParent(String resourceGroupName, String account } /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3132,17 +2944,13 @@ private Mono>> breakFileLocksWithResponseAsync(String if (body != null) { body.validate(); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.breakFileLocks(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, - context)) + .withContext(context -> service.breakFileLocks(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3187,14 +2995,11 @@ private Response breakFileLocksWithResponse(String resourceGroupName if (body != null) { body.validate(); } - final String accept = "application/json"; - return service.breakFileLocksSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.breakFileLocksSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, body, Context.NONE); } /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3240,14 +3045,11 @@ private Response breakFileLocksWithResponse(String resourceGroupName if (body != null) { body.validate(); } - final String accept = "application/json"; - return service.breakFileLocksSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + return service.breakFileLocksSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, body, context); } /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3270,8 +3072,6 @@ private PollerFlux, Void> beginBreakFileLocksAsync(String resou } /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3294,8 +3094,6 @@ private PollerFlux, Void> beginBreakFileLocksAsync(String resou } /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3312,468 +3110,145 @@ private PollerFlux, Void> beginBreakFileLocksAsync(String resou public SyncPoller, Void> beginBreakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName, BreakFileLocksRequest body) { Response response - = breakFileLocksWithResponse(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Break file locks - * - * Break all the file locks on a 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> beginBreakFileLocks(String resourceGroupName, String accountName, - String poolName, String volumeName) { - final BreakFileLocksRequest body = null; - Response response - = breakFileLocksWithResponse(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Break file locks - * - * Break all the file locks on a 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 body Optional body to provide the ability to clear file locks with selected options. - * @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> beginBreakFileLocks(String resourceGroupName, String accountName, - String poolName, String volumeName, BreakFileLocksRequest body, Context context) { - Response response - = breakFileLocksWithResponse(resourceGroupName, accountName, poolName, volumeName, body, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Break file locks - * - * Break all the file locks on a 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 body Optional body to provide the ability to clear file locks with selected options. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 breakFileLocksAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, BreakFileLocksRequest body) { - return beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Break file locks - * - * Break all the file locks on a 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 breakFileLocksAsync(String resourceGroupName, String accountName, String poolName, - String volumeName) { - final BreakFileLocksRequest body = null; - return beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Break file locks - * - * Break all the file locks on a 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 breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName) { - final BreakFileLocksRequest body = null; - beginBreakFileLocks(resourceGroupName, accountName, poolName, volumeName, body).getFinalResult(); - } - - /** - * Break file locks - * - * Break all the file locks on a 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 body Optional body to provide the ability to clear file locks with selected options. - * @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 breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName, - BreakFileLocksRequest body, Context context) { - beginBreakFileLocks(resourceGroupName, accountName, poolName, volumeName, body, context).getFinalResult(); - } - - /** - * Get Group Id List for LDAP User - * - * Returns the list of group Ids for a specific LDAP User. - * - * @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 body Returns group Id list for a specific LDAP user. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return group Id list for Ldap user along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listGetGroupIdListForLdapUserWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listGetGroupIdListForLdapUser(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, - this.client.getApiVersion(), body, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get Group Id List for LDAP User - * - * Returns the list of group Ids for a specific LDAP User. - * - * @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 body Returns group Id list for a specific LDAP user. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return group Id list for Ldap user along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response listGetGroupIdListForLdapUserWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return service.listGetGroupIdListForLdapUserSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, - Context.NONE); - } - - /** - * Get Group Id List for LDAP User - * - * Returns the list of group Ids for a specific LDAP User. - * - * @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 body Returns group Id list for a specific LDAP user. - * @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 group Id list for Ldap user along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response listGetGroupIdListForLdapUserWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String accept = "application/json"; - return service.listGetGroupIdListForLdapUserSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + = breakFileLocksWithResponse(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** - * Get Group Id List for LDAP User - * - * Returns the list of group Ids for a specific LDAP User. + * Break all the file locks on a 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 body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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 group Id list for Ldap user. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, GetGroupIdListForLdapUserResponseInner> - beginListGetGroupIdListForLdapUserAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, GetGroupIdListForLdapUserRequest body) { - Mono>> mono = listGetGroupIdListForLdapUserWithResponseAsync(resourceGroupName, - accountName, poolName, volumeName, body); - return this.client.getLroResult( - mono, this.client.getHttpPipeline(), GetGroupIdListForLdapUserResponseInner.class, - GetGroupIdListForLdapUserResponseInner.class, this.client.getContext()); + public SyncPoller, Void> beginBreakFileLocks(String resourceGroupName, String accountName, + String poolName, String volumeName) { + final BreakFileLocksRequest body = null; + Response response + = breakFileLocksWithResponse(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** - * Get Group Id List for LDAP User - * - * Returns the list of group Ids for a specific LDAP User. + * Break all the file locks on a 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 body Returns group Id list for a specific LDAP user. + * @param body Optional body to provide the ability to clear file locks with selected options. + * @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 group Id list for Ldap user. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, GetGroupIdListForLdapUserResponseInner> - beginListGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, - String volumeName, GetGroupIdListForLdapUserRequest body) { + public SyncPoller, Void> beginBreakFileLocks(String resourceGroupName, String accountName, + String poolName, String volumeName, BreakFileLocksRequest body, Context context) { Response response - = listGetGroupIdListForLdapUserWithResponse(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult( - response, GetGroupIdListForLdapUserResponseInner.class, GetGroupIdListForLdapUserResponseInner.class, - Context.NONE); + = breakFileLocksWithResponse(resourceGroupName, accountName, poolName, volumeName, body, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** - * Get Group Id List for LDAP User - * - * Returns the list of group Ids for a specific LDAP User. + * Break all the file locks on a 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 body Returns group Id list for a specific LDAP user. - * @param context The context to associate with this operation. + * @param body Optional body to provide the ability to clear file locks with selected options. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of group Id list for Ldap user. + * @return A {@link Mono} that completes when a successful response is received. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, GetGroupIdListForLdapUserResponseInner> - beginListGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, - String volumeName, GetGroupIdListForLdapUserRequest body, Context context) { - Response response = listGetGroupIdListForLdapUserWithResponse(resourceGroupName, accountName, - poolName, volumeName, body, context); - return this.client.getLroResult( - response, GetGroupIdListForLdapUserResponseInner.class, GetGroupIdListForLdapUserResponseInner.class, - context); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono breakFileLocksAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, BreakFileLocksRequest body) { + return beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Get Group Id List for LDAP User - * - * Returns the list of group Ids for a specific LDAP User. + * Break all the file locks on a 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 body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return group Id list for Ldap user on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listGetGroupIdListForLdapUserAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { - return beginListGetGroupIdListForLdapUserAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + private Mono breakFileLocksAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + final BreakFileLocksRequest body = null; + return beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Get Group Id List for LDAP User - * - * Returns the list of group Ids for a specific LDAP User. + * Break all the file locks on a 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 body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return group Id list for Ldap user. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, - String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { - return beginListGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body) - .getFinalResult(); + public void breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName) { + final BreakFileLocksRequest body = null; + beginBreakFileLocks(resourceGroupName, accountName, poolName, volumeName, body).getFinalResult(); } /** - * Get Group Id List for LDAP User - * - * Returns the list of group Ids for a specific LDAP User. + * Break all the file locks on a 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 body Returns group Id list for a specific LDAP user. + * @param body Optional body to provide the ability to clear file locks with selected options. * @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 group Id list for Ldap user. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, - String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, - Context context) { - return beginListGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body, context) - .getFinalResult(); + public void breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName, + BreakFileLocksRequest body, Context context) { + beginBreakFileLocks(resourceGroupName, accountName, poolName, volumeName, body, context).getFinalResult(); } /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. + * Returns the list of group Ids for a specific LDAP User. * * @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 body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return the response body 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) { + private Mono>> listGetGroupIdListForLdapUserWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -3795,30 +3270,36 @@ private Mono>> listQuotaReportWithResponseAsync(String if (volumeName == null) { return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listQuotaReport(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.listGetGroupIdListForLdapUser(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, + volumeName, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. + * Returns the list of group Ids for a specific LDAP User. * * @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 body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response listQuotaReportWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName) { + private Response listGetGroupIdListForLdapUserWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -3845,29 +3326,35 @@ private Response listQuotaReportWithResponse(String resourceGroupNam throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } + if (body == null) { + throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; final String accept = "application/json"; - return service.listQuotaReportSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.listGetGroupIdListForLdapUserSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, + body, Context.NONE); } /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. + * Returns the list of group Ids for a specific LDAP User. * * @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 body Returns group Id list for a specific LDAP user. * @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}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response listQuotaReportWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { + private Response listGetGroupIdListForLdapUserWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -3894,147 +3381,155 @@ private Response listQuotaReportWithResponse(String resourceGroupNam throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } + if (body == null) { + throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; final String accept = "application/json"; - return service.listQuotaReportSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.listGetGroupIdListForLdapUserSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, + body, context); } /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. + * Returns the list of group Ids for a specific LDAP User. * * @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 body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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. + * @return the {@link PollerFlux} for polling of long-running operation. */ @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()); + private PollerFlux, GetGroupIdListForLdapUserResponseInner> + beginListGetGroupIdListForLdapUserAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, GetGroupIdListForLdapUserRequest body) { + Mono>> mono = listGetGroupIdListForLdapUserWithResponseAsync(resourceGroupName, + accountName, poolName, volumeName, body); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), GetGroupIdListForLdapUserResponseInner.class, + GetGroupIdListForLdapUserResponseInner.class, this.client.getContext()); } /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. + * Returns the list of group Ids for a specific LDAP User. * * @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 body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is 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. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ListQuotaReportResponseInner> - beginListQuotaReport(String resourceGroupName, String accountName, String poolName, String volumeName) { + public SyncPoller, GetGroupIdListForLdapUserResponseInner> + beginListGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, + String volumeName, GetGroupIdListForLdapUserRequest body) { Response response - = listQuotaReportWithResponse(resourceGroupName, accountName, poolName, volumeName); - return this.client.getLroResult(response, - ListQuotaReportResponseInner.class, ListQuotaReportResponseInner.class, Context.NONE); + = listGetGroupIdListForLdapUserWithResponse(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult( + response, GetGroupIdListForLdapUserResponseInner.class, GetGroupIdListForLdapUserResponseInner.class, + Context.NONE); } /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. + * Returns the list of group Ids for a specific LDAP User. * * @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 body Returns group Id list for a specific LDAP user. * @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. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ListQuotaReportResponseInner> beginListQuotaReport( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - Response response - = listQuotaReportWithResponse(resourceGroupName, accountName, poolName, volumeName, context); - return this.client.getLroResult(response, - ListQuotaReportResponseInner.class, ListQuotaReportResponseInner.class, context); + public SyncPoller, GetGroupIdListForLdapUserResponseInner> + beginListGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, + String volumeName, GetGroupIdListForLdapUserRequest body, Context context) { + Response response = listGetGroupIdListForLdapUserWithResponse(resourceGroupName, accountName, + poolName, volumeName, body, context); + return this.client.getLroResult( + response, GetGroupIdListForLdapUserResponseInner.class, GetGroupIdListForLdapUserResponseInner.class, + context); } /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. + * Returns the list of group Ids for a specific LDAP User. * * @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 body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return the response body 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() + private Mono listGetGroupIdListForLdapUserAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { + return beginListGetGroupIdListForLdapUserAsync(resourceGroupName, accountName, poolName, volumeName, body) + .last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. + * Returns the list of group Ids for a specific LDAP User. * * @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 body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return beginListQuotaReport(resourceGroupName, accountName, poolName, volumeName).getFinalResult(); + public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, + String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { + return beginListGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body) + .getFinalResult(); } /** - * Lists Quota Report for the volume - * - * Returns report of quotas for the volume. + * Returns the list of group Ids for a specific LDAP User. * * @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 body Returns group Id list for a specific LDAP user. * @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. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - return beginListQuotaReport(resourceGroupName, accountName, poolName, volumeName, context).getFinalResult(); + public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, + String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, + Context context) { + return beginListGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body, context) + .getFinalResult(); } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4074,17 +3569,13 @@ private Mono>> breakReplicationWithResponseAsync(Strin if (body != null) { body.validate(); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.breakReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, - context)) + .withContext(context -> service.breakReplication(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4129,15 +3620,11 @@ private Response breakReplicationWithResponse(String resourceGroupNa if (body != null) { body.validate(); } - final String accept = "application/json"; - return service.breakReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, - Context.NONE); + return service.breakReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, body, Context.NONE); } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4183,14 +3670,11 @@ private Response breakReplicationWithResponse(String resourceGroupNa if (body != null) { body.validate(); } - final String accept = "application/json"; - return service.breakReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + return service.breakReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, body, context); } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4213,8 +3697,6 @@ private PollerFlux, Void> beginBreakReplicationAsync(String res } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4237,8 +3719,6 @@ private PollerFlux, Void> beginBreakReplicationAsync(String res } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4260,8 +3740,6 @@ public SyncPoller, Void> beginBreakReplication(String resourceG } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4283,8 +3761,6 @@ public SyncPoller, Void> beginBreakReplication(String resourceG } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4307,8 +3783,6 @@ public SyncPoller, Void> beginBreakReplication(String resourceG } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4329,8 +3803,6 @@ private Mono breakReplicationAsync(String resourceGroupName, String accoun } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4351,8 +3823,6 @@ private Mono breakReplicationAsync(String resourceGroupName, String accoun } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4370,8 +3840,6 @@ public void breakReplication(String resourceGroupName, String accountName, Strin } /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4391,8 +3859,6 @@ public void breakReplication(String resourceGroupName, String accountName, Strin } /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -4435,17 +3901,15 @@ private Mono>> reestablishReplicationWithResponseAsync } else { body.validate(); } - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil .withContext(context -> service.reestablishReplication(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, - this.client.getApiVersion(), body, accept, context)) + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, + volumeName, contentType, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -4493,15 +3957,13 @@ private Response reestablishReplicationWithResponse(String resourceG } else { body.validate(); } - final String accept = "application/json"; - return service.reestablishReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, + final String contentType = "application/json"; + return service.reestablishReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, body, Context.NONE); } /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -4550,14 +4012,13 @@ private Response reestablishReplicationWithResponse(String resourceG } else { body.validate(); } - final String accept = "application/json"; - return service.reestablishReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + final String contentType = "application/json"; + return service.reestablishReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, body, + context); } /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -4581,8 +4042,6 @@ private PollerFlux, Void> beginReestablishReplicationAsync(Stri } /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -4605,8 +4064,6 @@ public SyncPoller, Void> beginReestablishReplication(String res } /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -4630,8 +4087,6 @@ public SyncPoller, Void> beginReestablishReplication(String res } /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -4653,8 +4108,6 @@ private Mono reestablishReplicationAsync(String resourceGroupName, String } /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -4674,8 +4127,6 @@ public void reestablishReplication(String resourceGroupName, String accountName, } /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -4697,8 +4148,6 @@ public void reestablishReplication(String resourceGroupName, String accountName, } /** - * Get volume replication status - * * Get the status of the replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4736,15 +4185,12 @@ private Mono> replicationStatusWithResponseAsyn } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.replicationStatus(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.replicationStatus(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get volume replication status - * * Get the status of the replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4764,8 +4210,6 @@ private Mono replicationStatusAsync(String resourceGroup } /** - * Get volume replication status - * * Get the status of the replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4808,13 +4252,11 @@ public Response replicationStatusWithResponse(String res .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.replicationStatusSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.replicationStatusSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context); } /** - * Get volume replication status - * * Get the status of the replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4834,14 +4276,13 @@ public ReplicationStatusInner replicationStatus(String resourceGroupName, String } /** - * List replications for volume - * * List all replications for a specified 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 body The content of the action request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4849,7 +4290,7 @@ public ReplicationStatusInner replicationStatus(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listReplicationsSinglePageAsync(String resourceGroupName, - String accountName, String poolName, String volumeName) { + String accountName, String poolName, String volumeName, ListReplicationsRequest body) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4871,18 +4312,41 @@ private Mono> listReplicationsSinglePageAsync(St if (volumeName == null) { return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } + if (body != null) { + body.validate(); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listReplications(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.listReplications(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, body, + context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List replications for volume + * List all replications for a specified 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 body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list Replications as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listReplicationsAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, ListReplicationsRequest body) { + return new PagedFlux<>( + () -> listReplicationsSinglePageAsync(resourceGroupName, accountName, poolName, volumeName, body), + nextLink -> listReplicationsNextSinglePageAsync(nextLink)); + } + + /** * List all replications for a specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4897,19 +4361,20 @@ private Mono> listReplicationsSinglePageAsync(St @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listReplicationsAsync(String resourceGroupName, String accountName, String poolName, String volumeName) { + final ListReplicationsRequest body = null; return new PagedFlux<>( - () -> listReplicationsSinglePageAsync(resourceGroupName, accountName, poolName, volumeName)); + () -> listReplicationsSinglePageAsync(resourceGroupName, accountName, poolName, volumeName, body), + nextLink -> listReplicationsNextSinglePageAsync(nextLink)); } /** - * List replications for volume - * * List all replications for a specified 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 body The content of the action request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4917,7 +4382,7 @@ private PagedFlux listReplicationsAsync(String resourceGroupNa */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listReplicationsSinglePage(String resourceGroupName, String accountName, - String poolName, String volumeName) { + String poolName, String volumeName, ListReplicationsRequest body) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -4944,23 +4409,25 @@ private PagedResponse listReplicationsSinglePage(String resour throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } + if (body != null) { + body.validate(); + } final String accept = "application/json"; Response res = service.listReplicationsSync(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, - this.client.getApiVersion(), accept, Context.NONE); + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, + volumeName, accept, body, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** - * List replications for volume - * * List all replications for a specified 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 body The content of the action request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4969,7 +4436,7 @@ private PagedResponse listReplicationsSinglePage(String resour */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listReplicationsSinglePage(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { + String poolName, String volumeName, ListReplicationsRequest body, Context context) { if (this.client.getEndpoint() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -4996,17 +4463,18 @@ private PagedResponse listReplicationsSinglePage(String resour throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } + if (body != null) { + body.validate(); + } final String accept = "application/json"; - Response res - = service.listReplicationsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + Response res = service.listReplicationsSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, + volumeName, accept, body, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** - * List replications for volume - * * List all replications for a specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5021,19 +4489,20 @@ private PagedResponse listReplicationsSinglePage(String resour @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listReplications(String resourceGroupName, String accountName, String poolName, String volumeName) { + final ListReplicationsRequest body = null; return new PagedIterable<>( - () -> listReplicationsSinglePage(resourceGroupName, accountName, poolName, volumeName)); + () -> listReplicationsSinglePage(resourceGroupName, accountName, poolName, volumeName, body), + nextLink -> listReplicationsNextSinglePage(nextLink)); } /** - * List replications for volume - * * List all replications for a specified 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 body The content of the action request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -5042,14 +4511,13 @@ public PagedIterable listReplications(String resourceGroupName */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listReplications(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { + String poolName, String volumeName, ListReplicationsRequest body, Context context) { return new PagedIterable<>( - () -> listReplicationsSinglePage(resourceGroupName, accountName, poolName, volumeName, context)); + () -> listReplicationsSinglePage(resourceGroupName, accountName, poolName, volumeName, body, context), + nextLink -> listReplicationsNextSinglePage(nextLink, context)); } /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -5086,17 +4554,13 @@ private Mono>> resyncReplicationWithResponseAsync(Stri 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.resyncReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.resyncReplication(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -5138,14 +4602,11 @@ private Response resyncReplicationWithResponse(String resourceGroupN throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.resyncReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.resyncReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, Context.NONE); } /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -5188,14 +4649,11 @@ private Response resyncReplicationWithResponse(String resourceGroupN throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.resyncReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.resyncReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context); } /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -5218,8 +4676,6 @@ private PollerFlux, Void> beginResyncReplicationAsync(String re } /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -5241,8 +4697,6 @@ public SyncPoller, Void> beginResyncReplication(String resource } /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -5265,8 +4719,6 @@ public SyncPoller, Void> beginResyncReplication(String resource } /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -5287,8 +4739,6 @@ private Mono resyncReplicationAsync(String resourceGroupName, String accou } /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -5306,8 +4756,6 @@ public void resyncReplication(String resourceGroupName, String accountName, Stri } /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -5327,8 +4775,6 @@ public void resyncReplication(String resourceGroupName, String accountName, Stri } /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5364,17 +4810,13 @@ private Mono>> deleteReplicationWithResponseAsync(Stri 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.deleteReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.deleteReplication(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5415,14 +4857,11 @@ private Response deleteReplicationWithResponse(String resourceGroupN throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.deleteReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, Context.NONE); } /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5464,14 +4903,11 @@ private Response deleteReplicationWithResponse(String resourceGroupN throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.deleteReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.deleteReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context); } /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5493,8 +4929,6 @@ private PollerFlux, Void> beginDeleteReplicationAsync(String re } /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5515,8 +4949,6 @@ public SyncPoller, Void> beginDeleteReplication(String resource } /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5538,8 +4970,6 @@ public SyncPoller, Void> beginDeleteReplication(String resource } /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5559,8 +4989,6 @@ private Mono deleteReplicationAsync(String resourceGroupName, String accou } /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5577,8 +5005,6 @@ public void deleteReplication(String resourceGroupName, String accountName, Stri } /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5597,8 +5023,6 @@ public void deleteReplication(String resourceGroupName, String accountName, Stri } /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5640,17 +5064,15 @@ private Mono>> authorizeReplicationWithResponseAsync(S } else { body.validate(); } - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.authorizeReplication(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, - this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.authorizeReplication(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, + body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5697,15 +5119,13 @@ private Response authorizeReplicationWithResponse(String resourceGro } else { body.validate(); } - final String accept = "application/json"; - return service.authorizeReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, + final String contentType = "application/json"; + return service.authorizeReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, body, Context.NONE); } /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5753,14 +5173,13 @@ private Response authorizeReplicationWithResponse(String resourceGro } else { body.validate(); } - final String accept = "application/json"; - return service.authorizeReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + final String contentType = "application/json"; + return service.authorizeReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, body, + context); } /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5783,8 +5202,6 @@ private PollerFlux, Void> beginAuthorizeReplicationAsync(String } /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5806,8 +5223,6 @@ public SyncPoller, Void> beginAuthorizeReplication(String resou } /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5830,8 +5245,6 @@ public SyncPoller, Void> beginAuthorizeReplication(String resou } /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5852,8 +5265,6 @@ private Mono authorizeReplicationAsync(String resourceGroupName, String ac } /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5872,8 +5283,6 @@ public void authorizeReplication(String resourceGroupName, String accountName, S } /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5893,8 +5302,6 @@ public void authorizeReplication(String resourceGroupName, String accountName, S } /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5930,17 +5337,14 @@ private Mono>> reInitializeReplicationWithResponseAsyn 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.reInitializeReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + context -> service.reInitializeReplication(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -5981,14 +5385,11 @@ private Response reInitializeReplicationWithResponse(String resource throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.reInitializeReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.reInitializeReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, Context.NONE); } /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6030,14 +5431,11 @@ private Response reInitializeReplicationWithResponse(String resource throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.reInitializeReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.reInitializeReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context); } /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6059,8 +5457,6 @@ private PollerFlux, Void> beginReInitializeReplicationAsync(Str } /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6081,8 +5477,6 @@ public SyncPoller, Void> beginReInitializeReplication(String re } /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6104,8 +5498,6 @@ public SyncPoller, Void> beginReInitializeReplication(String re } /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6125,8 +5517,6 @@ private Mono reInitializeReplicationAsync(String resourceGroupName, String } /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6144,8 +5534,6 @@ public void reInitializeReplication(String resourceGroupName, String accountName } /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6164,8 +5552,6 @@ public void reInitializeReplication(String resourceGroupName, String accountName } /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6176,8 +5562,7 @@ public void reInitializeReplication(String resourceGroupName, String accountName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> peerExternalClusterWithResponseAsync(String resourceGroupName, @@ -6208,17 +5593,16 @@ private Mono>> peerExternalClusterWithResponseAsync(St } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.peerExternalCluster(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, - this.client.getApiVersion(), body, accept, context)) + .withContext(context -> service.peerExternalCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, + accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6229,7 +5613,7 @@ private Mono>> peerExternalClusterWithResponseAsync(St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response peerExternalClusterWithResponse(String resourceGroupName, String accountName, @@ -6265,15 +5649,14 @@ private Response peerExternalClusterWithResponse(String resourceGrou } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.peerExternalClusterSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, - Context.NONE); + return service.peerExternalClusterSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, + body, Context.NONE); } /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6285,7 +5668,7 @@ private Response peerExternalClusterWithResponse(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response peerExternalClusterWithResponse(String resourceGroupName, String accountName, @@ -6321,14 +5704,14 @@ private Response peerExternalClusterWithResponse(String resourceGrou } else { body.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; - return service.peerExternalClusterSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + return service.peerExternalClusterSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, + body, context); } /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6339,7 +5722,7 @@ private Response peerExternalClusterWithResponse(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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 information about cluster peering process. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterPeerCommandResponseInner> @@ -6353,8 +5736,6 @@ private Response peerExternalClusterWithResponse(String resourceGrou } /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6365,7 +5746,7 @@ private Response peerExternalClusterWithResponse(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of information about cluster peering process. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterPeerCommandResponseInner> @@ -6378,8 +5759,6 @@ private Response peerExternalClusterWithResponse(String resourceGrou } /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6391,7 +5770,7 @@ private Response peerExternalClusterWithResponse(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of information about cluster peering process. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterPeerCommandResponseInner> @@ -6404,8 +5783,6 @@ private Response peerExternalClusterWithResponse(String resourceGrou } /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6416,7 +5793,7 @@ private Response peerExternalClusterWithResponse(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono peerExternalClusterAsync(String resourceGroupName, String accountName, @@ -6426,8 +5803,6 @@ private Mono peerExternalClusterAsync(String re } /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6438,7 +5813,7 @@ private Mono peerExternalClusterAsync(String re * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public ClusterPeerCommandResponseInner peerExternalCluster(String resourceGroupName, String accountName, @@ -6447,8 +5822,6 @@ public ClusterPeerCommandResponseInner peerExternalCluster(String resourceGroupN } /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -6460,7 +5833,7 @@ public ClusterPeerCommandResponseInner peerExternalCluster(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public ClusterPeerCommandResponseInner peerExternalCluster(String resourceGroupName, String accountName, @@ -6470,8 +5843,6 @@ public ClusterPeerCommandResponseInner peerExternalCluster(String resourceGroupN } /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -6482,8 +5853,7 @@ public ClusterPeerCommandResponseInner peerExternalCluster(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> authorizeExternalReplicationWithResponseAsync(String resourceGroupName, @@ -6512,14 +5882,12 @@ private Mono>> authorizeExternalReplicationWithRespons final String accept = "application/json"; return FluxUtil .withContext(context -> service.authorizeExternalReplication(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, - this.client.getApiVersion(), accept, context)) + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, + volumeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -6530,7 +5898,7 @@ private Mono>> authorizeExternalReplicationWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response authorizeExternalReplicationWithResponse(String resourceGroupName, String accountName, @@ -6562,13 +5930,12 @@ private Response authorizeExternalReplicationWithResponse(String res .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.authorizeExternalReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.authorizeExternalReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, + Context.NONE); } /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -6580,7 +5947,7 @@ private Response authorizeExternalReplicationWithResponse(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response authorizeExternalReplicationWithResponse(String resourceGroupName, String accountName, @@ -6612,13 +5979,11 @@ private Response authorizeExternalReplicationWithResponse(String res .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } final String accept = "application/json"; - return service.authorizeExternalReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.authorizeExternalReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context); } /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -6629,7 +5994,7 @@ private Response authorizeExternalReplicationWithResponse(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown 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 information about svm peering process. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SvmPeerCommandResponseInner> @@ -6643,8 +6008,6 @@ private Response authorizeExternalReplicationWithResponse(String res } /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -6655,7 +6018,7 @@ private Response authorizeExternalReplicationWithResponse(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of information about svm peering process. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SvmPeerCommandResponseInner> @@ -6668,8 +6031,6 @@ private Response authorizeExternalReplicationWithResponse(String res } /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -6681,7 +6042,7 @@ private Response authorizeExternalReplicationWithResponse(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of information about svm peering process. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SvmPeerCommandResponseInner> @@ -6694,8 +6055,6 @@ private Response authorizeExternalReplicationWithResponse(String res } /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -6706,7 +6065,7 @@ private Response authorizeExternalReplicationWithResponse(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono authorizeExternalReplicationAsync(String resourceGroupName, @@ -6716,8 +6075,6 @@ private Mono authorizeExternalReplicationAsync(Stri } /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -6728,7 +6085,7 @@ private Mono authorizeExternalReplicationAsync(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 information about svm peering process. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public SvmPeerCommandResponseInner authorizeExternalReplication(String resourceGroupName, String accountName, @@ -6737,8 +6094,6 @@ public SvmPeerCommandResponseInner authorizeExternalReplication(String resourceG } /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -6750,7 +6105,7 @@ public SvmPeerCommandResponseInner authorizeExternalReplication(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public SvmPeerCommandResponseInner authorizeExternalReplication(String resourceGroupName, String accountName, @@ -6760,8 +6115,6 @@ public SvmPeerCommandResponseInner authorizeExternalReplication(String resourceG } /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -6798,17 +6151,14 @@ private Mono>> finalizeExternalReplicationWithResponse 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.finalizeExternalReplication(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, - this.client.getApiVersion(), accept, context)) + .withContext( + context -> service.finalizeExternalReplication(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -6850,14 +6200,11 @@ private Response finalizeExternalReplicationWithResponse(String reso throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.finalizeExternalReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.finalizeExternalReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, Context.NONE); } /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -6900,14 +6247,11 @@ private Response finalizeExternalReplicationWithResponse(String reso throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.finalizeExternalReplicationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.finalizeExternalReplicationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context); } /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -6930,8 +6274,6 @@ private PollerFlux, Void> beginFinalizeExternalReplicationAsync } /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -6953,8 +6295,6 @@ public SyncPoller, Void> beginFinalizeExternalReplication(Strin } /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -6977,8 +6317,6 @@ public SyncPoller, Void> beginFinalizeExternalReplication(Strin } /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -6999,8 +6337,6 @@ private Mono finalizeExternalReplicationAsync(String resourceGroupName, St } /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -7019,8 +6355,6 @@ public void finalizeExternalReplication(String resourceGroupName, String account } /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -7041,8 +6375,6 @@ public void finalizeExternalReplication(String resourceGroupName, String account } /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7078,17 +6410,14 @@ private Mono>> performReplicationTransferWithResponseA 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.performReplicationTransfer(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, - this.client.getApiVersion(), accept, context)) + .withContext( + context -> service.performReplicationTransfer(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7129,14 +6458,11 @@ private Response performReplicationTransferWithResponse(String resou throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.performReplicationTransferSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.performReplicationTransferSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, Context.NONE); } /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7178,14 +6504,11 @@ private Response performReplicationTransferWithResponse(String resou throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.performReplicationTransferSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.performReplicationTransferSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context); } /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7207,8 +6530,6 @@ private PollerFlux, Void> beginPerformReplicationTransferAsync( } /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7229,8 +6550,6 @@ public SyncPoller, Void> beginPerformReplicationTransfer(String } /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7252,8 +6571,6 @@ public SyncPoller, Void> beginPerformReplicationTransfer(String } /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7273,8 +6590,6 @@ private Mono performReplicationTransferAsync(String resourceGroupName, Str } /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7292,8 +6607,6 @@ public void performReplicationTransfer(String resourceGroupName, String accountN } /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7312,8 +6625,6 @@ public void performReplicationTransfer(String resourceGroupName, String accountN } /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7355,17 +6666,15 @@ private Mono>> poolChangeWithResponseAsync(String reso } else { body.validate(); } - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.poolChange(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, - context)) + .withContext(context -> service.poolChange(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, + body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7412,14 +6721,13 @@ private Response poolChangeWithResponse(String resourceGroupName, St } else { body.validate(); } - final String accept = "application/json"; - return service.poolChangeSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, Context.NONE); + final String contentType = "application/json"; + return service.poolChangeSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, body, + Context.NONE); } /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7467,14 +6775,13 @@ private Response poolChangeWithResponse(String resourceGroupName, St } else { body.validate(); } - final String accept = "application/json"; - return service.poolChangeSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + final String contentType = "application/json"; + return service.poolChangeSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, body, + context); } /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7497,8 +6804,6 @@ private PollerFlux, Void> beginPoolChangeAsync(String resourceG } /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7520,8 +6825,6 @@ public SyncPoller, Void> beginPoolChange(String resourceGroupNa } /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7544,8 +6847,6 @@ public SyncPoller, Void> beginPoolChange(String resourceGroupNa } /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7566,8 +6867,6 @@ private Mono poolChangeAsync(String resourceGroupName, String accountName, } /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7586,8 +6885,6 @@ public void poolChange(String resourceGroupName, String accountName, String pool } /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7607,8 +6904,6 @@ public void poolChange(String resourceGroupName, String accountName, String pool } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7648,17 +6943,13 @@ private Mono>> relocateWithResponseAsync(String resour if (body != null) { body.validate(); } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.relocate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, - context)) + .withContext(context -> service.relocate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7703,14 +6994,11 @@ private Response relocateWithResponse(String resourceGroupName, Stri if (body != null) { body.validate(); } - final String accept = "application/json"; - return service.relocateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, Context.NONE); + return service.relocateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, body, Context.NONE); } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7756,14 +7044,11 @@ private Response relocateWithResponse(String resourceGroupName, Stri if (body != null) { body.validate(); } - final String accept = "application/json"; - return service.relocateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); + return service.relocateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, body, context); } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7786,8 +7071,6 @@ private PollerFlux, Void> beginRelocateAsync(String resourceGro } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7810,8 +7093,6 @@ private PollerFlux, Void> beginRelocateAsync(String resourceGro } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7833,8 +7114,6 @@ public SyncPoller, Void> beginRelocate(String resourceGroupName } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7856,8 +7135,6 @@ public SyncPoller, Void> beginRelocate(String resourceGroupName } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7880,8 +7157,6 @@ public SyncPoller, Void> beginRelocate(String resourceGroupName } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7902,8 +7177,6 @@ private Mono relocateAsync(String resourceGroupName, String accountName, S } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7923,8 +7196,6 @@ private Mono relocateAsync(String resourceGroupName, String accountName, S } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7942,8 +7213,6 @@ public void relocate(String resourceGroupName, String accountName, String poolNa } /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -7963,8 +7232,6 @@ public void relocate(String resourceGroupName, String accountName, String poolNa } /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8000,17 +7267,13 @@ private Mono>> finalizeRelocationWithResponseAsync(Str 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.finalizeRelocation(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.finalizeRelocation(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8051,14 +7314,11 @@ private Response finalizeRelocationWithResponse(String resourceGroup throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.finalizeRelocationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.finalizeRelocationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, Context.NONE); } /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8100,14 +7360,11 @@ private Response finalizeRelocationWithResponse(String resourceGroup throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.finalizeRelocationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.finalizeRelocationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context); } /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8129,8 +7386,6 @@ private PollerFlux, Void> beginFinalizeRelocationAsync(String r } /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8151,8 +7406,6 @@ public SyncPoller, Void> beginFinalizeRelocation(String resourc } /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8174,8 +7427,6 @@ public SyncPoller, Void> beginFinalizeRelocation(String resourc } /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8195,8 +7446,6 @@ private Mono finalizeRelocationAsync(String resourceGroupName, String acco } /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8213,8 +7462,6 @@ public void finalizeRelocation(String resourceGroupName, String accountName, Str } /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8233,8 +7480,6 @@ public void finalizeRelocation(String resourceGroupName, String accountName, Str } /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8270,16 +7515,13 @@ private Mono>> revertRelocationWithResponseAsync(Strin 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.revertRelocation(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.revertRelocation(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8320,14 +7562,11 @@ private Response revertRelocationWithResponse(String resourceGroupNa throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.revertRelocationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, Context.NONE); + return service.revertRelocationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, Context.NONE); } /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8369,14 +7608,11 @@ private Response revertRelocationWithResponse(String resourceGroupNa throw LOGGER.atError() .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); } - final String accept = "application/json"; - return service.revertRelocationSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + return service.revertRelocationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context); } /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8398,8 +7634,6 @@ private PollerFlux, Void> beginRevertRelocationAsync(String res } /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8420,8 +7654,6 @@ public SyncPoller, Void> beginRevertRelocation(String resourceG } /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8443,8 +7675,6 @@ public SyncPoller, Void> beginRevertRelocation(String resourceG } /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8464,8 +7694,6 @@ private Mono revertRelocationAsync(String resourceGroupName, String accoun } /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8482,8 +7710,6 @@ public void revertRelocation(String resourceGroupName, String accountName, Strin } /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -8502,8 +7728,6 @@ public void revertRelocation(String resourceGroupName, String accountName, Strin } /** - * Describe all volumes - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -8529,8 +7753,6 @@ private Mono> listNextSinglePageAsync(String nextLink } /** - * Describe all volumes - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -8557,8 +7779,6 @@ private PagedResponse listNextSinglePage(String nextLink) { } /** - * Describe all volumes - * * Get the next page of items. * * @param nextLink The URL to get the next list of items. @@ -8585,5 +7805,86 @@ private PagedResponse listNextSinglePage(String nextLink, Context c res.getValue().nextLink(), null); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list Replications along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listReplicationsNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listReplicationsNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list Replications along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listReplicationsNextSinglePage(String nextLink) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listReplicationsNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list Replications along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listReplicationsNextSinglePage(String nextLink, Context context) { + if (nextLink == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + Response res + = service.listReplicationsNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + private static final ClientLogger LOGGER = new ClientLogger(VolumesClientImpl.class); } 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 4c31736a9c7a..809bc2ce91da 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.implementation; @@ -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,7 @@ 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.ListReplicationsRequest; import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; import com.azure.resourcemanager.netapp.models.PoolChangeRequest; import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; @@ -47,16 +46,6 @@ public VolumesImpl(VolumesClient innerClient, com.azure.resourcemanager.netapp.N this.serviceManager = serviceManager; } - public PagedIterable list(String resourceGroupName, String accountName, String poolName) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, poolName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, poolName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { Response inner @@ -87,6 +76,16 @@ public void delete(String resourceGroupName, String accountName, String poolName this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, forceDelete, context); } + public PagedIterable list(String resourceGroupName, String accountName, String poolName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, poolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, poolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); + } + public Volume populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, String volumeName) { VolumeInner inner @@ -181,28 +180,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); } @@ -254,9 +231,9 @@ public PagedIterable listReplications(String resourceGroupName, Str } public PagedIterable listReplications(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - PagedIterable inner - = this.serviceClient().listReplications(resourceGroupName, accountName, poolName, volumeName, context); + String volumeName, ListReplicationsRequest body, Context context) { + PagedIterable inner = this.serviceClient() + .listReplications(resourceGroupName, accountName, poolName, volumeName, body, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationImpl(inner1, this.manager())); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupPoliciesList.java similarity index 67% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupPoliciesList.java index 0ab293211fff..58f0d9663794 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupPoliciesList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,21 +17,26 @@ /** * List of Backup Policies. */ -@Fluent +@Immutable public final class BackupPoliciesList implements JsonSerializable { /* - * A list of backup policies + * The BackupPolicy items on this page */ private List value; + /* + * The link to the next page of items + */ + private String nextLink; + /** * Creates an instance of BackupPoliciesList class. */ - public BackupPoliciesList() { + private BackupPoliciesList() { } /** - * Get the value property: A list of backup policies. + * Get the value property: The BackupPolicy items on this page. * * @return the value value. */ @@ -39,14 +45,12 @@ public List value() { } /** - * Set the value property: A list of backup policies. + * Get the nextLink property: The link to the next page of items. * - * @param value the value value to set. - * @return the BackupPoliciesList object itself. + * @return the nextLink value. */ - public BackupPoliciesList withValue(List value) { - this.value = value; - return this; + public String nextLink() { + return this.nextLink; } /** @@ -55,11 +59,16 @@ public BackupPoliciesList withValue(List value) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model BackupPoliciesList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(BackupPoliciesList.class); + /** * {@inheritDoc} */ @@ -67,6 +76,7 @@ public void validate() { 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(); } @@ -76,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of BackupPoliciesList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the BackupPoliciesList. */ public static BackupPoliciesList fromJson(JsonReader jsonReader) throws IOException { @@ -88,6 +99,8 @@ public static BackupPoliciesList fromJson(JsonReader jsonReader) throws IOExcept if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> BackupPolicyInner.fromJson(reader1)); deserializedBackupPoliciesList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedBackupPoliciesList.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultsList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupVaultsList.java similarity index 73% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultsList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupVaultsList.java index bdd9e6b9b7e5..c942dd536669 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultsList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupVaultsList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of Backup Vaults. */ -@Fluent +@Immutable public final class BackupVaultsList implements JsonSerializable { /* - * A list of Backup Vaults + * The BackupVault items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of BackupVaultsList class. */ - public BackupVaultsList() { + private BackupVaultsList() { } /** - * Get the value property: A list of Backup Vaults. + * Get the value property: The BackupVault items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of Backup Vaults. - * - * @param value the value value to set. - * @return the BackupVaultsList object itself. - */ - public BackupVaultsList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ 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 BackupVaultsList object itself. - */ - public BackupVaultsList 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) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model BackupVaultsList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(BackupVaultsList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of BackupVaultsList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the BackupVaultsList. */ public static BackupVaultsList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupsList.java similarity index 73% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupsList.java index 40fcc8ab8162..d8c230ed2db3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupsList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of Backups. */ -@Fluent +@Immutable public final class BackupsList implements JsonSerializable { /* - * A list of Backups + * The Backup items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of BackupsList class. */ - public BackupsList() { + private BackupsList() { } /** - * Get the value property: A list of Backups. + * Get the value property: The Backup items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of Backups. - * - * @param value the value value to set. - * @return the BackupsList object itself. - */ - public BackupsList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ 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 BackupsList object itself. - */ - public BackupsList 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) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model BackupsList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(BackupsList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of BackupsList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the BackupsList. */ public static BackupsList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/CapacityPoolList.java similarity index 73% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/CapacityPoolList.java index b8beaecd1fec..bc5ee31256f7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/CapacityPoolList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of capacity pool resources. */ -@Fluent +@Immutable public final class CapacityPoolList implements JsonSerializable { /* - * List of Capacity pools + * The CapacityPool items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of CapacityPoolList class. */ - public CapacityPoolList() { + private CapacityPoolList() { } /** - * Get the value property: List of Capacity pools. + * Get the value property: The CapacityPool items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Capacity pools. - * - * @param value the value value to set. - * @return the CapacityPoolList object itself. - */ - public CapacityPoolList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ 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 CapacityPoolList object itself. - */ - public CapacityPoolList 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) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model CapacityPoolList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(CapacityPoolList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of CapacityPoolList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the CapacityPoolList. */ public static CapacityPoolList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ListReplications.java similarity index 67% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ListReplications.java index d8cea8b062f8..5a52358f238b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ListReplications.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,21 +17,26 @@ /** * List Replications. */ -@Fluent +@Immutable public final class ListReplications implements JsonSerializable { /* - * A list of replications + * The Replication items on this page */ private List value; + /* + * The link to the next page of items + */ + private String nextLink; + /** * Creates an instance of ListReplications class. */ - public ListReplications() { + private ListReplications() { } /** - * Get the value property: A list of replications. + * Get the value property: The Replication items on this page. * * @return the value value. */ @@ -39,14 +45,12 @@ public List value() { } /** - * Set the value property: A list of replications. + * Get the nextLink property: The link to the next page of items. * - * @param value the value value to set. - * @return the ListReplications object itself. + * @return the nextLink value. */ - public ListReplications withValue(List value) { - this.value = value; - return this; + public String nextLink() { + return this.nextLink; } /** @@ -55,11 +59,16 @@ public ListReplications withValue(List value) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListReplications")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListReplications.class); + /** * {@inheritDoc} */ @@ -67,6 +76,7 @@ public void validate() { 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(); } @@ -76,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListReplications if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListReplications. */ public static ListReplications fromJson(JsonReader jsonReader) throws IOException { @@ -88,6 +99,8 @@ public static ListReplications fromJson(JsonReader jsonReader) throws IOExceptio if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> ReplicationInner.fromJson(reader1)); deserializedListReplications.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedListReplications.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/NetAppAccountList.java similarity index 73% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/NetAppAccountList.java index de6198739d57..16b1a5698da5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/NetAppAccountList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of NetApp account resources. */ -@Fluent +@Immutable public final class NetAppAccountList implements JsonSerializable { /* - * Multiple NetApp accounts + * The NetAppAccount items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetAppAccountList class. */ - public NetAppAccountList() { + private NetAppAccountList() { } /** - * Get the value property: Multiple NetApp accounts. + * Get the value property: The NetAppAccount items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: Multiple NetApp accounts. - * - * @param value the value value to set. - * @return the NetAppAccountList object itself. - */ - public NetAppAccountList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ 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 NetAppAccountList object itself. - */ - public NetAppAccountList 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) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model NetAppAccountList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetAppAccountList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetAppAccountList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetAppAccountList. */ public static NetAppAccountList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/OperationListResult.java similarity index 71% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/OperationListResult.java index d3265913aa56..5eb10fb17f98 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/OperationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Result of the request to list Cloud Volume operations. It contains a list of operations and a URL link to get the - * next set of results. + * A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + * results. */ -@Fluent +@Immutable public final class OperationListResult implements JsonSerializable { /* - * List of Storage operations supported by the Storage resource provider. + * The Operation items on this page */ private List value; /* - * URL to get the next set of operation list results (if there are any). + * The link to the next page of items */ private String nextLink; /** * Creates an instance of OperationListResult class. */ - public OperationListResult() { + private OperationListResult() { } /** - * Get the value property: List of Storage operations supported by the Storage resource provider. + * Get the value property: The Operation items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of Storage operations supported by the Storage resource provider. - * - * @param value the value value to set. - * @return the OperationListResult object itself. - */ - public OperationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results (if there are any). + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,16 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model OperationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(OperationListResult.class); + /** * {@inheritDoc} */ @@ -82,6 +77,7 @@ public void validate() { 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(); } @@ -91,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of OperationListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the OperationListResult. */ public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItemList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/QuotaItemList.java similarity index 66% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItemList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/QuotaItemList.java index c3619941bd17..7df99aa064b5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItemList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/QuotaItemList.java @@ -1,61 +1,51 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; import java.io.IOException; import java.util.List; /** * List of Quota Items. */ -@Fluent +@Immutable public final class QuotaItemList implements JsonSerializable { /* - * A list of QuotaItems + * The QuotaItem items on this page */ - private List value; + private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of QuotaItemList class. */ - public QuotaItemList() { + private QuotaItemList() { } /** - * Get the value property: A list of QuotaItems. + * Get the value property: The QuotaItem items on this page. * * @return the value value. */ - public List value() { + public List value() { return this.value; } /** - * Set the value property: A list of QuotaItems. - * - * @param value the value value to set. - * @return the QuotaItemList object itself. - */ - public QuotaItemList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ 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 QuotaItemList object itself. - */ - public QuotaItemList 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) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model QuotaItemList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(QuotaItemList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of QuotaItemList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the QuotaItemList. */ public static QuotaItemList fromJson(JsonReader jsonReader) throws IOException { @@ -112,7 +97,8 @@ public static QuotaItemList fromJson(JsonReader jsonReader) throws IOException { reader.nextToken(); if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> QuotaItemInner.fromJson(reader1)); + List value + = reader.readArray(reader1 -> SubscriptionQuotaItemInner.fromJson(reader1)); deserializedQuotaItemList.value = value; } else if ("nextLink".equals(fieldName)) { deserializedQuotaItemList.nextLink = reader.getString(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfosList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/RegionInfosList.java similarity index 73% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfosList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/RegionInfosList.java index 45350f12398c..31fdfe475dee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfosList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/RegionInfosList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of regionInfo resources. */ -@Fluent +@Immutable public final class RegionInfosList implements JsonSerializable { /* - * A list of regionInfo resources + * The RegionInfoResource items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of RegionInfosList class. */ - public RegionInfosList() { + private RegionInfosList() { } /** - * Get the value property: A list of regionInfo resources. + * Get the value property: The RegionInfoResource items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of regionInfo resources. - * - * @param value the value value to set. - * @return the RegionInfosList object itself. - */ - public RegionInfosList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ 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 RegionInfosList object itself. - */ - public RegionInfosList 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) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model RegionInfosList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(RegionInfosList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of RegionInfosList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RegionInfosList. */ public static RegionInfosList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotPoliciesList.java similarity index 67% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotPoliciesList.java index 0c50b83239f0..d5687065fa94 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotPoliciesList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,21 +17,26 @@ /** * List of Snapshot Policies. */ -@Fluent +@Immutable public final class SnapshotPoliciesList implements JsonSerializable { /* - * A list of snapshot policies + * The SnapshotPolicy items on this page */ private List value; + /* + * The link to the next page of items + */ + private String nextLink; + /** * Creates an instance of SnapshotPoliciesList class. */ - public SnapshotPoliciesList() { + private SnapshotPoliciesList() { } /** - * Get the value property: A list of snapshot policies. + * Get the value property: The SnapshotPolicy items on this page. * * @return the value value. */ @@ -39,14 +45,12 @@ public List value() { } /** - * Set the value property: A list of snapshot policies. + * Get the nextLink property: The link to the next page of items. * - * @param value the value value to set. - * @return the SnapshotPoliciesList object itself. + * @return the nextLink value. */ - public SnapshotPoliciesList withValue(List value) { - this.value = value; - return this; + public String nextLink() { + return this.nextLink; } /** @@ -55,11 +59,16 @@ public SnapshotPoliciesList withValue(List value) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model SnapshotPoliciesList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SnapshotPoliciesList.class); + /** * {@inheritDoc} */ @@ -67,6 +76,7 @@ public void validate() { 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(); } @@ -76,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SnapshotPoliciesList if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SnapshotPoliciesList. */ public static SnapshotPoliciesList fromJson(JsonReader jsonReader) throws IOException { @@ -89,6 +100,8 @@ public static SnapshotPoliciesList fromJson(JsonReader jsonReader) throws IOExce List value = reader.readArray(reader1 -> SnapshotPolicyInner.fromJson(reader1)); deserializedSnapshotPoliciesList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedSnapshotPoliciesList.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotsList.java similarity index 66% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotsList.java index 380f5701084c..9d7871f1c6d6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotsList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,21 +17,26 @@ /** * List of Snapshots. */ -@Fluent +@Immutable public final class SnapshotsList implements JsonSerializable { /* - * A list of Snapshots + * The Snapshot items on this page */ private List value; + /* + * The link to the next page of items + */ + private String nextLink; + /** * Creates an instance of SnapshotsList class. */ - public SnapshotsList() { + private SnapshotsList() { } /** - * Get the value property: A list of Snapshots. + * Get the value property: The Snapshot items on this page. * * @return the value value. */ @@ -39,14 +45,12 @@ public List value() { } /** - * Set the value property: A list of Snapshots. + * Get the nextLink property: The link to the next page of items. * - * @param value the value value to set. - * @return the SnapshotsList object itself. + * @return the nextLink value. */ - public SnapshotsList withValue(List value) { - this.value = value; - return this; + public String nextLink() { + return this.nextLink; } /** @@ -55,11 +59,16 @@ public SnapshotsList withValue(List value) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model SnapshotsList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SnapshotsList.class); + /** * {@inheritDoc} */ @@ -67,6 +76,7 @@ public void validate() { 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(); } @@ -76,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SnapshotsList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SnapshotsList. */ public static SnapshotsList fromJson(JsonReader jsonReader) throws IOException { @@ -88,6 +99,8 @@ public static SnapshotsList fromJson(JsonReader jsonReader) throws IOException { if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> SnapshotInner.fromJson(reader1)); deserializedSnapshotsList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedSnapshotsList.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/SubvolumesList.java similarity index 73% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/SubvolumesList.java index a64a18dfb3a4..73d77cb31bea 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/SubvolumesList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of Subvolumes. */ -@Fluent +@Immutable public final class SubvolumesList implements JsonSerializable { /* - * A list of Subvolumes + * The SubvolumeInfo items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of SubvolumesList class. */ - public SubvolumesList() { + private SubvolumesList() { } /** - * Get the value property: A list of Subvolumes. + * Get the value property: The SubvolumeInfo items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of Subvolumes. - * - * @param value the value value to set. - * @return the SubvolumesList object itself. - */ - public SubvolumesList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ 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 SubvolumesList object itself. - */ - public SubvolumesList 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) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model SubvolumesList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SubvolumesList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SubvolumesList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SubvolumesList. */ public static SubvolumesList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsagesListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/UsagesListResult.java similarity index 73% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsagesListResult.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/UsagesListResult.java index 31542ca15c2e..230a0be9ee10 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsagesListResult.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/UsagesListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * Usages result. */ -@Fluent +@Immutable public final class UsagesListResult implements JsonSerializable { /* - * A list of usages + * The UsageResult items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of UsagesListResult class. */ - public UsagesListResult() { + private UsagesListResult() { } /** - * Get the value property: A list of usages. + * Get the value property: The UsageResult items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of usages. - * - * @param value the value value to set. - * @return the UsagesListResult object itself. - */ - public UsagesListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ 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 UsagesListResult object itself. - */ - public UsagesListResult 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) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model UsagesListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(UsagesListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of UsagesListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the UsagesListResult. */ public static UsagesListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeGroupList.java similarity index 67% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeGroupList.java index 5abbf5e68c6d..86e6973f8a1d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeGroupList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,21 +17,26 @@ /** * List of volume group resources. */ -@Fluent +@Immutable public final class VolumeGroupList implements JsonSerializable { /* - * List of volume Groups + * The VolumeGroup items on this page */ private List value; + /* + * The link to the next page of items + */ + private String nextLink; + /** * Creates an instance of VolumeGroupList class. */ - public VolumeGroupList() { + private VolumeGroupList() { } /** - * Get the value property: List of volume Groups. + * Get the value property: The VolumeGroup items on this page. * * @return the value value. */ @@ -39,14 +45,12 @@ public List value() { } /** - * Set the value property: List of volume Groups. + * Get the nextLink property: The link to the next page of items. * - * @param value the value value to set. - * @return the VolumeGroupList object itself. + * @return the nextLink value. */ - public VolumeGroupList withValue(List value) { - this.value = value; - return this; + public String nextLink() { + return this.nextLink; } /** @@ -55,11 +59,16 @@ public VolumeGroupList withValue(List value) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model VolumeGroupList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VolumeGroupList.class); + /** * {@inheritDoc} */ @@ -67,6 +76,7 @@ public void validate() { 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(); } @@ -76,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VolumeGroupList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VolumeGroupList. */ public static VolumeGroupList fromJson(JsonReader jsonReader) throws IOException { @@ -88,6 +99,8 @@ public static VolumeGroupList fromJson(JsonReader jsonReader) throws IOException if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> VolumeGroupInner.fromJson(reader1)); deserializedVolumeGroupList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedVolumeGroupList.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeList.java similarity index 73% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeList.java index 45a5ec177e62..975f2cb529ee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of volume resources. */ -@Fluent +@Immutable public final class VolumeList implements JsonSerializable { /* - * List of volumes + * The Volume items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VolumeList class. */ - public VolumeList() { + private VolumeList() { } /** - * Get the value property: List of volumes. + * Get the value property: The Volume items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of volumes. - * - * @param value the value value to set. - * @return the VolumeList object itself. - */ - public VolumeList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ 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 VolumeList object itself. - */ - public VolumeList 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) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model VolumeList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VolumeList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VolumeList if the JsonReader was pointing to an instance of it, or null if it was pointing * to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VolumeList. */ public static VolumeList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeQuotaRulesList.java similarity index 67% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeQuotaRulesList.java index ad22ddbd2b03..2f3c58a794f8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeQuotaRulesList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.models; +package com.azure.resourcemanager.netapp.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,21 +17,26 @@ /** * List of Volume Quota Rules. */ -@Fluent +@Immutable public final class VolumeQuotaRulesList implements JsonSerializable { /* - * A list of Volume Quota Rules + * The VolumeQuotaRule items on this page */ private List value; + /* + * The link to the next page of items + */ + private String nextLink; + /** * Creates an instance of VolumeQuotaRulesList class. */ - public VolumeQuotaRulesList() { + private VolumeQuotaRulesList() { } /** - * Get the value property: A list of Volume Quota Rules. + * Get the value property: The VolumeQuotaRule items on this page. * * @return the value value. */ @@ -39,14 +45,12 @@ public List value() { } /** - * Set the value property: A list of Volume Quota Rules. + * Get the nextLink property: The link to the next page of items. * - * @param value the value value to set. - * @return the VolumeQuotaRulesList object itself. + * @return the nextLink value. */ - public VolumeQuotaRulesList withValue(List value) { - this.value = value; - return this; + public String nextLink() { + return this.nextLink; } /** @@ -55,11 +59,16 @@ public VolumeQuotaRulesList withValue(List value) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model VolumeQuotaRulesList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VolumeQuotaRulesList.class); + /** * {@inheritDoc} */ @@ -67,6 +76,7 @@ public void validate() { 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(); } @@ -76,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VolumeQuotaRulesList if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VolumeQuotaRulesList. */ public static VolumeQuotaRulesList fromJson(JsonReader jsonReader) throws IOException { @@ -89,6 +100,8 @@ public static VolumeQuotaRulesList fromJson(JsonReader jsonReader) throws IOExce List value = reader.readArray(reader1 -> VolumeQuotaRuleInner.fromJson(reader1)); deserializedVolumeQuotaRulesList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedVolumeQuotaRulesList.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java index b3a2261213b0..4de7ef48ccf8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the implementations for NetAppManagementClient. + * Package containing the implementations for NetAppFiles. * Microsoft NetApp Files Azure Resource Provider specification. */ package com.azure.resourcemanager.netapp.implementation; 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 index f2bd95ef875b..70990bdaaf5a 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,8 +8,6 @@ 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. @@ -17,12 +15,13 @@ public final class AcceptGrowCapacityPoolForShortTermCloneSplit extends ExpandableStringEnum { /** - * Static value Accepted for AcceptGrowCapacityPoolForShortTermCloneSplit. + * Auto grow capacity pool for short term clone split is accepted. */ public static final AcceptGrowCapacityPoolForShortTermCloneSplit ACCEPTED = fromString("Accepted"); /** - * Static value Declined for AcceptGrowCapacityPoolForShortTermCloneSplit. + * Auto grow capacity pool for short term clone split is declined. Short term clone volume creation will not be + * allowed, to create short term clone volume accept auto grow capacity pool. */ public static final AcceptGrowCapacityPoolForShortTermCloneSplit DECLINED = fromString("Declined"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java index ae9df7ff7be4..58f75cf1170e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; 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 c58c50361676..cfa6046a113f 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,116 +13,98 @@ */ public interface Accounts { /** - * Describe all NetApp Accounts in a subscription - * - * List and describe all NetApp accounts in the subscription. + * Get the NetApp account. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedIterable}. + * @return the NetApp account along with {@link Response}. */ - PagedIterable list(); + Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, + Context context); /** - * Describe all NetApp Accounts in a subscription - * - * List and describe all NetApp accounts in the subscription. + * Get the NetApp account. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedIterable}. + * @return the NetApp account. */ - PagedIterable list(Context context); + NetAppAccount getByResourceGroup(String resourceGroupName, String accountName); /** - * Describe all NetApp Accounts in a resource group - * - * List and describe all NetApp accounts in the resource group. + * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + void deleteByResourceGroup(String resourceGroupName, String accountName); /** - * Describe all NetApp Accounts in a resource group - * - * List and describe all NetApp accounts in the resource group. + * Delete the specified NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + void delete(String resourceGroupName, String accountName, Context context); /** - * Describe a NetApp Account - * - * Get the NetApp account. + * List and describe all NetApp accounts in the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account along with {@link Response}. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, - Context context); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * Describe a NetApp Account - * - * Get the NetApp account. + * List and describe all NetApp accounts in the resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the NetApp account. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - NetAppAccount getByResourceGroup(String resourceGroupName, String accountName); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Delete a NetApp account - * - * Delete the specified NetApp account. + * List and describe all NetApp accounts in the subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - void deleteByResourceGroup(String resourceGroupName, String accountName); + PagedIterable list(); /** - * Delete a NetApp account - * - * Delete the specified NetApp account. + * List and describe all NetApp accounts in the subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of NetApp account resources as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, Context context); + PagedIterable list(Context context); /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -135,8 +117,6 @@ Response getByResourceGroupWithResponse(String resourceGroupName, void renewCredentials(String resourceGroupName, String accountName); /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -150,8 +130,6 @@ Response getByResourceGroupWithResponse(String resourceGroupName, void renewCredentials(String resourceGroupName, String accountName, Context context); /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -164,8 +142,6 @@ Response getByResourceGroupWithResponse(String resourceGroupName, void transitionToCmk(String resourceGroupName, String accountName); /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -181,8 +157,6 @@ void transitionToCmk(String resourceGroupName, String accountName, EncryptionTra Context context); /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -192,13 +166,11 @@ 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. + * @return the response. */ GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, String accountName); /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -209,14 +181,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 result of getKeyVaultStatus with information about how volumes under NetApp account are encrypted. + * @return the response. */ GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, String accountName, Context context); /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -229,8 +199,6 @@ GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, void changeKeyVault(String resourceGroupName, String accountName); /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -245,8 +213,6 @@ GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, void changeKeyVault(String resourceGroupName, String accountName, ChangeKeyVault body, Context context); /** - * Describe a NetApp Account - * * Get the NetApp account. * * @param id the resource ID. @@ -258,8 +224,6 @@ GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, NetAppAccount getById(String id); /** - * Describe a NetApp Account - * * Get the NetApp account. * * @param id the resource ID. @@ -272,8 +236,6 @@ GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, Response getByIdWithResponse(String id, Context context); /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param id the resource ID. @@ -284,8 +246,6 @@ GetKeyVaultStatusResponse getChangeKeyVaultInformation(String resourceGroupName, void deleteById(String id); /** - * Delete a NetApp account - * * Delete the specified NetApp account. * * @param id the resource ID. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java index f81ded19cdf3..04eff4e20c5c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java index a27420efea46..5da82d9df4fd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,27 +12,27 @@ */ public final class ActiveDirectoryStatus extends ExpandableStringEnum { /** - * Static value Created for ActiveDirectoryStatus. + * Active Directory created but not in use. */ public static final ActiveDirectoryStatus CREATED = fromString("Created"); /** - * Static value InUse for ActiveDirectoryStatus. + * Active Directory in use by SMB Volume. */ public static final ActiveDirectoryStatus IN_USE = fromString("InUse"); /** - * Static value Deleted for ActiveDirectoryStatus. + * Active Directory Deleted. */ public static final ActiveDirectoryStatus DELETED = fromString("Deleted"); /** - * Static value Error for ActiveDirectoryStatus. + * Error with the Active Directory. */ public static final ActiveDirectoryStatus ERROR = fromString("Error"); /** - * Static value Updating for ActiveDirectoryStatus. + * Active Directory Updating. */ public static final ActiveDirectoryStatus UPDATING = fromString("Updating"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java index 325a150f340a..910f3aadab46 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java index 92f695197997..dfebd5c80242 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java index c5592910eb4a..129371e23372 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,18 +8,16 @@ import java.util.Collection; /** - * avsDataStore - * * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. */ public final class AvsDataStore extends ExpandableStringEnum { /** - * Static value Enabled for AvsDataStore. + * avsDataStore is enabled. */ public static final AvsDataStore ENABLED = fromString("Enabled"); /** - * Static value Disabled for AvsDataStore. + * avsDataStore is disabled. */ public static final AvsDataStore DISABLED = fromString("Disabled"); 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 751de3d00d1e..587e0677b403 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java index 900e96a9088e..e37c65a68054 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java index 9d42c83cf9ad..ce3fb2fcaa2d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,98 +13,84 @@ */ public interface BackupPolicies { /** - * List backup policies - * - * List backup policies for Netapp Account. + * Get a particular backup Policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param backupPolicyName Backup policy Name which uniquely identify backup policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies as paginated response with {@link PagedIterable}. + * @return a particular backup Policy along with {@link Response}. */ - PagedIterable list(String resourceGroupName, String accountName); + Response getWithResponse(String resourceGroupName, String accountName, String backupPolicyName, + Context context); /** - * List backup policies - * - * List backup policies for Netapp Account. + * Get a particular backup Policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. + * @param backupPolicyName Backup policy Name which uniquely identify backup policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Policies as paginated response with {@link PagedIterable}. + * @return a particular backup Policy. */ - PagedIterable list(String resourceGroupName, String accountName, Context context); + BackupPolicy get(String resourceGroupName, String accountName, String backupPolicyName); /** - * Get a backup Policy - * - * Get a particular backup Policy. + * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 particular backup Policy along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String accountName, String backupPolicyName, - Context context); + void delete(String resourceGroupName, String accountName, String backupPolicyName); /** - * Get a backup Policy - * - * Get a particular backup Policy. + * Delete backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 particular backup Policy. */ - BackupPolicy get(String resourceGroupName, String accountName, String backupPolicyName); + void delete(String resourceGroupName, String accountName, String backupPolicyName, Context context); /** - * Delete a backup policy - * - * Delete backup policy. + * List backup policies for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupPolicyName Backup policy Name which uniquely identify backup policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String backupPolicyName); + PagedIterable list(String resourceGroupName, String accountName); /** - * Delete a backup policy - * - * Delete backup policy. + * List backup policies for Netapp Account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupPolicyName Backup policy Name which uniquely identify backup policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Policies as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String backupPolicyName, Context context); + PagedIterable list(String resourceGroupName, String accountName, Context context); /** - * Get a backup Policy - * * Get a particular backup Policy. * * @param id the resource ID. @@ -116,8 +102,6 @@ Response getWithResponse(String resourceGroupName, String accountN BackupPolicy getById(String id); /** - * Get a backup Policy - * * Get a particular backup Policy. * * @param id the resource ID. @@ -130,8 +114,6 @@ Response getWithResponse(String resourceGroupName, String accountN Response getByIdWithResponse(String id, Context context); /** - * Delete a backup policy - * * Delete backup policy. * * @param id the resource ID. @@ -142,8 +124,6 @@ Response getWithResponse(String resourceGroupName, String accountN void deleteById(String id); /** - * Delete a backup policy - * * Delete backup policy. * * @param id the resource ID. 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 450df2f734f5..d4eb879dd756 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -51,7 +51,10 @@ public interface BackupPolicy { Map tags(); /** - * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * Gets the etag property: "If etag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields."). * * @return the etag value. */ @@ -326,7 +329,7 @@ interface UpdateStages { */ interface WithTags { /** - * Specifies the tags property: Resource tags.. + * Specifies the tags property: Resource tags. * * @param tags Resource tags. * @return the next definition stage. 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 808fb4577eb8..d114babe0723 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 @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties; @@ -18,26 +18,36 @@ * Backup policy Details for create and update. */ @Fluent -public final class BackupPolicyPatch extends Resource { +public final class BackupPolicyPatch implements JsonSerializable { /* - * Backup policy Properties + * Resource location */ - private BackupPolicyProperties innerProperties; + private String location; /* - * The type of the resource. + * Resource Id */ - private String type; + private String id; /* - * The name of the resource. + * Resource name */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource type */ - private String id; + private String type; + + /* + * Resource tags + */ + private Map tags; + + /* + * Backup policy Properties + */ + private BackupPolicyProperties innerProperties; /** * Creates an instance of BackupPolicyPatch class. @@ -46,62 +56,81 @@ public BackupPolicyPatch() { } /** - * Get the innerProperties property: Backup policy Properties. + * Get the location property: Resource location. * - * @return the innerProperties value. + * @return the location value. */ - private BackupPolicyProperties innerProperties() { - return this.innerProperties; + public String location() { + return this.location; } /** - * Get the type property: The type of the resource. + * Set the location property: Resource location. * - * @return the type value. + * @param location the location value to set. + * @return the BackupPolicyPatch object itself. */ - @Override - public String type() { - return this.type; + public BackupPolicyPatch withLocation(String location) { + this.location = location; + return this; } /** - * Get the name property: The name of the resource. + * Get the id property: Resource Id. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Get the name property: Resource name. * * @return the name value. */ - @Override public String name() { return this.name; } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: Resource type. * - * @return the id value. + * @return the type value. */ - @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** - * {@inheritDoc} + * Get the tags property: Resource tags. + * + * @return the tags value. */ - @Override - public BackupPolicyPatch withLocation(String location) { - super.withLocation(location); - return this; + public Map tags() { + return this.tags; } /** - * {@inheritDoc} + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the BackupPolicyPatch object itself. */ - @Override public BackupPolicyPatch withTags(Map tags) { - super.withTags(tags); + this.tags = tags; return this; } + /** + * Get the innerProperties property: Backup policy Properties. + * + * @return the innerProperties value. + */ + private BackupPolicyProperties innerProperties() { + return this.innerProperties; + } + /** * Get the backupPolicyId property: Backup Policy GUID ID. * @@ -247,8 +276,8 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("properties", this.innerProperties); return jsonWriter.writeEndObject(); } @@ -259,7 +288,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of BackupPolicyPatch if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the BackupPolicyPatch. */ public static BackupPolicyPatch fromJson(JsonReader jsonReader) throws IOException { @@ -269,17 +297,17 @@ public static BackupPolicyPatch fromJson(JsonReader jsonReader) throws IOExcepti String fieldName = reader.getFieldName(); reader.nextToken(); - if ("id".equals(fieldName)) { + if ("location".equals(fieldName)) { + deserializedBackupPolicyPatch.location = reader.getString(); + } else if ("id".equals(fieldName)) { deserializedBackupPolicyPatch.id = reader.getString(); } else if ("name".equals(fieldName)) { deserializedBackupPolicyPatch.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedBackupPolicyPatch.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedBackupPolicyPatch.withLocation(reader.getString()); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedBackupPolicyPatch.withTags(tags); + deserializedBackupPolicyPatch.tags = tags; } else if ("properties".equals(fieldName)) { deserializedBackupPolicyPatch.innerProperties = BackupPolicyProperties.fromJson(reader); } else { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupRestoreFiles.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupRestoreFiles.java index 83d9c9692d8e..c01bbd7c246c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupRestoreFiles.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupRestoreFiles.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupStatus.java index 2e810896fb75..41119a3a6e83 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupStatus.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -22,12 +22,10 @@ public interface BackupStatus { * * @return the relationshipStatus value. */ - RelationshipStatus relationshipStatus(); + VolumeBackupRelationshipStatus relationshipStatus(); /** - * Gets the mirrorState property: The mirror state property describes the current status of data replication for a - * backup. It provides insight into whether the data is actively being mirrored, if the replication process has been - * paused, or if it has yet to be initialized. + * Gets the mirrorState property: The status of the backup. * * @return the mirrorState value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupType.java index 973074cd16b0..3e3478ec1617 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,18 +8,16 @@ import java.util.Collection; /** - * backupType - * * Type of backup Manual or Scheduled. */ public final class BackupType extends ExpandableStringEnum { /** - * Static value Manual for BackupType. + * Manual backup. */ public static final BackupType MANUAL = fromString("Manual"); /** - * Static value Scheduled for BackupType. + * Scheduled backup. */ public static final BackupType SCHEDULED = fromString("Scheduled"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVault.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVault.java index 778124fa7ed5..a760ad513354 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVault.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVault.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultPatch.java index 83a2bc4cb87d..a8df365302bc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultPatch.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaults.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaults.java index bdf958fac078..5888487a5663 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaults.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupVaults.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,98 +13,84 @@ */ public interface BackupVaults { /** - * Describe all Backup Vaults - * - * List and describe all Backup Vaults in the NetApp account. + * Get the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param backupVaultName The name of the Backup Vault. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Vaults as paginated response with {@link PagedIterable}. + * @return the Backup Vault along with {@link Response}. */ - PagedIterable listByNetAppAccount(String resourceGroupName, String accountName); + Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, + Context context); /** - * Describe all Backup Vaults - * - * List and describe all Backup Vaults in the NetApp account. + * Get the Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. + * @param backupVaultName The name of the Backup Vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Backup Vaults as paginated response with {@link PagedIterable}. + * @return the Backup Vault. */ - PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context); + BackupVault get(String resourceGroupName, String accountName, String backupVaultName); /** - * Describe the Backup Vault - * - * Get the Backup Vault. + * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Backup Vault along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, - Context context); + void delete(String resourceGroupName, String accountName, String backupVaultName); /** - * Describe the Backup Vault - * - * Get the Backup Vault. + * Delete the specified Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupVaultName The name of the Backup Vault. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Backup Vault. */ - BackupVault get(String resourceGroupName, String accountName, String backupVaultName); + void delete(String resourceGroupName, String accountName, String backupVaultName, Context context); /** - * Delete NetApp Backup Vault - * - * Delete the specified Backup Vault. + * List and describe all Backup Vaults in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Vaults as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String backupVaultName); + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName); /** - * Delete NetApp Backup Vault - * - * Delete the specified Backup Vault. + * List and describe all Backup Vaults in the NetApp account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Backup Vaults as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String backupVaultName, Context context); + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context); /** - * Describe the Backup Vault - * * Get the Backup Vault. * * @param id the resource ID. @@ -116,8 +102,6 @@ Response getWithResponse(String resourceGroupName, String accountNa BackupVault getById(String id); /** - * Describe the Backup Vault - * * Get the Backup Vault. * * @param id the resource ID. @@ -130,8 +114,6 @@ Response getWithResponse(String resourceGroupName, String accountNa Response getByIdWithResponse(String id, Context context); /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param id the resource ID. @@ -142,8 +124,6 @@ Response getWithResponse(String resourceGroupName, String accountNa void deleteById(String id); /** - * Delete NetApp Backup Vault - * * Delete the specified Backup Vault. * * @param id the resource ID. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java index 41831d58860d..8e3fd073a6f3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,77 +13,64 @@ */ public interface Backups { /** - * Get the latest backup status of a volume - * - * Get the latest status of the backup for a volume. + * Get the specified Backup under Backup Vault. * * @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 backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the latest status of the backup for a volume along with {@link Response}. + * @return the specified Backup under Backup Vault along with {@link Response}. */ - Response getLatestStatusWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, + String backupName, Context context); /** - * Get the latest backup status of a volume - * - * Get the latest status of the backup for a volume. + * Get the specified Backup under Backup Vault. * * @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 backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the latest status of the backup for a volume. + * @return the specified Backup under Backup Vault. */ - BackupStatus getLatestStatus(String resourceGroupName, String accountName, String poolName, String volumeName); + Backup get(String resourceGroupName, String accountName, String backupVaultName, String backupName); /** - * Get the latest restore status of a volume - * - * Get the latest status of the restore for a volume. + * Delete a Backup under the Backup Vault. * * @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. + * @param backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the latest status of the restore for a volume along with {@link Response}. */ - Response getVolumeLatestRestoreStatusWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context); + void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName); /** - * Get the latest restore status of a volume - * - * Get the latest status of the restore for a volume. + * Delete a Backup under the Backup Vault. * * @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 backupVaultName The name of the Backup Vault. + * @param backupName The name of the backup. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the latest status of the restore for a volume. */ - RestoreStatus getVolumeLatestRestoreStatus(String resourceGroupName, String accountName, String poolName, - String volumeName); + void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, + Context context); /** - * List Backups - * * List all backups Under a Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -97,8 +84,6 @@ RestoreStatus getVolumeLatestRestoreStatus(String resourceGroupName, String acco PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName); /** - * List Backups - * * List all backups Under a Backup Vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -116,74 +101,67 @@ PagedIterable listByVault(String resourceGroupName, String accountName, String filter, Context context); /** - * Describe the Backup under Backup Vault - * - * Get the specified Backup under Backup Vault. + * Get the latest status of the backup for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. + * @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 specified Backup under Backup Vault along with {@link Response}. + * @return the latest status of the backup for a volume along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, - String backupName, Context context); + Response getLatestStatusWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** - * Describe the Backup under Backup Vault - * - * Get the specified Backup under Backup Vault. + * Get the latest status of the backup for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. + * @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 specified Backup under Backup Vault. + * @return the latest status of the backup for a volume. */ - Backup get(String resourceGroupName, String accountName, String backupVaultName, String backupName); + BackupStatus getLatestStatus(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Delete backup - * - * Delete a Backup under the Backup Vault. + * Get the latest status of the restore for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. + * @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 latest status of the restore for a volume along with {@link Response}. */ - void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName); + Response getVolumeLatestRestoreStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** - * Delete backup - * - * Delete a Backup under the Backup Vault. + * Get the latest status of the restore for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param backupVaultName The name of the Backup Vault. - * @param backupName The name of the backup. - * @param context The context to associate with this operation. + * @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 latest status of the restore for a volume. */ - void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, - Context context); + RestoreStatus getVolumeLatestRestoreStatus(String resourceGroupName, String accountName, String poolName, + String volumeName); /** - * Describe the Backup under Backup Vault - * * Get the specified Backup under Backup Vault. * * @param id the resource ID. @@ -195,8 +173,6 @@ void delete(String resourceGroupName, String accountName, String backupVaultName Backup getById(String id); /** - * Describe the Backup under Backup Vault - * * Get the specified Backup under Backup Vault. * * @param id the resource ID. @@ -209,8 +185,6 @@ void delete(String resourceGroupName, String accountName, String backupVaultName Response getByIdWithResponse(String id, Context context); /** - * Delete backup - * * Delete a Backup under the Backup Vault. * * @param id the resource ID. @@ -221,8 +195,6 @@ void delete(String resourceGroupName, String accountName, String backupVaultName void deleteById(String id); /** - * Delete backup - * * Delete a Backup under the Backup Vault. * * @param id the resource ID. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsMigrationRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsMigrationRequest.java index 0ed235aa4b52..7bf3ad0a6e0f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsMigrationRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsMigrationRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderAccounts.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderAccounts.java index 2f0176a3561a..bc577f2b67da 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderAccounts.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderAccounts.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -11,8 +11,6 @@ */ public interface BackupsUnderAccounts { /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -25,8 +23,6 @@ public interface BackupsUnderAccounts { void migrateBackups(String resourceGroupName, String accountName, BackupsMigrationRequest body); /** - * Create a new migrate request for backups under account - * * Migrate the backups under a NetApp account to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderBackupVaults.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderBackupVaults.java index 45e4d720539b..ab9bf9d1fcca 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderBackupVaults.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderBackupVaults.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -11,8 +11,6 @@ */ public interface BackupsUnderBackupVaults { /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -28,8 +26,6 @@ void restoreFiles(String resourceGroupName, String accountName, String backupVau BackupRestoreFiles body); /** - * Create a new Backup Restore Files request - * * Restore the specified files from the specified backup to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderVolumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderVolumes.java index d277aa4b64d2..65a146fbbdbb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderVolumes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderVolumes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -11,8 +11,6 @@ */ public interface BackupsUnderVolumes { /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -28,8 +26,6 @@ void migrateBackups(String resourceGroupName, String accountName, String poolNam BackupsMigrationRequest body); /** - * Create a new migrate request for backups under volume - * * Migrate the backups under volume to backup vault. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java index 051e5320420a..d1a31176fd99 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java index 092eefe736bc..6f53d9ca97ea 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java deleted file mode 100644 index 0d260b271299..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java +++ /dev/null @@ -1,357 +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.http.rest.Response; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.BucketInner; - -/** - * An immutable client-side representation of Bucket. - */ -public interface Bucket { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the path property: The volume path mounted inside the bucket. The default is the root path '/' if no value - * is provided when the bucket is created. - * - * @return the path value. - */ - String path(); - - /** - * Gets the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid - * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * - * @return the fileSystemUser value. - */ - FileSystemUser fileSystemUser(); - - /** - * Gets the provisioningState property: Provisioning state of the resource. - * - * @return the provisioningState value. - */ - NetAppProvisioningState provisioningState(); - - /** - * Gets the status property: The bucket credentials status. There states: - * - * "NoCredentialsSet": Access and Secret key pair have not been generated. - * "CredentialsExpired": Access and Secret key pair have expired. - * "Active": The certificate has been installed and credentials are unexpired. - * - * @return the status value. - */ - CredentialsStatus status(); - - /** - * Gets the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @return the server value. - */ - BucketServerProperties server(); - - /** - * Gets the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is - * ReadOnly if no value is provided during bucket creation. - * - * @return the permissions value. - */ - BucketPermissions permissions(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.BucketInner object. - * - * @return the inner object. - */ - BucketInner innerModel(); - - /** - * The entirety of the Bucket definition. - */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The Bucket definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the Bucket definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the Bucket definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName, poolName, volumeName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account. - * @param poolName The name of the capacity pool. - * @param volumeName The name of the volume. - * @return the next definition stage. - */ - WithCreate withExistingVolume(String resourceGroupName, String accountName, String poolName, - String volumeName); - } - - /** - * The stage of the Bucket 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.WithPath, DefinitionStages.WithFileSystemUser, - DefinitionStages.WithServer, DefinitionStages.WithPermissions { - /** - * Executes the create request. - * - * @return the created resource. - */ - Bucket create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - Bucket create(Context context); - } - - /** - * The stage of the Bucket definition allowing to specify path. - */ - interface WithPath { - /** - * Specifies the path property: The volume path mounted inside the bucket. The default is the root path '/' - * if no value is provided when the bucket is created.. - * - * @param path The volume path mounted inside the bucket. The default is the root path '/' if no value is - * provided when the bucket is created. - * @return the next definition stage. - */ - WithCreate withPath(String path); - } - - /** - * The stage of the Bucket definition allowing to specify fileSystemUser. - */ - interface WithFileSystemUser { - /** - * Specifies the fileSystemUser property: File System user having access to volume data. For Unix, this is - * the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user - * details are mutually exclusive, meaning one or other must be supplied, but not both.. - * - * @param fileSystemUser File System user having access to volume data. For Unix, this is the user's uid and - * gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * @return the next definition stage. - */ - WithCreate withFileSystemUser(FileSystemUser fileSystemUser); - } - - /** - * The stage of the Bucket definition allowing to specify server. - */ - interface WithServer { - /** - * Specifies the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @param server Properties of the server managing the lifecycle of volume buckets. - * @return the next definition stage. - */ - WithCreate withServer(BucketServerProperties server); - } - - /** - * The stage of the Bucket definition allowing to specify permissions. - */ - interface WithPermissions { - /** - * Specifies the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite. The - * default is ReadOnly if no value is provided during bucket creation.. - * - * @param permissions Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is - * ReadOnly if no value is provided during bucket creation. - * @return the next definition stage. - */ - WithCreate withPermissions(BucketPermissions permissions); - } - } - - /** - * Begins update for the Bucket resource. - * - * @return the stage of resource update. - */ - Bucket.Update update(); - - /** - * The template for Bucket update. - */ - interface Update extends UpdateStages.WithPath, UpdateStages.WithFileSystemUser, UpdateStages.WithServer, - UpdateStages.WithPermissions { - /** - * Executes the update request. - * - * @return the updated resource. - */ - Bucket apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - Bucket apply(Context context); - } - - /** - * The Bucket update stages. - */ - interface UpdateStages { - /** - * The stage of the Bucket update allowing to specify path. - */ - interface WithPath { - /** - * Specifies the path property: The volume path mounted inside the bucket.. - * - * @param path The volume path mounted inside the bucket. - * @return the next definition stage. - */ - Update withPath(String path); - } - - /** - * The stage of the Bucket update allowing to specify fileSystemUser. - */ - interface WithFileSystemUser { - /** - * Specifies the fileSystemUser property: File System user having access to volume data. For Unix, this is - * the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user - * details are mutually exclusive, meaning one or other must be supplied, but not both.. - * - * @param fileSystemUser File System user having access to volume data. For Unix, this is the user's uid and - * gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * @return the next definition stage. - */ - Update withFileSystemUser(FileSystemUser fileSystemUser); - } - - /** - * The stage of the Bucket update allowing to specify server. - */ - interface WithServer { - /** - * Specifies the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @param server Properties of the server managing the lifecycle of volume buckets. - * @return the next definition stage. - */ - Update withServer(BucketServerPatchProperties server); - } - - /** - * The stage of the Bucket update allowing to specify permissions. - */ - interface WithPermissions { - /** - * Specifies the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite.. - * - * @param permissions Access permissions for the bucket. Either ReadOnly or ReadWrite. - * @return the next definition stage. - */ - Update withPermissions(BucketPatchPermissions permissions); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - Bucket refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - Bucket refresh(Context context); - - /** - * Generate bucket access credentials - * - * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date - * and time of key pair (in UTC). - * - * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response}. - */ - Response generateCredentialsWithResponse(BucketCredentialsExpiry body, Context context); - - /** - * Generate bucket access credentials - * - * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date - * and time of key pair (in UTC). - * - * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair. - */ - BucketGenerateCredentials generateCredentials(BucketCredentialsExpiry body); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.java deleted file mode 100644 index 88e56fa0d68b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The bucket's Access and Secret key pair Expiry Time expressed as the number of days from now. - */ -@Fluent -public final class BucketCredentialsExpiry implements JsonSerializable { - /* - * The number of days from now until the newly generated Access and Secret key pair will expire. - */ - private Integer keyPairExpiryDays; - - /** - * Creates an instance of BucketCredentialsExpiry class. - */ - public BucketCredentialsExpiry() { - } - - /** - * Get the keyPairExpiryDays property: The number of days from now until the newly generated Access and Secret key - * pair will expire. - * - * @return the keyPairExpiryDays value. - */ - public Integer keyPairExpiryDays() { - return this.keyPairExpiryDays; - } - - /** - * Set the keyPairExpiryDays property: The number of days from now until the newly generated Access and Secret key - * pair will expire. - * - * @param keyPairExpiryDays the keyPairExpiryDays value to set. - * @return the BucketCredentialsExpiry object itself. - */ - public BucketCredentialsExpiry withKeyPairExpiryDays(Integer keyPairExpiryDays) { - this.keyPairExpiryDays = keyPairExpiryDays; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("keyPairExpiryDays", this.keyPairExpiryDays); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of BucketCredentialsExpiry from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of BucketCredentialsExpiry 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 BucketCredentialsExpiry. - */ - public static BucketCredentialsExpiry fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - BucketCredentialsExpiry deserializedBucketCredentialsExpiry = new BucketCredentialsExpiry(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("keyPairExpiryDays".equals(fieldName)) { - deserializedBucketCredentialsExpiry.keyPairExpiryDays = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedBucketCredentialsExpiry; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.java deleted file mode 100644 index 6709ee4b86c2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.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.models; - -import com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner; -import java.time.OffsetDateTime; - -/** - * An immutable client-side representation of BucketGenerateCredentials. - */ -public interface BucketGenerateCredentials { - /** - * Gets the accessKey property: The Access Key that is required along with the Secret Key to access the bucket. - * - * @return the accessKey value. - */ - String accessKey(); - - /** - * Gets the secretKey property: The Secret Key that is required along with the Access Key to access the bucket. - * - * @return the secretKey value. - */ - String secretKey(); - - /** - * Gets the keyPairExpiry property: The bucket's Access and Secret key pair expiry date and time (in UTC). - * - * @return the keyPairExpiry value. - */ - OffsetDateTime keyPairExpiry(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner object. - * - * @return the inner object. - */ - BucketGenerateCredentialsInner innerModel(); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketList.java deleted file mode 100644 index c7c82d490b11..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketList.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.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.fluent.models.BucketInner; -import java.io.IOException; -import java.util.List; - -/** - * List of volume bucket resources. - */ -@Fluent -public final class BucketList implements JsonSerializable { - /* - * List of volume buckets - */ - private List value; - - /* - * URL to get the next set of results. - */ - private String nextLink; - - /** - * Creates an instance of BucketList class. - */ - public BucketList() { - } - - /** - * Get the value property: List of volume buckets. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of volume buckets. - * - * @param value the value value to set. - * @return the BucketList object itself. - */ - public BucketList 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 BucketList object itself. - */ - public BucketList 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 BucketList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of BucketList 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 BucketList. - */ - public static BucketList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - BucketList deserializedBucketList = new BucketList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> BucketInner.fromJson(reader1)); - deserializedBucketList.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedBucketList.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedBucketList; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java deleted file mode 100644 index 14aa5396c86b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java +++ /dev/null @@ -1,260 +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.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.BucketPatchProperties; -import java.io.IOException; - -/** - * Bucket resource. - */ -@Fluent -public final class BucketPatch extends ProxyResource { - /* - * Bucket properties - */ - private BucketPatchProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of BucketPatch class. - */ - public BucketPatch() { - } - - /** - * Get the innerProperties property: Bucket properties. - * - * @return the innerProperties value. - */ - private BucketPatchProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the path property: The volume path mounted inside the bucket. - * - * @return the path value. - */ - public String path() { - return this.innerProperties() == null ? null : this.innerProperties().path(); - } - - /** - * Set the path property: The volume path mounted inside the bucket. - * - * @param path the path value to set. - * @return the BucketPatch object itself. - */ - public BucketPatch withPath(String path) { - if (this.innerProperties() == null) { - this.innerProperties = new BucketPatchProperties(); - } - this.innerProperties().withPath(path); - return this; - } - - /** - * Get the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid - * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * - * @return the fileSystemUser value. - */ - public FileSystemUser fileSystemUser() { - return this.innerProperties() == null ? null : this.innerProperties().fileSystemUser(); - } - - /** - * Set the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid - * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually - * exclusive, meaning one or other must be supplied, but not both. - * - * @param fileSystemUser the fileSystemUser value to set. - * @return the BucketPatch object itself. - */ - public BucketPatch withFileSystemUser(FileSystemUser fileSystemUser) { - if (this.innerProperties() == null) { - this.innerProperties = new BucketPatchProperties(); - } - this.innerProperties().withFileSystemUser(fileSystemUser); - return this; - } - - /** - * Get the provisioningState property: Provisioning state of the resource. - * - * @return the provisioningState value. - */ - public NetAppProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @return the server value. - */ - public BucketServerPatchProperties server() { - return this.innerProperties() == null ? null : this.innerProperties().server(); - } - - /** - * Set the server property: Properties of the server managing the lifecycle of volume buckets. - * - * @param server the server value to set. - * @return the BucketPatch object itself. - */ - public BucketPatch withServer(BucketServerPatchProperties server) { - if (this.innerProperties() == null) { - this.innerProperties = new BucketPatchProperties(); - } - this.innerProperties().withServer(server); - return this; - } - - /** - * Get the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite. - * - * @return the permissions value. - */ - public BucketPatchPermissions permissions() { - return this.innerProperties() == null ? null : this.innerProperties().permissions(); - } - - /** - * Set the permissions property: Access permissions for the bucket. Either ReadOnly or ReadWrite. - * - * @param permissions the permissions value to set. - * @return the BucketPatch object itself. - */ - public BucketPatch withPermissions(BucketPatchPermissions permissions) { - if (this.innerProperties() == null) { - this.innerProperties = new BucketPatchProperties(); - } - this.innerProperties().withPermissions(permissions); - 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 BucketPatch from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of BucketPatch if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the BucketPatch. - */ - public static BucketPatch fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - BucketPatch deserializedBucketPatch = new BucketPatch(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedBucketPatch.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedBucketPatch.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedBucketPatch.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedBucketPatch.innerProperties = BucketPatchProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedBucketPatch.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedBucketPatch; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPatchPermissions.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPatchPermissions.java deleted file mode 100644 index 0b7038c7ebb2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPatchPermissions.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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Bucket Permissions - * - * Access permissions for the bucket. Either ReadOnly or ReadWrite. - */ -public final class BucketPatchPermissions extends ExpandableStringEnum { - /** - * Static value ReadOnly for BucketPatchPermissions. - */ - public static final BucketPatchPermissions READ_ONLY = fromString("ReadOnly"); - - /** - * Static value ReadWrite for BucketPatchPermissions. - */ - public static final BucketPatchPermissions READ_WRITE = fromString("ReadWrite"); - - /** - * Creates a new instance of BucketPatchPermissions value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public BucketPatchPermissions() { - } - - /** - * Creates or finds a BucketPatchPermissions from its string representation. - * - * @param name a name to look for. - * @return the corresponding BucketPatchPermissions. - */ - public static BucketPatchPermissions fromString(String name) { - return fromString(name, BucketPatchPermissions.class); - } - - /** - * Gets known BucketPatchPermissions values. - * - * @return known BucketPatchPermissions values. - */ - public static Collection values() { - return values(BucketPatchPermissions.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPermissions.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPermissions.java deleted file mode 100644 index 6ce95609b2c4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPermissions.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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Bucket Permissions - * - * Access permissions for the bucket. Either ReadOnly or ReadWrite. The default is ReadOnly if no value is provided - * during bucket creation. - */ -public final class BucketPermissions extends ExpandableStringEnum { - /** - * Static value ReadOnly for BucketPermissions. - */ - public static final BucketPermissions READ_ONLY = fromString("ReadOnly"); - - /** - * Static value ReadWrite for BucketPermissions. - */ - public static final BucketPermissions READ_WRITE = fromString("ReadWrite"); - - /** - * Creates a new instance of BucketPermissions value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public BucketPermissions() { - } - - /** - * Creates or finds a BucketPermissions from its string representation. - * - * @param name a name to look for. - * @return the corresponding BucketPermissions. - */ - public static BucketPermissions fromString(String name) { - return fromString(name, BucketPermissions.class); - } - - /** - * Gets known BucketPermissions values. - * - * @return known BucketPermissions values. - */ - public static Collection values() { - return values(BucketPermissions.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java deleted file mode 100644 index fb2ac45421c2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java +++ /dev/null @@ -1,128 +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; - -/** - * Properties of the server managing the lifecycle of volume buckets. - */ -@Fluent -public final class BucketServerPatchProperties implements JsonSerializable { - /* - * The host part of the bucket URL, resolving to the bucket IP address and allowed by the server certificate. - */ - private String fqdn; - - /* - * A base64-encoded PEM file, which includes both the bucket server's certificate and private key. It is used to - * authenticate the user and allows access to volume data in a read-only manner. - */ - private String certificateObject; - - /** - * Creates an instance of BucketServerPatchProperties class. - */ - public BucketServerPatchProperties() { - } - - /** - * Get the fqdn property: The host part of the bucket URL, resolving to the bucket IP address and allowed by the - * server certificate. - * - * @return the fqdn value. - */ - public String fqdn() { - return this.fqdn; - } - - /** - * Set the fqdn property: The host part of the bucket URL, resolving to the bucket IP address and allowed by the - * server certificate. - * - * @param fqdn the fqdn value to set. - * @return the BucketServerPatchProperties object itself. - */ - public BucketServerPatchProperties withFqdn(String fqdn) { - this.fqdn = fqdn; - return this; - } - - /** - * Get the certificateObject property: A base64-encoded PEM file, which includes both the bucket server's - * certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only - * manner. - * - * @return the certificateObject value. - */ - public String certificateObject() { - return this.certificateObject; - } - - /** - * Set the certificateObject property: A base64-encoded PEM file, which includes both the bucket server's - * certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only - * manner. - * - * @param certificateObject the certificateObject value to set. - * @return the BucketServerPatchProperties object itself. - */ - public BucketServerPatchProperties withCertificateObject(String certificateObject) { - this.certificateObject = certificateObject; - 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("fqdn", this.fqdn); - jsonWriter.writeStringField("certificateObject", this.certificateObject); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of BucketServerPatchProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of BucketServerPatchProperties 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 BucketServerPatchProperties. - */ - public static BucketServerPatchProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - BucketServerPatchProperties deserializedBucketServerPatchProperties = new BucketServerPatchProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("fqdn".equals(fieldName)) { - deserializedBucketServerPatchProperties.fqdn = reader.getString(); - } else if ("certificateObject".equals(fieldName)) { - deserializedBucketServerPatchProperties.certificateObject = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedBucketServerPatchProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java deleted file mode 100644 index 79299bb8a4ea..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java +++ /dev/null @@ -1,180 +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.core.util.CoreUtils; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; - -/** - * Properties of the server managing the lifecycle of volume buckets. - */ -@Fluent -public final class BucketServerProperties implements JsonSerializable { - /* - * The host part of the bucket URL, resolving to the bucket IP address and allowed by the server certificate. - */ - private String fqdn; - - /* - * Certificate Common Name taken from the certificate installed on the bucket server - */ - private String certificateCommonName; - - /* - * The bucket server's certificate expiry date. - */ - private OffsetDateTime certificateExpiryDate; - - /* - * The bucket server's IPv4 address - */ - private String ipAddress; - - /* - * A base64-encoded PEM file, which includes both the bucket server's certificate and private key. It is used to - * authenticate the user and allows access to volume data in a read-only manner. - */ - private String certificateObject; - - /** - * Creates an instance of BucketServerProperties class. - */ - public BucketServerProperties() { - } - - /** - * Get the fqdn property: The host part of the bucket URL, resolving to the bucket IP address and allowed by the - * server certificate. - * - * @return the fqdn value. - */ - public String fqdn() { - return this.fqdn; - } - - /** - * Set the fqdn property: The host part of the bucket URL, resolving to the bucket IP address and allowed by the - * server certificate. - * - * @param fqdn the fqdn value to set. - * @return the BucketServerProperties object itself. - */ - public BucketServerProperties withFqdn(String fqdn) { - this.fqdn = fqdn; - return this; - } - - /** - * Get the certificateCommonName property: Certificate Common Name taken from the certificate installed on the - * bucket server. - * - * @return the certificateCommonName value. - */ - public String certificateCommonName() { - return this.certificateCommonName; - } - - /** - * Get the certificateExpiryDate property: The bucket server's certificate expiry date. - * - * @return the certificateExpiryDate value. - */ - public OffsetDateTime certificateExpiryDate() { - return this.certificateExpiryDate; - } - - /** - * Get the ipAddress property: The bucket server's IPv4 address. - * - * @return the ipAddress value. - */ - public String ipAddress() { - return this.ipAddress; - } - - /** - * Get the certificateObject property: A base64-encoded PEM file, which includes both the bucket server's - * certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only - * manner. - * - * @return the certificateObject value. - */ - public String certificateObject() { - return this.certificateObject; - } - - /** - * Set the certificateObject property: A base64-encoded PEM file, which includes both the bucket server's - * certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only - * manner. - * - * @param certificateObject the certificateObject value to set. - * @return the BucketServerProperties object itself. - */ - public BucketServerProperties withCertificateObject(String certificateObject) { - this.certificateObject = certificateObject; - 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("fqdn", this.fqdn); - jsonWriter.writeStringField("certificateObject", this.certificateObject); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of BucketServerProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of BucketServerProperties 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 BucketServerProperties. - */ - public static BucketServerProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - BucketServerProperties deserializedBucketServerProperties = new BucketServerProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("fqdn".equals(fieldName)) { - deserializedBucketServerProperties.fqdn = reader.getString(); - } else if ("certificateCommonName".equals(fieldName)) { - deserializedBucketServerProperties.certificateCommonName = reader.getString(); - } else if ("certificateExpiryDate".equals(fieldName)) { - deserializedBucketServerProperties.certificateExpiryDate = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("ipAddress".equals(fieldName)) { - deserializedBucketServerProperties.ipAddress = reader.getString(); - } else if ("certificateObject".equals(fieldName)) { - deserializedBucketServerProperties.certificateObject = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedBucketServerProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java deleted file mode 100644 index 2d41eb260979..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java +++ /dev/null @@ -1,225 +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.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of Buckets. - */ -public interface Buckets { - /** - * Describes all buckets belonging to a volume - * - * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 list of volume bucket resources as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Describes all buckets belonging to a volume - * - * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to - * the volume data contained in those buckets. - * - * @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 list of volume bucket resources as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context); - - /** - * Describe a volume's bucket - * - * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, - * connect to the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume's bucket along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, - String bucketName, Context context); - - /** - * Describe a volume's bucket - * - * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, - * connect to the volume data contained in those buckets. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume's bucket. - */ - Bucket get(String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName); - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName); - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @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 bucketName The name of the bucket. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName, - Context context); - - /** - * Generate bucket access credentials - * - * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date - * and time of key pair (in UTC). - * - * @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 bucketName The name of the bucket. - * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response}. - */ - Response generateCredentialsWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body, Context context); - - /** - * Generate bucket access credentials - * - * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date - * and time of key pair (in UTC). - * - * @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 bucketName The name of the bucket. - * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair. - */ - BucketGenerateCredentials generateCredentials(String resourceGroupName, String accountName, String poolName, - String volumeName, String bucketName, BucketCredentialsExpiry body); - - /** - * Describe a volume's bucket - * - * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, - * connect to the volume data contained in those buckets. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume's bucket along with {@link Response}. - */ - Bucket getById(String id); - - /** - * Describe a volume's bucket - * - * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, - * connect to the volume data contained in those buckets. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of the specified volume's bucket along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Delete a volume's bucket - * - * Delete a volume's bucket. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new Bucket resource. - * - * @param name resource name. - * @return the first stage of the new Bucket definition. - */ - Bucket.DefinitionStages.Blank define(String name); -} 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..cb345a4eb495 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -50,7 +50,10 @@ public interface CapacityPool { Map tags(); /** - * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * Gets the etag property: "If etag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields."). * * @return the etag value. */ @@ -112,7 +115,7 @@ public interface CapacityPool { * * @return the customThroughputMibps value. */ - Float customThroughputMibps(); + Integer customThroughputMibps(); /** * Gets the qosType property: The qos type of the pool. @@ -292,7 +295,7 @@ interface WithCustomThroughputMibps { * be accepted as input only for manual qosType pool with Flexible service level. * @return the next definition stage. */ - WithCreate withCustomThroughputMibps(Float customThroughputMibps); + WithCreate withCustomThroughputMibps(Integer customThroughputMibps); } /** @@ -374,7 +377,7 @@ interface UpdateStages { */ interface WithTags { /** - * Specifies the tags property: Resource tags.. + * Specifies the tags property: Resource tags. * * @param tags Resource tags. * @return the next definition stage. @@ -435,7 +438,7 @@ interface WithCustomThroughputMibps { * be accepted as input only for manual qosType pool with Flexible service level. * @return the next definition stage. */ - Update withCustomThroughputMibps(Float customThroughputMibps); + Update withCustomThroughputMibps(Integer 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..fee779b57f66 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties; @@ -17,26 +17,36 @@ * Capacity pool patch resource. */ @Fluent -public final class CapacityPoolPatch extends Resource { +public final class CapacityPoolPatch implements JsonSerializable { /* - * Capacity pool properties + * Resource location */ - private PoolPatchProperties innerProperties; + private String location; /* - * The type of the resource. + * Resource Id */ - private String type; + private String id; /* - * The name of the resource. + * Resource name */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource type */ - private String id; + private String type; + + /* + * Resource tags + */ + private Map tags; + + /* + * Capacity pool properties + */ + private PoolPatchProperties innerProperties; /** * Creates an instance of CapacityPoolPatch class. @@ -45,62 +55,81 @@ public CapacityPoolPatch() { } /** - * Get the innerProperties property: Capacity pool properties. + * Get the location property: Resource location. * - * @return the innerProperties value. + * @return the location value. */ - private PoolPatchProperties innerProperties() { - return this.innerProperties; + public String location() { + return this.location; } /** - * Get the type property: The type of the resource. + * Set the location property: Resource location. * - * @return the type value. + * @param location the location value to set. + * @return the CapacityPoolPatch object itself. */ - @Override - public String type() { - return this.type; + public CapacityPoolPatch withLocation(String location) { + this.location = location; + return this; } /** - * Get the name property: The name of the resource. + * Get the id property: Resource Id. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Get the name property: Resource name. * * @return the name value. */ - @Override public String name() { return this.name; } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: Resource type. * - * @return the id value. + * @return the type value. */ - @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** - * {@inheritDoc} + * Get the tags property: Resource tags. + * + * @return the tags value. */ - @Override - public CapacityPoolPatch withLocation(String location) { - super.withLocation(location); - return this; + public Map tags() { + return this.tags; } /** - * {@inheritDoc} + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the CapacityPoolPatch object itself. */ - @Override public CapacityPoolPatch withTags(Map tags) { - super.withTags(tags); + this.tags = tags; return this; } + /** + * Get the innerProperties property: Capacity pool properties. + * + * @return the innerProperties value. + */ + private PoolPatchProperties innerProperties() { + return this.innerProperties; + } + /** * Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be * multiple of 1099511627776). @@ -178,7 +207,7 @@ public CapacityPoolPatch withCoolAccess(Boolean coolAccess) { * * @return the customThroughputMibps value. */ - public Float customThroughputMibps() { + public Integer customThroughputMibps() { return this.innerProperties() == null ? null : this.innerProperties().customThroughputMibps(); } @@ -189,7 +218,7 @@ public Float customThroughputMibps() { * @param customThroughputMibps the customThroughputMibps value to set. * @return the CapacityPoolPatch object itself. */ - public CapacityPoolPatch withCustomThroughputMibps(Float customThroughputMibps) { + public CapacityPoolPatch withCustomThroughputMibps(Integer customThroughputMibps) { if (this.innerProperties() == null) { this.innerProperties = new PoolPatchProperties(); } @@ -214,8 +243,8 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("properties", this.innerProperties); return jsonWriter.writeEndObject(); } @@ -226,7 +255,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of CapacityPoolPatch if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the CapacityPoolPatch. */ public static CapacityPoolPatch fromJson(JsonReader jsonReader) throws IOException { @@ -236,17 +264,17 @@ public static CapacityPoolPatch fromJson(JsonReader jsonReader) throws IOExcepti String fieldName = reader.getFieldName(); reader.nextToken(); - if ("id".equals(fieldName)) { + if ("location".equals(fieldName)) { + deserializedCapacityPoolPatch.location = reader.getString(); + } else if ("id".equals(fieldName)) { deserializedCapacityPoolPatch.id = reader.getString(); } else if ("name".equals(fieldName)) { deserializedCapacityPoolPatch.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedCapacityPoolPatch.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedCapacityPoolPatch.withLocation(reader.getString()); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedCapacityPoolPatch.withTags(tags); + deserializedCapacityPoolPatch.tags = tags; } else if ("properties".equals(fieldName)) { deserializedCapacityPoolPatch.innerProperties = PoolPatchProperties.fromJson(reader); } else { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChangeKeyVault.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChangeKeyVault.java index 693ecc841a7d..ae0778e5570a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChangeKeyVault.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChangeKeyVault.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java index 67dd907abb9a..5167187c1374 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java index 41084ce0c743..723f97cc6c95 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -35,6 +35,18 @@ public final class CheckNameResourceTypes extends ExpandableStringEnum { - /* - * The CIFS user's username - */ - private String username; - - /** - * Creates an instance of CifsUser class. - */ - public CifsUser() { - } - - /** - * Get the username property: The CIFS user's username. - * - * @return the username value. - */ - public String username() { - return this.username; - } - - /** - * Set the username property: The CIFS user's username. - * - * @param username the username value to set. - * @return the CifsUser object itself. - */ - public CifsUser withUsername(String username) { - this.username = username; - 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("username", this.username); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CifsUser from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CifsUser 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 CifsUser. - */ - public static CifsUser fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CifsUser deserializedCifsUser = new CifsUser(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("username".equals(fieldName)) { - deserializedCifsUser.username = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedCifsUser; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java index 278519b23813..9e892320754a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java index 0834ef66df54..fd47a9e600b6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; 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 index 6dede55008df..4b5ba804ef66 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java deleted file mode 100644 index 3c623824d7cf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java +++ /dev/null @@ -1,60 +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; - -/** - * The bucket credentials status. There states: - * - * "NoCredentialsSet": Access and Secret key pair have not been generated. - * "CredentialsExpired": Access and Secret key pair have expired. - * "Active": The certificate has been installed and credentials are unexpired. - */ -public final class CredentialsStatus extends ExpandableStringEnum { - /** - * Static value NoCredentialsSet for CredentialsStatus. - */ - public static final CredentialsStatus NO_CREDENTIALS_SET = fromString("NoCredentialsSet"); - - /** - * Static value CredentialsExpired for CredentialsStatus. - */ - public static final CredentialsStatus CREDENTIALS_EXPIRED = fromString("CredentialsExpired"); - - /** - * Static value Active for CredentialsStatus. - */ - public static final CredentialsStatus ACTIVE = fromString("Active"); - - /** - * Creates a new instance of CredentialsStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public CredentialsStatus() { - } - - /** - * Creates or finds a CredentialsStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding CredentialsStatus. - */ - public static CredentialsStatus fromString(String name) { - return fromString(name, CredentialsStatus.class); - } - - /** - * Gets known CredentialsStatus values. - * - * @return known CredentialsStatus values. - */ - public static Collection values() { - return values(CredentialsStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java index e5f6673e518d..3f8135d9a510 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; 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 index fb747234bc48..61fd28517096 100644 --- 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 @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Destination replication properties. */ -@Fluent +@Immutable public final class DestinationReplication implements JsonSerializable { /* * The resource ID of the remote volume @@ -39,7 +39,7 @@ public final class DestinationReplication implements JsonSerializable { /* * Display name of dimension. @@ -29,7 +29,7 @@ public final class Dimension implements JsonSerializable { /** * Creates an instance of Dimension class. */ - public Dimension() { + private Dimension() { } /** @@ -41,17 +41,6 @@ public String name() { return this.name; } - /** - * Set the name property: Display name of dimension. - * - * @param name the name value to set. - * @return the Dimension object itself. - */ - public Dimension withName(String name) { - this.name = name; - return this; - } - /** * Get the displayName property: Display name of dimension. * @@ -61,17 +50,6 @@ public String displayName() { return this.displayName; } - /** - * Set the displayName property: Display name of dimension. - * - * @param displayName the displayName value to set. - * @return the Dimension object itself. - */ - public Dimension withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java index 38e2c3968f83..2dee9128a729 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,12 +12,12 @@ */ public final class EnableSubvolumes extends ExpandableStringEnum { /** - * Static value Enabled for EnableSubvolumes. + * subvolumes are enabled. */ public static final EnableSubvolumes ENABLED = fromString("Enabled"); /** - * Static value Disabled for EnableSubvolumes. + * subvolumes are not enabled. */ public static final EnableSubvolumes DISABLED = fromString("Disabled"); 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..b872686a54f9 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -28,7 +28,7 @@ public final class EncryptionIdentity implements JsonSerializable { /** - * Static value Microsoft.NetApp for EncryptionKeySource. + * Microsoft-managed key encryption. */ public static final EncryptionKeySource MICROSOFT_NET_APP = fromString("Microsoft.NetApp"); /** - * Static value Microsoft.KeyVault for EncryptionKeySource. + * Customer-managed key encryption. */ public static final EncryptionKeySource MICROSOFT_KEY_VAULT = fromString("Microsoft.KeyVault"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionTransitionRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionTransitionRequest.java index 239fffe806f6..e049a06799e9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionTransitionRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionTransitionRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java index 29506d52055e..491979ae353d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,19 +8,17 @@ import java.util.Collection; /** - * encryptionType - * * Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This * value can only be set when creating new pool. */ public final class EncryptionType extends ExpandableStringEnum { /** - * Static value Single for EncryptionType. + * EncryptionType Single, volumes will use single encryption at rest. */ public static final EncryptionType SINGLE = fromString("Single"); /** - * Static value Double for EncryptionType. + * EncryptionType Double, volumes will use double encryption at rest. */ public static final EncryptionType DOUBLE = fromString("Double"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java index 6306c4f72454..90dfd3c5922e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Exclude.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Exclude.java new file mode 100644 index 000000000000..59736fe54f5f --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Exclude.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * An option to filter out replications. 'None' returns all replications, 'Deleted' excludes deleted replications. + * Default is 'None'. + */ +public final class Exclude extends ExpandableStringEnum { + /** + * 'None' returns all replications. + */ + public static final Exclude NONE = fromString("None"); + + /** + * 'Deleted' excludes deleted replications. + */ + public static final Exclude DELETED = fromString("Deleted"); + + /** + * Creates a new instance of Exclude value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Exclude() { + } + + /** + * Creates or finds a Exclude from its string representation. + * + * @param name a name to look for. + * @return the corresponding Exclude. + */ + public static Exclude fromString(String name) { + return fromString(name, Exclude.class); + } + + /** + * Gets known Exclude values. + * + * @return known Exclude values. + */ + public static Collection values() { + return values(Exclude.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java index c47c26d6ceec..9ee3e24af5c2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExternalReplicationSetupStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExternalReplicationSetupStatus.java deleted file mode 100644 index 13dd3bab4fd4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExternalReplicationSetupStatus.java +++ /dev/null @@ -1,68 +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; - -/** - * Property that only applies to external replications. Provides a machine-readable value for the status of the external - * replication setup. - */ -public final class ExternalReplicationSetupStatus extends ExpandableStringEnum { - /** - * Static value ClusterPeerRequired for ExternalReplicationSetupStatus. - */ - public static final ExternalReplicationSetupStatus CLUSTER_PEER_REQUIRED = fromString("ClusterPeerRequired"); - - /** - * Static value ClusterPeerPending for ExternalReplicationSetupStatus. - */ - public static final ExternalReplicationSetupStatus CLUSTER_PEER_PENDING = fromString("ClusterPeerPending"); - - /** - * Static value VServerPeerRequired for ExternalReplicationSetupStatus. - */ - public static final ExternalReplicationSetupStatus VSERVER_PEER_REQUIRED = fromString("VServerPeerRequired"); - - /** - * Static value ReplicationCreateRequired for ExternalReplicationSetupStatus. - */ - public static final ExternalReplicationSetupStatus REPLICATION_CREATE_REQUIRED - = fromString("ReplicationCreateRequired"); - - /** - * Static value NoActionRequired for ExternalReplicationSetupStatus. - */ - public static final ExternalReplicationSetupStatus NO_ACTION_REQUIRED = fromString("NoActionRequired"); - - /** - * Creates a new instance of ExternalReplicationSetupStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ExternalReplicationSetupStatus() { - } - - /** - * Creates or finds a ExternalReplicationSetupStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding ExternalReplicationSetupStatus. - */ - public static ExternalReplicationSetupStatus fromString(String name) { - return fromString(name, ExternalReplicationSetupStatus.class); - } - - /** - * Gets known ExternalReplicationSetupStatus values. - * - * @return known ExternalReplicationSetupStatus values. - */ - public static Collection values() { - return values(ExternalReplicationSetupStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java index c1b0c39dbd62..0af0389961be 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,12 +13,12 @@ */ public final class FileAccessLogs extends ExpandableStringEnum { /** - * Static value Enabled for FileAccessLogs. + * fileAccessLogs are enabled. */ public static final FileAccessLogs ENABLED = fromString("Enabled"); /** - * Static value Disabled for FileAccessLogs. + * fileAccessLogs are not enabled. */ public static final FileAccessLogs DISABLED = fromString("Disabled"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java index 620709a7b9b1..9192e3b9c9c4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java deleted file mode 100644 index b5524b65a138..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java +++ /dev/null @@ -1,131 +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; - -/** - * File System User - * - * File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the - * user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be - * supplied, but not both. - */ -@Fluent -public final class FileSystemUser implements JsonSerializable { - /* - * The effective NFS User ID and Group ID when accessing the volume data. - */ - private NfsUser nfsUser; - - /* - * The effective CIFS username when accessing the volume data. - */ - private CifsUser cifsUser; - - /** - * Creates an instance of FileSystemUser class. - */ - public FileSystemUser() { - } - - /** - * Get the nfsUser property: The effective NFS User ID and Group ID when accessing the volume data. - * - * @return the nfsUser value. - */ - public NfsUser nfsUser() { - return this.nfsUser; - } - - /** - * Set the nfsUser property: The effective NFS User ID and Group ID when accessing the volume data. - * - * @param nfsUser the nfsUser value to set. - * @return the FileSystemUser object itself. - */ - public FileSystemUser withNfsUser(NfsUser nfsUser) { - this.nfsUser = nfsUser; - return this; - } - - /** - * Get the cifsUser property: The effective CIFS username when accessing the volume data. - * - * @return the cifsUser value. - */ - public CifsUser cifsUser() { - return this.cifsUser; - } - - /** - * Set the cifsUser property: The effective CIFS username when accessing the volume data. - * - * @param cifsUser the cifsUser value to set. - * @return the FileSystemUser object itself. - */ - public FileSystemUser withCifsUser(CifsUser cifsUser) { - this.cifsUser = cifsUser; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (nfsUser() != null) { - nfsUser().validate(); - } - if (cifsUser() != null) { - cifsUser().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("nfsUser", this.nfsUser); - jsonWriter.writeJsonField("cifsUser", this.cifsUser); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of FileSystemUser from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of FileSystemUser 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 FileSystemUser. - */ - public static FileSystemUser fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - FileSystemUser deserializedFileSystemUser = new FileSystemUser(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("nfsUser".equals(fieldName)) { - deserializedFileSystemUser.nfsUser = NfsUser.fromJson(reader); - } else if ("cifsUser".equals(fieldName)) { - deserializedFileSystemUser.cifsUser = CifsUser.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedFileSystemUser; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java index b5831bbe47af..93f0bd7eb13a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java index 319d56a2e28e..c9e570010fea 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetKeyVaultStatusResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetKeyVaultStatusResponse.java index afbe23aa8167..e5d6301b03ad 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetKeyVaultStatusResponse.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetKeyVaultStatusResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java index 1698ad73291d..afba866ba4a8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java index c4b18c16ab16..04667d0aa52d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java index 64098d923873..7c32b6bec0ee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,12 +12,12 @@ */ public final class KeySource extends ExpandableStringEnum { /** - * Static value Microsoft.NetApp for KeySource. + * Microsoft-managed key encryption. */ public static final KeySource MICROSOFT_NET_APP = fromString("Microsoft.NetApp"); /** - * Static value Microsoft.KeyVault for KeySource. + * Customer-managed key encryption. */ public static final KeySource MICROSOFT_KEY_VAULT = fromString("Microsoft.KeyVault"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPrivateEndpoint.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPrivateEndpoint.java index 4097c91c42f0..3ef7113b5901 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPrivateEndpoint.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPrivateEndpoint.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,8 +12,6 @@ import java.io.IOException; /** - * keyVaultPrivateEndpoint - * * 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. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java index 3320b7fad963..4ae5ef514a47 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java index 74730ce895e4..8f037ad55fbc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,27 +12,27 @@ */ public final class KeyVaultStatus extends ExpandableStringEnum { /** - * Static value Created for KeyVaultStatus. + * KeyVault connection created but not in use. */ public static final KeyVaultStatus CREATED = fromString("Created"); /** - * Static value InUse for KeyVaultStatus. + * KeyVault connection in use by SMB Volume. */ public static final KeyVaultStatus IN_USE = fromString("InUse"); /** - * Static value Deleted for KeyVaultStatus. + * KeyVault connection Deleted. */ public static final KeyVaultStatus DELETED = fromString("Deleted"); /** - * Static value Error for KeyVaultStatus. + * Error with the KeyVault connection. */ public static final KeyVaultStatus ERROR = fromString("Error"); /** - * Static value Updating for KeyVaultStatus. + * KeyVault connection Updating. */ public static final KeyVaultStatus UPDATING = fromString("Updating"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java deleted file mode 100644 index 9d83b80b7f02..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java +++ /dev/null @@ -1,213 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) 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; -import java.util.List; - -/** - * LDAP configuration. - */ -@Fluent -public final class LdapConfiguration implements JsonSerializable { - /* - * Name of the LDAP configuration domain - */ - private String domain; - - /* - * List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - */ - private List ldapServers; - - /* - * Specifies whether or not the LDAP traffic needs to be secured via TLS. - */ - private Boolean ldapOverTls; - - /* - * When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded ldap servers CA - * certificate. - */ - private String serverCACertificate; - - /* - * The CN host name used while generating the certificate, LDAP Over TLS requires the CN host name to create DNS - * host entry. - */ - private String certificateCNHost; - - /** - * Creates an instance of LdapConfiguration class. - */ - public LdapConfiguration() { - } - - /** - * Get the domain property: Name of the LDAP configuration domain. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Name of the LDAP configuration domain. - * - * @param domain the domain value to set. - * @return the LdapConfiguration object itself. - */ - public LdapConfiguration withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the ldapServers property: List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - * - * @return the ldapServers value. - */ - public List ldapServers() { - return this.ldapServers; - } - - /** - * Set the ldapServers property: List of LDAP server IP addresses (IPv4 only) for the LDAP domain. - * - * @param ldapServers the ldapServers value to set. - * @return the LdapConfiguration object itself. - */ - public LdapConfiguration withLdapServers(List ldapServers) { - this.ldapServers = ldapServers; - return this; - } - - /** - * Get the ldapOverTls property: Specifies whether or not the LDAP traffic needs to be secured via TLS. - * - * @return the ldapOverTls value. - */ - public Boolean ldapOverTls() { - return this.ldapOverTls; - } - - /** - * Set the ldapOverTls property: Specifies whether or not the LDAP traffic needs to be secured via TLS. - * - * @param ldapOverTls the ldapOverTls value to set. - * @return the LdapConfiguration object itself. - */ - public LdapConfiguration withLdapOverTls(Boolean ldapOverTls) { - this.ldapOverTls = ldapOverTls; - return this; - } - - /** - * Get the serverCACertificate property: When LDAP over SSL/TLS is enabled, the LDAP client is required to have - * base64 encoded ldap servers CA certificate. - * - * @return the serverCACertificate value. - */ - public String serverCACertificate() { - return this.serverCACertificate; - } - - /** - * Set the serverCACertificate property: When LDAP over SSL/TLS is enabled, the LDAP client is required to have - * base64 encoded ldap servers CA certificate. - * - * @param serverCACertificate the serverCACertificate value to set. - * @return the LdapConfiguration object itself. - */ - public LdapConfiguration withServerCACertificate(String serverCACertificate) { - this.serverCACertificate = serverCACertificate; - return this; - } - - /** - * Get the certificateCNHost property: The CN host name used while generating the certificate, LDAP Over TLS - * requires the CN host name to create DNS host entry. - * - * @return the certificateCNHost value. - */ - public String certificateCNHost() { - return this.certificateCNHost; - } - - /** - * Set the certificateCNHost property: The CN host name used while generating the certificate, LDAP Over TLS - * requires the CN host name to create DNS host entry. - * - * @param certificateCNHost the certificateCNHost value to set. - * @return the LdapConfiguration object itself. - */ - public LdapConfiguration withCertificateCNHost(String certificateCNHost) { - this.certificateCNHost = certificateCNHost; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("domain", this.domain); - jsonWriter.writeArrayField("ldapServers", this.ldapServers, (writer, element) -> writer.writeString(element)); - jsonWriter.writeBooleanField("ldapOverTLS", this.ldapOverTls); - jsonWriter.writeStringField("serverCACertificate", this.serverCACertificate); - jsonWriter.writeStringField("certificateCNHost", this.certificateCNHost); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of LdapConfiguration from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of LdapConfiguration if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the LdapConfiguration. - */ - public static LdapConfiguration fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - LdapConfiguration deserializedLdapConfiguration = new LdapConfiguration(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("domain".equals(fieldName)) { - deserializedLdapConfiguration.domain = reader.getString(); - } else if ("ldapServers".equals(fieldName)) { - List ldapServers = reader.readArray(reader1 -> reader1.getString()); - deserializedLdapConfiguration.ldapServers = ldapServers; - } else if ("ldapOverTLS".equals(fieldName)) { - deserializedLdapConfiguration.ldapOverTls = reader.getNullable(JsonReader::getBoolean); - } else if ("serverCACertificate".equals(fieldName)) { - deserializedLdapConfiguration.serverCACertificate = reader.getString(); - } else if ("certificateCNHost".equals(fieldName)) { - deserializedLdapConfiguration.certificateCNHost = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedLdapConfiguration; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java index 5029cf0919b5..1714e7ff65ba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.java deleted file mode 100644 index 05b5a0f91593..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * ldapServerType - * - * The type of the LDAP server. - */ -public final class LdapServerType extends ExpandableStringEnum { - /** - * Static value ActiveDirectory for LdapServerType. - */ - public static final LdapServerType ACTIVE_DIRECTORY = fromString("ActiveDirectory"); - - /** - * Static value OpenLDAP for LdapServerType. - */ - public static final LdapServerType OPEN_LDAP = fromString("OpenLDAP"); - - /** - * Creates a new instance of LdapServerType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public LdapServerType() { - } - - /** - * Creates or finds a LdapServerType from its string representation. - * - * @param name a name to look for. - * @return the corresponding LdapServerType. - */ - public static LdapServerType fromString(String name) { - return fromString(name, LdapServerType.class); - } - - /** - * Gets known LdapServerType values. - * - * @return known LdapServerType values. - */ - public static Collection values() { - return values(LdapServerType.class); - } -} 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 d98672a0505e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.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.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 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/ListReplicationsRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplicationsRequest.java new file mode 100644 index 000000000000..c885aea4c144 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplicationsRequest.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Body for the list replications endpoint. If supplied, the body will be used as a filter for example to exclude + * deleted replications. If omitted, the endpoint returns all replications. + */ +@Fluent +public final class ListReplicationsRequest implements JsonSerializable { + /* + * Exclude Replications filter. 'None' returns all replications, 'Deleted' excludes deleted replications. Default is + * 'None' + */ + private Exclude exclude; + + /** + * Creates an instance of ListReplicationsRequest class. + */ + public ListReplicationsRequest() { + } + + /** + * Get the exclude property: Exclude Replications filter. 'None' returns all replications, 'Deleted' excludes + * deleted replications. Default is 'None'. + * + * @return the exclude value. + */ + public Exclude exclude() { + return this.exclude; + } + + /** + * Set the exclude property: Exclude Replications filter. 'None' returns all replications, 'Deleted' excludes + * deleted replications. Default is 'None'. + * + * @param exclude the exclude value to set. + * @return the ListReplicationsRequest object itself. + */ + public ListReplicationsRequest withExclude(Exclude exclude) { + this.exclude = exclude; + 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("exclude", this.exclude == null ? null : this.exclude.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ListReplicationsRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ListReplicationsRequest 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 ListReplicationsRequest. + */ + public static ListReplicationsRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ListReplicationsRequest deserializedListReplicationsRequest = new ListReplicationsRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("exclude".equals(fieldName)) { + deserializedListReplicationsRequest.exclude = Exclude.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedListReplicationsRequest; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java index 1ec0dc420473..a7f0f67af476 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Log Definition of a single resource metric. */ -@Fluent +@Immutable public final class LogSpecification implements JsonSerializable { /* * Name of log specification. @@ -29,7 +29,7 @@ public final class LogSpecification implements JsonSerializable userAssignedIdentities; @@ -71,8 +68,7 @@ public UUID tenantId() { } /** - * Get the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are - * allowed). + * Get the type property: The type of managed identity assigned to this resource. * * @return the type value. */ @@ -81,8 +77,7 @@ public ManagedServiceIdentityType type() { } /** - * Set the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are - * allowed). + * Set the type property: The type of managed identity assigned to this resource. * * @param type the type value to set. * @return the ManagedServiceIdentity object itself. @@ -93,10 +88,7 @@ public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { } /** - * Get the userAssignedIdentities property: The set of user assigned identities associated with the resource. The - * userAssignedIdentities dictionary keys will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - * The dictionary values can be empty objects ({}) in requests. + * Get the userAssignedIdentities property: The identities assigned to this resource by the user. * * @return the userAssignedIdentities value. */ @@ -105,10 +97,7 @@ public Map userAssignedIdentities() { } /** - * Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The - * userAssignedIdentities dictionary keys will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - * The dictionary values can be empty objects ({}) in requests. + * Set the userAssignedIdentities property: The identities assigned to this resource by the user. * * @param userAssignedIdentities the userAssignedIdentities value to set. * @return the ManagedServiceIdentity object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java index 1717ea1a947a..9a3e16989673 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,22 +12,22 @@ */ public final class ManagedServiceIdentityType extends ExpandableStringEnum { /** - * Static value None for ManagedServiceIdentityType. + * No managed identity. */ public static final ManagedServiceIdentityType NONE = fromString("None"); /** - * Static value SystemAssigned for ManagedServiceIdentityType. + * System assigned managed identity. */ public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); /** - * Static value UserAssigned for ManagedServiceIdentityType. + * User assigned managed identity. */ public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); /** - * Static value SystemAssigned,UserAssigned for ManagedServiceIdentityType. + * System and user assigned managed identity. */ public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = fromString("SystemAssigned,UserAssigned"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java index 24e9a6047b56..090aa3a16a9f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java index d9d36042d6d5..a2b6d7cb186f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Metric specification of operation. */ -@Fluent +@Immutable public final class MetricSpecification implements JsonSerializable { /* * Name of metric specification. @@ -100,7 +100,7 @@ public final class MetricSpecification implements JsonSerializable supportedAggregationTypes() { return this.supportedAggregationTypes; } - /** - * Set the supportedAggregationTypes property: Support metric aggregation type. - * - * @param supportedAggregationTypes the supportedAggregationTypes value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withSupportedAggregationTypes(List supportedAggregationTypes) { - this.supportedAggregationTypes = supportedAggregationTypes; - return this; - } - /** * Get the supportedTimeGrainTypes property: The supported time grain types for the metrics. * @@ -212,17 +157,6 @@ public List supportedTimeGrainTypes() { return this.supportedTimeGrainTypes; } - /** - * Set the supportedTimeGrainTypes property: The supported time grain types for the metrics. - * - * @param supportedTimeGrainTypes the supportedTimeGrainTypes value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withSupportedTimeGrainTypes(List supportedTimeGrainTypes) { - this.supportedTimeGrainTypes = supportedTimeGrainTypes; - return this; - } - /** * Get the internalMetricName property: The internal metric name. * @@ -232,17 +166,6 @@ public String internalMetricName() { return this.internalMetricName; } - /** - * Set the internalMetricName property: The internal metric name. - * - * @param internalMetricName the internalMetricName value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withInternalMetricName(String internalMetricName) { - this.internalMetricName = internalMetricName; - return this; - } - /** * Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts. * @@ -252,17 +175,6 @@ public Boolean enableRegionalMdmAccount() { return this.enableRegionalMdmAccount; } - /** - * Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts. - * - * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount) { - this.enableRegionalMdmAccount = enableRegionalMdmAccount; - return this; - } - /** * Get the sourceMdmAccount property: The source MDM account. * @@ -272,17 +184,6 @@ public String sourceMdmAccount() { return this.sourceMdmAccount; } - /** - * Set the sourceMdmAccount property: The source MDM account. - * - * @param sourceMdmAccount the sourceMdmAccount value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withSourceMdmAccount(String sourceMdmAccount) { - this.sourceMdmAccount = sourceMdmAccount; - return this; - } - /** * Get the sourceMdmNamespace property: The source MDM namespace. * @@ -292,17 +193,6 @@ public String sourceMdmNamespace() { return this.sourceMdmNamespace; } - /** - * Set the sourceMdmNamespace property: The source MDM namespace. - * - * @param sourceMdmNamespace the sourceMdmNamespace value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) { - this.sourceMdmNamespace = sourceMdmNamespace; - return this; - } - /** * Get the dimensions property: Dimensions of blobs, including blob type and access tier. * @@ -312,17 +202,6 @@ public List dimensions() { return this.dimensions; } - /** - * Set the dimensions property: Dimensions of blobs, including blob type and access tier. - * - * @param dimensions the dimensions value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withDimensions(List dimensions) { - this.dimensions = dimensions; - return this; - } - /** * Get the aggregationType property: Aggregation type could be Average. * @@ -332,17 +211,6 @@ public String aggregationType() { return this.aggregationType; } - /** - * Set the aggregationType property: Aggregation type could be Average. - * - * @param aggregationType the aggregationType value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withAggregationType(String aggregationType) { - this.aggregationType = aggregationType; - return this; - } - /** * Get the fillGapWithZero property: The property to decide fill gap with zero or not. * @@ -352,17 +220,6 @@ public Boolean fillGapWithZero() { return this.fillGapWithZero; } - /** - * Set the fillGapWithZero property: The property to decide fill gap with zero or not. - * - * @param fillGapWithZero the fillGapWithZero value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) { - this.fillGapWithZero = fillGapWithZero; - return this; - } - /** * Get the category property: The category this metric specification belong to, could be Capacity. * @@ -372,17 +229,6 @@ public String category() { return this.category; } - /** - * Set the category property: The category this metric specification belong to, could be Capacity. - * - * @param category the category value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withCategory(String category) { - this.category = category; - return this; - } - /** * Get the resourceIdDimensionNameOverride property: Account Resource Id. * @@ -392,17 +238,6 @@ public String resourceIdDimensionNameOverride() { return this.resourceIdDimensionNameOverride; } - /** - * Set the resourceIdDimensionNameOverride property: Account Resource Id. - * - * @param resourceIdDimensionNameOverride the resourceIdDimensionNameOverride value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride) { - this.resourceIdDimensionNameOverride = resourceIdDimensionNameOverride; - return this; - } - /** * Get the isInternal property: Whether the metric is internal. * @@ -412,17 +247,6 @@ public Boolean isInternal() { return this.isInternal; } - /** - * Set the isInternal property: Whether the metric is internal. - * - * @param isInternal the isInternal value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withIsInternal(Boolean isInternal) { - this.isInternal = isInternal; - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java index ded90d8976eb..598352cc5e45 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,9 +8,7 @@ import java.util.Collection; /** - * The mirror state property describes the current status of data replication for a resource. It provides insight into - * whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be - * initialized. + * The status of the replication. */ public final class MirrorState extends ExpandableStringEnum { /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java index 4ba806ed649e..67f9eed747ad 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java similarity index 82% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java index f82a252485a7..ee6c759837d8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.netapp.fluent.models; +package com.azure.resourcemanager.netapp.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -15,7 +15,7 @@ /** * Mount target properties. */ -@Fluent +@Immutable public final class MountTargetProperties implements JsonSerializable { /* * UUID v4 used to identify the MountTarget @@ -40,7 +40,7 @@ public final class MountTargetProperties implements JsonSerializable { /** - * Static value Disabled for MultiAdStatus. + * Account is MultiAD disabled, Means its a SharedAD or SingleAD account. */ public static final MultiAdStatus DISABLED = fromString("Disabled"); /** - * Static value Enabled for MultiAdStatus. + * Account is MultiAD enabled. */ public static final MultiAdStatus ENABLED = fromString("Enabled"); 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 92a4dfe306b4..9f44d1a824dc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -51,14 +51,17 @@ public interface NetAppAccount { Map tags(); /** - * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * Gets the etag property: "If etag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields."). * * @return the etag value. */ String etag(); /** - * Gets the identity property: The identity used for the resource. + * Gets the identity property: The managed service identities assigned to this resource. * * @return the identity value. */ @@ -115,13 +118,6 @@ public interface NetAppAccount { */ MultiAdStatus multiAdStatus(); - /** - * Gets the ldapConfiguration property: LDAP Configuration for the account. - * - * @return the ldapConfiguration value. - */ - LdapConfiguration ldapConfiguration(); - /** * Gets the region of the resource. * @@ -205,9 +201,9 @@ interface WithResourceGroup { * The stage of the NetAppAccount definition which contains all the minimum required properties for the resource * to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, - DefinitionStages.WithActiveDirectories, DefinitionStages.WithEncryption, DefinitionStages.WithNfsV4IdDomain, - DefinitionStages.WithLdapConfiguration { + interface WithCreate + extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithActiveDirectories, + DefinitionStages.WithEncryption, DefinitionStages.WithNfsV4IdDomain { /** * Executes the create request. * @@ -242,9 +238,9 @@ interface WithTags { */ interface WithIdentity { /** - * Specifies the identity property: The identity used for the resource.. + * Specifies the identity property: The managed service identities assigned to this resource.. * - * @param identity The identity used for the resource. + * @param identity The managed service identities assigned to this resource. * @return the next definition stage. */ WithCreate withIdentity(ManagedServiceIdentity identity); @@ -290,19 +286,6 @@ interface WithNfsV4IdDomain { */ WithCreate withNfsV4IdDomain(String nfsV4IdDomain); } - - /** - * The stage of the NetAppAccount definition allowing to specify ldapConfiguration. - */ - interface WithLdapConfiguration { - /** - * Specifies the ldapConfiguration property: LDAP Configuration for the account.. - * - * @param ldapConfiguration LDAP Configuration for the account. - * @return the next definition stage. - */ - WithCreate withLdapConfiguration(LdapConfiguration ldapConfiguration); - } } /** @@ -316,7 +299,7 @@ interface WithLdapConfiguration { * The template for NetAppAccount update. */ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithActiveDirectories, - UpdateStages.WithEncryption, UpdateStages.WithNfsV4IdDomain, UpdateStages.WithLdapConfiguration { + UpdateStages.WithEncryption, UpdateStages.WithNfsV4IdDomain { /** * Executes the update request. * @@ -342,7 +325,7 @@ interface UpdateStages { */ interface WithTags { /** - * Specifies the tags property: Resource tags.. + * Specifies the tags property: Resource tags. * * @param tags Resource tags. * @return the next definition stage. @@ -403,19 +386,6 @@ interface WithNfsV4IdDomain { */ Update withNfsV4IdDomain(String nfsV4IdDomain); } - - /** - * The stage of the NetAppAccount update allowing to specify ldapConfiguration. - */ - interface WithLdapConfiguration { - /** - * Specifies the ldapConfiguration property: LDAP Configuration for the account.. - * - * @param ldapConfiguration LDAP Configuration for the account. - * @return the next definition stage. - */ - Update withLdapConfiguration(LdapConfiguration ldapConfiguration); - } } /** @@ -434,8 +404,6 @@ interface WithLdapConfiguration { NetAppAccount refresh(Context context); /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -445,8 +413,6 @@ interface WithLdapConfiguration { void renewCredentials(); /** - * Renew identity credentials - * * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * @@ -458,8 +424,6 @@ interface WithLdapConfiguration { void renewCredentials(Context context); /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -469,8 +433,6 @@ interface WithLdapConfiguration { void transitionToCmk(); /** - * Transition volumes encryption from PMK to CMK. - * * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key * Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. * @@ -483,21 +445,17 @@ interface WithLdapConfiguration { void transitionToCmk(EncryptionTransitionRequest body, Context context); /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. * * @throws com.azure.core.management.exception.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. + * @return the response. */ GetKeyVaultStatusResponse getChangeKeyVaultInformation(); /** - * Get information about how volumes under NetApp account are encrypted. - * * Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by * each encryption sibling set. Response from this endpoint can be modified and used as request body for POST * request. @@ -506,13 +464,11 @@ interface WithLdapConfiguration { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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. + * @return the response. */ GetKeyVaultStatusResponse getChangeKeyVaultInformation(Context context); /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * @@ -522,8 +478,6 @@ interface WithLdapConfiguration { void changeKeyVault(); /** - * Change Key Vault/Managed HSM that is used for encryption of volumes under NetApp account. - * * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key * Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. * 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 02f096ae13ff..4759d24a74b2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.fluent.models.AccountProperties; @@ -18,31 +18,41 @@ * NetApp account patch resource. */ @Fluent -public final class NetAppAccountPatch extends Resource { +public final class NetAppAccountPatch implements JsonSerializable { /* - * NetApp Account properties + * Resource location */ - private AccountProperties innerProperties; + private String location; /* - * The identity used for the resource. + * Resource Id */ - private ManagedServiceIdentity identity; + private String id; /* - * The type of the resource. + * Resource name + */ + private String name; + + /* + * Resource type */ private String type; /* - * The name of the resource. + * Resource tags */ - private String name; + private Map tags; /* - * Fully qualified resource Id for the resource. + * NetApp Account properties */ - private String id; + private AccountProperties innerProperties; + + /* + * The identity used for the resource. + */ + private ManagedServiceIdentity identity; /** * Creates an instance of NetAppAccountPatch class. @@ -51,79 +61,98 @@ public NetAppAccountPatch() { } /** - * Get the innerProperties property: NetApp Account properties. + * Get the location property: Resource location. * - * @return the innerProperties value. + * @return the location value. */ - private AccountProperties innerProperties() { - return this.innerProperties; + public String location() { + return this.location; } /** - * Get the identity property: The identity used for the resource. + * Set the location property: Resource location. * - * @return the identity value. + * @param location the location value to set. + * @return the NetAppAccountPatch object itself. */ - public ManagedServiceIdentity identity() { - return this.identity; + public NetAppAccountPatch withLocation(String location) { + this.location = location; + return this; } /** - * Set the identity property: The identity used for the resource. + * Get the id property: Resource Id. * - * @param identity the identity value to set. - * @return the NetAppAccountPatch object itself. + * @return the id value. */ - public NetAppAccountPatch withIdentity(ManagedServiceIdentity identity) { - this.identity = identity; - return this; + public String id() { + return this.id; } /** - * Get the type property: The type of the resource. + * Get the name property: Resource name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the type property: Resource type. * * @return the type value. */ - @Override public String type() { return this.type; } /** - * Get the name property: The name of the resource. + * Get the tags property: Resource tags. * - * @return the name value. + * @return the tags value. */ - @Override - public String name() { - return this.name; + public Map tags() { + return this.tags; } /** - * Get the id property: Fully qualified resource Id for the resource. + * Set the tags property: Resource tags. * - * @return the id value. + * @param tags the tags value to set. + * @return the NetAppAccountPatch object itself. */ - @Override - public String id() { - return this.id; + public NetAppAccountPatch withTags(Map tags) { + this.tags = tags; + return this; } /** - * {@inheritDoc} + * Get the innerProperties property: NetApp Account properties. + * + * @return the innerProperties value. */ - @Override - public NetAppAccountPatch withLocation(String location) { - super.withLocation(location); - return this; + private AccountProperties innerProperties() { + return this.innerProperties; } /** - * {@inheritDoc} + * Get the identity property: The identity used for the resource. + * + * @return the identity value. */ - @Override - public NetAppAccountPatch withTags(Map tags) { - super.withTags(tags); + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The identity used for the resource. + * + * @param identity the identity value to set. + * @return the NetAppAccountPatch object itself. + */ + public NetAppAccountPatch withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; return this; } @@ -226,29 +255,6 @@ public MultiAdStatus multiAdStatus() { return this.innerProperties() == null ? null : this.innerProperties().multiAdStatus(); } - /** - * Get the ldapConfiguration property: LDAP Configuration for the account. - * - * @return the ldapConfiguration value. - */ - public LdapConfiguration ldapConfiguration() { - return this.innerProperties() == null ? null : this.innerProperties().ldapConfiguration(); - } - - /** - * Set the ldapConfiguration property: LDAP Configuration for the account. - * - * @param ldapConfiguration the ldapConfiguration value to set. - * @return the NetAppAccountPatch object itself. - */ - public NetAppAccountPatch withLdapConfiguration(LdapConfiguration ldapConfiguration) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountProperties(); - } - this.innerProperties().withLdapConfiguration(ldapConfiguration); - return this; - } - /** * Validates the instance. * @@ -269,8 +275,8 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("properties", this.innerProperties); jsonWriter.writeJsonField("identity", this.identity); return jsonWriter.writeEndObject(); @@ -282,7 +288,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetAppAccountPatch if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetAppAccountPatch. */ public static NetAppAccountPatch fromJson(JsonReader jsonReader) throws IOException { @@ -292,17 +297,17 @@ public static NetAppAccountPatch fromJson(JsonReader jsonReader) throws IOExcept String fieldName = reader.getFieldName(); reader.nextToken(); - if ("id".equals(fieldName)) { + if ("location".equals(fieldName)) { + deserializedNetAppAccountPatch.location = reader.getString(); + } else if ("id".equals(fieldName)) { deserializedNetAppAccountPatch.id = reader.getString(); } else if ("name".equals(fieldName)) { deserializedNetAppAccountPatch.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedNetAppAccountPatch.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedNetAppAccountPatch.withLocation(reader.getString()); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedNetAppAccountPatch.withTags(tags); + deserializedNetAppAccountPatch.tags = tags; } else if ("properties".equals(fieldName)) { deserializedNetAppAccountPatch.innerProperties = AccountProperties.fromJson(reader); } else if ("identity".equals(fieldName)) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppProvisioningState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppProvisioningState.java deleted file mode 100644 index 16e82e7d8ba1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppProvisioningState.java +++ /dev/null @@ -1,81 +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; - -/** - * Provisioning state of the resource. - */ -public final class NetAppProvisioningState extends ExpandableStringEnum { - /** - * Static value Succeeded for NetAppProvisioningState. - */ - public static final NetAppProvisioningState SUCCEEDED = fromString("Succeeded"); - - /** - * Static value Failed for NetAppProvisioningState. - */ - public static final NetAppProvisioningState FAILED = fromString("Failed"); - - /** - * Static value Canceled for NetAppProvisioningState. - */ - public static final NetAppProvisioningState CANCELED = fromString("Canceled"); - - /** - * Static value Provisioning for NetAppProvisioningState. - */ - public static final NetAppProvisioningState PROVISIONING = fromString("Provisioning"); - - /** - * Static value Moving for NetAppProvisioningState. - */ - public static final NetAppProvisioningState MOVING = fromString("Moving"); - - /** - * Static value Updating for NetAppProvisioningState. - */ - public static final NetAppProvisioningState UPDATING = fromString("Updating"); - - /** - * Static value Deleting for NetAppProvisioningState. - */ - public static final NetAppProvisioningState DELETING = fromString("Deleting"); - - /** - * Static value Accepted for NetAppProvisioningState. - */ - public static final NetAppProvisioningState ACCEPTED = fromString("Accepted"); - - /** - * Creates a new instance of NetAppProvisioningState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public NetAppProvisioningState() { - } - - /** - * Creates or finds a NetAppProvisioningState from its string representation. - * - * @param name a name to look for. - * @return the corresponding NetAppProvisioningState. - */ - public static NetAppProvisioningState fromString(String name) { - return fromString(name, NetAppProvisioningState.class); - } - - /** - * Gets known NetAppProvisioningState values. - * - * @return known NetAppProvisioningState values. - */ - public static Collection values() { - return values(NetAppProvisioningState.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java index 18b63483f609..1be44d1facc0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,58 +13,50 @@ */ public interface NetAppResourceQuotaLimits { /** - * Get quota limits - * - * Get the default and current limits for quotas. + * Get the default and current quota limit. * * @param location The name of the Azure region. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. + * @return the default and current quota limit along with {@link Response}. */ - PagedIterable list(String location); + Response getWithResponse(String location, String quotaLimitName, Context context); /** - * Get quota limits - * - * Get the default and current limits for quotas. + * Get the default and current quota limit. * * @param location The name of the Azure region. - * @param context The context to associate with this operation. + * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. + * @return the default and current quota limit. */ - PagedIterable list(String location, Context context); + SubscriptionQuotaItem get(String location, String quotaLimitName); /** - * Get quota limits - * - * Get the default and current subscription quota limit. + * Get the default and current limits for quotas. * * @param location The name of the Azure region. - * @param quotaLimitName The name of the Quota Limit. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit along with {@link Response}. + * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ - Response getWithResponse(String location, String quotaLimitName, Context context); + PagedIterable list(String location); /** - * Get quota limits - * - * Get the default and current subscription quota limit. + * Get the default and current limits for quotas. * * @param location The name of the Azure region. - * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default and current subscription quota limit. + * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ - QuotaItem get(String location, String quotaLimitName); + PagedIterable list(String location, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java index e4b1e46d3fd1..ef2b8545b408 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,65 +13,57 @@ */ public interface NetAppResourceQuotaLimitsAccounts { /** - * Gets a list of quota limits for all quotas that are under account. - * - * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * Get the default, current and usages account quota limit. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of quota limits for all quotas that are under account as paginated response with - * {@link PagedIterable}. + * @return the default, current and usages account quota limit along with {@link Response}. */ - PagedIterable list(String resourceGroupName, String accountName); + Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName, + Context context); /** - * Gets a list of quota limits for all quotas that are under account. - * - * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * Get the default, current and usages account quota limit. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. + * @param quotaLimitName The name of the Quota Limit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of quota limits for all quotas that are under account as paginated response with - * {@link PagedIterable}. + * @return the default, current and usages account quota limit. */ - PagedIterable list(String resourceGroupName, String accountName, Context context); + SubscriptionQuotaItem get(String resourceGroupName, String accountName, String quotaLimitName); /** - * Gets the quota limits for the specific quota that is provided under the account. - * - * Get the default, current and usages account quota limit. + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param quotaLimitName The name of the Quota Limit. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default, current and usages account quota limit along with {@link Response}. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. */ - Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName, - Context context); + PagedIterable list(String resourceGroupName, String accountName); /** - * Gets the quota limits for the specific quota that is provided under the account. - * - * Get the default, current and usages account quota limit. + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the default, current and usages account quota limit. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. */ - QuotaItem get(String resourceGroupName, String accountName, String quotaLimitName); + PagedIterable list(String resourceGroupName, String accountName, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceRegionInfos.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceRegionInfos.java index b80138280bc2..48063ecbea05 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceRegionInfos.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceRegionInfos.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,56 +13,48 @@ */ public interface NetAppResourceRegionInfos { /** - * Describes region specific information. - * - * Provides region specific information. + * Provides storage to network proximity and logical zone mapping information. * * @param location The name of the Azure region. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of regionInfo resources as paginated response with {@link PagedIterable}. + * @return information regarding regionInfo Item along with {@link Response}. */ - PagedIterable list(String location); + Response getWithResponse(String location, Context context); /** - * Describes region specific information. - * - * Provides region specific information. + * Provides storage to network proximity and logical zone mapping information. * * @param location The name of the Azure region. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of regionInfo resources as paginated response with {@link PagedIterable}. + * @return information regarding regionInfo Item. */ - PagedIterable list(String location, Context context); + RegionInfoResource get(String location); /** - * Describes region specific information. - * - * Provides storage to network proximity and logical zone mapping information. + * Provides region specific information. * * @param location The name of the Azure region. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding regionInfo Item along with {@link Response}. + * @return list of regionInfo resources as paginated response with {@link PagedIterable}. */ - Response getWithResponse(String location, Context context); + PagedIterable list(String location); /** - * Describes region specific information. - * - * Provides storage to network proximity and logical zone mapping information. + * Provides region specific information. * * @param location The name of the Azure region. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding regionInfo Item. + * @return list of regionInfo resources as paginated response with {@link PagedIterable}. */ - RegionInfoResource get(String location); + PagedIterable list(String location, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java index c6b94eea66e4..dafe3c448a05 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -17,11 +17,13 @@ public interface NetAppResourceUsages { * * Get current subscription usages. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages as paginated response with {@link PagedIterable}. + * @return usages + * + * Get current subscription usages as paginated response with {@link PagedIterable}. */ PagedIterable list(String location); @@ -30,12 +32,14 @@ public interface NetAppResourceUsages { * * Get current subscription usages. * - * @param location The name of the Azure region. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usages as paginated response with {@link PagedIterable}. + * @return usages + * + * Get current subscription usages as paginated response with {@link PagedIterable}. */ PagedIterable list(String location, Context context); @@ -50,7 +54,9 @@ public interface NetAppResourceUsages { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usage of the specific type along with {@link Response}. + * @return specific type of usage + * + * Get current subscription usage of the specific type along with {@link Response}. */ Response getWithResponse(String location, String usageType, Context context); @@ -64,7 +70,9 @@ public interface NetAppResourceUsages { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return current subscription usage of the specific type. + * @return specific type of usage + * + * Get current subscription usage of the specific type. */ UsageResult get(String location, String usageType); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java index 8e6e04cb52f9..8c7aed8a91a2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -16,8 +16,8 @@ public interface NetAppResources { * * Check if a resource name is available. * - * @param location The name of the Azure region. - * @param body Name availability request. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -32,8 +32,8 @@ Response checkNameAvailabilityWithResponse(String loc * * Check if a resource name is available. * - * @param location The name of the Azure region. - * @param body Name availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -46,8 +46,8 @@ Response checkNameAvailabilityWithResponse(String loc * * Check if a file path is available. * - * @param location The name of the Azure region. - * @param body File path availability request. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -62,8 +62,8 @@ Response checkFilePathAvailabilityWithResponse(String * * Check if a file path is available. * - * @param location The name of the Azure region. - * @param body File path availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -76,8 +76,8 @@ Response checkFilePathAvailabilityWithResponse(String * * Check if a quota is available. * - * @param location The name of the Azure region. - * @param body Quota availability request. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -92,8 +92,8 @@ Response checkQuotaAvailabilityWithResponse(String lo * * Check if a quota is available. * - * @param location The name of the Azure region. - * @param body Quota availability request. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -106,7 +106,7 @@ Response checkQuotaAvailabilityWithResponse(String lo * * Provides storage to network proximity and logical zone mapping information. * - * @param location The name of the Azure region. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -120,7 +120,7 @@ Response checkQuotaAvailabilityWithResponse(String lo * * Provides storage to network proximity and logical zone mapping information. * - * @param location The name of the Azure region. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -133,13 +133,13 @@ Response checkQuotaAvailabilityWithResponse(String lo * * Get details of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Network sibling set to query. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified network sibling set along with {@link Response}. + * @return describes the contents of a network sibling set along with {@link Response}. */ Response queryNetworkSiblingSetWithResponse(String location, QueryNetworkSiblingSetRequest body, Context context); @@ -149,12 +149,12 @@ Response queryNetworkSiblingSetWithResponse(String location, * * Get details of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Network sibling set to query. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified network sibling set. + * @return describes the contents of a network sibling set. */ NetworkSiblingSet queryNetworkSiblingSet(String location, QueryNetworkSiblingSetRequest body); @@ -163,12 +163,12 @@ Response queryNetworkSiblingSetWithResponse(String location, * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network sibling set. + * @return the response. */ NetworkSiblingSet updateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body); @@ -177,13 +177,13 @@ Response queryNetworkSiblingSetWithResponse(String location, * * Update the network features of the specified network sibling set. * - * @param location The name of the Azure region. - * @param body Update for the specified network sibling set. + * @param location The location name. + * @param body The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network sibling set. + * @return the response. */ NetworkSiblingSet updateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java index 2cea4a62c9a1..54dd358b7486 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,28 +8,26 @@ import java.util.Collection; /** - * Network features - * * Network features available to the volume, or current state of update. */ public final class NetworkFeatures extends ExpandableStringEnum { /** - * Static value Basic for NetworkFeatures. + * Basic network features. */ public static final NetworkFeatures BASIC = fromString("Basic"); /** - * Static value Standard for NetworkFeatures. + * Standard network features. */ public static final NetworkFeatures STANDARD = fromString("Standard"); /** - * Static value Basic_Standard for NetworkFeatures. + * Updating from Basic to Standard network features. */ public static final NetworkFeatures BASIC_STANDARD = fromString("Basic_Standard"); /** - * Static value Standard_Basic for NetworkFeatures. + * Updating from Standard to Basic network features. */ public static final NetworkFeatures STANDARD_BASIC = fromString("Standard_Basic"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java index 723cfd3ec2bd..f4d2af8be7fb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java index 2c7203391342..610e50419735 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java deleted file mode 100644 index 961a42b40f06..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java +++ /dev/null @@ -1,123 +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; - -/** - * NFS user details - * - * The effective NFS User ID and Group ID when accessing the volume data. - */ -@Fluent -public final class NfsUser implements JsonSerializable { - /* - * The NFS user's UID - */ - private Long userId; - - /* - * The NFS user's GID - */ - private Long groupId; - - /** - * Creates an instance of NfsUser class. - */ - public NfsUser() { - } - - /** - * Get the userId property: The NFS user's UID. - * - * @return the userId value. - */ - public Long userId() { - return this.userId; - } - - /** - * Set the userId property: The NFS user's UID. - * - * @param userId the userId value to set. - * @return the NfsUser object itself. - */ - public NfsUser withUserId(Long userId) { - this.userId = userId; - return this; - } - - /** - * Get the groupId property: The NFS user's GID. - * - * @return the groupId value. - */ - public Long groupId() { - return this.groupId; - } - - /** - * Set the groupId property: The NFS user's GID. - * - * @param groupId the groupId value to set. - * @return the NfsUser object itself. - */ - public NfsUser withGroupId(Long groupId) { - this.groupId = groupId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("userId", this.userId); - jsonWriter.writeNumberField("groupId", this.groupId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of NfsUser from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of NfsUser 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 NfsUser. - */ - public static NfsUser fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - NfsUser deserializedNfsUser = new NfsUser(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("userId".equals(fieldName)) { - deserializedNfsUser.userId = reader.getNullable(JsonReader::getLong); - } else if ("groupId".equals(fieldName)) { - deserializedNfsUser.groupId = reader.getNullable(JsonReader::getLong); - } else { - reader.skipChildren(); - } - } - - return deserializedNfsUser; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java index 18d6642d99ce..71ec82d0f435 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -13,11 +13,9 @@ import java.util.List; /** - * NIC information - * * NIC information and list of volumes for which the NIC has the primary mount ip address. */ -@Fluent +@Immutable public final class NicInfo implements JsonSerializable { /* * ipAddress @@ -32,7 +30,7 @@ public final class NicInfo implements JsonSerializable { /** * Creates an instance of NicInfo class. */ - public NicInfo() { + private NicInfo() { } /** @@ -53,17 +51,6 @@ public List volumeResourceIds() { return this.volumeResourceIds; } - /** - * Set the volumeResourceIds property: Volume resource Ids. - * - * @param volumeResourceIds the volumeResourceIds value to set. - * @return the NicInfo object itself. - */ - public NicInfo withVolumeResourceIds(List volumeResourceIds) { - this.volumeResourceIds = volumeResourceIds; - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operation.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operation.java index f822353ce966..a1c969a02839 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operation.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java index ddd5f2f1da05..0ace96ee995d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Display metadata associated with the operation. */ -@Fluent +@Immutable public final class OperationDisplay implements JsonSerializable { /* * Service provider: Microsoft NetApp. @@ -39,7 +39,7 @@ public final class OperationDisplay implements JsonSerializable list(); /** - * Describes the Resource Provider - * - * Lists all of the available Microsoft.NetApp Rest API operations. + * List the operations for the provider. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 the request to list Cloud Volume operations as paginated response with {@link PagedIterable}. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. */ PagedIterable list(Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PeerClusterForVolumeMigrationRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PeerClusterForVolumeMigrationRequest.java index dea16d025a5e..2ea8ab37fb53 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PeerClusterForVolumeMigrationRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PeerClusterForVolumeMigrationRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java index 8c5eae503ce6..7f3564508c14 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java index 95ccf9b12f53..c4ae8b41da28 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java index 719359185491..f87dc422e564 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,98 +13,84 @@ */ public interface Pools { /** - * Describe all Capacity Pools - * - * List all capacity pools in the NetApp Account. + * Get details of the specified capacity pool. * * @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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources as paginated response with {@link PagedIterable}. + * @return details of the specified capacity pool along with {@link Response}. */ - PagedIterable list(String resourceGroupName, String accountName); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + Context context); /** - * Describe all Capacity Pools - * - * List all capacity pools in the NetApp Account. + * Get details of the specified capacity pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. + * @param poolName The name of the capacity pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of capacity pool resources as paginated response with {@link PagedIterable}. + * @return details of the specified capacity pool. */ - PagedIterable list(String resourceGroupName, String accountName, Context context); + CapacityPool get(String resourceGroupName, String accountName, String poolName); /** - * Describe a Capacity Pool - * - * Get details of the specified capacity pool. + * Delete the specified capacity pool. * * @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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified capacity pool along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String accountName, String poolName, - Context context); + void delete(String resourceGroupName, String accountName, String poolName); /** - * Describe a Capacity Pool - * - * Get details of the specified capacity pool. + * Delete the specified capacity pool. * * @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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified capacity pool. */ - CapacityPool get(String resourceGroupName, String accountName, String poolName); + void delete(String resourceGroupName, String accountName, String poolName, Context context); /** - * Delete a capacity pool - * - * Delete the specified capacity pool. + * List all capacity pools in the NetApp Account. * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of capacity pool resources as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String poolName); + PagedIterable list(String resourceGroupName, String accountName); /** - * Delete a capacity pool - * - * Delete the specified capacity pool. + * List all capacity pools in the NetApp Account. * * @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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of capacity pool resources as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String poolName, Context context); + PagedIterable list(String resourceGroupName, String accountName, Context context); /** - * Describe a Capacity Pool - * * Get details of the specified capacity pool. * * @param id the resource ID. @@ -116,8 +102,6 @@ Response getWithResponse(String resourceGroupName, String accountN CapacityPool getById(String id); /** - * Describe a Capacity Pool - * * Get details of the specified capacity pool. * * @param id the resource ID. @@ -130,8 +114,6 @@ Response getWithResponse(String resourceGroupName, String accountN Response getByIdWithResponse(String id, Context context); /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param id the resource ID. @@ -142,8 +124,6 @@ Response getWithResponse(String resourceGroupName, String accountN void deleteById(String id); /** - * Delete a capacity pool - * * Delete the specified capacity pool. * * @param id the resource ID. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java new file mode 100644 index 000000000000..072549967b2b --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Gets the status of the VolumeQuotaRule at the time the operation was called. + */ +public final class ProvisioningState extends ExpandableStringEnum { + /** + * Resource has been Accepted. + */ + public static final ProvisioningState ACCEPTED = fromString("Accepted"); + + /** + * Resource is being Created. + */ + public static final ProvisioningState CREATING = fromString("Creating"); + + /** + * Resource is being Patched. + */ + public static final ProvisioningState PATCHING = fromString("Patching"); + + /** + * Resource is updating. + */ + public static final ProvisioningState UPDATING = fromString("Updating"); + + /** + * Resource is being Deleted. + */ + public static final ProvisioningState DELETING = fromString("Deleting"); + + /** + * Resource is being Moved. + */ + public static final ProvisioningState MOVING = fromString("Moving"); + + /** + * Resource has Failed. + */ + public static final ProvisioningState FAILED = fromString("Failed"); + + /** + * Resource has Succeeded. + */ + public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Creates a new instance of ProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ProvisioningState() { + } + + /** + * Creates or finds a ProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ProvisioningState. + */ + public static ProvisioningState fromString(String name) { + return fromString(name, ProvisioningState.class); + } + + /** + * Gets known ProvisioningState values. + * + * @return known ProvisioningState values. + */ + public static Collection values() { + return values(ProvisioningState.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QosType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QosType.java index 027a63c6d570..69037d2a144a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QosType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QosType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,12 +12,12 @@ */ public final class QosType extends ExpandableStringEnum { /** - * Static value Auto for QosType. + * qos type Auto. */ public static final QosType AUTO = fromString("Auto"); /** - * Static value Manual for QosType. + * qos type Manual. */ public static final QosType MANUAL = fromString("Manual"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java index 30395ef6d32a..d2981f48dd1b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,8 +13,6 @@ import java.io.IOException; /** - * QueryNetworkSiblingSetRequest - * * Network sibling set query. */ @Fluent diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java index cfb32f64a6b5..e770cbf369ba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; 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/ReestablishReplicationRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java index fef12c5ef6a4..a549c5b3af6b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java index c3b81938dbb1..ef5c25028e83 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java index 0a85e06f1ae6..596875af55a6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The RegionInfoAvailabilityZoneMappingsItem model. */ -@Fluent +@Immutable public final class RegionInfoAvailabilityZoneMappingsItem implements JsonSerializable { /* @@ -30,7 +30,7 @@ public final class RegionInfoAvailabilityZoneMappingsItem /** * Creates an instance of RegionInfoAvailabilityZoneMappingsItem class. */ - public RegionInfoAvailabilityZoneMappingsItem() { + private RegionInfoAvailabilityZoneMappingsItem() { } /** @@ -42,17 +42,6 @@ public String availabilityZone() { return this.availabilityZone; } - /** - * Set the availabilityZone property: Logical availability zone. - * - * @param availabilityZone the availabilityZone value to set. - * @return the RegionInfoAvailabilityZoneMappingsItem object itself. - */ - public RegionInfoAvailabilityZoneMappingsItem withAvailabilityZone(String availabilityZone) { - this.availabilityZone = availabilityZone; - return this; - } - /** * Get the isAvailable property: Available availability zone. * @@ -62,17 +51,6 @@ public Boolean isAvailable() { return this.isAvailable; } - /** - * Set the isAvailable property: Available availability zone. - * - * @param isAvailable the isAvailable value to set. - * @return the RegionInfoAvailabilityZoneMappingsItem object itself. - */ - public RegionInfoAvailabilityZoneMappingsItem withIsAvailable(Boolean isAvailable) { - this.isAvailable = isAvailable; - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoResource.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoResource.java index 64d7180d87f6..ae3b98a6e7d2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoResource.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java index 354914f08b4f..221a955e04f1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,48 +8,46 @@ import java.util.Collection; /** - * Storage to Network Proximity - * * Provides storage to network proximity information in the region. */ public final class RegionStorageToNetworkProximity extends ExpandableStringEnum { /** - * Static value Default for RegionStorageToNetworkProximity. + * Basic network connectivity. */ public static final RegionStorageToNetworkProximity DEFAULT = fromString("Default"); /** - * Static value T1 for RegionStorageToNetworkProximity. + * Standard T1 network connectivity. */ public static final RegionStorageToNetworkProximity T1 = fromString("T1"); /** - * Static value T2 for RegionStorageToNetworkProximity. + * Standard T2 network connectivity. */ public static final RegionStorageToNetworkProximity T2 = fromString("T2"); /** - * Static value AcrossT2 for RegionStorageToNetworkProximity. + * Standard AcrossT2 network connectivity. */ public static final RegionStorageToNetworkProximity ACROSS_T2 = fromString("AcrossT2"); /** - * Static value T1AndT2 for RegionStorageToNetworkProximity. + * Standard T1 and T2 network connectivity. */ public static final RegionStorageToNetworkProximity T1AND_T2 = fromString("T1AndT2"); /** - * Static value T1AndAcrossT2 for RegionStorageToNetworkProximity. + * Standard T1 and AcrossT2 network connectivity. */ public static final RegionStorageToNetworkProximity T1AND_ACROSS_T2 = fromString("T1AndAcrossT2"); /** - * Static value T2AndAcrossT2 for RegionStorageToNetworkProximity. + * Standard T2 and AcrossT2 network connectivity. */ public static final RegionStorageToNetworkProximity T2AND_ACROSS_T2 = fromString("T2AndAcrossT2"); /** - * Static value T1AndT2AndAcrossT2 for RegionStorageToNetworkProximity. + * Standard T1, T2 and AcrossT2 network connectivity. */ public static final RegionStorageToNetworkProximity T1AND_T2AND_ACROSS_T2 = fromString("T1AndT2AndAcrossT2"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelationshipStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelationshipStatus.java deleted file mode 100644 index 114413a28050..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelationshipStatus.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; - -/** - * The status of the Volume Replication. - */ -public final class RelationshipStatus extends ExpandableStringEnum { - /** - * Static value Idle for RelationshipStatus. - */ - public static final RelationshipStatus IDLE = fromString("Idle"); - - /** - * Static value Transferring for RelationshipStatus. - */ - public static final RelationshipStatus TRANSFERRING = fromString("Transferring"); - - /** - * Creates a new instance of RelationshipStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public RelationshipStatus() { - } - - /** - * Creates or finds a RelationshipStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding RelationshipStatus. - */ - public static RelationshipStatus fromString(String name) { - return fromString(name, RelationshipStatus.class); - } - - /** - * Gets known RelationshipStatus values. - * - * @return known RelationshipStatus values. - */ - public static Collection values() { - return values(RelationshipStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java index 88d4b2400e7d..9b15c4efc14b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RemotePath.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RemotePath.java index 034c5aa88001..c8a40c75d3af 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RemotePath.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RemotePath.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Replication.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Replication.java index b88c82cb04a1..8efcd07b3374 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Replication.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Replication.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; +import java.time.OffsetDateTime; /** * An immutable client-side representation of Replication. @@ -46,6 +47,27 @@ public interface Replication { */ String remoteVolumeRegion(); + /** + * Gets the mirrorState property: The status of the replication. + * + * @return the mirrorState value. + */ + ReplicationMirrorState mirrorState(); + + /** + * Gets the replicationCreationTime property: Replication creation time. + * + * @return the replicationCreationTime value. + */ + OffsetDateTime replicationCreationTime(); + + /** + * Gets the replicationDeletionTime property: Replication deletion time. + * + * @return the replicationDeletionTime value. + */ + OffsetDateTime replicationDeletionTime(); + /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ReplicationInner object. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationMirrorState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationMirrorState.java new file mode 100644 index 000000000000..e651beb6aa79 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationMirrorState.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The status of the replication. + */ +public final class ReplicationMirrorState extends ExpandableStringEnum { + /** + * Destination volume has not been initialized. + */ + public static final ReplicationMirrorState UNINITIALIZED = fromString("Uninitialized"); + + /** + * Destination volume has been initialized and is ready. + */ + public static final ReplicationMirrorState MIRRORED = fromString("Mirrored"); + + /** + * Destination volume is RW, replication relationship has been broken off. + */ + public static final ReplicationMirrorState BROKEN = fromString("Broken"); + + /** + * Creates a new instance of ReplicationMirrorState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ReplicationMirrorState() { + } + + /** + * Creates or finds a ReplicationMirrorState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ReplicationMirrorState. + */ + public static ReplicationMirrorState fromString(String name) { + return fromString(name, ReplicationMirrorState.class); + } + + /** + * Gets known ReplicationMirrorState values. + * + * @return known ReplicationMirrorState values. + */ + public static Collection values() { + return values(ReplicationMirrorState.class); + } +} 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 26b4c06a9094..8cc6a9f678da 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -52,29 +52,6 @@ public final class ReplicationObject implements JsonSerializable destinationReplications; - /* - * Property that only applies to external replications. Provides a machine-readable value for the status of the - * external replication setup. - */ - private ExternalReplicationSetupStatus externalReplicationSetupStatus; - - /* - * Contains human-readable instructions on what the next step is to finish the external replication setup. - */ - private String externalReplicationSetupInfo; - - /* - * The mirror state property describes the current status of data replication for a replication. It provides insight - * into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to - * be initialized. - */ - private MirrorState mirrorState; - - /* - * The status of the Volume Replication - */ - private RelationshipStatus relationshipStatus; - /** * Creates an instance of ReplicationObject class. */ @@ -193,46 +170,6 @@ public List destinationReplications() { return this.destinationReplications; } - /** - * Get the externalReplicationSetupStatus property: Property that only applies to external replications. Provides a - * machine-readable value for the status of the external replication setup. - * - * @return the externalReplicationSetupStatus value. - */ - public ExternalReplicationSetupStatus externalReplicationSetupStatus() { - return this.externalReplicationSetupStatus; - } - - /** - * Get the externalReplicationSetupInfo property: Contains human-readable instructions on what the next step is to - * finish the external replication setup. - * - * @return the externalReplicationSetupInfo value. - */ - public String externalReplicationSetupInfo() { - return this.externalReplicationSetupInfo; - } - - /** - * Get the mirrorState property: The mirror state property describes the current status of data replication for a - * replication. It provides insight into whether the data is actively being mirrored, if the replication process has - * been paused, or if it has yet to be initialized. - * - * @return the mirrorState value. - */ - public MirrorState mirrorState() { - return this.mirrorState; - } - - /** - * Get the relationshipStatus property: The status of the Volume Replication. - * - * @return the relationshipStatus value. - */ - public RelationshipStatus relationshipStatus() { - return this.relationshipStatus; - } - /** * Validates the instance. * @@ -293,16 +230,6 @@ public static ReplicationObject fromJson(JsonReader jsonReader) throws IOExcepti List destinationReplications = reader.readArray(reader1 -> DestinationReplication.fromJson(reader1)); deserializedReplicationObject.destinationReplications = destinationReplications; - } else if ("externalReplicationSetupStatus".equals(fieldName)) { - deserializedReplicationObject.externalReplicationSetupStatus - = ExternalReplicationSetupStatus.fromString(reader.getString()); - } else if ("externalReplicationSetupInfo".equals(fieldName)) { - deserializedReplicationObject.externalReplicationSetupInfo = reader.getString(); - } else if ("mirrorState".equals(fieldName)) { - deserializedReplicationObject.mirrorState = MirrorState.fromString(reader.getString()); - } else if ("relationshipStatus".equals(fieldName)) { - deserializedReplicationObject.relationshipStatus - = RelationshipStatus.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java index 624f0d36e57c..e858b8d944cf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java index 8f171a7ef9aa..fdd72067147e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -22,12 +22,10 @@ public interface ReplicationStatus { * * @return the relationshipStatus value. */ - RelationshipStatus relationshipStatus(); + VolumeReplicationRelationshipStatus relationshipStatus(); /** - * Gets the mirrorState property: The mirror state property describes the current status of data replication for a - * replication. It provides insight into whether the data is actively being mirrored, if the replication process has - * been paused, or if it has yet to be initialized. + * Gets the mirrorState property: The status of the replication. * * @return the mirrorState value. */ 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 index 36f09f42710b..ff41e5dbf0e6 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,12 +12,12 @@ */ public final class ReplicationType extends ExpandableStringEnum { /** - * Static value CrossRegionReplication for ReplicationType. + * Cross region replication. */ public static final ReplicationType CROSS_REGION_REPLICATION = fromString("CrossRegionReplication"); /** - * Static value CrossZoneReplication for ReplicationType. + * Cross zone replication. */ public static final ReplicationType CROSS_ZONE_REPLICATION = fromString("CrossZoneReplication"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java index 5d4e7624932f..72aa9917688e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java index 02bdc4f5ebd6..e081c41801f7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -22,12 +22,10 @@ public interface RestoreStatus { * * @return the relationshipStatus value. */ - RelationshipStatus relationshipStatus(); + VolumeRestoreRelationshipStatus relationshipStatus(); /** - * Gets the mirrorState property: The mirror state property describes the current status of data replication for a - * restore. It provides insight into whether the data is actively being mirrored, if the replication process has - * been paused, or if it has yet to be initialized. + * Gets the mirrorState property: The status of the restore. * * @return the mirrorState value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java index d53ddff04262..a838b6466b33 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; 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..ff7b1f6e0971 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,33 +8,31 @@ import java.util.Collection; /** - * serviceLevel - * * The service level of the file system. */ public final class ServiceLevel extends ExpandableStringEnum { /** - * Static value Standard for ServiceLevel. + * Standard service level. */ public static final ServiceLevel STANDARD = fromString("Standard"); /** - * Static value Premium for ServiceLevel. + * Premium service level. */ public static final ServiceLevel PREMIUM = fromString("Premium"); /** - * Static value Ultra for ServiceLevel. + * Ultra service level. */ public static final ServiceLevel ULTRA = fromString("Ultra"); /** - * Static value StandardZRS for ServiceLevel. + * Zone redundant storage service level. This will be deprecated soon. */ public static final ServiceLevel STANDARD_ZRS = fromString("StandardZRS"); /** - * Static value Flexible for ServiceLevel. + * Flexible service level. */ public static final ServiceLevel FLEXIBLE = fromString("Flexible"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java index ad0285396771..e1ac48ed9f6e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * One property of operation, include metric specifications. */ -@Fluent +@Immutable public final class ServiceSpecification implements JsonSerializable { /* * Metric specifications of operation. @@ -30,7 +30,7 @@ public final class ServiceSpecification implements JsonSerializable metricSpecifications() { return this.metricSpecifications; } - /** - * Set the metricSpecifications property: Metric specifications of operation. - * - * @param metricSpecifications the metricSpecifications value to set. - * @return the ServiceSpecification object itself. - */ - public ServiceSpecification withMetricSpecifications(List metricSpecifications) { - this.metricSpecifications = metricSpecifications; - return this; - } - /** * Get the logSpecifications property: Log specification of operation. * @@ -62,17 +51,6 @@ public List logSpecifications() { return this.logSpecifications; } - /** - * Set the logSpecifications property: Log specification of operation. - * - * @param logSpecifications the logSpecifications value to set. - * @return the ServiceSpecification object itself. - */ - public ServiceSpecification withLogSpecifications(List logSpecifications) { - this.logSpecifications = logSpecifications; - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java index 63b566c83ce4..7b37ba61fbe7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,18 +8,16 @@ import java.util.Collection; /** - * smbAccessBasedEnumeration - * * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. */ public final class SmbAccessBasedEnumeration extends ExpandableStringEnum { /** - * Static value Disabled for SmbAccessBasedEnumeration. + * smbAccessBasedEnumeration share setting is disabled. */ public static final SmbAccessBasedEnumeration DISABLED = fromString("Disabled"); /** - * Static value Enabled for SmbAccessBasedEnumeration. + * smbAccessBasedEnumeration share setting is enabled. */ public static final SmbAccessBasedEnumeration ENABLED = fromString("Enabled"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java index bd0fe37428a9..93ebe5c5de09 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,18 +8,16 @@ import java.util.Collection; /** - * smbNonBrowsable - * * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. */ public final class SmbNonBrowsable extends ExpandableStringEnum { /** - * Static value Disabled for SmbNonBrowsable. + * smbNonBrowsable share setting is disabled. */ public static final SmbNonBrowsable DISABLED = fromString("Disabled"); /** - * Static value Enabled for SmbNonBrowsable. + * smbNonBrowsable share setting is enabled. */ public static final SmbNonBrowsable ENABLED = fromString("Enabled"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java index 881878f26872..0e595a1a9e9f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -184,8 +184,6 @@ interface WithCreate { Snapshot refresh(Context context); /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param body Restore payload supplied in the body of the operation. @@ -196,8 +194,6 @@ interface WithCreate { void restoreFiles(SnapshotRestoreFiles body); /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param body Restore payload supplied in the body of the operation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java index 7e302c19f224..d532d0ebba3c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,86 +13,84 @@ */ public interface SnapshotPolicies { /** - * List snapshot policy. + * Get a snapshot Policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param snapshotPolicyName The name of the snapshot policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. + * @return a snapshot Policy along with {@link Response}. */ - PagedIterable list(String resourceGroupName, String accountName); + Response getWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, + Context context); /** - * List snapshot policy. + * Get a snapshot Policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. + * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. + * @return a snapshot Policy. */ - PagedIterable list(String resourceGroupName, String accountName, Context context); + SnapshotPolicy get(String resourceGroupName, String accountName, String snapshotPolicyName); /** - * Get a snapshot Policy. + * Delete snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 snapshot Policy along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, - Context context); + void delete(String resourceGroupName, String accountName, String snapshotPolicyName); /** - * Get a snapshot Policy. + * Delete snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 snapshot Policy. */ - SnapshotPolicy get(String resourceGroupName, String accountName, String snapshotPolicyName); + void delete(String resourceGroupName, String accountName, String snapshotPolicyName, Context context); /** - * Delete snapshot policy. + * List snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String snapshotPolicyName); + PagedIterable list(String resourceGroupName, String accountName); /** - * Delete snapshot policy. + * List snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param snapshotPolicyName The name of the snapshot policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshot Policies as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String snapshotPolicyName, Context context); + PagedIterable list(String resourceGroupName, String accountName, Context context); /** - * Get volumes for snapshot policy - * * Get volumes associated with snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -108,8 +106,6 @@ Response listVolumesWithResponse(String resourceGroupN String snapshotPolicyName, Context context); /** - * Get volumes for snapshot policy - * * Get volumes associated with snapshot policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java index 16ca35c83a8a..4a64a6e78ac7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -50,7 +50,10 @@ public interface SnapshotPolicy { Map tags(); /** - * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * Gets the etag property: "If etag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields."). * * @return the etag value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java index 6d94a8214ed2..0563cf86767e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java index c88962524763..043ad95dd3bf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,12 +12,19 @@ */ public interface SnapshotPolicyVolumeList { /** - * Gets the value property: List of volumes. + * Gets the value property: The Volume items on this page. * * @return the value value. */ List value(); + /** + * Gets the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + String nextLink(); + /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner object. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java index ce2cff030e0b..e43614192c38 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java index 533c8d1f9d4b..ca69ce48152d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,42 +13,6 @@ */ public interface Snapshots { /** - * Describe all snapshots - * - * List all snapshots associated with 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 list of Snapshots as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Describe all snapshots - * - * List all snapshots associated with 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 list of Snapshots as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context); - - /** - * Describe a snapshot - * * Get details of the specified snapshot. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -66,8 +30,6 @@ Response getWithResponse(String resourceGroupName, String accountName, String snapshotName, Context context); /** - * Describe a snapshot - * * Get details of the specified snapshot. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -83,81 +45,66 @@ Response getWithResponse(String resourceGroupName, String accountName, Snapshot get(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. */ - Snapshot update(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Object body); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); /** - * Update a snapshot - * - * Patch a snapshot. + * Delete snapshot. * * @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 snapshotName The name of the snapshot. - * @param body Snapshot object supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return snapshot of a Volume. */ - Snapshot update(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Object body, Context context); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, + Context context); /** - * Delete a snapshot - * - * Delete snapshot. + * List all snapshots associated with 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 snapshotName The name of the snapshot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshots as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); + PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Delete a snapshot - * - * Delete snapshot. + * List all snapshots associated with 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 snapshotName The name of the snapshot. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Snapshots as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, + PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -174,8 +121,6 @@ void restoreFiles(String resourceGroupName, String accountName, String poolName, String snapshotName, SnapshotRestoreFiles body); /** - * Create a new Snapshot Restore Files request - * * Restore the specified files from the specified snapshot to the active filesystem. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -193,8 +138,6 @@ void restoreFiles(String resourceGroupName, String accountName, String poolName, String snapshotName, SnapshotRestoreFiles body, Context context); /** - * Describe a snapshot - * * Get details of the specified snapshot. * * @param id the resource ID. @@ -206,8 +149,6 @@ void restoreFiles(String resourceGroupName, String accountName, String poolName, Snapshot getById(String id); /** - * Describe a snapshot - * * Get details of the specified snapshot. * * @param id the resource ID. @@ -220,8 +161,6 @@ void restoreFiles(String resourceGroupName, String accountName, String poolName, Response getByIdWithResponse(String id, Context context); /** - * Delete a snapshot - * * Delete snapshot. * * @param id the resource ID. @@ -232,8 +171,6 @@ void restoreFiles(String resourceGroupName, String accountName, String poolName, void deleteById(String id); /** - * Delete a snapshot - * * Delete snapshot. * * @param id the resource ID. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItem.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java similarity index 80% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItem.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java index 8cf335327eee..e1d78782c16c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItem.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java @@ -1,16 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; import com.azure.core.management.SystemData; -import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; /** - * An immutable client-side representation of QuotaItem. + * An immutable client-side representation of SubscriptionQuotaItem. */ -public interface QuotaItem { +public interface SubscriptionQuotaItem { /** * Gets the id property: Fully qualified resource Id for the resource. * @@ -61,9 +61,9 @@ public interface QuotaItem { Integer usage(); /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner object. + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner object. * * @return the inner object. */ - QuotaItemInner innerModel(); + SubscriptionQuotaItemInner innerModel(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java index 46337e4f5521..3281be05eade 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -252,8 +252,6 @@ interface WithPath { SubvolumeInfo refresh(Context context); /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -263,8 +261,6 @@ interface WithPath { SubvolumeModel getMetadata(); /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param context The context to associate with this operation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java index 3543be4d8fcd..61a0e249d511 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java index 5c332de52f08..c3e1a1ae9d3f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java index 91f81dfd0d74..f2a609eec0bd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,114 +13,100 @@ */ public interface Subvolumes { /** - * List of all the subvolumes - * - * Returns a list of the subvolumes in the volume. + * Returns the path associated with the subvolumeName provided. * * @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 subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Subvolumes as paginated response with {@link PagedIterable}. + * @return subvolume Information properties along with {@link Response}. */ - PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, Context context); /** - * List of all the subvolumes - * - * Returns a list of the subvolumes in the volume. + * Returns the path associated with the subvolumeName provided. * * @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. + * @param subvolumeName The name of the subvolume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Subvolumes as paginated response with {@link PagedIterable}. + * @return subvolume Information properties. */ - PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); + SubvolumeInfo get(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName); /** - * Get the path associated with the subvolumeName - * - * Returns the path associated with the subvolumeName provided. + * Delete subvolume. * * @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 subvolumeName The name of the subvolume. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subvolume Information properties along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String subvolumeName, Context context); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); /** - * Get the path associated with the subvolumeName - * - * Returns the path associated with the subvolumeName provided. + * Delete subvolume. * * @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 subvolumeName The name of the subvolume. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subvolume Information properties. */ - SubvolumeInfo get(String resourceGroupName, String accountName, String poolName, String volumeName, - String subvolumeName); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName, + Context context); /** - * Delete a subvolume - * - * Delete subvolume. + * Returns a list of the subvolumes in 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 subvolumeName The name of the subvolume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); /** - * Delete a subvolume - * - * Delete subvolume. + * Returns a list of the subvolumes in 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 subvolumeName The name of the subvolume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Subvolumes as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName, - Context context); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -137,8 +123,6 @@ SubvolumeModel getMetadata(String resourceGroupName, String accountName, String String subvolumeName); /** - * Describe a subvolume - * * Get details of the specified subvolume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -156,8 +140,6 @@ SubvolumeModel getMetadata(String resourceGroupName, String accountName, String String subvolumeName, Context context); /** - * Get the path associated with the subvolumeName - * * Returns the path associated with the subvolumeName provided. * * @param id the resource ID. @@ -169,8 +151,6 @@ SubvolumeModel getMetadata(String resourceGroupName, String accountName, String SubvolumeInfo getById(String id); /** - * Get the path associated with the subvolumeName - * * Returns the path associated with the subvolumeName provided. * * @param id the resource ID. @@ -183,8 +163,6 @@ SubvolumeModel getMetadata(String resourceGroupName, String accountName, String Response getByIdWithResponse(String id, Context context); /** - * Delete a subvolume - * * Delete subvolume. * * @param id the resource ID. @@ -195,8 +173,6 @@ SubvolumeModel getMetadata(String resourceGroupName, String accountName, String void deleteById(String id); /** - * Delete a subvolume - * * Delete subvolume. * * @param id the resource ID. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java index b64d38999e29..36ec7eb50a76 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; 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..d05e7c16b53b 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,28 +8,26 @@ import java.util.Collection; /** - * quotaType - * - * Type of quota rule. + * Type of quota. */ public final class Type extends ExpandableStringEnum { /** - * Static value DefaultUserQuota for Type. + * Default user quota. */ public static final Type DEFAULT_USER_QUOTA = fromString("DefaultUserQuota"); /** - * Static value DefaultGroupQuota for Type. + * Default group quota. */ public static final Type DEFAULT_GROUP_QUOTA = fromString("DefaultGroupQuota"); /** - * Static value IndividualUserQuota for Type. + * Individual user quota. */ public static final Type INDIVIDUAL_USER_QUOTA = fromString("IndividualUserQuota"); /** - * Static value IndividualGroupQuota for Type. + * Individual group quota. */ public static final Type INDIVIDUAL_GROUP_QUOTA = fromString("IndividualGroupQuota"); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java index c59c1374c080..f7bc1f348da3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,8 +13,6 @@ import java.io.IOException; /** - * UpdateNetworkSiblingSetRequest - * * Network sibling set update. */ @Fluent diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java index 5ceaa6565eeb..3740272aec8a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The name of the usage. */ -@Fluent +@Immutable public final class UsageName implements JsonSerializable { /* * The name of the usage. @@ -29,7 +29,7 @@ public final class UsageName implements JsonSerializable { /** * Creates an instance of UsageName class. */ - public UsageName() { + private UsageName() { } /** @@ -41,17 +41,6 @@ public String value() { return this.value; } - /** - * Set the value property: The name of the usage. - * - * @param value the value value to set. - * @return the UsageName object itself. - */ - public UsageName withValue(String value) { - this.value = value; - return this; - } - /** * Get the localizedValue property: The localized name of the usage. * @@ -61,17 +50,6 @@ public String localizedValue() { return this.localizedValue; } - /** - * Set the localizedValue property: The localized name of the usage. - * - * @param localizedValue the localizedValue value to set. - * @return the UsageName object itself. - */ - public UsageName withLocalizedValue(String localizedValue) { - this.localizedValue = localizedValue; - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java index d23f1134a2ee..72512dc17ff9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java index 7d5aa6b3bfe7..6af279836fa3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; 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 f67a551fd938..4355e8df7dd9 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,7 +8,6 @@ import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; import java.util.List; import java.util.Map; @@ -53,14 +52,17 @@ public interface Volume { Map tags(); /** - * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * Gets the etag property: "If etag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields."). * * @return the etag value. */ String etag(); /** - * Gets the zones property: Availability Zone. + * Gets the zones property: The availability zones. * * @return the zones value. */ @@ -329,13 +331,6 @@ public interface Volume { */ Boolean ldapEnabled(); - /** - * Gets the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @return the ldapServerType value. - */ - LdapServerType ldapServerType(); - /** * Gets the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -379,10 +374,7 @@ public interface Volume { * 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. */ @@ -539,13 +531,6 @@ public interface Volume { */ Long inheritedSizeInBytes(); - /** - * Gets the language property: Language supported for volume. - * - * @return the language value. - */ - VolumeLanguage language(); - /** * Gets the region of the resource. * @@ -690,14 +675,14 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithZon DefinitionStages.WithSmbAccessBasedEnumeration, DefinitionStages.WithSmbNonBrowsable, DefinitionStages.WithSmbContinuouslyAvailable, DefinitionStages.WithThroughputMibps, DefinitionStages.WithEncryptionKeySource, DefinitionStages.WithKeyVaultPrivateEndpointResourceId, - DefinitionStages.WithLdapEnabled, DefinitionStages.WithLdapServerType, DefinitionStages.WithCoolAccess, - DefinitionStages.WithCoolnessPeriod, DefinitionStages.WithCoolAccessRetrievalPolicy, - DefinitionStages.WithCoolAccessTieringPolicy, DefinitionStages.WithUnixPermissions, - DefinitionStages.WithAvsDataStore, DefinitionStages.WithIsDefaultQuotaEnabled, - DefinitionStages.WithDefaultUserQuotaInKiBs, DefinitionStages.WithDefaultGroupQuotaInKiBs, - DefinitionStages.WithCapacityPoolResourceId, DefinitionStages.WithProximityPlacementGroup, - DefinitionStages.WithVolumeSpecName, DefinitionStages.WithPlacementRules, - DefinitionStages.WithEnableSubvolumes, DefinitionStages.WithIsLargeVolume, DefinitionStages.WithLanguage { + 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. * @@ -732,9 +717,9 @@ interface WithTags { */ interface WithZones { /** - * Specifies the zones property: Availability Zone. + * Specifies the zones property: The availability zones.. * - * @param zones Availability Zone. + * @param zones The availability zones. * @return the next definition stage. */ WithCreate withZones(List zones); @@ -1051,19 +1036,6 @@ interface WithLdapEnabled { WithCreate withLdapEnabled(Boolean ldapEnabled); } - /** - * The stage of the Volume definition allowing to specify ldapServerType. - */ - interface WithLdapServerType { - /** - * Specifies the ldapServerType property: Specifies the type of LDAP server for a given NFS volume.. - * - * @param ldapServerType Specifies the type of LDAP server for a given NFS volume. - * @return the next definition stage. - */ - WithCreate withLdapServerType(LdapServerType ldapServerType); - } - /** * The stage of the Volume definition allowing to specify coolAccess. */ @@ -1149,19 +1121,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); @@ -1306,19 +1272,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); - } } /** @@ -1364,7 +1317,7 @@ interface UpdateStages { */ interface WithTags { /** - * Specifies the tags property: Resource tags.. + * Specifies the tags property: Resource tags. * * @param tags Resource tags. * @return the next definition stage. @@ -1662,32 +1615,26 @@ interface WithSmbNonBrowsable { Volume refresh(Context context); /** - * Populate Availability Zone - * * This operation will populate availability zone information for a 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 volume resource. + * @return the response. */ Volume populateAvailabilityZone(); /** - * Populate Availability Zone - * * This operation will populate availability zone information for a 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 volume resource. + * @return the response. */ Volume populateAvailabilityZone(Context context); /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param body Object for snapshot to revert supplied in the body of the operation. @@ -1698,8 +1645,6 @@ interface WithSmbNonBrowsable { void revert(VolumeRevert body); /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param body Object for snapshot to revert supplied in the body of the operation. @@ -1711,8 +1656,6 @@ interface WithSmbNonBrowsable { void revert(VolumeRevert body, Context context); /** - * Reset cifs password - * * Reset cifs password from volume. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1721,8 +1664,6 @@ interface WithSmbNonBrowsable { void resetCifsPassword(); /** - * Reset cifs password - * * Reset cifs password from volume. * * @param context The context to associate with this operation. @@ -1733,32 +1674,26 @@ 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. - * @return volume resource. + * @return the response. */ Volume 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. - * @return volume resource. + * @return the response. */ Volume splitCloneFromParent(Context context); /** - * Break file locks - * * Break all the file locks on a volume. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1767,8 +1702,6 @@ interface WithSmbNonBrowsable { void breakFileLocks(); /** - * Break file locks - * * Break all the file locks on a volume. * * @param body Optional body to provide the ability to clear file locks with selected options. @@ -1780,21 +1713,17 @@ interface WithSmbNonBrowsable { void breakFileLocks(BreakFileLocksRequest body, Context context); /** - * Get Group Id List for LDAP User - * * Returns the list of group Ids for a specific LDAP User. * * @param body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return group Id list for Ldap user. + * @return the response. */ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListForLdapUserRequest body); /** - * Get Group Id List for LDAP User - * * Returns the list of group Ids for a specific LDAP User. * * @param body Returns group Id list for a specific LDAP user. @@ -1802,38 +1731,12 @@ interface WithSmbNonBrowsable { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return group Id list for Ldap user. + * @return the response. */ 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 - * * Break the replication connection on the destination volume. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1842,8 +1745,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void breakReplication(); /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param body Optional body to force break the replication. @@ -1855,8 +1756,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void breakReplication(BreakReplicationRequest body, Context context); /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -1868,8 +1767,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void reestablishReplication(ReestablishReplicationRequest body); /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -1882,8 +1779,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void reestablishReplication(ReestablishReplicationRequest body, Context context); /** - * List replications for volume - * * List all replications for a specified volume. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1893,21 +1788,18 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo PagedIterable listReplications(); /** - * List replications for volume - * * List all replications for a specified volume. * + * @param body The content of the action request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list Replications as paginated response with {@link PagedIterable}. */ - PagedIterable listReplications(Context context); + PagedIterable listReplications(ListReplicationsRequest body, Context context); /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -1917,8 +1809,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void resyncReplication(); /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -1930,8 +1820,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void resyncReplication(Context context); /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1940,8 +1828,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void deleteReplication(); /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param context The context to associate with this operation. @@ -1952,8 +1838,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void deleteReplication(Context context); /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param body Authorize request object supplied in the body of the operation. @@ -1964,8 +1848,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void authorizeReplication(AuthorizeRequest body); /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param body Authorize request object supplied in the body of the operation. @@ -1977,8 +1859,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void authorizeReplication(AuthorizeRequest body, Context context); /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1987,8 +1867,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void reInitializeReplication(); /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param context The context to associate with this operation. @@ -1999,21 +1877,17 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void reInitializeReplication(Context context); /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param body Cluster peer request object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process. + * @return the response. */ ClusterPeerCommandResponse peerExternalCluster(PeerClusterForVolumeMigrationRequest body); /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param body Cluster peer request object supplied in the body of the operation. @@ -2021,25 +1895,21 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process. + * @return the response. */ ClusterPeerCommandResponse peerExternalCluster(PeerClusterForVolumeMigrationRequest body, Context context); /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process. + * @return the response. */ SvmPeerCommandResponse authorizeExternalReplication(); /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -2047,13 +1917,11 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process. + * @return the response. */ SvmPeerCommandResponse authorizeExternalReplication(Context context); /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -2063,8 +1931,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void finalizeExternalReplication(); /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -2076,8 +1942,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void finalizeExternalReplication(Context context); /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -2086,8 +1950,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void performReplicationTransfer(); /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param context The context to associate with this operation. @@ -2098,8 +1960,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void performReplicationTransfer(Context context); /** - * Change pool for volume - * * Moves volume to another pool. * * @param body Move volume to the pool supplied in the body of the operation. @@ -2110,8 +1970,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void poolChange(PoolChangeRequest body); /** - * Change pool for volume - * * Moves volume to another pool. * * @param body Move volume to the pool supplied in the body of the operation. @@ -2123,8 +1981,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void poolChange(PoolChangeRequest body, Context context); /** - * Relocate volume - * * Relocates volume to a new stamp. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -2133,8 +1989,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void relocate(); /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param body Relocate volume request. @@ -2146,8 +2000,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void relocate(RelocateVolumeRequest body, Context context); /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -2156,8 +2008,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void finalizeRelocation(); /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param context The context to associate with this operation. @@ -2168,8 +2018,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void finalizeRelocation(Context context); /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -2178,8 +2026,6 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListFo void revertRelocation(); /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param context The context to associate with this operation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java index adc3f7a07cbc..0ef5ea528d90 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupRelationshipStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupRelationshipStatus.java new file mode 100644 index 000000000000..e962bb1e8209 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupRelationshipStatus.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Status of the volume backup relationship. + */ +public final class VolumeBackupRelationshipStatus extends ExpandableStringEnum { + /** + * Static value Idle for VolumeBackupRelationshipStatus. + */ + public static final VolumeBackupRelationshipStatus IDLE = fromString("Idle"); + + /** + * Static value Transferring for VolumeBackupRelationshipStatus. + */ + public static final VolumeBackupRelationshipStatus TRANSFERRING = fromString("Transferring"); + + /** + * Static value Failed for VolumeBackupRelationshipStatus. + */ + public static final VolumeBackupRelationshipStatus FAILED = fromString("Failed"); + + /** + * Static value Unknown for VolumeBackupRelationshipStatus. + */ + public static final VolumeBackupRelationshipStatus UNKNOWN = fromString("Unknown"); + + /** + * Creates a new instance of VolumeBackupRelationshipStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VolumeBackupRelationshipStatus() { + } + + /** + * Creates or finds a VolumeBackupRelationshipStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding VolumeBackupRelationshipStatus. + */ + public static VolumeBackupRelationshipStatus fromString(String name) { + return fromString(name, VolumeBackupRelationshipStatus.class); + } + + /** + * Gets known VolumeBackupRelationshipStatus values. + * + * @return known VolumeBackupRelationshipStatus values. + */ + public static Collection values() { + return values(VolumeBackupRelationshipStatus.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java index 14f38452f9b8..b1977555e57e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Volume details using the backup policy. */ -@Fluent +@Immutable public final class VolumeBackups implements JsonSerializable { /* * Volume name @@ -39,7 +39,7 @@ public final class VolumeBackups implements JsonSerializable { /** * Creates an instance of VolumeBackups class. */ - public VolumeBackups() { + private VolumeBackups() { } /** @@ -51,17 +51,6 @@ public String volumeName() { return this.volumeName; } - /** - * Set the volumeName property: Volume name. - * - * @param volumeName the volumeName value to set. - * @return the VolumeBackups object itself. - */ - public VolumeBackups withVolumeName(String volumeName) { - this.volumeName = volumeName; - return this; - } - /** * Get the volumeResourceId property: ResourceId used to identify the Volume. * @@ -71,17 +60,6 @@ public String volumeResourceId() { return this.volumeResourceId; } - /** - * Set the volumeResourceId property: ResourceId used to identify the Volume. - * - * @param volumeResourceId the volumeResourceId value to set. - * @return the VolumeBackups object itself. - */ - public VolumeBackups withVolumeResourceId(String volumeResourceId) { - this.volumeResourceId = volumeResourceId; - return this; - } - /** * Get the backupsCount property: Total count of backups for volume. * @@ -91,17 +69,6 @@ public Integer backupsCount() { return this.backupsCount; } - /** - * Set the backupsCount property: Total count of backups for volume. - * - * @param backupsCount the backupsCount value to set. - * @return the VolumeBackups object itself. - */ - public VolumeBackups withBackupsCount(Integer backupsCount) { - this.backupsCount = backupsCount; - return this; - } - /** * Get the policyEnabled property: Policy enabled. * @@ -111,17 +78,6 @@ public Boolean policyEnabled() { return this.policyEnabled; } - /** - * Set the policyEnabled property: Policy enabled. - * - * @param policyEnabled the policyEnabled value to set. - * @return the VolumeBackups object itself. - */ - public VolumeBackups withPolicyEnabled(Boolean policyEnabled) { - this.policyEnabled = policyEnabled; - return this; - } - /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java index 00a857f4c178..4ea7fcb62fd7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java index 9c2267bb2982..45c5dc8e5381 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner; import java.util.List; @@ -14,33 +15,40 @@ */ public interface VolumeGroupDetails { /** - * Gets the location property: Resource location. - * - * @return the location value. - */ - String location(); - - /** - * Gets the id property: Resource Id. + * Gets the id property: Fully qualified resource Id for the resource. * * @return the id value. */ String id(); /** - * Gets the name property: Resource name. + * Gets the name property: The name of the resource. * * @return the name value. */ String name(); /** - * Gets the type property: Resource type. + * Gets the type property: The type of the resource. * * @return the type value. */ String type(); + /** + * Gets the location property: Resource location. + * + * @return the location value. + */ + String location(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the provisioningState property: Azure lifecycle management. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java index a2baa29616ab..f84a0c6b5a33 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; 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 677f458dd39f..f78f779f1c15 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java @@ -1,16 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; import com.azure.resourcemanager.netapp.fluent.models.VolumeProperties; import java.io.IOException; import java.util.List; @@ -20,12 +19,22 @@ * Volume resource. */ @Fluent -public final class VolumeGroupVolumeProperties extends ProxyResource { +public final class VolumeGroupVolumeProperties implements JsonSerializable { + /* + * Resource Id + */ + private String id; + /* * Resource name */ private String name; + /* + * Resource type + */ + private String type; + /* * Resource tags */ @@ -41,22 +50,21 @@ public final class VolumeGroupVolumeProperties extends ProxyResource { */ private VolumeProperties innerProperties = new VolumeProperties(); - /* - * The type of the resource. - */ - private String type; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - /** * Creates an instance of VolumeGroupVolumeProperties class. */ public VolumeGroupVolumeProperties() { } + /** + * Get the id property: Resource Id. + * + * @return the id value. + */ + public String id() { + return this.id; + } + /** * Get the name property: Resource name. * @@ -77,6 +85,15 @@ public VolumeGroupVolumeProperties withName(String name) { return this; } + /** + * Get the type property: Resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + /** * Get the tags property: Resource tags. * @@ -126,26 +143,6 @@ private VolumeProperties innerProperties() { return this.innerProperties; } - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - /** * Get the fileSystemId property: Unique FileSystem Identifier. * @@ -832,29 +829,6 @@ public VolumeGroupVolumeProperties withLdapEnabled(Boolean ldapEnabled) { return this; } - /** - * Get the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @return the ldapServerType value. - */ - public LdapServerType ldapServerType() { - return this.innerProperties() == null ? null : this.innerProperties().ldapServerType(); - } - - /** - * Set the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @param ldapServerType the ldapServerType value to set. - * @return the VolumeGroupVolumeProperties object itself. - */ - public VolumeGroupVolumeProperties withLdapServerType(LdapServerType ldapServerType) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLdapServerType(ldapServerType); - return this; - } - /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -973,10 +947,7 @@ public VolumeGroupVolumeProperties withCoolAccessTieringPolicy(CoolAccessTiering * 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. */ @@ -989,10 +960,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. @@ -1339,29 +1307,6 @@ public Long inheritedSizeInBytes() { return this.innerProperties() == null ? null : this.innerProperties().inheritedSizeInBytes(); } - /** - * Get the language property: Language supported for volume. - * - * @return the language value. - */ - public VolumeLanguage language() { - return this.innerProperties() == null ? null : this.innerProperties().language(); - } - - /** - * Set the language property: Language supported for volume. - * - * @param language the language value to set. - * @return the VolumeGroupVolumeProperties object itself. - */ - public VolumeGroupVolumeProperties withLanguage(VolumeLanguage language) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLanguage(language); - return this; - } - /** * Validates the instance. * @@ -1408,14 +1353,14 @@ public static VolumeGroupVolumeProperties fromJson(JsonReader jsonReader) throws String fieldName = reader.getFieldName(); reader.nextToken(); - if ("id".equals(fieldName)) { - deserializedVolumeGroupVolumeProperties.id = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedVolumeGroupVolumeProperties.type = reader.getString(); - } else if ("properties".equals(fieldName)) { + if ("properties".equals(fieldName)) { deserializedVolumeGroupVolumeProperties.innerProperties = VolumeProperties.fromJson(reader); + } else if ("id".equals(fieldName)) { + deserializedVolumeGroupVolumeProperties.id = reader.getString(); } else if ("name".equals(fieldName)) { deserializedVolumeGroupVolumeProperties.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedVolumeGroupVolumeProperties.type = reader.getString(); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedVolumeGroupVolumeProperties.tags = tags; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java index 325c676be9a6..50ebfb07e93f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,98 +13,84 @@ */ public interface VolumeGroups { /** - * Describe all volume groups - * - * List all volume groups for given account. + * Get details of the specified volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. + * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources as paginated response with {@link PagedIterable}. + * @return details of the specified volume group along with {@link Response}. */ - PagedIterable listByNetAppAccount(String resourceGroupName, String accountName); + Response getWithResponse(String resourceGroupName, String accountName, String volumeGroupName, + Context context); /** - * Describe all volume groups - * - * List all volume groups for given account. + * Get details of the specified volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param context The context to associate with this operation. + * @param volumeGroupName The name of the volumeGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of volume group resources as paginated response with {@link PagedIterable}. + * @return details of the specified volume group. */ - PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context); + VolumeGroupDetails get(String resourceGroupName, String accountName, String volumeGroupName); /** - * Describe a Volume Group - * - * Get details of the specified volume group. + * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified volume group along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String accountName, String volumeGroupName, - Context context); + void delete(String resourceGroupName, String accountName, String volumeGroupName); /** - * Describe a Volume Group - * - * Get details of the specified volume group. + * Delete the specified volume group only if there are no volumes under volume group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified volume group. */ - VolumeGroupDetails get(String resourceGroupName, String accountName, String volumeGroupName); + void delete(String resourceGroupName, String accountName, String volumeGroupName, Context context); /** - * Delete a volume group - * - * Delete the specified volume group only if there are no volumes under volume group. + * List all volume groups for given account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param volumeGroupName The name of the volumeGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String volumeGroupName); + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName); /** - * Delete a volume group - * - * Delete the specified volume group only if there are no volumes under volume group. + * List all volume groups for given account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. - * @param volumeGroupName The name of the volumeGroup. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume group resources as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String volumeGroupName, Context context); + PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context); /** - * Describe a Volume Group - * * Get details of the specified volume group. * * @param id the resource ID. @@ -116,8 +102,6 @@ Response getWithResponse(String resourceGroupName, String ac VolumeGroupDetails getById(String id); /** - * Describe a Volume Group - * * Get details of the specified volume group. * * @param id the resource ID. @@ -130,8 +114,6 @@ Response getWithResponse(String resourceGroupName, String ac Response getByIdWithResponse(String id, Context context); /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param id the resource ID. @@ -142,8 +124,6 @@ Response getWithResponse(String resourceGroupName, String ac void deleteById(String id); /** - * Delete a volume group - * * Delete the specified volume group only if there are no volumes under volume group. * * @param id the resource ID. 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 977072ee4386..d9b8f7747497 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties; @@ -18,26 +18,36 @@ * Volume patch resource. */ @Fluent -public final class VolumePatch extends Resource { +public final class VolumePatch implements JsonSerializable { /* - * Patchable volume properties + * Resource location */ - private VolumePatchProperties innerProperties; + private String location; /* - * The type of the resource. + * Resource Id */ - private String type; + private String id; /* - * The name of the resource. + * Resource name */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource type */ - private String id; + private String type; + + /* + * Resource tags + */ + private Map tags; + + /* + * Patchable volume properties + */ + private VolumePatchProperties innerProperties; /** * Creates an instance of VolumePatch class. @@ -46,62 +56,81 @@ public VolumePatch() { } /** - * Get the innerProperties property: Patchable volume properties. + * Get the location property: Resource location. * - * @return the innerProperties value. + * @return the location value. */ - private VolumePatchProperties innerProperties() { - return this.innerProperties; + public String location() { + return this.location; } /** - * Get the type property: The type of the resource. + * Set the location property: Resource location. * - * @return the type value. + * @param location the location value to set. + * @return the VolumePatch object itself. */ - @Override - public String type() { - return this.type; + public VolumePatch withLocation(String location) { + this.location = location; + return this; } /** - * Get the name property: The name of the resource. + * Get the id property: Resource Id. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Get the name property: Resource name. * * @return the name value. */ - @Override public String name() { return this.name; } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: Resource type. * - * @return the id value. + * @return the type value. */ - @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** - * {@inheritDoc} + * Get the tags property: Resource tags. + * + * @return the tags value. */ - @Override - public VolumePatch withLocation(String location) { - super.withLocation(location); - return this; + public Map tags() { + return this.tags; } /** - * {@inheritDoc} + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the VolumePatch object itself. */ - @Override public VolumePatch withTags(Map tags) { - super.withTags(tags); + this.tags = tags; return this; } + /** + * Get the innerProperties property: Patchable volume properties. + * + * @return the innerProperties value. + */ + private VolumePatchProperties innerProperties() { + return this.innerProperties; + } + /** * Get the serviceLevel property: The service level of the file system. * @@ -558,8 +587,8 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("properties", this.innerProperties); return jsonWriter.writeEndObject(); } @@ -570,7 +599,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VolumePatch if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VolumePatch. */ public static VolumePatch fromJson(JsonReader jsonReader) throws IOException { @@ -580,17 +608,17 @@ public static VolumePatch fromJson(JsonReader jsonReader) throws IOException { String fieldName = reader.getFieldName(); reader.nextToken(); - if ("id".equals(fieldName)) { + if ("location".equals(fieldName)) { + deserializedVolumePatch.location = reader.getString(); + } else if ("id".equals(fieldName)) { deserializedVolumePatch.id = reader.getString(); } else if ("name".equals(fieldName)) { deserializedVolumePatch.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedVolumePatch.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedVolumePatch.withLocation(reader.getString()); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedVolumePatch.withTags(tags); + deserializedVolumePatch.tags = tags; } else if ("properties".equals(fieldName)) { deserializedVolumePatch.innerProperties = VolumePatchProperties.fromJson(reader); } else { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java index d0b75aa5ab1b..b2900cb2db3c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,8 +12,6 @@ import java.io.IOException; /** - * DataProtection - * * DataProtection type volumes include an object containing details of the replication. */ @Fluent diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java index dc8fa6c817ff..b098a743aa8f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,8 +13,6 @@ import java.util.List; /** - * exportPolicy - * * Set of export policy rules. */ @Fluent diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java index 899a0d3c224a..6371c236005b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -12,8 +12,6 @@ import java.io.IOException; /** - * DataProtection - * * DataProtection type volumes include an object containing details of the replication. */ @Fluent diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java index f72292bf9236..1971381b3dfe 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,8 +13,6 @@ import java.util.List; /** - * exportPolicy - * * Set of export policy rules. */ @Fluent diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java index 1b7e421b838c..77c8eed51156 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -57,11 +57,11 @@ public interface VolumeQuotaRule { SystemData systemData(); /** - * Gets the provisioningState property: Provisioning state of the resource. + * Gets the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called. * * @return the provisioningState value. */ - NetAppProvisioningState provisioningState(); + ProvisioningState provisioningState(); /** * Gets the quotaSizeInKiBs property: Size of quota. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java index d54f1771d3cc..dea631c9c1d8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -64,11 +64,11 @@ private VolumeQuotaRulesProperties innerProperties() { } /** - * Get the provisioningState property: Provisioning state of the resource. + * Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called. * * @return the provisioningState value. */ - public NetAppProvisioningState provisioningState() { + public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java index e3cd572f19fb..827caabc6f06 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,115 +13,101 @@ */ public interface VolumeQuotaRules { /** - * Get all quota rules for a volume - * - * List all quota rules associated with the volume. + * Get details of the specified quota rule. * * @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 volumeQuotaRuleName The name of volume quota rule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}. + * @return details of the specified quota rule along with {@link Response}. */ - PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, Context context); /** - * Get all quota rules for a volume - * - * List all quota rules associated with the volume. + * Get details of the specified quota rule. * * @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. + * @param volumeQuotaRuleName The name of volume quota rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}. + * @return details of the specified quota rule. */ - PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); + VolumeQuotaRule get(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName); /** - * Describe a quota rule - * - * Get details of the specified quota rule. + * Delete quota rule. * * @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 volumeQuotaRuleName The name of volume quota rule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified quota rule along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String volumeQuotaRuleName, Context context); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName); /** - * Describe a quota rule - * - * Get details of the specified quota rule. + * Delete quota rule. * * @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 volumeQuotaRuleName The name of volume quota rule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified quota rule. */ - VolumeQuotaRule get(String resourceGroupName, String accountName, String poolName, String volumeName, - String volumeQuotaRuleName); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, Context context); /** - * Delete a quota rule - * - * Delete quota rule. + * List all quota rules associated with 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 volumeQuotaRuleName The name of volume quota rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String volumeQuotaRuleName); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); /** - * Delete a quota rule - * - * Delete quota rule. + * List all quota rules associated with 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 volumeQuotaRuleName The name of volume quota rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String volumeQuotaRuleName, Context context); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** - * Describe a quota rule - * * Get details of the specified quota rule. * * @param id the resource ID. @@ -133,8 +119,6 @@ void delete(String resourceGroupName, String accountName, String poolName, Strin VolumeQuotaRule getById(String id); /** - * Describe a quota rule - * * Get details of the specified quota rule. * * @param id the resource ID. @@ -147,8 +131,6 @@ void delete(String resourceGroupName, String accountName, String poolName, Strin Response getByIdWithResponse(String id, Context context); /** - * Delete a quota rule - * * Delete quota rule. * * @param id the resource ID. @@ -159,8 +141,6 @@ void delete(String resourceGroupName, String accountName, String poolName, Strin void deleteById(String id); /** - * Delete a quota rule - * * Delete quota rule. * * @param id the resource ID. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java index 0ee3530f61ee..2be372d886ae 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeReplicationRelationshipStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeReplicationRelationshipStatus.java new file mode 100644 index 000000000000..75f10c8f65f4 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeReplicationRelationshipStatus.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Status of the volume replication relationship. + */ +public final class VolumeReplicationRelationshipStatus + extends ExpandableStringEnum { + /** + * Static value Idle for VolumeReplicationRelationshipStatus. + */ + public static final VolumeReplicationRelationshipStatus IDLE = fromString("Idle"); + + /** + * Static value Transferring for VolumeReplicationRelationshipStatus. + */ + public static final VolumeReplicationRelationshipStatus TRANSFERRING = fromString("Transferring"); + + /** + * Creates a new instance of VolumeReplicationRelationshipStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VolumeReplicationRelationshipStatus() { + } + + /** + * Creates or finds a VolumeReplicationRelationshipStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding VolumeReplicationRelationshipStatus. + */ + public static VolumeReplicationRelationshipStatus fromString(String name) { + return fromString(name, VolumeReplicationRelationshipStatus.class); + } + + /** + * Gets known VolumeReplicationRelationshipStatus values. + * + * @return known VolumeReplicationRelationshipStatus values. + */ + public static Collection values() { + return values(VolumeReplicationRelationshipStatus.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRestoreRelationshipStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRestoreRelationshipStatus.java new file mode 100644 index 000000000000..e830337c731e --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRestoreRelationshipStatus.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.netapp.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Status of the volume restore relationship. + */ +public final class VolumeRestoreRelationshipStatus extends ExpandableStringEnum { + /** + * Static value Idle for VolumeRestoreRelationshipStatus. + */ + public static final VolumeRestoreRelationshipStatus IDLE = fromString("Idle"); + + /** + * Static value Transferring for VolumeRestoreRelationshipStatus. + */ + public static final VolumeRestoreRelationshipStatus TRANSFERRING = fromString("Transferring"); + + /** + * Static value Failed for VolumeRestoreRelationshipStatus. + */ + public static final VolumeRestoreRelationshipStatus FAILED = fromString("Failed"); + + /** + * Static value Unknown for VolumeRestoreRelationshipStatus. + */ + public static final VolumeRestoreRelationshipStatus UNKNOWN = fromString("Unknown"); + + /** + * Creates a new instance of VolumeRestoreRelationshipStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VolumeRestoreRelationshipStatus() { + } + + /** + * Creates or finds a VolumeRestoreRelationshipStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding VolumeRestoreRelationshipStatus. + */ + public static VolumeRestoreRelationshipStatus fromString(String name) { + return fromString(name, VolumeRestoreRelationshipStatus.class); + } + + /** + * Gets known VolumeRestoreRelationshipStatus values. + * + * @return known VolumeRestoreRelationshipStatus values. + */ + public static Collection values() { + return values(VolumeRestoreRelationshipStatus.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java index 9b23aed8a727..3c447c2b82fb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java index 1df131823300..23f7c037f0d4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java index 5cf8244bb517..459a970246bf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -8,28 +8,26 @@ import java.util.Collection; /** - * Storage to Network Proximity - * * Provides storage to network proximity information for the volume. */ public final class VolumeStorageToNetworkProximity extends ExpandableStringEnum { /** - * Static value Default for VolumeStorageToNetworkProximity. + * Basic storage to network connectivity. */ public static final VolumeStorageToNetworkProximity DEFAULT = fromString("Default"); /** - * Static value T1 for VolumeStorageToNetworkProximity. + * Standard T1 storage to network connectivity. */ public static final VolumeStorageToNetworkProximity T1 = fromString("T1"); /** - * Static value T2 for VolumeStorageToNetworkProximity. + * Standard T2 storage to network connectivity. */ public static final VolumeStorageToNetworkProximity T2 = fromString("T2"); /** - * Static value AcrossT2 for VolumeStorageToNetworkProximity. + * Standard AcrossT2 storage to network connectivity. */ public static final VolumeStorageToNetworkProximity ACROSS_T2 = fromString("AcrossT2"); 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 f7e4794e8334..23ebc1c5ae84 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; @@ -13,107 +13,93 @@ */ public interface Volumes { /** - * Describe all volumes - * - * List all volumes within the capacity pool. + * Get the details of the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the 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 list of volume resources as paginated response with {@link PagedIterable}. + * @return the details of the specified volume along with {@link Response}. */ - PagedIterable list(String resourceGroupName, String accountName, String poolName); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** - * Describe all volumes - * - * List all volumes within the capacity pool. + * Get the details of the specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param poolName The name of the capacity pool. - * @param context The context to associate with this operation. + * @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 list of volume resources as paginated response with {@link PagedIterable}. + * @return the details of the specified volume. */ - PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context); + Volume get(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Describe a volume - * - * Get the details of the specified volume. + * Delete the specified 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 details of the specified volume along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Describe a volume - * - * Get the details of the specified volume. + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular + * 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 details of the specified volume. */ - Volume get(String resourceGroupName, String accountName, String poolName, String volumeName); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete, + Context context); /** - * Delete a volume - * - * Delete the specified volume. + * List all volumes within the capacity pool. * * @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 list of volume resources as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName); + PagedIterable list(String resourceGroupName, String accountName, String poolName); /** - * Delete a volume - * - * Delete the specified volume. + * List all volumes within the capacity pool. * * @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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * 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 list of volume resources as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete, - Context context); + PagedIterable list(String resourceGroupName, String accountName, String poolName, Context context); /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -123,13 +109,11 @@ void delete(String resourceGroupName, String accountName, String poolName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ Volume populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Populate Availability Zone - * * This operation will populate availability zone information for a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -140,14 +124,12 @@ void delete(String resourceGroupName, String accountName, String poolName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ Volume populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -162,8 +144,6 @@ Volume populateAvailabilityZone(String resourceGroupName, String accountName, St void revert(String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body); /** - * Revert a volume to one of its snapshots - * * Revert a volume to the snapshot specified in the body. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -180,8 +160,6 @@ void revert(String resourceGroupName, String accountName, String poolName, Strin Context context); /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -195,8 +173,6 @@ void revert(String resourceGroupName, String accountName, String poolName, Strin void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Reset cifs password - * * Reset cifs password from volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -212,8 +188,6 @@ void resetCifsPassword(String resourceGroupName, String accountName, String pool 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. @@ -223,13 +197,11 @@ void resetCifsPassword(String resourceGroupName, String accountName, String pool * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ Volume 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. @@ -240,14 +212,12 @@ void resetCifsPassword(String resourceGroupName, String accountName, String pool * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume resource. + * @return the response. */ Volume splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -261,8 +231,6 @@ Volume splitCloneFromParent(String resourceGroupName, String accountName, String void breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Break file locks - * * Break all the file locks on a volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -279,8 +247,6 @@ void breakFileLocks(String resourceGroupName, String accountName, String poolNam BreakFileLocksRequest body, Context context); /** - * Get Group Id List for LDAP User - * * Returns the list of group Ids for a specific LDAP User. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -291,14 +257,12 @@ void breakFileLocks(String resourceGroupName, String accountName, String poolNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return group Id list for Ldap user. + * @return the response. */ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body); /** - * Get Group Id List for LDAP User - * * Returns the list of group Ids for a specific LDAP User. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -310,49 +274,12 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return group Id list for Ldap user. + * @return the response. */ 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 - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -366,8 +293,6 @@ ListQuotaReportResponse listQuotaReport(String resourceGroupName, String account void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Break volume replication - * * Break the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -384,8 +309,6 @@ void breakReplication(String resourceGroupName, String accountName, String poolN BreakReplicationRequest body, Context context); /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -402,8 +325,6 @@ void reestablishReplication(String resourceGroupName, String accountName, String ReestablishReplicationRequest body); /** - * Re-establish volume replication - * * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. * @@ -421,8 +342,6 @@ void reestablishReplication(String resourceGroupName, String accountName, String ReestablishReplicationRequest body, Context context); /** - * Get volume replication status - * * Get the status of the replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -439,8 +358,6 @@ Response replicationStatusWithResponse(String resourceGroupNa String poolName, String volumeName, Context context); /** - * Get volume replication status - * * Get the status of the replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -456,8 +373,6 @@ ReplicationStatus replicationStatus(String resourceGroupName, String accountName String volumeName); /** - * List replications for volume - * * List all replications for a specified volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -473,14 +388,13 @@ PagedIterable listReplications(String resourceGroupName, String acc String volumeName); /** - * List replications for volume - * * List all replications for a specified 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 body The content of the action request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -488,11 +402,9 @@ PagedIterable listReplications(String resourceGroupName, String acc * @return list Replications as paginated response with {@link PagedIterable}. */ PagedIterable listReplications(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); + String volumeName, ListReplicationsRequest body, Context context); /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -507,8 +419,6 @@ PagedIterable listReplications(String resourceGroupName, String acc void resyncReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Resync volume replication - * * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. * @@ -525,8 +435,6 @@ void resyncReplication(String resourceGroupName, String accountName, String pool Context context); /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -540,8 +448,6 @@ void resyncReplication(String resourceGroupName, String accountName, String pool void deleteReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Delete volume replication - * * Delete the replication connection on the destination volume, and send release to the source replication. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -557,8 +463,6 @@ void deleteReplication(String resourceGroupName, String accountName, String pool Context context); /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -574,8 +478,6 @@ void authorizeReplication(String resourceGroupName, String accountName, String p AuthorizeRequest body); /** - * Authorize source volume replication - * * Authorize the replication connection on the source volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -592,8 +494,6 @@ void authorizeReplication(String resourceGroupName, String accountName, String p AuthorizeRequest body, Context context); /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -607,8 +507,6 @@ void authorizeReplication(String resourceGroupName, String accountName, String p void reInitializeReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * ReInitialize volume replication - * * Re-Initializes the replication connection on the destination volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -624,8 +522,6 @@ void reInitializeReplication(String resourceGroupName, String accountName, Strin Context context); /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -636,14 +532,12 @@ void reInitializeReplication(String resourceGroupName, String accountName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process. + * @return the response. */ ClusterPeerCommandResponse peerExternalCluster(String resourceGroupName, String accountName, String poolName, String volumeName, PeerClusterForVolumeMigrationRequest body); /** - * Start Cluster peering - * * Starts peering the external cluster for this migration volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -655,14 +549,12 @@ ClusterPeerCommandResponse peerExternalCluster(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about cluster peering process. + * @return the response. */ ClusterPeerCommandResponse peerExternalCluster(String resourceGroupName, String accountName, String poolName, String volumeName, PeerClusterForVolumeMigrationRequest body, Context context); /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -673,14 +565,12 @@ ClusterPeerCommandResponse peerExternalCluster(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process. + * @return the response. */ SvmPeerCommandResponse authorizeExternalReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Start migration process - * * Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been * peered a SnapMirror will be created. * @@ -692,14 +582,12 @@ SvmPeerCommandResponse authorizeExternalReplication(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about svm peering process. + * @return the response. */ SvmPeerCommandResponse authorizeExternalReplication(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -714,8 +602,6 @@ SvmPeerCommandResponse authorizeExternalReplication(String resourceGroupName, St void finalizeExternalReplication(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Finalize migration process - * * Finalizes the migration of an external volume by releasing the replication and breaking the external cluster * peering if no other migration is active. * @@ -732,8 +618,6 @@ void finalizeExternalReplication(String resourceGroupName, String accountName, S Context context); /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -747,8 +631,6 @@ void finalizeExternalReplication(String resourceGroupName, String accountName, S void performReplicationTransfer(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Perform a replication transfer - * * Performs an adhoc replication transfer on a volume with volumeType Migration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -764,8 +646,6 @@ void performReplicationTransfer(String resourceGroupName, String accountName, St Context context); /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -781,8 +661,6 @@ void poolChange(String resourceGroupName, String accountName, String poolName, S PoolChangeRequest body); /** - * Change pool for volume - * * Moves volume to another pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -799,8 +677,6 @@ void poolChange(String resourceGroupName, String accountName, String poolName, S PoolChangeRequest body, Context context); /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -814,8 +690,6 @@ void poolChange(String resourceGroupName, String accountName, String poolName, S void relocate(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Relocate volume - * * Relocates volume to a new stamp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -832,8 +706,6 @@ void relocate(String resourceGroupName, String accountName, String poolName, Str RelocateVolumeRequest body, Context context); /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -847,8 +719,6 @@ void relocate(String resourceGroupName, String accountName, String poolName, Str void finalizeRelocation(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Finalize volume relocation - * * Finalizes the relocation of the volume and cleans up the old volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -864,8 +734,6 @@ void finalizeRelocation(String resourceGroupName, String accountName, String poo Context context); /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -879,8 +747,6 @@ void finalizeRelocation(String resourceGroupName, String accountName, String poo void revertRelocation(String resourceGroupName, String accountName, String poolName, String volumeName); /** - * Revert volume relocation - * * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -896,8 +762,6 @@ void revertRelocation(String resourceGroupName, String accountName, String poolN Context context); /** - * Describe a volume - * * Get the details of the specified volume. * * @param id the resource ID. @@ -909,8 +773,6 @@ void revertRelocation(String resourceGroupName, String accountName, String poolN Volume getById(String id); /** - * Describe a volume - * * Get the details of the specified volume. * * @param id the resource ID. @@ -923,8 +785,6 @@ void revertRelocation(String resourceGroupName, String accountName, String poolN Response getByIdWithResponse(String id, Context context); /** - * Delete a volume - * * Delete the specified volume. * * @param id the resource ID. @@ -935,8 +795,6 @@ void revertRelocation(String resourceGroupName, String accountName, String poolN void deleteById(String id); /** - * Delete a volume - * * Delete the specified volume. * * @param id the resource ID. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java index 752b5179bce6..5cfc7219214e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/package-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/package-info.java index 12553875b2e2..e6c8a90d2e19 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/package-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the data models for NetAppManagementClient. + * Package containing the data models for NetAppFiles. * Microsoft NetApp Files Azure Resource Provider specification. */ package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/package-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/package-info.java index 993c03d81992..f8e9e246e4e7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/package-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the classes for NetAppManagementClient. + * Package containing the classes for NetAppFiles. * Microsoft NetApp Files Azure Resource Provider specification. */ package com.azure.resourcemanager.netapp; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/module-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/module-info.java index 4a7ddc9958d1..ee8bd5dd1f1e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/module-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/module-info.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. module com.azure.resourcemanager.netapp { requires transitive com.azure.core.management; @@ -12,4 +12,5 @@ opens com.azure.resourcemanager.netapp.fluent.models to com.azure.core; opens com.azure.resourcemanager.netapp.models to com.azure.core; + opens com.azure.resourcemanager.netapp.implementation.models to com.azure.core; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_apiview_properties.json b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_apiview_properties.json new file mode 100644 index 000000000000..27343d5ef010 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_apiview_properties.json @@ -0,0 +1,386 @@ +{ + "flavor": "azure", + "CrossLanguageDefinitionId": { + "com.azure.resourcemanager.netapp.fluent.AccountsClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.beginChangeKeyVault": "Microsoft.NetApp.NetAppAccounts.changeKeyVault", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.beginCreateOrUpdate": "Microsoft.NetApp.NetAppAccounts.createOrUpdate", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.beginDelete": "Microsoft.NetApp.NetAppAccounts.delete", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.beginGetChangeKeyVaultInformation": "Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.beginRenewCredentials": "Microsoft.NetApp.NetAppAccounts.renewCredentials", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.beginTransitionToCmk": "Microsoft.NetApp.NetAppAccounts.transitionToCmk", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.beginUpdate": "Microsoft.NetApp.NetAppAccounts.update", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.changeKeyVault": "Microsoft.NetApp.NetAppAccounts.changeKeyVault", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.createOrUpdate": "Microsoft.NetApp.NetAppAccounts.createOrUpdate", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.delete": "Microsoft.NetApp.NetAppAccounts.delete", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroup": "Microsoft.NetApp.NetAppAccounts.get", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroupWithResponse": "Microsoft.NetApp.NetAppAccounts.get", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.getChangeKeyVaultInformation": "Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.list": "Microsoft.NetApp.NetAppAccounts.listBySubscription", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.listByResourceGroup": "Microsoft.NetApp.NetAppAccounts.list", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.renewCredentials": "Microsoft.NetApp.NetAppAccounts.renewCredentials", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.transitionToCmk": "Microsoft.NetApp.NetAppAccounts.transitionToCmk", + "com.azure.resourcemanager.netapp.fluent.AccountsClient.update": "Microsoft.NetApp.NetAppAccounts.update", + "com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient": "Microsoft.NetApp.BackupPolicies", + "com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginCreate": "Microsoft.NetApp.BackupPolicies.create", + "com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginDelete": "Microsoft.NetApp.BackupPolicies.delete", + "com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginUpdate": "Microsoft.NetApp.BackupPolicies.update", + "com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.create": "Microsoft.NetApp.BackupPolicies.create", + "com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.delete": "Microsoft.NetApp.BackupPolicies.delete", + "com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.get": "Microsoft.NetApp.BackupPolicies.get", + "com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.getWithResponse": "Microsoft.NetApp.BackupPolicies.get", + "com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.list": "Microsoft.NetApp.BackupPolicies.list", + "com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.update": "Microsoft.NetApp.BackupPolicies.update", + "com.azure.resourcemanager.netapp.fluent.BackupVaultsClient": "Microsoft.NetApp.BackupVaults", + "com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginCreateOrUpdate": "Microsoft.NetApp.BackupVaults.createOrUpdate", + "com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginDelete": "Microsoft.NetApp.BackupVaults.delete", + "com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginUpdate": "Microsoft.NetApp.BackupVaults.update", + "com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.createOrUpdate": "Microsoft.NetApp.BackupVaults.createOrUpdate", + "com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.delete": "Microsoft.NetApp.BackupVaults.delete", + "com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.get": "Microsoft.NetApp.BackupVaults.get", + "com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.getWithResponse": "Microsoft.NetApp.BackupVaults.get", + "com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.listByNetAppAccount": "Microsoft.NetApp.BackupVaults.listByNetAppAccount", + "com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.update": "Microsoft.NetApp.BackupVaults.update", + "com.azure.resourcemanager.netapp.fluent.BackupsClient": "Microsoft.NetApp.Backups", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.beginCreate": "Microsoft.NetApp.Backups.create", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.beginDelete": "Microsoft.NetApp.Backups.delete", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.beginUpdate": "Microsoft.NetApp.Backups.update", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.create": "Microsoft.NetApp.Backups.create", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.delete": "Microsoft.NetApp.Backups.delete", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.get": "Microsoft.NetApp.Backups.get", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatus": "Microsoft.NetApp.Volumes.getLatestStatus", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatusWithResponse": "Microsoft.NetApp.Volumes.getLatestStatus", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatus": "Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatusWithResponse": "Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.getWithResponse": "Microsoft.NetApp.Backups.get", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.listByVault": "Microsoft.NetApp.Backups.listByVault", + "com.azure.resourcemanager.netapp.fluent.BackupsClient.update": "Microsoft.NetApp.Backups.update", + "com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.beginMigrateBackups": "Microsoft.NetApp.NetAppAccounts.migrateBackups", + "com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.migrateBackups": "Microsoft.NetApp.NetAppAccounts.migrateBackups", + "com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.beginRestoreFiles": "Microsoft.NetApp.Backups.restoreFiles", + "com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.restoreFiles": "Microsoft.NetApp.Backups.restoreFiles", + "com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.beginMigrateBackups": "Microsoft.NetApp.Volumes.migrateBackups", + "com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.migrateBackups": "Microsoft.NetApp.Volumes.migrateBackups", + "com.azure.resourcemanager.netapp.fluent.NetAppManagementClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient": "Microsoft.NetApp.NetAppResourceQuotaLimitsAccount", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.get": "Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.getWithResponse": "Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.list": "Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.list", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.get": "Microsoft.NetApp.SubscriptionQuotaItems.get", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.getWithResponse": "Microsoft.NetApp.SubscriptionQuotaItems.get", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.list": "Microsoft.NetApp.SubscriptionQuotaItems.list", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.get": "Microsoft.NetApp.RegionInfoResources.get", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.getWithResponse": "Microsoft.NetApp.RegionInfoResources.get", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.list": "Microsoft.NetApp.RegionInfoResources.list", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.get": "Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.getWithResponse": "Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get", + "com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.list": "Microsoft.NetApp.NetAppResourceUsagesOperationGroup.list", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.beginUpdateNetworkSiblingSet": "Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailability": "Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailabilityWithResponse": "Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailability": "Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailabilityWithResponse": "Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailability": "Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailabilityWithResponse": "Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSet": "Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSetWithResponse": "Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfo": "Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfoWithResponse": "Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo", + "com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.updateNetworkSiblingSet": "Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet", + "com.azure.resourcemanager.netapp.fluent.OperationsClient": "Microsoft.NetApp.Operations", + "com.azure.resourcemanager.netapp.fluent.OperationsClient.list": "Azure.ResourceManager.Legacy.Operations.list", + "com.azure.resourcemanager.netapp.fluent.PoolsClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.PoolsClient.beginCreateOrUpdate": "Microsoft.NetApp.CapacityPools.createOrUpdate", + "com.azure.resourcemanager.netapp.fluent.PoolsClient.beginDelete": "Microsoft.NetApp.CapacityPools.delete", + "com.azure.resourcemanager.netapp.fluent.PoolsClient.beginUpdate": "Microsoft.NetApp.CapacityPools.update", + "com.azure.resourcemanager.netapp.fluent.PoolsClient.createOrUpdate": "Microsoft.NetApp.CapacityPools.createOrUpdate", + "com.azure.resourcemanager.netapp.fluent.PoolsClient.delete": "Microsoft.NetApp.CapacityPools.delete", + "com.azure.resourcemanager.netapp.fluent.PoolsClient.get": "Microsoft.NetApp.CapacityPools.get", + "com.azure.resourcemanager.netapp.fluent.PoolsClient.getWithResponse": "Microsoft.NetApp.CapacityPools.get", + "com.azure.resourcemanager.netapp.fluent.PoolsClient.list": "Microsoft.NetApp.CapacityPools.list", + "com.azure.resourcemanager.netapp.fluent.PoolsClient.update": "Microsoft.NetApp.CapacityPools.update", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient": "Microsoft.NetApp.SnapshotPolicies", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginDelete": "Microsoft.NetApp.SnapshotPolicies.delete", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginUpdate": "Microsoft.NetApp.SnapshotPolicies.update", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.create": "Microsoft.NetApp.SnapshotPolicies.create", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.createWithResponse": "Microsoft.NetApp.SnapshotPolicies.create", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.delete": "Microsoft.NetApp.SnapshotPolicies.delete", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.get": "Microsoft.NetApp.SnapshotPolicies.get", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.getWithResponse": "Microsoft.NetApp.SnapshotPolicies.get", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.list": "Microsoft.NetApp.SnapshotPolicies.list", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumes": "Microsoft.NetApp.SnapshotPolicies.listVolumes", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumesWithResponse": "Microsoft.NetApp.SnapshotPolicies.listVolumes", + "com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.update": "Microsoft.NetApp.SnapshotPolicies.update", + "com.azure.resourcemanager.netapp.fluent.SnapshotsClient": "Microsoft.NetApp.Snapshots", + "com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginCreate": "Microsoft.NetApp.Snapshots.create", + "com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginDelete": "Microsoft.NetApp.Snapshots.delete", + "com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginRestoreFiles": "Microsoft.NetApp.Snapshots.restoreFiles", + "com.azure.resourcemanager.netapp.fluent.SnapshotsClient.create": "Microsoft.NetApp.Snapshots.create", + "com.azure.resourcemanager.netapp.fluent.SnapshotsClient.delete": "Microsoft.NetApp.Snapshots.delete", + "com.azure.resourcemanager.netapp.fluent.SnapshotsClient.get": "Microsoft.NetApp.Snapshots.get", + "com.azure.resourcemanager.netapp.fluent.SnapshotsClient.getWithResponse": "Microsoft.NetApp.Snapshots.get", + "com.azure.resourcemanager.netapp.fluent.SnapshotsClient.list": "Microsoft.NetApp.Snapshots.list", + "com.azure.resourcemanager.netapp.fluent.SnapshotsClient.restoreFiles": "Microsoft.NetApp.Snapshots.restoreFiles", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginCreate": "Microsoft.NetApp.SubvolumeInfos.create", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginDelete": "Microsoft.NetApp.SubvolumeInfos.delete", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginGetMetadata": "Microsoft.NetApp.SubvolumeInfos.getMetadata", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginUpdate": "Microsoft.NetApp.SubvolumeInfos.update", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.create": "Microsoft.NetApp.SubvolumeInfos.create", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.delete": "Microsoft.NetApp.SubvolumeInfos.delete", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.get": "Microsoft.NetApp.SubvolumeInfos.get", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getMetadata": "Microsoft.NetApp.SubvolumeInfos.getMetadata", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getWithResponse": "Microsoft.NetApp.SubvolumeInfos.get", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.listByVolume": "Microsoft.NetApp.SubvolumeInfos.listByVolume", + "com.azure.resourcemanager.netapp.fluent.SubvolumesClient.update": "Microsoft.NetApp.SubvolumeInfos.update", + "com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient": "Microsoft.NetApp.VolumeGroups", + "com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginCreate": "Microsoft.NetApp.VolumeGroups.create", + "com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginDelete": "Microsoft.NetApp.VolumeGroups.delete", + "com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.create": "Microsoft.NetApp.VolumeGroups.create", + "com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.delete": "Microsoft.NetApp.VolumeGroups.delete", + "com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.get": "Microsoft.NetApp.VolumeGroups.get", + "com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.getWithResponse": "Microsoft.NetApp.VolumeGroups.get", + "com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.listByNetAppAccount": "Microsoft.NetApp.NetAppAccounts.listByNetAppAccount", + "com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient": "Microsoft.NetApp.VolumeQuotaRules", + "com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginCreate": "Microsoft.NetApp.VolumeQuotaRules.create", + "com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginDelete": "Microsoft.NetApp.VolumeQuotaRules.delete", + "com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginUpdate": "Microsoft.NetApp.VolumeQuotaRules.update", + "com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.create": "Microsoft.NetApp.VolumeQuotaRules.create", + "com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.delete": "Microsoft.NetApp.VolumeQuotaRules.delete", + "com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.get": "Microsoft.NetApp.VolumeQuotaRules.get", + "com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.getWithResponse": "Microsoft.NetApp.VolumeQuotaRules.get", + "com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.listByVolume": "Microsoft.NetApp.VolumeQuotaRules.listByVolume", + "com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.update": "Microsoft.NetApp.VolumeQuotaRules.update", + "com.azure.resourcemanager.netapp.fluent.VolumesClient": "Microsoft.NetApp.Volumes", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeExternalReplication": "Microsoft.NetApp.Volumes.authorizeExternalReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeReplication": "Microsoft.NetApp.Volumes.authorizeReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeExternalReplication": "Microsoft.NetApp.Volumes.authorizeExternalReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeReplication": "Microsoft.NetApp.Volumes.authorizeReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakFileLocks": "Microsoft.NetApp.Volumes.breakFileLocks", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakReplication": "Microsoft.NetApp.Volumes.breakReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginCreateOrUpdate": "Microsoft.NetApp.Volumes.createOrUpdate", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDelete": "Microsoft.NetApp.Volumes.delete", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDeleteReplication": "Microsoft.NetApp.Volumes.deleteReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeExternalReplication": "Microsoft.NetApp.Volumes.finalizeExternalReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeRelocation": "Microsoft.NetApp.Volumes.finalizeRelocation", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginListGetGroupIdListForLdapUser": "Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPeerExternalCluster": "Microsoft.NetApp.Volumes.peerExternalCluster", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPerformReplicationTransfer": "Microsoft.NetApp.Volumes.performReplicationTransfer", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPoolChange": "Microsoft.NetApp.Volumes.poolChange", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPopulateAvailabilityZone": "Microsoft.NetApp.Volumes.populateAvailabilityZone", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReInitializeReplication": "Microsoft.NetApp.Volumes.reInitializeReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReestablishReplication": "Microsoft.NetApp.Volumes.reestablishReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRelocate": "Microsoft.NetApp.Volumes.relocate", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResetCifsPassword": "Microsoft.NetApp.Volumes.resetCifsPassword", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResyncReplication": "Microsoft.NetApp.Volumes.resyncReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevert": "Microsoft.NetApp.Volumes.revert", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevertRelocation": "Microsoft.NetApp.Volumes.revertRelocation", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginSplitCloneFromParent": "Microsoft.NetApp.Volumes.splitCloneFromParent", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.beginUpdate": "Microsoft.NetApp.Volumes.update", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.breakFileLocks": "Microsoft.NetApp.Volumes.breakFileLocks", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.breakReplication": "Microsoft.NetApp.Volumes.breakReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.createOrUpdate": "Microsoft.NetApp.Volumes.createOrUpdate", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.delete": "Microsoft.NetApp.Volumes.delete", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.deleteReplication": "Microsoft.NetApp.Volumes.deleteReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeExternalReplication": "Microsoft.NetApp.Volumes.finalizeExternalReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeRelocation": "Microsoft.NetApp.Volumes.finalizeRelocation", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.get": "Microsoft.NetApp.Volumes.get", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.getWithResponse": "Microsoft.NetApp.Volumes.get", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.list": "Microsoft.NetApp.Volumes.list", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.listGetGroupIdListForLdapUser": "Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.listReplications": "Microsoft.NetApp.Volumes.listReplications", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.peerExternalCluster": "Microsoft.NetApp.Volumes.peerExternalCluster", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.performReplicationTransfer": "Microsoft.NetApp.Volumes.performReplicationTransfer", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.poolChange": "Microsoft.NetApp.Volumes.poolChange", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.populateAvailabilityZone": "Microsoft.NetApp.Volumes.populateAvailabilityZone", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.reInitializeReplication": "Microsoft.NetApp.Volumes.reInitializeReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.reestablishReplication": "Microsoft.NetApp.Volumes.reestablishReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.relocate": "Microsoft.NetApp.Volumes.relocate", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatus": "Microsoft.NetApp.Volumes.replicationStatus", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatusWithResponse": "Microsoft.NetApp.Volumes.replicationStatus", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.resetCifsPassword": "Microsoft.NetApp.Volumes.resetCifsPassword", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.resyncReplication": "Microsoft.NetApp.Volumes.resyncReplication", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.revert": "Microsoft.NetApp.Volumes.revert", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.revertRelocation": "Microsoft.NetApp.Volumes.revertRelocation", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.splitCloneFromParent": "Microsoft.NetApp.Volumes.splitCloneFromParent", + "com.azure.resourcemanager.netapp.fluent.VolumesClient.update": "Microsoft.NetApp.Volumes.update", + "com.azure.resourcemanager.netapp.fluent.models.AccountProperties": "Microsoft.NetApp.AccountProperties", + "com.azure.resourcemanager.netapp.fluent.models.BackupInner": "Microsoft.NetApp.Backup", + "com.azure.resourcemanager.netapp.fluent.models.BackupPatchProperties": "Microsoft.NetApp.BackupPatchProperties", + "com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner": "Microsoft.NetApp.BackupPolicy", + "com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties": "Microsoft.NetApp.BackupPolicyProperties", + "com.azure.resourcemanager.netapp.fluent.models.BackupProperties": "Microsoft.NetApp.BackupProperties", + "com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner": "Microsoft.NetApp.BackupStatus", + "com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner": "Microsoft.NetApp.BackupVault", + "com.azure.resourcemanager.netapp.fluent.models.BackupVaultProperties": "Microsoft.NetApp.BackupVaultProperties", + "com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner": "Microsoft.NetApp.CapacityPool", + "com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner": "Microsoft.NetApp.CheckAvailabilityResponse", + "com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner": "Microsoft.NetApp.ClusterPeerCommandResponse", + "com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner": "Microsoft.NetApp.GetGroupIdListForLdapUserResponse", + "com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseInner": "Microsoft.NetApp.GetKeyVaultStatusResponse", + "com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseProperties": "Microsoft.NetApp.GetKeyVaultStatusResponseProperties", + "com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner": "Microsoft.NetApp.NetAppAccount", + "com.azure.resourcemanager.netapp.fluent.models.NetworkSiblingSetInner": "Microsoft.NetApp.NetworkSiblingSet", + "com.azure.resourcemanager.netapp.fluent.models.OperationInner": "Microsoft.NetApp.Operation", + "com.azure.resourcemanager.netapp.fluent.models.OperationProperties": "Microsoft.NetApp.OperationProperties", + "com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties": "Microsoft.NetApp.PoolPatchProperties", + "com.azure.resourcemanager.netapp.fluent.models.PoolProperties": "Microsoft.NetApp.PoolProperties", + "com.azure.resourcemanager.netapp.fluent.models.QuotaItemProperties": "Microsoft.NetApp.QuotaItemProperties", + "com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner": "Microsoft.NetApp.RegionInfo", + "com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner": "Microsoft.NetApp.RegionInfoResource", + "com.azure.resourcemanager.netapp.fluent.models.ReplicationInner": "Microsoft.NetApp.Replication", + "com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner": "Microsoft.NetApp.ReplicationStatus", + "com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner": "Microsoft.NetApp.RestoreStatus", + "com.azure.resourcemanager.netapp.fluent.models.SnapshotInner": "Microsoft.NetApp.Snapshot", + "com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner": "Microsoft.NetApp.SnapshotPolicy", + "com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties": "Microsoft.NetApp.SnapshotPolicyProperties", + "com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner": "Microsoft.NetApp.SnapshotPolicyVolumeList", + "com.azure.resourcemanager.netapp.fluent.models.SnapshotProperties": "Microsoft.NetApp.SnapshotProperties", + "com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner": "Microsoft.NetApp.QuotaItem", + "com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner": "Microsoft.NetApp.SubvolumeInfo", + "com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner": "Microsoft.NetApp.SubvolumeModel", + "com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelProperties": "Microsoft.NetApp.SubvolumeModelProperties", + "com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams": "Microsoft.NetApp.SubvolumePatchParams", + "com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties": "Microsoft.NetApp.SubvolumeProperties", + "com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner": "Microsoft.NetApp.SvmPeerCommandResponse", + "com.azure.resourcemanager.netapp.fluent.models.UsageProperties": "Microsoft.NetApp.UsageProperties", + "com.azure.resourcemanager.netapp.fluent.models.UsageResultInner": "Microsoft.NetApp.UsageResult", + "com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner": "Microsoft.NetApp.VolumeGroupDetails", + "com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner": "Microsoft.NetApp.VolumeGroup", + "com.azure.resourcemanager.netapp.fluent.models.VolumeGroupListProperties": "Microsoft.NetApp.VolumeGroupListProperties", + "com.azure.resourcemanager.netapp.fluent.models.VolumeGroupProperties": "Microsoft.NetApp.VolumeGroupProperties", + "com.azure.resourcemanager.netapp.fluent.models.VolumeInner": "Microsoft.NetApp.Volume", + "com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties": "Microsoft.NetApp.VolumePatchProperties", + "com.azure.resourcemanager.netapp.fluent.models.VolumeProperties": "Microsoft.NetApp.VolumeProperties", + "com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner": "Microsoft.NetApp.VolumeQuotaRule", + "com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRulesProperties": "Microsoft.NetApp.VolumeQuotaRulesProperties", + "com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder": "Microsoft.NetApp", + "com.azure.resourcemanager.netapp.implementation.models.BackupPoliciesList": "Microsoft.NetApp.BackupPoliciesList", + "com.azure.resourcemanager.netapp.implementation.models.BackupVaultsList": "Microsoft.NetApp.BackupVaultsList", + "com.azure.resourcemanager.netapp.implementation.models.BackupsList": "Microsoft.NetApp.BackupsList", + "com.azure.resourcemanager.netapp.implementation.models.CapacityPoolList": "Microsoft.NetApp.CapacityPoolList", + "com.azure.resourcemanager.netapp.implementation.models.ListReplications": "Microsoft.NetApp.ListReplications", + "com.azure.resourcemanager.netapp.implementation.models.NetAppAccountList": "Microsoft.NetApp.NetAppAccountList", + "com.azure.resourcemanager.netapp.implementation.models.OperationListResult": "Microsoft.NetApp.OperationListResult", + "com.azure.resourcemanager.netapp.implementation.models.QuotaItemList": "Microsoft.NetApp.QuotaItemList", + "com.azure.resourcemanager.netapp.implementation.models.RegionInfosList": "Microsoft.NetApp.RegionInfosList", + "com.azure.resourcemanager.netapp.implementation.models.SnapshotPoliciesList": "Microsoft.NetApp.SnapshotPoliciesList", + "com.azure.resourcemanager.netapp.implementation.models.SnapshotsList": "Microsoft.NetApp.SnapshotsList", + "com.azure.resourcemanager.netapp.implementation.models.SubvolumesList": "Microsoft.NetApp.SubvolumesList", + "com.azure.resourcemanager.netapp.implementation.models.UsagesListResult": "Microsoft.NetApp.UsagesListResult", + "com.azure.resourcemanager.netapp.implementation.models.VolumeGroupList": "Microsoft.NetApp.VolumeGroupList", + "com.azure.resourcemanager.netapp.implementation.models.VolumeList": "Microsoft.NetApp.VolumeList", + "com.azure.resourcemanager.netapp.implementation.models.VolumeQuotaRulesList": "Microsoft.NetApp.VolumeQuotaRulesList", + "com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit": "Microsoft.NetApp.AcceptGrowCapacityPoolForShortTermCloneSplit", + "com.azure.resourcemanager.netapp.models.AccountEncryption": "Microsoft.NetApp.AccountEncryption", + "com.azure.resourcemanager.netapp.models.ActiveDirectory": "Microsoft.NetApp.ActiveDirectory", + "com.azure.resourcemanager.netapp.models.ActiveDirectoryStatus": "Microsoft.NetApp.ActiveDirectoryStatus", + "com.azure.resourcemanager.netapp.models.ApplicationType": "Microsoft.NetApp.ApplicationType", + "com.azure.resourcemanager.netapp.models.AuthorizeRequest": "Microsoft.NetApp.AuthorizeRequest", + "com.azure.resourcemanager.netapp.models.AvsDataStore": "Microsoft.NetApp.AvsDataStore", + "com.azure.resourcemanager.netapp.models.BackupPatch": "Microsoft.NetApp.BackupPatch", + "com.azure.resourcemanager.netapp.models.BackupPolicyPatch": "Microsoft.NetApp.BackupPolicyPatch", + "com.azure.resourcemanager.netapp.models.BackupRestoreFiles": "Microsoft.NetApp.BackupRestoreFiles", + "com.azure.resourcemanager.netapp.models.BackupType": "Microsoft.NetApp.BackupType", + "com.azure.resourcemanager.netapp.models.BackupVaultPatch": "Microsoft.NetApp.BackupVaultPatch", + "com.azure.resourcemanager.netapp.models.BackupsMigrationRequest": "Microsoft.NetApp.BackupsMigrationRequest", + "com.azure.resourcemanager.netapp.models.BreakFileLocksRequest": "Microsoft.NetApp.BreakFileLocksRequest", + "com.azure.resourcemanager.netapp.models.BreakReplicationRequest": "Microsoft.NetApp.BreakReplicationRequest", + "com.azure.resourcemanager.netapp.models.CapacityPoolPatch": "Microsoft.NetApp.CapacityPoolPatch", + "com.azure.resourcemanager.netapp.models.ChangeKeyVault": "Microsoft.NetApp.ChangeKeyVault", + "com.azure.resourcemanager.netapp.models.CheckNameResourceTypes": "Microsoft.NetApp.CheckNameResourceTypes", + "com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes": "Microsoft.NetApp.CheckQuotaNameResourceTypes", + "com.azure.resourcemanager.netapp.models.ChownMode": "Microsoft.NetApp.ChownMode", + "com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy": "Microsoft.NetApp.CoolAccessRetrievalPolicy", + "com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy": "Microsoft.NetApp.CoolAccessTieringPolicy", + "com.azure.resourcemanager.netapp.models.DailySchedule": "Microsoft.NetApp.DailySchedule", + "com.azure.resourcemanager.netapp.models.DestinationReplication": "Microsoft.NetApp.DestinationReplication", + "com.azure.resourcemanager.netapp.models.Dimension": "Microsoft.NetApp.Dimension", + "com.azure.resourcemanager.netapp.models.EnableSubvolumes": "Microsoft.NetApp.EnableSubvolumes", + "com.azure.resourcemanager.netapp.models.EncryptionIdentity": "Microsoft.NetApp.EncryptionIdentity", + "com.azure.resourcemanager.netapp.models.EncryptionKeySource": "Microsoft.NetApp.EncryptionKeySource", + "com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest": "Microsoft.NetApp.EncryptionTransitionRequest", + "com.azure.resourcemanager.netapp.models.EncryptionType": "Microsoft.NetApp.EncryptionType", + "com.azure.resourcemanager.netapp.models.EndpointType": "Microsoft.NetApp.EndpointType", + "com.azure.resourcemanager.netapp.models.Exclude": "Microsoft.NetApp.Exclude", + "com.azure.resourcemanager.netapp.models.ExportPolicyRule": "Microsoft.NetApp.ExportPolicyRule", + "com.azure.resourcemanager.netapp.models.FileAccessLogs": "Microsoft.NetApp.FileAccessLogs", + "com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest": "Microsoft.NetApp.FilePathAvailabilityRequest", + "com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest": "Microsoft.NetApp.GetGroupIdListForLdapUserRequest", + "com.azure.resourcemanager.netapp.models.HourlySchedule": "Microsoft.NetApp.HourlySchedule", + "com.azure.resourcemanager.netapp.models.InAvailabilityReasonType": "Microsoft.NetApp.InAvailabilityReasonType", + "com.azure.resourcemanager.netapp.models.KeySource": "Microsoft.NetApp.KeySource", + "com.azure.resourcemanager.netapp.models.KeyVaultPrivateEndpoint": "Microsoft.NetApp.KeyVaultPrivateEndpoint", + "com.azure.resourcemanager.netapp.models.KeyVaultProperties": "Microsoft.NetApp.KeyVaultProperties", + "com.azure.resourcemanager.netapp.models.KeyVaultStatus": "Microsoft.NetApp.KeyVaultStatus", + "com.azure.resourcemanager.netapp.models.LdapSearchScopeOpt": "Microsoft.NetApp.LdapSearchScopeOpt", + "com.azure.resourcemanager.netapp.models.ListReplicationsRequest": "Microsoft.NetApp.ListReplicationsRequest", + "com.azure.resourcemanager.netapp.models.LogSpecification": "Microsoft.NetApp.LogSpecification", + "com.azure.resourcemanager.netapp.models.ManagedServiceIdentity": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity", + "com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType", + "com.azure.resourcemanager.netapp.models.MetricAggregationType": "Microsoft.NetApp.MetricAggregationType", + "com.azure.resourcemanager.netapp.models.MetricSpecification": "Microsoft.NetApp.MetricSpecification", + "com.azure.resourcemanager.netapp.models.MirrorState": "Microsoft.NetApp.MirrorState", + "com.azure.resourcemanager.netapp.models.MonthlySchedule": "Microsoft.NetApp.MonthlySchedule", + "com.azure.resourcemanager.netapp.models.MountTargetProperties": "Microsoft.NetApp.MountTargetProperties", + "com.azure.resourcemanager.netapp.models.MultiAdStatus": "Microsoft.NetApp.MultiAdStatus", + "com.azure.resourcemanager.netapp.models.NetAppAccountPatch": "Microsoft.NetApp.NetAppAccountPatch", + "com.azure.resourcemanager.netapp.models.NetworkFeatures": "Microsoft.NetApp.NetworkFeatures", + "com.azure.resourcemanager.netapp.models.NetworkSiblingSetProvisioningState": "Microsoft.NetApp.NetworkSiblingSetProvisioningState", + "com.azure.resourcemanager.netapp.models.NicInfo": "Microsoft.NetApp.NicInfo", + "com.azure.resourcemanager.netapp.models.OperationDisplay": "Microsoft.NetApp.OperationDisplay", + "com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest": "Microsoft.NetApp.PeerClusterForVolumeMigrationRequest", + "com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs": "Microsoft.NetApp.PlacementKeyValuePairs", + "com.azure.resourcemanager.netapp.models.PoolChangeRequest": "Microsoft.NetApp.PoolChangeRequest", + "com.azure.resourcemanager.netapp.models.ProvisioningState": "Microsoft.NetApp.NetAppProvisioningState", + "com.azure.resourcemanager.netapp.models.QosType": "Microsoft.NetApp.QosType", + "com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest": "Microsoft.NetApp.QueryNetworkSiblingSetRequest", + "com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest": "Microsoft.NetApp.QuotaAvailabilityRequest", + "com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest": "Microsoft.NetApp.ReestablishReplicationRequest", + "com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem": "Microsoft.NetApp.RegionInfoAvailabilityZoneMappingsItem", + "com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity": "Microsoft.NetApp.RegionStorageToNetworkProximity", + "com.azure.resourcemanager.netapp.models.RelocateVolumeRequest": "Microsoft.NetApp.RelocateVolumeRequest", + "com.azure.resourcemanager.netapp.models.RemotePath": "Microsoft.NetApp.RemotePath", + "com.azure.resourcemanager.netapp.models.ReplicationMirrorState": "Microsoft.NetApp.ReplicationMirrorState", + "com.azure.resourcemanager.netapp.models.ReplicationObject": "Microsoft.NetApp.ReplicationObject", + "com.azure.resourcemanager.netapp.models.ReplicationSchedule": "Microsoft.NetApp.ReplicationSchedule", + "com.azure.resourcemanager.netapp.models.ReplicationType": "Microsoft.NetApp.ReplicationType", + "com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest": "Microsoft.NetApp.ResourceNameAvailabilityRequest", + "com.azure.resourcemanager.netapp.models.SecurityStyle": "Microsoft.NetApp.SecurityStyle", + "com.azure.resourcemanager.netapp.models.ServiceLevel": "Microsoft.NetApp.ServiceLevel", + "com.azure.resourcemanager.netapp.models.ServiceSpecification": "Microsoft.NetApp.ServiceSpecification", + "com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration": "Microsoft.NetApp.SmbAccessBasedEnumeration", + "com.azure.resourcemanager.netapp.models.SmbNonBrowsable": "Microsoft.NetApp.SmbNonBrowsable", + "com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch": "Microsoft.NetApp.SnapshotPolicyPatch", + "com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles": "Microsoft.NetApp.SnapshotRestoreFiles", + "com.azure.resourcemanager.netapp.models.SubvolumePatchRequest": "Microsoft.NetApp.SubvolumePatchRequest", + "com.azure.resourcemanager.netapp.models.Type": "Microsoft.NetApp.Type", + "com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest": "Microsoft.NetApp.UpdateNetworkSiblingSetRequest", + "com.azure.resourcemanager.netapp.models.UsageName": "Microsoft.NetApp.UsageName", + "com.azure.resourcemanager.netapp.models.UserAssignedIdentity": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity", + "com.azure.resourcemanager.netapp.models.VolumeBackupProperties": "Microsoft.NetApp.VolumeBackupProperties", + "com.azure.resourcemanager.netapp.models.VolumeBackupRelationshipStatus": "Microsoft.NetApp.VolumeBackupRelationshipStatus", + "com.azure.resourcemanager.netapp.models.VolumeBackups": "Microsoft.NetApp.VolumeBackups", + "com.azure.resourcemanager.netapp.models.VolumeGroupMetadata": "Microsoft.NetApp.VolumeGroupMetaData", + "com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties": "Microsoft.NetApp.VolumeGroupVolumeProperties", + "com.azure.resourcemanager.netapp.models.VolumePatch": "Microsoft.NetApp.VolumePatch", + "com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection": "Microsoft.NetApp.VolumePatchPropertiesDataProtection", + "com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy": "Microsoft.NetApp.VolumePatchPropertiesExportPolicy", + "com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection": "Microsoft.NetApp.VolumePropertiesDataProtection", + "com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy": "Microsoft.NetApp.VolumePropertiesExportPolicy", + "com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch": "Microsoft.NetApp.VolumeQuotaRulePatch", + "com.azure.resourcemanager.netapp.models.VolumeRelocationProperties": "Microsoft.NetApp.VolumeRelocationProperties", + "com.azure.resourcemanager.netapp.models.VolumeReplicationRelationshipStatus": "Microsoft.NetApp.VolumeReplicationRelationshipStatus", + "com.azure.resourcemanager.netapp.models.VolumeRestoreRelationshipStatus": "Microsoft.NetApp.VolumeRestoreRelationshipStatus", + "com.azure.resourcemanager.netapp.models.VolumeRevert": "Microsoft.NetApp.VolumeRevert", + "com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties": "Microsoft.NetApp.VolumeSnapshotProperties", + "com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity": "Microsoft.NetApp.VolumeStorageToNetworkProximity", + "com.azure.resourcemanager.netapp.models.WeeklySchedule": "Microsoft.NetApp.WeeklySchedule" + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json new file mode 100644 index 000000000000..de5761365dfb --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json @@ -0,0 +1 @@ +{"flavor":"azure","apiVersion":"2025-09-01","crossLanguageDefinitions":{"com.azure.resourcemanager.netapp.fluent.AccountsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginChangeKeyVault":"Microsoft.NetApp.NetAppAccounts.changeKeyVault","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginCreateOrUpdate":"Microsoft.NetApp.NetAppAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginDelete":"Microsoft.NetApp.NetAppAccounts.delete","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginGetChangeKeyVaultInformation":"Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginRenewCredentials":"Microsoft.NetApp.NetAppAccounts.renewCredentials","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginTransitionToCmk":"Microsoft.NetApp.NetAppAccounts.transitionToCmk","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginUpdate":"Microsoft.NetApp.NetAppAccounts.update","com.azure.resourcemanager.netapp.fluent.AccountsClient.changeKeyVault":"Microsoft.NetApp.NetAppAccounts.changeKeyVault","com.azure.resourcemanager.netapp.fluent.AccountsClient.createOrUpdate":"Microsoft.NetApp.NetAppAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.AccountsClient.delete":"Microsoft.NetApp.NetAppAccounts.delete","com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroup":"Microsoft.NetApp.NetAppAccounts.get","com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroupWithResponse":"Microsoft.NetApp.NetAppAccounts.get","com.azure.resourcemanager.netapp.fluent.AccountsClient.getChangeKeyVaultInformation":"Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation","com.azure.resourcemanager.netapp.fluent.AccountsClient.list":"Microsoft.NetApp.NetAppAccounts.listBySubscription","com.azure.resourcemanager.netapp.fluent.AccountsClient.listByResourceGroup":"Microsoft.NetApp.NetAppAccounts.list","com.azure.resourcemanager.netapp.fluent.AccountsClient.renewCredentials":"Microsoft.NetApp.NetAppAccounts.renewCredentials","com.azure.resourcemanager.netapp.fluent.AccountsClient.transitionToCmk":"Microsoft.NetApp.NetAppAccounts.transitionToCmk","com.azure.resourcemanager.netapp.fluent.AccountsClient.update":"Microsoft.NetApp.NetAppAccounts.update","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient":"Microsoft.NetApp.BackupPolicies","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginCreate":"Microsoft.NetApp.BackupPolicies.create","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginDelete":"Microsoft.NetApp.BackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginUpdate":"Microsoft.NetApp.BackupPolicies.update","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.create":"Microsoft.NetApp.BackupPolicies.create","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.delete":"Microsoft.NetApp.BackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.get":"Microsoft.NetApp.BackupPolicies.get","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.getWithResponse":"Microsoft.NetApp.BackupPolicies.get","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.list":"Microsoft.NetApp.BackupPolicies.list","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.update":"Microsoft.NetApp.BackupPolicies.update","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient":"Microsoft.NetApp.BackupVaults","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginCreateOrUpdate":"Microsoft.NetApp.BackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginDelete":"Microsoft.NetApp.BackupVaults.delete","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginUpdate":"Microsoft.NetApp.BackupVaults.update","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.createOrUpdate":"Microsoft.NetApp.BackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.delete":"Microsoft.NetApp.BackupVaults.delete","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.get":"Microsoft.NetApp.BackupVaults.get","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.getWithResponse":"Microsoft.NetApp.BackupVaults.get","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.listByNetAppAccount":"Microsoft.NetApp.BackupVaults.listByNetAppAccount","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.update":"Microsoft.NetApp.BackupVaults.update","com.azure.resourcemanager.netapp.fluent.BackupsClient":"Microsoft.NetApp.Backups","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginCreate":"Microsoft.NetApp.Backups.create","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginDelete":"Microsoft.NetApp.Backups.delete","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginUpdate":"Microsoft.NetApp.Backups.update","com.azure.resourcemanager.netapp.fluent.BackupsClient.create":"Microsoft.NetApp.Backups.create","com.azure.resourcemanager.netapp.fluent.BackupsClient.delete":"Microsoft.NetApp.Backups.delete","com.azure.resourcemanager.netapp.fluent.BackupsClient.get":"Microsoft.NetApp.Backups.get","com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatus":"Microsoft.NetApp.Volumes.getLatestStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatusWithResponse":"Microsoft.NetApp.Volumes.getLatestStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatus":"Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatusWithResponse":"Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getWithResponse":"Microsoft.NetApp.Backups.get","com.azure.resourcemanager.netapp.fluent.BackupsClient.listByVault":"Microsoft.NetApp.Backups.listByVault","com.azure.resourcemanager.netapp.fluent.BackupsClient.update":"Microsoft.NetApp.Backups.update","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.beginMigrateBackups":"Microsoft.NetApp.NetAppAccounts.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.migrateBackups":"Microsoft.NetApp.NetAppAccounts.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.beginRestoreFiles":"Microsoft.NetApp.Backups.restoreFiles","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.restoreFiles":"Microsoft.NetApp.Backups.restoreFiles","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.beginMigrateBackups":"Microsoft.NetApp.Volumes.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.migrateBackups":"Microsoft.NetApp.Volumes.migrateBackups","com.azure.resourcemanager.netapp.fluent.NetAppManagementClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.get":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.getWithResponse":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.list":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.get":"Microsoft.NetApp.SubscriptionQuotaItems.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.getWithResponse":"Microsoft.NetApp.SubscriptionQuotaItems.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.list":"Microsoft.NetApp.SubscriptionQuotaItems.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.get":"Microsoft.NetApp.RegionInfoResources.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.getWithResponse":"Microsoft.NetApp.RegionInfoResources.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.list":"Microsoft.NetApp.RegionInfoResources.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.get":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.getWithResponse":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.list":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.list","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.beginUpdateNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSetWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfo":"Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfoWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.updateNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.OperationsClient":"Microsoft.NetApp.Operations","com.azure.resourcemanager.netapp.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.netapp.fluent.PoolsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginCreateOrUpdate":"Microsoft.NetApp.CapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginDelete":"Microsoft.NetApp.CapacityPools.delete","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginUpdate":"Microsoft.NetApp.CapacityPools.update","com.azure.resourcemanager.netapp.fluent.PoolsClient.createOrUpdate":"Microsoft.NetApp.CapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.PoolsClient.delete":"Microsoft.NetApp.CapacityPools.delete","com.azure.resourcemanager.netapp.fluent.PoolsClient.get":"Microsoft.NetApp.CapacityPools.get","com.azure.resourcemanager.netapp.fluent.PoolsClient.getWithResponse":"Microsoft.NetApp.CapacityPools.get","com.azure.resourcemanager.netapp.fluent.PoolsClient.list":"Microsoft.NetApp.CapacityPools.list","com.azure.resourcemanager.netapp.fluent.PoolsClient.update":"Microsoft.NetApp.CapacityPools.update","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient":"Microsoft.NetApp.SnapshotPolicies","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginDelete":"Microsoft.NetApp.SnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginUpdate":"Microsoft.NetApp.SnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.create":"Microsoft.NetApp.SnapshotPolicies.create","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.createWithResponse":"Microsoft.NetApp.SnapshotPolicies.create","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.delete":"Microsoft.NetApp.SnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.get":"Microsoft.NetApp.SnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.getWithResponse":"Microsoft.NetApp.SnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.list":"Microsoft.NetApp.SnapshotPolicies.list","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumes":"Microsoft.NetApp.SnapshotPolicies.listVolumes","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumesWithResponse":"Microsoft.NetApp.SnapshotPolicies.listVolumes","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.update":"Microsoft.NetApp.SnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.SnapshotsClient":"Microsoft.NetApp.Snapshots","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginCreate":"Microsoft.NetApp.Snapshots.create","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginDelete":"Microsoft.NetApp.Snapshots.delete","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginRestoreFiles":"Microsoft.NetApp.Snapshots.restoreFiles","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.create":"Microsoft.NetApp.Snapshots.create","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.delete":"Microsoft.NetApp.Snapshots.delete","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.get":"Microsoft.NetApp.Snapshots.get","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.getWithResponse":"Microsoft.NetApp.Snapshots.get","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.list":"Microsoft.NetApp.Snapshots.list","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.restoreFiles":"Microsoft.NetApp.Snapshots.restoreFiles","com.azure.resourcemanager.netapp.fluent.SubvolumesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginCreate":"Microsoft.NetApp.SubvolumeInfos.create","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginDelete":"Microsoft.NetApp.SubvolumeInfos.delete","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginGetMetadata":"Microsoft.NetApp.SubvolumeInfos.getMetadata","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginUpdate":"Microsoft.NetApp.SubvolumeInfos.update","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.create":"Microsoft.NetApp.SubvolumeInfos.create","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.delete":"Microsoft.NetApp.SubvolumeInfos.delete","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.get":"Microsoft.NetApp.SubvolumeInfos.get","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getMetadata":"Microsoft.NetApp.SubvolumeInfos.getMetadata","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getWithResponse":"Microsoft.NetApp.SubvolumeInfos.get","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.listByVolume":"Microsoft.NetApp.SubvolumeInfos.listByVolume","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.update":"Microsoft.NetApp.SubvolumeInfos.update","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient":"Microsoft.NetApp.VolumeGroups","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginCreate":"Microsoft.NetApp.VolumeGroups.create","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginDelete":"Microsoft.NetApp.VolumeGroups.delete","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.create":"Microsoft.NetApp.VolumeGroups.create","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.delete":"Microsoft.NetApp.VolumeGroups.delete","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.get":"Microsoft.NetApp.VolumeGroups.get","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.getWithResponse":"Microsoft.NetApp.VolumeGroups.get","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.listByNetAppAccount":"Microsoft.NetApp.NetAppAccounts.listByNetAppAccount","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient":"Microsoft.NetApp.VolumeQuotaRules","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginCreate":"Microsoft.NetApp.VolumeQuotaRules.create","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginDelete":"Microsoft.NetApp.VolumeQuotaRules.delete","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginUpdate":"Microsoft.NetApp.VolumeQuotaRules.update","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.create":"Microsoft.NetApp.VolumeQuotaRules.create","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.delete":"Microsoft.NetApp.VolumeQuotaRules.delete","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.get":"Microsoft.NetApp.VolumeQuotaRules.get","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.getWithResponse":"Microsoft.NetApp.VolumeQuotaRules.get","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.listByVolume":"Microsoft.NetApp.VolumeQuotaRules.listByVolume","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.update":"Microsoft.NetApp.VolumeQuotaRules.update","com.azure.resourcemanager.netapp.fluent.VolumesClient":"Microsoft.NetApp.Volumes","com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeExternalReplication":"Microsoft.NetApp.Volumes.authorizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeReplication":"Microsoft.NetApp.Volumes.authorizeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeExternalReplication":"Microsoft.NetApp.Volumes.authorizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeReplication":"Microsoft.NetApp.Volumes.authorizeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakFileLocks":"Microsoft.NetApp.Volumes.breakFileLocks","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakReplication":"Microsoft.NetApp.Volumes.breakReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginCreateOrUpdate":"Microsoft.NetApp.Volumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDelete":"Microsoft.NetApp.Volumes.delete","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDeleteReplication":"Microsoft.NetApp.Volumes.deleteReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeExternalReplication":"Microsoft.NetApp.Volumes.finalizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeRelocation":"Microsoft.NetApp.Volumes.finalizeRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginListGetGroupIdListForLdapUser":"Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPeerExternalCluster":"Microsoft.NetApp.Volumes.peerExternalCluster","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPerformReplicationTransfer":"Microsoft.NetApp.Volumes.performReplicationTransfer","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPoolChange":"Microsoft.NetApp.Volumes.poolChange","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPopulateAvailabilityZone":"Microsoft.NetApp.Volumes.populateAvailabilityZone","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReInitializeReplication":"Microsoft.NetApp.Volumes.reInitializeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReestablishReplication":"Microsoft.NetApp.Volumes.reestablishReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRelocate":"Microsoft.NetApp.Volumes.relocate","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResetCifsPassword":"Microsoft.NetApp.Volumes.resetCifsPassword","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResyncReplication":"Microsoft.NetApp.Volumes.resyncReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevert":"Microsoft.NetApp.Volumes.revert","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevertRelocation":"Microsoft.NetApp.Volumes.revertRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginSplitCloneFromParent":"Microsoft.NetApp.Volumes.splitCloneFromParent","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginUpdate":"Microsoft.NetApp.Volumes.update","com.azure.resourcemanager.netapp.fluent.VolumesClient.breakFileLocks":"Microsoft.NetApp.Volumes.breakFileLocks","com.azure.resourcemanager.netapp.fluent.VolumesClient.breakReplication":"Microsoft.NetApp.Volumes.breakReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.createOrUpdate":"Microsoft.NetApp.Volumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.VolumesClient.delete":"Microsoft.NetApp.Volumes.delete","com.azure.resourcemanager.netapp.fluent.VolumesClient.deleteReplication":"Microsoft.NetApp.Volumes.deleteReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeExternalReplication":"Microsoft.NetApp.Volumes.finalizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeRelocation":"Microsoft.NetApp.Volumes.finalizeRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.get":"Microsoft.NetApp.Volumes.get","com.azure.resourcemanager.netapp.fluent.VolumesClient.getWithResponse":"Microsoft.NetApp.Volumes.get","com.azure.resourcemanager.netapp.fluent.VolumesClient.list":"Microsoft.NetApp.Volumes.list","com.azure.resourcemanager.netapp.fluent.VolumesClient.listGetGroupIdListForLdapUser":"Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser","com.azure.resourcemanager.netapp.fluent.VolumesClient.listReplications":"Microsoft.NetApp.Volumes.listReplications","com.azure.resourcemanager.netapp.fluent.VolumesClient.peerExternalCluster":"Microsoft.NetApp.Volumes.peerExternalCluster","com.azure.resourcemanager.netapp.fluent.VolumesClient.performReplicationTransfer":"Microsoft.NetApp.Volumes.performReplicationTransfer","com.azure.resourcemanager.netapp.fluent.VolumesClient.poolChange":"Microsoft.NetApp.Volumes.poolChange","com.azure.resourcemanager.netapp.fluent.VolumesClient.populateAvailabilityZone":"Microsoft.NetApp.Volumes.populateAvailabilityZone","com.azure.resourcemanager.netapp.fluent.VolumesClient.reInitializeReplication":"Microsoft.NetApp.Volumes.reInitializeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.reestablishReplication":"Microsoft.NetApp.Volumes.reestablishReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.relocate":"Microsoft.NetApp.Volumes.relocate","com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatus":"Microsoft.NetApp.Volumes.replicationStatus","com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatusWithResponse":"Microsoft.NetApp.Volumes.replicationStatus","com.azure.resourcemanager.netapp.fluent.VolumesClient.resetCifsPassword":"Microsoft.NetApp.Volumes.resetCifsPassword","com.azure.resourcemanager.netapp.fluent.VolumesClient.resyncReplication":"Microsoft.NetApp.Volumes.resyncReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.revert":"Microsoft.NetApp.Volumes.revert","com.azure.resourcemanager.netapp.fluent.VolumesClient.revertRelocation":"Microsoft.NetApp.Volumes.revertRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.splitCloneFromParent":"Microsoft.NetApp.Volumes.splitCloneFromParent","com.azure.resourcemanager.netapp.fluent.VolumesClient.update":"Microsoft.NetApp.Volumes.update","com.azure.resourcemanager.netapp.fluent.models.AccountProperties":"Microsoft.NetApp.AccountProperties","com.azure.resourcemanager.netapp.fluent.models.BackupInner":"Microsoft.NetApp.Backup","com.azure.resourcemanager.netapp.fluent.models.BackupPatchProperties":"Microsoft.NetApp.BackupPatchProperties","com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner":"Microsoft.NetApp.BackupPolicy","com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties":"Microsoft.NetApp.BackupPolicyProperties","com.azure.resourcemanager.netapp.fluent.models.BackupProperties":"Microsoft.NetApp.BackupProperties","com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner":"Microsoft.NetApp.BackupStatus","com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner":"Microsoft.NetApp.BackupVault","com.azure.resourcemanager.netapp.fluent.models.BackupVaultProperties":"Microsoft.NetApp.BackupVaultProperties","com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner":"Microsoft.NetApp.CapacityPool","com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner":"Microsoft.NetApp.CheckAvailabilityResponse","com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner":"Microsoft.NetApp.ClusterPeerCommandResponse","com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner":"Microsoft.NetApp.GetGroupIdListForLdapUserResponse","com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseInner":"Microsoft.NetApp.GetKeyVaultStatusResponse","com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseProperties":"Microsoft.NetApp.GetKeyVaultStatusResponseProperties","com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner":"Microsoft.NetApp.NetAppAccount","com.azure.resourcemanager.netapp.fluent.models.NetworkSiblingSetInner":"Microsoft.NetApp.NetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.models.OperationInner":"Microsoft.NetApp.Operation","com.azure.resourcemanager.netapp.fluent.models.OperationProperties":"Microsoft.NetApp.OperationProperties","com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties":"Microsoft.NetApp.PoolPatchProperties","com.azure.resourcemanager.netapp.fluent.models.PoolProperties":"Microsoft.NetApp.PoolProperties","com.azure.resourcemanager.netapp.fluent.models.QuotaItemProperties":"Microsoft.NetApp.QuotaItemProperties","com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner":"Microsoft.NetApp.RegionInfo","com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner":"Microsoft.NetApp.RegionInfoResource","com.azure.resourcemanager.netapp.fluent.models.ReplicationInner":"Microsoft.NetApp.Replication","com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner":"Microsoft.NetApp.ReplicationStatus","com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner":"Microsoft.NetApp.RestoreStatus","com.azure.resourcemanager.netapp.fluent.models.SnapshotInner":"Microsoft.NetApp.Snapshot","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner":"Microsoft.NetApp.SnapshotPolicy","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties":"Microsoft.NetApp.SnapshotPolicyProperties","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner":"Microsoft.NetApp.SnapshotPolicyVolumeList","com.azure.resourcemanager.netapp.fluent.models.SnapshotProperties":"Microsoft.NetApp.SnapshotProperties","com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner":"Microsoft.NetApp.QuotaItem","com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner":"Microsoft.NetApp.SubvolumeInfo","com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner":"Microsoft.NetApp.SubvolumeModel","com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelProperties":"Microsoft.NetApp.SubvolumeModelProperties","com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams":"Microsoft.NetApp.SubvolumePatchParams","com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties":"Microsoft.NetApp.SubvolumeProperties","com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner":"Microsoft.NetApp.SvmPeerCommandResponse","com.azure.resourcemanager.netapp.fluent.models.UsageProperties":"Microsoft.NetApp.UsageProperties","com.azure.resourcemanager.netapp.fluent.models.UsageResultInner":"Microsoft.NetApp.UsageResult","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner":"Microsoft.NetApp.VolumeGroupDetails","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner":"Microsoft.NetApp.VolumeGroup","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupListProperties":"Microsoft.NetApp.VolumeGroupListProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupProperties":"Microsoft.NetApp.VolumeGroupProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeInner":"Microsoft.NetApp.Volume","com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties":"Microsoft.NetApp.VolumePatchProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeProperties":"Microsoft.NetApp.VolumeProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner":"Microsoft.NetApp.VolumeQuotaRule","com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRulesProperties":"Microsoft.NetApp.VolumeQuotaRulesProperties","com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder":"Microsoft.NetApp","com.azure.resourcemanager.netapp.implementation.models.BackupPoliciesList":"Microsoft.NetApp.BackupPoliciesList","com.azure.resourcemanager.netapp.implementation.models.BackupVaultsList":"Microsoft.NetApp.BackupVaultsList","com.azure.resourcemanager.netapp.implementation.models.BackupsList":"Microsoft.NetApp.BackupsList","com.azure.resourcemanager.netapp.implementation.models.CapacityPoolList":"Microsoft.NetApp.CapacityPoolList","com.azure.resourcemanager.netapp.implementation.models.ListReplications":"Microsoft.NetApp.ListReplications","com.azure.resourcemanager.netapp.implementation.models.NetAppAccountList":"Microsoft.NetApp.NetAppAccountList","com.azure.resourcemanager.netapp.implementation.models.OperationListResult":"Microsoft.NetApp.OperationListResult","com.azure.resourcemanager.netapp.implementation.models.QuotaItemList":"Microsoft.NetApp.QuotaItemList","com.azure.resourcemanager.netapp.implementation.models.RegionInfosList":"Microsoft.NetApp.RegionInfosList","com.azure.resourcemanager.netapp.implementation.models.SnapshotPoliciesList":"Microsoft.NetApp.SnapshotPoliciesList","com.azure.resourcemanager.netapp.implementation.models.SnapshotsList":"Microsoft.NetApp.SnapshotsList","com.azure.resourcemanager.netapp.implementation.models.SubvolumesList":"Microsoft.NetApp.SubvolumesList","com.azure.resourcemanager.netapp.implementation.models.UsagesListResult":"Microsoft.NetApp.UsagesListResult","com.azure.resourcemanager.netapp.implementation.models.VolumeGroupList":"Microsoft.NetApp.VolumeGroupList","com.azure.resourcemanager.netapp.implementation.models.VolumeList":"Microsoft.NetApp.VolumeList","com.azure.resourcemanager.netapp.implementation.models.VolumeQuotaRulesList":"Microsoft.NetApp.VolumeQuotaRulesList","com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit":"Microsoft.NetApp.AcceptGrowCapacityPoolForShortTermCloneSplit","com.azure.resourcemanager.netapp.models.AccountEncryption":"Microsoft.NetApp.AccountEncryption","com.azure.resourcemanager.netapp.models.ActiveDirectory":"Microsoft.NetApp.ActiveDirectory","com.azure.resourcemanager.netapp.models.ActiveDirectoryStatus":"Microsoft.NetApp.ActiveDirectoryStatus","com.azure.resourcemanager.netapp.models.ApplicationType":"Microsoft.NetApp.ApplicationType","com.azure.resourcemanager.netapp.models.AuthorizeRequest":"Microsoft.NetApp.AuthorizeRequest","com.azure.resourcemanager.netapp.models.AvsDataStore":"Microsoft.NetApp.AvsDataStore","com.azure.resourcemanager.netapp.models.BackupPatch":"Microsoft.NetApp.BackupPatch","com.azure.resourcemanager.netapp.models.BackupPolicyPatch":"Microsoft.NetApp.BackupPolicyPatch","com.azure.resourcemanager.netapp.models.BackupRestoreFiles":"Microsoft.NetApp.BackupRestoreFiles","com.azure.resourcemanager.netapp.models.BackupType":"Microsoft.NetApp.BackupType","com.azure.resourcemanager.netapp.models.BackupVaultPatch":"Microsoft.NetApp.BackupVaultPatch","com.azure.resourcemanager.netapp.models.BackupsMigrationRequest":"Microsoft.NetApp.BackupsMigrationRequest","com.azure.resourcemanager.netapp.models.BreakFileLocksRequest":"Microsoft.NetApp.BreakFileLocksRequest","com.azure.resourcemanager.netapp.models.BreakReplicationRequest":"Microsoft.NetApp.BreakReplicationRequest","com.azure.resourcemanager.netapp.models.CapacityPoolPatch":"Microsoft.NetApp.CapacityPoolPatch","com.azure.resourcemanager.netapp.models.ChangeKeyVault":"Microsoft.NetApp.ChangeKeyVault","com.azure.resourcemanager.netapp.models.CheckNameResourceTypes":"Microsoft.NetApp.CheckNameResourceTypes","com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes":"Microsoft.NetApp.CheckQuotaNameResourceTypes","com.azure.resourcemanager.netapp.models.ChownMode":"Microsoft.NetApp.ChownMode","com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy":"Microsoft.NetApp.CoolAccessRetrievalPolicy","com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy":"Microsoft.NetApp.CoolAccessTieringPolicy","com.azure.resourcemanager.netapp.models.DailySchedule":"Microsoft.NetApp.DailySchedule","com.azure.resourcemanager.netapp.models.DestinationReplication":"Microsoft.NetApp.DestinationReplication","com.azure.resourcemanager.netapp.models.Dimension":"Microsoft.NetApp.Dimension","com.azure.resourcemanager.netapp.models.EnableSubvolumes":"Microsoft.NetApp.EnableSubvolumes","com.azure.resourcemanager.netapp.models.EncryptionIdentity":"Microsoft.NetApp.EncryptionIdentity","com.azure.resourcemanager.netapp.models.EncryptionKeySource":"Microsoft.NetApp.EncryptionKeySource","com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest":"Microsoft.NetApp.EncryptionTransitionRequest","com.azure.resourcemanager.netapp.models.EncryptionType":"Microsoft.NetApp.EncryptionType","com.azure.resourcemanager.netapp.models.EndpointType":"Microsoft.NetApp.EndpointType","com.azure.resourcemanager.netapp.models.Exclude":"Microsoft.NetApp.Exclude","com.azure.resourcemanager.netapp.models.ExportPolicyRule":"Microsoft.NetApp.ExportPolicyRule","com.azure.resourcemanager.netapp.models.FileAccessLogs":"Microsoft.NetApp.FileAccessLogs","com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest":"Microsoft.NetApp.FilePathAvailabilityRequest","com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest":"Microsoft.NetApp.GetGroupIdListForLdapUserRequest","com.azure.resourcemanager.netapp.models.HourlySchedule":"Microsoft.NetApp.HourlySchedule","com.azure.resourcemanager.netapp.models.InAvailabilityReasonType":"Microsoft.NetApp.InAvailabilityReasonType","com.azure.resourcemanager.netapp.models.KeySource":"Microsoft.NetApp.KeySource","com.azure.resourcemanager.netapp.models.KeyVaultPrivateEndpoint":"Microsoft.NetApp.KeyVaultPrivateEndpoint","com.azure.resourcemanager.netapp.models.KeyVaultProperties":"Microsoft.NetApp.KeyVaultProperties","com.azure.resourcemanager.netapp.models.KeyVaultStatus":"Microsoft.NetApp.KeyVaultStatus","com.azure.resourcemanager.netapp.models.LdapSearchScopeOpt":"Microsoft.NetApp.LdapSearchScopeOpt","com.azure.resourcemanager.netapp.models.ListReplicationsRequest":"Microsoft.NetApp.ListReplicationsRequest","com.azure.resourcemanager.netapp.models.LogSpecification":"Microsoft.NetApp.LogSpecification","com.azure.resourcemanager.netapp.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.netapp.models.MetricAggregationType":"Microsoft.NetApp.MetricAggregationType","com.azure.resourcemanager.netapp.models.MetricSpecification":"Microsoft.NetApp.MetricSpecification","com.azure.resourcemanager.netapp.models.MirrorState":"Microsoft.NetApp.MirrorState","com.azure.resourcemanager.netapp.models.MonthlySchedule":"Microsoft.NetApp.MonthlySchedule","com.azure.resourcemanager.netapp.models.MountTargetProperties":"Microsoft.NetApp.MountTargetProperties","com.azure.resourcemanager.netapp.models.MultiAdStatus":"Microsoft.NetApp.MultiAdStatus","com.azure.resourcemanager.netapp.models.NetAppAccountPatch":"Microsoft.NetApp.NetAppAccountPatch","com.azure.resourcemanager.netapp.models.NetworkFeatures":"Microsoft.NetApp.NetworkFeatures","com.azure.resourcemanager.netapp.models.NetworkSiblingSetProvisioningState":"Microsoft.NetApp.NetworkSiblingSetProvisioningState","com.azure.resourcemanager.netapp.models.NicInfo":"Microsoft.NetApp.NicInfo","com.azure.resourcemanager.netapp.models.OperationDisplay":"Microsoft.NetApp.OperationDisplay","com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest":"Microsoft.NetApp.PeerClusterForVolumeMigrationRequest","com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs":"Microsoft.NetApp.PlacementKeyValuePairs","com.azure.resourcemanager.netapp.models.PoolChangeRequest":"Microsoft.NetApp.PoolChangeRequest","com.azure.resourcemanager.netapp.models.ProvisioningState":"Microsoft.NetApp.NetAppProvisioningState","com.azure.resourcemanager.netapp.models.QosType":"Microsoft.NetApp.QosType","com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest":"Microsoft.NetApp.QueryNetworkSiblingSetRequest","com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest":"Microsoft.NetApp.QuotaAvailabilityRequest","com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest":"Microsoft.NetApp.ReestablishReplicationRequest","com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem":"Microsoft.NetApp.RegionInfoAvailabilityZoneMappingsItem","com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity":"Microsoft.NetApp.RegionStorageToNetworkProximity","com.azure.resourcemanager.netapp.models.RelocateVolumeRequest":"Microsoft.NetApp.RelocateVolumeRequest","com.azure.resourcemanager.netapp.models.RemotePath":"Microsoft.NetApp.RemotePath","com.azure.resourcemanager.netapp.models.ReplicationMirrorState":"Microsoft.NetApp.ReplicationMirrorState","com.azure.resourcemanager.netapp.models.ReplicationObject":"Microsoft.NetApp.ReplicationObject","com.azure.resourcemanager.netapp.models.ReplicationSchedule":"Microsoft.NetApp.ReplicationSchedule","com.azure.resourcemanager.netapp.models.ReplicationType":"Microsoft.NetApp.ReplicationType","com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest":"Microsoft.NetApp.ResourceNameAvailabilityRequest","com.azure.resourcemanager.netapp.models.SecurityStyle":"Microsoft.NetApp.SecurityStyle","com.azure.resourcemanager.netapp.models.ServiceLevel":"Microsoft.NetApp.ServiceLevel","com.azure.resourcemanager.netapp.models.ServiceSpecification":"Microsoft.NetApp.ServiceSpecification","com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration":"Microsoft.NetApp.SmbAccessBasedEnumeration","com.azure.resourcemanager.netapp.models.SmbNonBrowsable":"Microsoft.NetApp.SmbNonBrowsable","com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch":"Microsoft.NetApp.SnapshotPolicyPatch","com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles":"Microsoft.NetApp.SnapshotRestoreFiles","com.azure.resourcemanager.netapp.models.SubvolumePatchRequest":"Microsoft.NetApp.SubvolumePatchRequest","com.azure.resourcemanager.netapp.models.Type":"Microsoft.NetApp.Type","com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest":"Microsoft.NetApp.UpdateNetworkSiblingSetRequest","com.azure.resourcemanager.netapp.models.UsageName":"Microsoft.NetApp.UsageName","com.azure.resourcemanager.netapp.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.netapp.models.VolumeBackupProperties":"Microsoft.NetApp.VolumeBackupProperties","com.azure.resourcemanager.netapp.models.VolumeBackupRelationshipStatus":"Microsoft.NetApp.VolumeBackupRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeBackups":"Microsoft.NetApp.VolumeBackups","com.azure.resourcemanager.netapp.models.VolumeGroupMetadata":"Microsoft.NetApp.VolumeGroupMetaData","com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties":"Microsoft.NetApp.VolumeGroupVolumeProperties","com.azure.resourcemanager.netapp.models.VolumePatch":"Microsoft.NetApp.VolumePatch","com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection":"Microsoft.NetApp.VolumePatchPropertiesDataProtection","com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy":"Microsoft.NetApp.VolumePatchPropertiesExportPolicy","com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection":"Microsoft.NetApp.VolumePropertiesDataProtection","com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy":"Microsoft.NetApp.VolumePropertiesExportPolicy","com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch":"Microsoft.NetApp.VolumeQuotaRulePatch","com.azure.resourcemanager.netapp.models.VolumeRelocationProperties":"Microsoft.NetApp.VolumeRelocationProperties","com.azure.resourcemanager.netapp.models.VolumeReplicationRelationshipStatus":"Microsoft.NetApp.VolumeReplicationRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeRestoreRelationshipStatus":"Microsoft.NetApp.VolumeRestoreRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeRevert":"Microsoft.NetApp.VolumeRevert","com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties":"Microsoft.NetApp.VolumeSnapshotProperties","com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity":"Microsoft.NetApp.VolumeStorageToNetworkProximity","com.azure.resourcemanager.netapp.models.WeeklySchedule":"Microsoft.NetApp.WeeklySchedule"},"generatedFiles":["src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java","src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ClusterPeerCommandResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetGroupIdListForLdapUserResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SvmPeerCommandResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java","src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/GetKeyVaultStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoResourceImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupPoliciesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupVaultsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/CapacityPoolList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ListReplications.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/NetAppAccountList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/QuotaItemList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/RegionInfosList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotPoliciesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SubvolumesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/UsagesListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeGroupList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeQuotaRulesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java","src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java","src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java","src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java","src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java","src/main/java/com/azure/resourcemanager/netapp/models/Backup.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupRestoreFiles.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupType.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVault.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/Backups.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsMigrationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderBackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderVolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java","src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/ChangeKeyVault.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckQuotaNameResourceTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/ChownMode.java","src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessTieringPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java","src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java","src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionKeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionTransitionRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java","src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java","src/main/java/com/azure/resourcemanager/netapp/models/Exclude.java","src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java","src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java","src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/GetKeyVaultStatusResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java","src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPrivateEndpoint.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java","src/main/java/com/azure/resourcemanager/netapp/models/ListReplicationsRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java","src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java","src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/MultiAdStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceRegionInfos.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/Operation.java","src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/netapp/models/Operations.java","src/main/java/com/azure/resourcemanager/netapp/models/PeerClusterForVolumeMigrationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java","src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Pools.java","src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/QosType.java","src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoResource.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java","src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RemotePath.java","src/main/java/com/azure/resourcemanager/netapp/models/Replication.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationMirrorState.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java","src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java","src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java","src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java","src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java","src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java","src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/Type.java","src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java","src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java","src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/Volume.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeReplicationRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRestoreRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java","src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java","src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/package-info.java","src/main/java/com/azure/resourcemanager/netapp/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json index 183452463677..b1464c1aa1c3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.netapp.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.netapp.implementation.BackupVaultsClientImpl$BackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsClientImpl$BackupsUnderAccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsClientImpl$BackupsUnderBackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesClientImpl$BackupsUnderVolumesService"],["com.azure.resourcemanager.netapp.implementation.BucketsClientImpl$BucketsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsClientImpl$NetAppResourceQuotaLimitsAccountsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsClientImpl$NetAppResourceQuotaLimitsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosClientImpl$NetAppResourceRegionInfosService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceUsagesClientImpl$NetAppResourceUsagesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourcesClientImpl$NetAppResourcesService"],["com.azure.resourcemanager.netapp.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.netapp.implementation.PoolsClientImpl$PoolsService"],["com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesClientImpl$SnapshotPoliciesService"],["com.azure.resourcemanager.netapp.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.netapp.implementation.SubvolumesClientImpl$SubvolumesService"],["com.azure.resourcemanager.netapp.implementation.VolumeGroupsClientImpl$VolumeGroupsService"],["com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesClientImpl$VolumeQuotaRulesService"],["com.azure.resourcemanager.netapp.implementation.VolumesClientImpl$VolumesService"]] \ No newline at end of file +[["com.azure.resourcemanager.netapp.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.netapp.implementation.BackupVaultsClientImpl$BackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsClientImpl$BackupsUnderAccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsClientImpl$BackupsUnderBackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesClientImpl$BackupsUnderVolumesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsClientImpl$NetAppResourceQuotaLimitsAccountsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsClientImpl$NetAppResourceQuotaLimitsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosClientImpl$NetAppResourceRegionInfosService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceUsagesClientImpl$NetAppResourceUsagesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourcesClientImpl$NetAppResourcesService"],["com.azure.resourcemanager.netapp.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.netapp.implementation.PoolsClientImpl$PoolsService"],["com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesClientImpl$SnapshotPoliciesService"],["com.azure.resourcemanager.netapp.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.netapp.implementation.SubvolumesClientImpl$SubvolumesService"],["com.azure.resourcemanager.netapp.implementation.VolumeGroupsClientImpl$VolumeGroupsService"],["com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesClientImpl$VolumeQuotaRulesService"],["com.azure.resourcemanager.netapp.implementation.VolumesClientImpl$VolumesService"]] \ No newline at end of file diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java index ea0a151792e4..c5709805f96d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,8 +13,7 @@ */ public final class AccountsChangeKeyVaultSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_ChangeKeyVault.json + * x-ms-original-file: 2025-09-01/Accounts_ChangeKeyVault.json */ /** * Sample code: Accounts_ChangeKeyVault. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java index 079d8394dba9..7ca3ef06ba80 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,8 +12,7 @@ */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_CreateOrUpdate.json + * x-ms-original-file: 2025-09-01/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -25,8 +24,7 @@ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_CreateOrUpdateAD.json + * x-ms-original-file: 2025-09-01/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 5ee532903ccd..1250ff85ab2e 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: 2025-09-01/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java index 3410f933dd94..65a8baee210a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Get.json + * x-ms-original-file: 2025-09-01/Accounts_Get.json */ /** * Sample code: Accounts_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java index f9744a3298ff..9a1625598ff9 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class AccountsGetChangeKeyVaultInformationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_GetChangeKeyVaultInformation.json + * x-ms-original-file: 2025-09-01/Accounts_GetChangeKeyVaultInformation.json */ /** * Sample code: Accounts_GetChangeKeyVaultInformation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java index 76a9bd2a0072..393d02fd7a26 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_List.json + * x-ms-original-file: 2025-09-01/Accounts_List.json */ /** * Sample code: Accounts_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java index f2e244c44afd..f17fcecd0cbb 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,15 +9,14 @@ */ public final class AccountsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_ListBySubscription.json + * x-ms-original-file: 2025-09-01/Accounts_ListBySubscription.json */ /** - * Sample code: Accounts_List. + * Sample code: Accounts_ListBySubscription. * * @param manager Entry point to NetAppFilesManager. */ - public static void accountsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + public static void accountsListBySubscription(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.accounts().list(com.azure.core.util.Context.NONE); } } 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 bf7b5b8098f7..45ab43ecc529 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_RenewCredentials.json + * x-ms-original-file: 2025-09-01/Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java index 50f8735e7245..0050845090f7 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class AccountsTransitionToCmkSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Accounts_TransitionEncryptionKey.json + * x-ms-original-file: 2025-09-01/Accounts_TransitionEncryptionKey.json */ /** * Sample code: Accounts_MigrateEncryptionKey. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java index 2ccf687e7fdb..9aef1cdece02 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,8 +13,7 @@ */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Accounts_Update.json + * x-ms-original-file: 2025-09-01/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 03cd61f28911..90969c9654f0 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class BackupPoliciesCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Create. - * json + * x-ms-original-file: 2025-09-01/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java index 43730df5bcad..e8b206d0eb7c 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Delete. - * json + * x-ms-original-file: 2025-09-01/BackupPolicies_Delete.json */ /** * Sample code: BackupPolicies_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java index e48c1c94f07b..9f5a975e8e52 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Get. - * json + * x-ms-original-file: 2025-09-01/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 d9012114e75e..f44671d24222 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_List. - * json + * x-ms-original-file: 2025-09-01/BackupPolicies_List.json */ /** * Sample code: BackupPolicies_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java index 70814d9bcb78..740692709757 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,9 +11,7 @@ */ public final class BackupPoliciesUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupPolicies_Update. - * json + * x-ms-original-file: 2025-09-01/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java index aeabb7a50e56..2b3ab145f4e8 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class BackupVaultsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Create. - * json + * x-ms-original-file: 2025-09-01/BackupVaults_Create.json */ /** * Sample code: BackupVault_CreateOrUpdate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java index 8f8cdfd78209..a49ed100c629 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class BackupVaultsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Delete. - * json + * x-ms-original-file: 2025-09-01/BackupVaults_Delete.json */ /** * Sample code: BackupVaults_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java index f8205f7feb01..9d33d7b31e74 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class BackupVaultsGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Get.json + * x-ms-original-file: 2025-09-01/BackupVaults_Get.json */ /** * Sample code: BackupVaults_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java index 0fb8cb0a0e04..2115deca3e9f 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class BackupVaultsListByNetAppAccountSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_List.json + * x-ms-original-file: 2025-09-01/BackupVaults_List.json */ /** * Sample code: BackupVaults_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java index 0ac2a29485d8..33e1cb52fb88 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,9 +13,7 @@ */ public final class BackupVaultsUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/BackupVaults_Update. - * json + * x-ms-original-file: 2025-09-01/BackupVaults_Update.json */ /** * Sample code: BackupVaults_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java index 9a7a4581ea58..bca3b1b328d3 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class BackupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_Create.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_Create.json */ /** * Sample code: BackupsUnderBackupVault_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java index 89a16853567b..707e20747ec1 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_Delete.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_Delete.json */ /** * Sample code: BackupsUnderBackupVault_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java index c93b8dbf7d7e..b70e1b841ff7 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class BackupsGetLatestStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_LatestBackupStatus.json + * x-ms-original-file: 2025-09-01/Volumes_LatestBackupStatus.json */ /** * Sample code: Volumes_BackupStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java index ccface4e05d9..a40ecc0079b0 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class BackupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_Get.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_Get.json */ /** * Sample code: BackupsUnderBackupVault_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java index 3be9322b0b9c..1a99783a1c87 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class BackupsGetVolumeLatestRestoreStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_LatestRestoreStatus.json + * x-ms-original-file: 2025-09-01/Volumes_LatestRestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java index 0b8b7930534e..4667354817cb 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class BackupsListByVaultSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_List.json + * x-ms-original-file: 2025-09-01/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 1647dd16baf0..c84d8a2e5ad5 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class BackupsUnderAccountMigrateBackupsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderAccount_Migrate.json + * x-ms-original-file: 2025-09-01/BackupsUnderAccount_Migrate.json */ /** * Sample code: BackupsUnderAccount_Migrate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java index 0d7f47a7c784..e92ae36bbc8b 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,8 +12,7 @@ */ public final class BackupsUnderBackupVaultRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_SingleFileRestore.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_SingleFileRestore.json */ /** * Sample code: Backups_SingleFileRestore. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java index 563c9369ed8e..15ce7ce18e65 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class BackupsUnderVolumeMigrateBackupsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderVolume_Migrate.json + * x-ms-original-file: 2025-09-01/BackupsUnderVolume_Migrate.json */ /** * Sample code: BackupsUnderVolume_Migrate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java index 7aa17e40afc8..6de7243d0392 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * BackupsUnderBackupVault_Update.json + * x-ms-original-file: 2025-09-01/BackupsUnderBackupVault_Update.json */ /** * Sample code: BackupsUnderBackupVault_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java deleted file mode 100644 index 423f43860877..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.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.resourcemanager.netapp.models.BucketPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerProperties; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NfsUser; - -/** - * Samples for Buckets CreateOrUpdate. - */ -public final class BucketsCreateOrUpdateSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_CreateOrUpdate - * .json - */ - /** - * Sample code: Buckets_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .define("bucket1") - .withExistingVolume("myRG", "account1", "pool1", "volume1") - .withPath("/path") - .withFileSystemUser(new FileSystemUser().withNfsUser(new NfsUser().withUserId(1001L).withGroupId(1000L))) - .withServer(new BucketServerProperties().withFqdn("fullyqualified.domainname.com") - .withCertificateObject("")) - .withPermissions(BucketPermissions.READ_ONLY) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java deleted file mode 100644 index b6ad4616c9a6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.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 Buckets Delete. - */ -public final class BucketsDeleteSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Delete.json - */ - /** - * Sample code: Buckets_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets().delete("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java deleted file mode 100644 index 86eb76453b49..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.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.resourcemanager.netapp.models.BucketCredentialsExpiry; - -/** - * Samples for Buckets GenerateCredentials. - */ -public final class BucketsGenerateCredentialsSamples { - /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Buckets_GenerateCredentials.json - */ - /** - * Sample code: Buckets_GenerateCredentials. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsGenerateCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .generateCredentialsWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", - new BucketCredentialsExpiry().withKeyPairExpiryDays(3), com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java deleted file mode 100644 index 67c714913a2c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.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; - -/** - * Samples for Buckets Get. - */ -public final class BucketsGetSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Get.json - */ - /** - * Sample code: Buckets_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets() - .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java deleted file mode 100644 index 908f02d3da20..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.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 Buckets List. - */ -public final class BucketsListSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_List.json - */ - /** - * Sample code: Buckets_List. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.buckets().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java deleted file mode 100644 index 5a9e868b044f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.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.resourcemanager.netapp.models.Bucket; -import com.azure.resourcemanager.netapp.models.BucketPatchPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; - -/** - * Samples for Buckets Update. - */ -public final class BucketsUpdateSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Buckets_Update.json - */ - /** - * Sample code: Buckets_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void bucketsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - Bucket resource = manager.buckets() - .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com") - .withCertificateObject("")) - .withPermissions(BucketPatchPermissions.READ_WRITE) - .apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java index bf3bfd4f27c5..dbe826696c66 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * CheckFilePathAvailability.json + * x-ms-original-file: 2025-09-01/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. @@ -24,7 +23,7 @@ public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.Ne .checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest() .withName("my-exact-filepth") .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java index 283d7d6f7f29..990e9cb3933e 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,9 +12,7 @@ */ public final class NetAppResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/CheckNameAvailability. - * json + * x-ms-original-file: 2025-09-01/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java index 105b897bdde6..657ce1bef424 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,9 +12,7 @@ */ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/CheckQuotaAvailability - * .json + * x-ms-original-file: 2025-09-01/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java index d3263447ae6e..61d343d73781 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * NetworkSiblingSet_Query.json + * x-ms-original-file: 2025-09-01/NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. @@ -24,7 +23,7 @@ public static void networkSiblingSetQuery(com.azure.resourcemanager.netapp.NetAp .queryNetworkSiblingSetWithResponse("eastus", new QueryNetworkSiblingSetRequest() .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333") .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java index 0f527304974b..5ee2046d21d7 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class NetAppResourceQueryRegionInfoSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfo.json + * x-ms-original-file: 2025-09-01/RegionInfo.json */ /** * Sample code: RegionInfo_Query. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java index da8e1cde8fe8..2b0bafad61a8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,16 +9,14 @@ */ public final class NetAppResourceQuotaLimitsAccountGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/QuotaLimitsAccount_Get - * .json + * x-ms-original-file: 2025-09-01/NetAppResourceQuotaLimitsAccount_Get.json */ /** - * Sample code: Volumes_RestoreStatus. + * Sample code: QuotaLimits. * * @param manager Entry point to NetAppFilesManager. */ - public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.netAppResourceQuotaLimitsAccounts() .getWithResponse("myRG", "myAccount", "poolsPerAccount", com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java index beb8b303f39e..2aebfb3c1a9e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,15 +9,14 @@ */ public final class NetAppResourceQuotaLimitsAccountListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * QuotaLimitsAccount_List.json + * x-ms-original-file: 2025-09-01/NetAppResourceQuotaLimitsAccount_List.json */ /** - * Sample code: QuotaLimitsAccount_List. + * Sample code: QuotaLimits. * * @param manager Entry point to NetAppFilesManager. */ - public static void quotaLimitsAccountList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.netAppResourceQuotaLimitsAccounts().list("myRG", "myAccount", com.azure.core.util.Context.NONE); } } 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 a87eb512b2b9..fc7466129fdb 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class NetAppResourceQuotaLimitsGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: 2025-09-01/NetAppResourceQuotaLimits_Get.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java index a60dc5246746..71809c22a202 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class NetAppResourceQuotaLimitsListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: 2025-09-01/NetAppResourceQuotaLimits_List.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java index 63ca2d75691b..18a6e201950c 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class NetAppResourceRegionInfosGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfos_Get.json + * x-ms-original-file: 2025-09-01/RegionInfos_Get.json */ /** * Sample code: RegionInfos_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java index a93a5bccf00f..79bc01ca9623 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class NetAppResourceRegionInfosListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/RegionInfos_List.json + * x-ms-original-file: 2025-09-01/RegionInfos_List.json */ /** * Sample code: RegionInfos_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java index ff19b050266c..34723b82f37b 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,8 +12,7 @@ */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * NetworkSiblingSet_Update.json + * x-ms-original-file: 2025-09-01/NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. @@ -25,7 +24,7 @@ public static void networkFeaturesUpdate(com.azure.resourcemanager.netapp.NetApp .updateNetworkSiblingSet("eastus", new UpdateNetworkSiblingSetRequest() .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333") .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") .withNetworkSiblingSetStateId("12345_44420.8001578125") .withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java index 9db462c7c202..8ec4bda01748 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class NetAppResourceUsagesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Usages_Get.json + * x-ms-original-file: 2025-09-01/Usages_Get.json */ /** * Sample code: Usages_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java index 605d6443794b..86f85a30f7a4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class NetAppResourceUsagesListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Usages_List.json + * x-ms-original-file: 2025-09-01/Usages_List.json */ /** * Sample code: Usages_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java index 51b1242f8c6d..d77be33108f0 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/OperationList.json + * x-ms-original-file: 2025-09-01/OperationList.json */ /** * Sample code: OperationList. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java index 4d76139ab4c0..0f46a092b1a1 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,9 +12,7 @@ */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_CreateOrUpdate. - * json + * x-ms-original-file: 2025-09-01/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -33,8 +31,7 @@ public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFi } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Pools_CreateOrUpdate_CustomThroughput.json + * x-ms-original-file: 2025-09-01/Pools_CreateOrUpdate_CustomThroughput.json */ /** * Sample code: Pools_CreateOrUpdate_CustomThroughput. @@ -49,7 +46,7 @@ public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFi .withExistingNetAppAccount("myRG", "account1") .withSize(4398046511104L) .withServiceLevel(ServiceLevel.FLEXIBLE) - .withCustomThroughputMibps(128.0F) + .withCustomThroughputMibps(128) .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 4d5a212c7938..b6d2cd88d4d9 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Delete.json + * x-ms-original-file: 2025-09-01/Pools_Delete.json */ /** * Sample code: Pools_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java index d83231483bcf..8d286360b5e5 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class PoolsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Pools_Get_CustomThroughput.json + * x-ms-original-file: 2025-09-01/Pools_Get_CustomThroughput.json */ /** * Sample code: Pools_Get_CustomThroughput. @@ -22,8 +21,7 @@ public static void poolsGetCustomThroughput(com.azure.resourcemanager.netapp.Net } /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Get.json + * x-ms-original-file: 2025-09-01/Pools_Get.json */ /** * Sample code: Pools_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java index 693cb71ff302..80bbe0258e74 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class PoolsListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_List.json + * x-ms-original-file: 2025-09-01/Pools_List.json */ /** * Sample code: Pools_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java index 922d64016c6d..84937440d79c 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Pools_Update.json + * x-ms-original-file: 2025-09-01/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -26,8 +25,7 @@ public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManag } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Pools_Update_CustomThroughput.json + * x-ms-original-file: 2025-09-01/Pools_Update_CustomThroughput.json */ /** * Sample code: Pools_Update_CustomThroughput. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java index 0b08bd5a0e03..1035b429db02 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -14,8 +14,7 @@ */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * SnapshotPolicies_Create.json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java index 52873241572a..01d86343621f 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * SnapshotPolicies_Delete.json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java index d5d1e6fd510f..be7679c499c3 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class SnapshotPoliciesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_Get. - * json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java index d8cdbe54903d..a1588054e776 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class SnapshotPoliciesListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/SnapshotPolicies_List. - * json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java index b5356bde84e6..92762757ac3d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * SnapshotPolicies_ListVolumes.json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java index a553016ec2d4..047e65846f18 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -15,8 +15,7 @@ */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * SnapshotPolicies_Update.json + * x-ms-original-file: 2025-09-01/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java index 533e090faacc..9908d5b439df 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class SnapshotsCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: 2025-09-01/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java index 256cd1623748..5249d736df74 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: 2025-09-01/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java index 3102ce560668..0ea853436222 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class SnapshotsGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: 2025-09-01/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java index 56bd082e773a..3eba98bc6b84 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class SnapshotsListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_List.json + * x-ms-original-file: 2025-09-01/Snapshots_List.json */ /** * Sample code: Snapshots_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java index e26ea6afbd18..bb4a193a63e7 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,8 +12,7 @@ */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Snapshots_SingleFileRestore.json + * x-ms-original-file: 2025-09-01/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 deleted file mode 100644 index febf6176b6a4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.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.management.serializer.SerializerFactory; -import com.azure.core.util.serializer.SerializerEncoding; -import java.io.IOException; - -/** - * Samples for Snapshots Update. - */ -public final class SnapshotsUpdateSamples { - /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Snapshots_Update.json - */ - /** - * Sample code: Snapshots_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void snapshotsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) throws IOException { - manager.snapshots() - .update("myRG", "account1", "pool1", "volume1", "snapshot1", - SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("{}", Object.class, SerializerEncoding.JSON), - com.azure.core.util.Context.NONE); - } -} 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 c0e99e338a3c..9499267178d5 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class SubvolumesCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: 2025-09-01/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java index 24d47cc53119..72c8e94c7115 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class SubvolumesDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: 2025-09-01/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java index f8f3e3b8b820..d7cf35c6f8a9 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class SubvolumesGetMetadataSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Metadata. - * json + * x-ms-original-file: 2025-09-01/Subvolumes_Metadata.json */ /** * Sample code: Subvolumes_Metadata. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java index 86fca1a31a5e..0ceaa5906c2a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class SubvolumesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: 2025-09-01/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java index b3c713e69bfb..675edb0babf6 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class SubvolumesListByVolumeSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: 2025-09-01/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java index 5ddd0e109c47..2dc97a0440c5 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class SubvolumesUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: 2025-09-01/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java index 5b60033448bc..62e16c4c7e89 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -17,8 +17,7 @@ */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_Create_SapHana.json + * x-ms-original-file: 2025-09-01/VolumeGroups_Create_SapHana.json */ /** * Sample code: VolumeGroups_Create_SapHana. @@ -178,8 +177,7 @@ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.Ne } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_Create_Oracle.json + * x-ms-original-file: 2025-09-01/VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java index fe0bf4ccbe27..c3e64ce5774a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class VolumeGroupsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeGroups_Delete. - * json + * x-ms-original-file: 2025-09-01/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java index 1910a1bd2c40..656144c05fa8 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_Get_SapHana.json + * x-ms-original-file: 2025-09-01/VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. @@ -22,8 +21,7 @@ public static void volumeGroupsGetSapHana(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_Get_Oracle.json + * x-ms-original-file: 2025-09-01/VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java index 92e44c6815da..5b48a2008dae 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_List_Oracle.json + * x-ms-original-file: 2025-09-01/VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. @@ -22,8 +21,7 @@ public static void volumeGroupsListOracle(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeGroups_List_SapHana.json + * x-ms-original-file: 2025-09-01/VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java index bbec7f9e022c..3d097e73a102 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeQuotaRules_Create.json + * x-ms-original-file: 2025-09-01/VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java index f6ea1b11d14d..2df4f1d19825 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeQuotaRules_Delete.json + * x-ms-original-file: 2025-09-01/VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java index 49025ac287d9..08c8b6a75e29 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class VolumeQuotaRulesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_Get. - * json + * x-ms-original-file: 2025-09-01/VolumeQuotaRules_Get.json */ /** * Sample code: VolumeQuotaRules_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java index b12ec70e655e..9f7599edf407 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class VolumeQuotaRulesListByVolumeSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/VolumeQuotaRules_List. - * json + * x-ms-original-file: 2025-09-01/VolumeQuotaRules_List.json */ /** * Sample code: VolumeQuotaRules_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java index 9519747e2475..5a94bcecc23d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * VolumeQuotaRules_Update.json + * x-ms-original-file: 2025-09-01/VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java index 05418e8c397d..b205d0bc0054 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesAuthorizeExternalReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_AuthorizeExternalReplication.json + * x-ms-original-file: 2025-09-01/Volumes_AuthorizeExternalReplication.json */ /** * Sample code: Volumes_AuthorizeExternalReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java index c57443452564..34b9b6342778 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_AuthorizeReplication.json + * x-ms-original-file: 2025-09-01/Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java index 2b32ca0823dd..006789c38340 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,9 +11,7 @@ */ public final class VolumesBreakFileLocksSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_BreakFileLocks - * .json + * x-ms-original-file: 2025-09-01/Volumes_BreakFileLocks.json */ /** * Sample code: Volumes_BreakFileLocks. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java index 3cb3e2efd0eb..eaece8caf6c1 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_BreakReplication.json + * x-ms-original-file: 2025-09-01/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java index b81e6126fb7a..ffda98db1e22 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,9 +11,7 @@ */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_CreateOrUpdate - * .json + * x-ms-original-file: 2025-09-01/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. @@ -28,7 +26,7 @@ public static void volumesCreateOrUpdate(com.azure.resourcemanager.netapp.NetApp .withCreationToken("my-unique-file-path") .withUsageThreshold(107374182400L) .withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withServiceLevel(ServiceLevel.PREMIUM) .create(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java index cacf2e9ebf86..7f130eeee4b8 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_DeleteReplication.json + * x-ms-original-file: 2025-09-01/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java index a7e453fd736f..47fcdbe2c2f4 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: 2025-09-01/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java index c61a9526d20a..baf9935b60ec 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesFinalizeExternalReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_FinalizeExternalReplication.json + * x-ms-original-file: 2025-09-01/Volumes_FinalizeExternalReplication.json */ /** * Sample code: Volumes_FinalizeExternalReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java index 292a61db67e9..8114f4870e13 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_FinalizeRelocation.json + * x-ms-original-file: 2025-09-01/Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java index 968ea6a1b95e..65c3dbc905e6 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Get.json + * x-ms-original-file: 2025-09-01/Volumes_Get.json */ /** * Sample code: Volumes_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java index 49c174d9e73f..472bd2a60c4a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,9 +11,7 @@ */ public final class VolumesListGetGroupIdListForLdapUserSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/GroupIdListForLDAPUser - * .json + * x-ms-original-file: 2025-09-01/GroupIdListForLDAPUser.json */ /** * Sample code: GetGroupIdListForUser. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java deleted file mode 100644 index ee38f054b905..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/2025-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 669fc07e12ca..513e30c171db 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 @@ -1,16 +1,18 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; +import com.azure.resourcemanager.netapp.models.Exclude; +import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; + /** * Samples for Volumes ListReplications. */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ListReplications.json + * x-ms-original-file: 2025-09-01/Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. @@ -18,6 +20,8 @@ public final class VolumesListReplicationsSamples { * @param manager Entry point to NetAppFilesManager. */ public static void volumesListReplications(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.volumes().listReplications("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + manager.volumes() + .listReplications("myRG", "account1", "pool1", "volume1", + new ListReplicationsRequest().withExclude(Exclude.NONE), com.azure.core.util.Context.NONE); } } 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 575011b6766f..6d2efcf9afd0 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_List.json + * x-ms-original-file: 2025-09-01/Volumes_List.json */ /** * Sample code: Volumes_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java index 41b5270e141e..7e603cf9f754 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,8 +12,7 @@ */ public final class VolumesPeerExternalClusterSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_PeerExternalCluster.json + * x-ms-original-file: 2025-09-01/Volumes_PeerExternalCluster.json */ /** * Sample code: Volumes_PeerExternalCluster. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java index 93407f20e05a..6e7bc9ebd77d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesPerformReplicationTransferSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_PerformReplicationTransfer.json + * x-ms-original-file: 2025-09-01/Volumes_PerformReplicationTransfer.json */ /** * Sample code: Volumes_PerformReplicationTransfer. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java index d81cb4bc8539..3d880fc4ba34 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,9 +11,7 @@ */ public final class VolumesPoolChangeSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_PoolChange. - * json + * x-ms-original-file: 2025-09-01/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 c2de920977d9..a60fc57ce04c 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: 2025-09-01/Volumes_PopulateAvailabilityZones.json */ /** * Sample code: Volumes_PopulateAvailabilityZones. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java index 6a771c0d9f0a..eafb4ce9cd0d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ReInitializeReplication.json + * x-ms-original-file: 2025-09-01/Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java index f5c12c2e5d41..2a97a8ecc57f 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ReestablishReplication.json + * x-ms-original-file: 2025-09-01/Volumes_ReestablishReplication.json */ /** * Sample code: Volumes_ReestablishReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java index c8fa6be032b9..9167cd674f44 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class VolumesRelocateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: 2025-09-01/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java index f27220ce25b8..28bf41629cea 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ReplicationStatus.json + * x-ms-original-file: 2025-09-01/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java index 41d63a3379f4..3e4100c241be 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ResetCifsPassword.json + * x-ms-original-file: 2025-09-01/Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java index d9f36c873151..270db0c5c89d 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_ResyncReplication.json + * x-ms-original-file: 2025-09-01/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java index c2c5929bd3be..531c6f75c9af 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,8 +9,7 @@ */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/ - * Volumes_RevertRelocation.json + * x-ms-original-file: 2025-09-01/Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java index 73c28d1cc9c7..870d9f4ca88e 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class VolumesRevertSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: 2025-09-01/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java index ff56e0ed200f..adbae20d2d41 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -9,9 +9,7 @@ */ public final class VolumesSplitCloneFromParentSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_SplitClone. - * json + * x-ms-original-file: 2025-09-01/Volumes_SplitClone.json */ /** * Sample code: Volumes_SplitClone. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java index 4d055e67e0d7..f65e179270fd 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,8 +11,7 @@ */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-07-01-preview/examples/Volumes_Update.json + * x-ms-original-file: 2025-09-01/Volumes_Update.json */ /** * Sample code: Volumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java index 6bb44c8f7a8c..2c651ea33afc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -27,7 +27,7 @@ public void testRenewCredentials() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.accounts().renewCredentials("vasylwxdzau", "weoohguufuzboyj", com.azure.core.util.Context.NONE); + manager.accounts().renewCredentials("jmvl", "yzgib", 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 index 9340e5c8a899..b3e633972c42 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,15 +11,15 @@ public final class AuthorizeRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AuthorizeRequest model - = BinaryData.fromString("{\"remoteVolumeResourceId\":\"kkpwdreqnovvq\"}").toObject(AuthorizeRequest.class); - Assertions.assertEquals("kkpwdreqnovvq", model.remoteVolumeResourceId()); + AuthorizeRequest model = BinaryData.fromString("{\"remoteVolumeResourceId\":\"ylpstdbhhxsrzdz\"}") + .toObject(AuthorizeRequest.class); + Assertions.assertEquals("ylpstdbhhxsrzdz", model.remoteVolumeResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AuthorizeRequest model = new AuthorizeRequest().withRemoteVolumeResourceId("kkpwdreqnovvq"); + AuthorizeRequest model = new AuthorizeRequest().withRemoteVolumeResourceId("ylpstdbhhxsrzdz"); model = BinaryData.fromObject(model).toObject(AuthorizeRequest.class); - Assertions.assertEquals("kkpwdreqnovvq", model.remoteVolumeResourceId()); + Assertions.assertEquals("ylpstdbhhxsrzdz", 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 index a64bbb2ee648..22b9b721de13 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,24 +12,24 @@ public final class BackupInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupInner model = BinaryData.fromString( - "{\"properties\":{\"backupId\":\"ork\",\"creationDate\":\"2021-07-22T12:33Z\",\"snapshotCreationDate\":\"2021-03-04T00:16:10Z\",\"completionDate\":\"2021-04-15T08:16:25Z\",\"provisioningState\":\"gdnhxmsiv\",\"size\":8636347780875926393,\"label\":\"ox\",\"backupType\":\"Manual\",\"failureReason\":\"fi\",\"volumeResourceId\":\"ndieuzaofj\",\"useExistingSnapshot\":false,\"snapshotName\":\"yyysfgdotcubi\",\"backupPolicyResourceId\":\"uipwoqonmacje\",\"isLargeVolume\":false},\"id\":\"shqvcimpev\",\"name\":\"gmblrri\",\"type\":\"bywdxsmicc\"}") + "{\"properties\":{\"backupId\":\"wzbhvgyugu\",\"creationDate\":\"2021-08-08T10:54:54Z\",\"snapshotCreationDate\":\"2021-10-31T02:07:56Z\",\"completionDate\":\"2021-02-10T21:25:55Z\",\"provisioningState\":\"xquk\",\"size\":319753834170561939,\"label\":\"mg\",\"backupType\":\"Scheduled\",\"failureReason\":\"jzkdeslpvlopwi\",\"volumeResourceId\":\"ighxpk\",\"useExistingSnapshot\":false,\"snapshotName\":\"aiuebbaumnyqu\",\"backupPolicyResourceId\":\"deoj\",\"isLargeVolume\":true},\"id\":\"khsmtxpsiebt\",\"name\":\"hvpesapskrdqm\",\"type\":\"jjdhtld\"}") .toObject(BackupInner.class); - Assertions.assertEquals("ox", model.label()); - Assertions.assertEquals("ndieuzaofj", model.volumeResourceId()); + Assertions.assertEquals("mg", model.label()); + Assertions.assertEquals("ighxpk", model.volumeResourceId()); Assertions.assertFalse(model.useExistingSnapshot()); - Assertions.assertEquals("yyysfgdotcubi", model.snapshotName()); + Assertions.assertEquals("aiuebbaumnyqu", model.snapshotName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupInner model = new BackupInner().withLabel("ox") - .withVolumeResourceId("ndieuzaofj") + BackupInner model = new BackupInner().withLabel("mg") + .withVolumeResourceId("ighxpk") .withUseExistingSnapshot(false) - .withSnapshotName("yyysfgdotcubi"); + .withSnapshotName("aiuebbaumnyqu"); model = BinaryData.fromObject(model).toObject(BackupInner.class); - Assertions.assertEquals("ox", model.label()); - Assertions.assertEquals("ndieuzaofj", model.volumeResourceId()); + Assertions.assertEquals("mg", model.label()); + Assertions.assertEquals("ighxpk", model.volumeResourceId()); Assertions.assertFalse(model.useExistingSnapshot()); - Assertions.assertEquals("yyysfgdotcubi", model.snapshotName()); + Assertions.assertEquals("aiuebbaumnyqu", 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 index dac1649d7621..59addc59de4b 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,14 +12,14 @@ public final class BackupPatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupPatchProperties model - = BinaryData.fromString("{\"label\":\"fbkjubdyhgkfmi\"}").toObject(BackupPatchProperties.class); - Assertions.assertEquals("fbkjubdyhgkfmi", model.label()); + = BinaryData.fromString("{\"label\":\"hoxus\"}").toObject(BackupPatchProperties.class); + Assertions.assertEquals("hoxus", model.label()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupPatchProperties model = new BackupPatchProperties().withLabel("fbkjubdyhgkfmi"); + BackupPatchProperties model = new BackupPatchProperties().withLabel("hoxus"); model = BinaryData.fromObject(model).toObject(BackupPatchProperties.class); - Assertions.assertEquals("fbkjubdyhgkfmi", model.label()); + Assertions.assertEquals("hoxus", 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 index 2494262b59ab..aa92cb30a69c 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,15 +11,14 @@ public final class BackupPatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BackupPatch model - = BinaryData.fromString("{\"properties\":{\"label\":\"vwlyoup\"}}").toObject(BackupPatch.class); - Assertions.assertEquals("vwlyoup", model.label()); + BackupPatch model = BinaryData.fromString("{\"properties\":{\"label\":\"clfp\"}}").toObject(BackupPatch.class); + Assertions.assertEquals("clfp", model.label()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupPatch model = new BackupPatch().withLabel("vwlyoup"); + BackupPatch model = new BackupPatch().withLabel("clfp"); model = BinaryData.fromObject(model).toObject(BackupPatch.class); - Assertions.assertEquals("vwlyoup", model.label()); + Assertions.assertEquals("clfp", 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 index 75d7e6ca1768..eeb21d1bc725 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -23,7 +23,7 @@ public final class BackupPoliciesCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"etag\":\"bvqt\",\"properties\":{\"backupPolicyId\":\"arfdlpukhpyrnei\",\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":1363231330,\"weeklyBackupsToKeep\":1509043330,\"monthlyBackupsToKeep\":1785031495,\"volumesAssigned\":1368151986,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"oywjxhpdulont\",\"volumeResourceId\":\"np\",\"backupsCount\":2145141513,\"policyEnabled\":true},{\"volumeName\":\"uevrhrljyoogwxhn\",\"volumeResourceId\":\"uug\",\"backupsCount\":1202468674,\"policyEnabled\":false},{\"volumeName\":\"rfqkfuar\",\"volumeResourceId\":\"lvhhtklnvn\",\"backupsCount\":1958015579,\"policyEnabled\":false}]},\"location\":\"f\",\"tags\":{\"bo\":\"v\"},\"id\":\"lcqxypokk\",\"name\":\"minqcym\",\"type\":\"zng\"}"; + = "{\"properties\":{\"backupPolicyId\":\"qirwrweoox\",\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":1625380187,\"weeklyBackupsToKeep\":2004143928,\"monthlyBackupsToKeep\":109793124,\"volumesAssigned\":225627049,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"bubqmamhsycxh\",\"volumeResourceId\":\"gaztt\",\"backupsCount\":184475150,\"policyEnabled\":true},{\"volumeName\":\"mfqhppubowse\",\"volumeResourceId\":\"fgkmtdhern\",\"backupsCount\":784188527,\"policyEnabled\":true},{\"volumeName\":\"ahokqtobkauxofsh\",\"volumeResourceId\":\"hwpnulaiywzejywh\",\"backupsCount\":898369730,\"policyEnabled\":true}]},\"etag\":\"pllndnp\",\"location\":\"rpqaf\",\"tags\":{\"yetefyp\":\"gsnnf\"},\"id\":\"coc\",\"name\":\"fjgtixrjvzuy\",\"type\":\"urmlmuo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,22 +33,22 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupPolicy response = manager.backupPolicies() - .define("sysidfvclglxnf") - .withRegion("u") - .withExistingNetAppAccount("gtuwkff", "jk") - .withTags(mapOf("oyuelyetn", "chrszi", "qyggagfl", "nb", "byrplrohkpig", "lgmtrwahzjmucf")) - .withDailyBackupsToKeep(1782066464) - .withWeeklyBackupsToKeep(291001108) - .withMonthlyBackupsToKeep(1302353018) - .withEnabled(false) + .define("jfrnxousxauzlwv") + .withRegion("fbcgwgcloxoebqin") + .withExistingNetAppAccount("qcbfrmbodths", "qgvriibakcla") + .withTags(mapOf("qlafcbahhpzpofoi", "nwjfu", "kholvd", "jwpfilkm")) + .withDailyBackupsToKeep(1962597445) + .withWeeklyBackupsToKeep(849660577) + .withMonthlyBackupsToKeep(1710129608) + .withEnabled(true) .create(); - Assertions.assertEquals("f", response.location()); - Assertions.assertEquals("v", response.tags().get("bo")); - Assertions.assertEquals(1363231330, response.dailyBackupsToKeep()); - Assertions.assertEquals(1509043330, response.weeklyBackupsToKeep()); - Assertions.assertEquals(1785031495, response.monthlyBackupsToKeep()); - Assertions.assertFalse(response.enabled()); + Assertions.assertEquals("rpqaf", response.location()); + Assertions.assertEquals("gsnnf", response.tags().get("yetefyp")); + Assertions.assertEquals(1625380187, response.dailyBackupsToKeep()); + Assertions.assertEquals(2004143928, response.weeklyBackupsToKeep()); + Assertions.assertEquals(109793124, response.monthlyBackupsToKeep()); + Assertions.assertTrue(response.enabled()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java index a3294f4e7e73..a790860e9718 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.backupPolicies().delete("xejw", "bmdujtmvcopexc", "jurbuhhlkyqltqsr", com.azure.core.util.Context.NONE); + manager.backupPolicies().delete("auunfprnjletlx", "mr", "ddoui", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java index 6855946c80ea..b12f3354e387 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class BackupPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"etag\":\"nwfepbnwg\",\"properties\":{\"backupPolicyId\":\"xjg\",\"provisioningState\":\"bjb\",\"dailyBackupsToKeep\":1945298143,\"weeklyBackupsToKeep\":197594994,\"monthlyBackupsToKeep\":1320191378,\"volumesAssigned\":1356398469,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"lqbctqhamzjrw\",\"volumeResourceId\":\"qzeqyjleziunjxdf\",\"backupsCount\":1904404893,\"policyEnabled\":true},{\"volumeName\":\"cegyamlbnseqacj\",\"volumeResourceId\":\"pilguooqjag\",\"backupsCount\":1068210919,\"policyEnabled\":true}]},\"location\":\"eiookjbsah\",\"tags\":{\"slmot\":\"tpdelqa\"},\"id\":\"ebnfxofvc\",\"name\":\"k\",\"type\":\"dirazf\"}"; + = "{\"properties\":{\"backupPolicyId\":\"ojqtobaxk\",\"provisioningState\":\"ytunlbfjkwr\",\"dailyBackupsToKeep\":33332792,\"weeklyBackupsToKeep\":1630715289,\"monthlyBackupsToKeep\":2127509542,\"volumesAssigned\":90955577,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"qhd\",\"volumeResourceId\":\"xaulkpakdkifmjnn\",\"backupsCount\":827393653,\"policyEnabled\":false},{\"volumeName\":\"pxuckpggq\",\"volumeResourceId\":\"eyirdhlisngw\",\"backupsCount\":1258635298,\"policyEnabled\":false},{\"volumeName\":\"izruwnpqxpxiwfc\",\"volumeResourceId\":\"jsa\",\"backupsCount\":2137009925,\"policyEnabled\":true}]},\"etag\":\"mkzjvkviir\",\"location\":\"fgrwsdpgratzvz\",\"tags\":{\"tctbrxkjzwrgxffm\":\"byvi\",\"bydpizqaclnapxb\":\"hkwfbkgozxwop\",\"ugjknf\":\"yg\",\"uyilflqoiquvrehm\":\"mfcttux\"},\"id\":\"njhvsujztc\",\"name\":\"ytqj\",\"type\":\"w\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,14 +30,15 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - BackupPolicy response - = manager.backupPolicies().getWithResponse("tu", "o", "gebx", com.azure.core.util.Context.NONE).getValue(); + BackupPolicy response = manager.backupPolicies() + .getWithResponse("nbmhyree", "dzqavbpdqmjxlyyz", "lgouwtlmjj", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("eiookjbsah", response.location()); - Assertions.assertEquals("tpdelqa", response.tags().get("slmot")); - Assertions.assertEquals(1945298143, response.dailyBackupsToKeep()); - Assertions.assertEquals(197594994, response.weeklyBackupsToKeep()); - Assertions.assertEquals(1320191378, response.monthlyBackupsToKeep()); - Assertions.assertTrue(response.enabled()); + Assertions.assertEquals("fgrwsdpgratzvz", response.location()); + Assertions.assertEquals("byvi", response.tags().get("tctbrxkjzwrgxffm")); + Assertions.assertEquals(33332792, response.dailyBackupsToKeep()); + Assertions.assertEquals(1630715289, response.weeklyBackupsToKeep()); + Assertions.assertEquals(2127509542, response.monthlyBackupsToKeep()); + Assertions.assertFalse(response.enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java index 0082b1e71bd5..e7f869a5eddb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class BackupPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"etag\":\"nw\",\"properties\":{\"backupPolicyId\":\"gajinnixjawrtmj\",\"provisioningState\":\"myccx\",\"dailyBackupsToKeep\":1452842923,\"weeklyBackupsToKeep\":1559080880,\"monthlyBackupsToKeep\":963389591,\"volumesAssigned\":1682316966,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"lusfnrdtjxtxrdcq\",\"volumeResourceId\":\"vidttgepuslvyjt\",\"backupsCount\":1750462834,\"policyEnabled\":false},{\"volumeName\":\"s\",\"volumeResourceId\":\"iesfuug\",\"backupsCount\":1608993191,\"policyEnabled\":true}]},\"location\":\"cjxeygt\",\"tags\":{\"jlxuz\":\"uicbuewmrsw\"},\"id\":\"hwpusxj\",\"name\":\"aqehg\",\"type\":\"dohzjq\"}]}"; + = "{\"value\":[{\"properties\":{\"backupPolicyId\":\"tmaaj\",\"provisioningState\":\"huxy\",\"dailyBackupsToKeep\":356571550,\"weeklyBackupsToKeep\":150383679,\"monthlyBackupsToKeep\":1469986611,\"volumesAssigned\":932521293,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"spsp\",\"volumeResourceId\":\"c\",\"backupsCount\":311832546,\"policyEnabled\":true},{\"volumeName\":\"mspbpssdfpp\",\"volumeResourceId\":\"gt\",\"backupsCount\":857144221,\"policyEnabled\":true},{\"volumeName\":\"vczkcnyxrxmunjd\",\"volumeResourceId\":\"glnkvxlxpagl\",\"backupsCount\":685816396,\"policyEnabled\":true}]},\"etag\":\"cvkhpzvuqdfl\",\"location\":\"niypfpubcpzg\",\"tags\":{\"gqjxgpnrhgovfgp\":\"ivhjknidi\",\"zvuporqzdfuydz\":\"kqmhhaowjr\",\"xqpswok\":\"kfvxcnq\",\"kzsz\":\"vkhlggdhbemz\"},\"id\":\"wiwtglxxhl\",\"name\":\"fpgpicrmnzhrgm\",\"type\":\"gjsxv\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.backupPolicies().list("olbauirop", "ons", com.azure.core.util.Context.NONE); + = manager.backupPolicies().list("amowaziynknlqwzd", "piwhxqs", com.azure.core.util.Context.NONE); - Assertions.assertEquals("cjxeygt", response.iterator().next().location()); - Assertions.assertEquals("uicbuewmrsw", response.iterator().next().tags().get("jlxuz")); - Assertions.assertEquals(1452842923, response.iterator().next().dailyBackupsToKeep()); - Assertions.assertEquals(1559080880, response.iterator().next().weeklyBackupsToKeep()); - Assertions.assertEquals(963389591, response.iterator().next().monthlyBackupsToKeep()); - Assertions.assertFalse(response.iterator().next().enabled()); + Assertions.assertEquals("niypfpubcpzg", response.iterator().next().location()); + Assertions.assertEquals("ivhjknidi", response.iterator().next().tags().get("gqjxgpnrhgovfgp")); + Assertions.assertEquals(356571550, response.iterator().next().dailyBackupsToKeep()); + Assertions.assertEquals(150383679, response.iterator().next().weeklyBackupsToKeep()); + Assertions.assertEquals(1469986611, response.iterator().next().monthlyBackupsToKeep()); + Assertions.assertTrue(response.iterator().next().enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java index d75d57015af7..432f098609d4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java @@ -1,66 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; -import com.azure.resourcemanager.netapp.models.BackupPoliciesList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; +import com.azure.resourcemanager.netapp.implementation.models.BackupPoliciesList; 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\":\"ab\",\"properties\":{\"backupPolicyId\":\"oefki\",\"provisioningState\":\"vtpuqujmqlgk\",\"dailyBackupsToKeep\":604272323,\"weeklyBackupsToKeep\":1252448159,\"monthlyBackupsToKeep\":1601819937,\"volumesAssigned\":146248988,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"tujitcjedft\",\"volumeResourceId\":\"ae\",\"backupsCount\":565058049,\"policyEnabled\":false}]},\"location\":\"c\",\"tags\":{\"oxciqopidoamcio\":\"oqouicybxarzgszu\",\"zxkhnzbonlwnto\":\"hkh\",\"zcmrvexztvb\":\"gokdwbwhks\"},\"id\":\"qgsfraoyzkoow\",\"name\":\"lmnguxaw\",\"type\":\"aldsy\"},{\"etag\":\"ximerqfobwyznk\",\"properties\":{\"backupPolicyId\":\"kutwpf\",\"provisioningState\":\"a\",\"dailyBackupsToKeep\":71172193,\"weeklyBackupsToKeep\":1165571898,\"monthlyBackupsToKeep\":1595958724,\"volumesAssigned\":803916344,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"akgtdlmkkzevdlh\",\"volumeResourceId\":\"pusdstt\",\"backupsCount\":1072941550,\"policyEnabled\":true},{\"volumeName\":\"bejdcn\",\"volumeResourceId\":\"qmoa\",\"backupsCount\":840228808,\"policyEnabled\":false},{\"volumeName\":\"zr\",\"volumeResourceId\":\"dgrtwaenuuzkopbm\",\"backupsCount\":1777677122,\"policyEnabled\":true},{\"volumeName\":\"oyuhhziui\",\"volumeResourceId\":\"ozbhdmsmlmzq\",\"backupsCount\":280296096,\"policyEnabled\":false}]},\"location\":\"ae\",\"tags\":{\"icslfaoq\":\"ah\",\"kaivwit\":\"piyylhalnswhccsp\"},\"id\":\"scywuggwoluhc\",\"name\":\"bwemhairs\",\"type\":\"rgzdwmsweyp\"}]}") + "{\"value\":[{\"properties\":{\"backupPolicyId\":\"fltkacjv\",\"provisioningState\":\"kdlfoa\",\"dailyBackupsToKeep\":1662630957,\"weeklyBackupsToKeep\":631067005,\"monthlyBackupsToKeep\":2102238742,\"volumesAssigned\":488745932,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"pqblylsyxkqjnsj\",\"volumeResourceId\":\"vti\",\"backupsCount\":574368120,\"policyEnabled\":false},{\"volumeName\":\"zuempsbzkf\",\"volumeResourceId\":\"eyvpnqicvinvkj\",\"backupsCount\":611015935,\"policyEnabled\":true},{\"volumeName\":\"uukzclewyhmlw\",\"volumeResourceId\":\"ztzp\",\"backupsCount\":1158924531,\"policyEnabled\":false},{\"volumeName\":\"wyfzqwhxxbuyqa\",\"volumeResourceId\":\"feqztppriol\",\"backupsCount\":621148688,\"policyEnabled\":false}]},\"etag\":\"tolmncwsobqw\",\"location\":\"dbnw\",\"tags\":{\"sbjjc\":\"hucqdpfuvg\",\"udutnco\":\"nvxbvt\",\"xqtvcofu\":\"mr\"},\"id\":\"f\",\"name\":\"vkg\",\"type\":\"u\"},{\"properties\":{\"backupPolicyId\":\"dknnqvsazn\",\"provisioningState\":\"tor\",\"dailyBackupsToKeep\":761865502,\"weeklyBackupsToKeep\":1449495124,\"monthlyBackupsToKeep\":760670144,\"volumesAssigned\":220532000,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"uwjuetaeburuvdmo\",\"volumeResourceId\":\"mz\",\"backupsCount\":866846651,\"policyEnabled\":false},{\"volumeName\":\"q\",\"volumeResourceId\":\"fkifr\",\"backupsCount\":1599154818,\"policyEnabled\":true},{\"volumeName\":\"jmqlgkfb\",\"volumeResourceId\":\"doaon\",\"backupsCount\":1443237539,\"policyEnabled\":false}]},\"etag\":\"ujitcjedftww\",\"location\":\"zkoj\",\"tags\":{\"ybxarzgszu\":\"pzfoqoui\"},\"id\":\"oxciqopidoamcio\",\"name\":\"hkh\",\"type\":\"zxkhnzbonlwnto\"},{\"properties\":{\"backupPolicyId\":\"okdwb\",\"provisioningState\":\"kszzcmrvexztv\",\"dailyBackupsToKeep\":1159944878,\"weeklyBackupsToKeep\":125773376,\"monthlyBackupsToKeep\":505924755,\"volumesAssigned\":1333415720,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"wtl\",\"volumeResourceId\":\"guxawqaldsyuuxi\",\"backupsCount\":646205101,\"policyEnabled\":false},{\"volumeName\":\"bw\",\"volumeResourceId\":\"nkbykutwpfhp\",\"backupsCount\":145025413,\"policyEnabled\":false},{\"volumeName\":\"kdsnfdsdoakgtdl\",\"volumeResourceId\":\"kzevdlhewpusds\",\"backupsCount\":690711231,\"policyEnabled\":true}]},\"etag\":\"vbbejdcng\",\"location\":\"m\",\"tags\":{\"twaenuuzko\":\"ufgmjzrwrdg\",\"iefozbhdmsml\":\"bminrfdwoyuhhzi\"},\"id\":\"zqhof\",\"name\":\"rmaequ\",\"type\":\"ah\"},{\"properties\":{\"backupPolicyId\":\"cslfaoqzpiyylha\",\"provisioningState\":\"swhccsphk\",\"dailyBackupsToKeep\":185919180,\"weeklyBackupsToKeep\":2011273129,\"monthlyBackupsToKeep\":1466032347,\"volumesAssigned\":264431505,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"woluhczbwemhair\",\"volumeResourceId\":\"rgzdwmsweyp\",\"backupsCount\":2076786264,\"policyEnabled\":true},{\"volumeName\":\"icccn\",\"volumeResourceId\":\"huexmk\",\"backupsCount\":171161135,\"policyEnabled\":false},{\"volumeName\":\"lzywemhzrncsdtc\",\"volumeResourceId\":\"siypbs\",\"backupsCount\":1861224364,\"policyEnabled\":false}]},\"etag\":\"sl\",\"location\":\"adcy\",\"tags\":{\"elolppvksrpqvuj\":\"kyhejhzisxgf\",\"wib\":\"raehtwdwrft\",\"cstwity\":\"rcdlbhshfwpr\"},\"id\":\"hevxcced\",\"name\":\"pnmdyodnwzxltjcv\",\"type\":\"hlt\"}],\"nextLink\":\"gcxn\"}") .toObject(BackupPoliciesList.class); - Assertions.assertEquals("c", model.value().get(0).location()); - Assertions.assertEquals("oqouicybxarzgszu", model.value().get(0).tags().get("oxciqopidoamcio")); - Assertions.assertEquals(604272323, model.value().get(0).dailyBackupsToKeep()); - Assertions.assertEquals(1252448159, model.value().get(0).weeklyBackupsToKeep()); - Assertions.assertEquals(1601819937, model.value().get(0).monthlyBackupsToKeep()); - Assertions.assertTrue(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("c") - .withTags(mapOf("oxciqopidoamcio", "oqouicybxarzgszu", "zxkhnzbonlwnto", "hkh", "zcmrvexztvb", - "gokdwbwhks")) - .withDailyBackupsToKeep(604272323) - .withWeeklyBackupsToKeep(1252448159) - .withMonthlyBackupsToKeep(1601819937) - .withEnabled(true), - new BackupPolicyInner().withLocation("ae") - .withTags(mapOf("icslfaoq", "ah", "kaivwit", "piyylhalnswhccsp")) - .withDailyBackupsToKeep(71172193) - .withWeeklyBackupsToKeep(1165571898) - .withMonthlyBackupsToKeep(1595958724) - .withEnabled(true))); - model = BinaryData.fromObject(model).toObject(BackupPoliciesList.class); - Assertions.assertEquals("c", model.value().get(0).location()); - Assertions.assertEquals("oqouicybxarzgszu", model.value().get(0).tags().get("oxciqopidoamcio")); - Assertions.assertEquals(604272323, model.value().get(0).dailyBackupsToKeep()); - Assertions.assertEquals(1252448159, model.value().get(0).weeklyBackupsToKeep()); - Assertions.assertEquals(1601819937, model.value().get(0).monthlyBackupsToKeep()); - Assertions.assertTrue(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; + Assertions.assertEquals("dbnw", model.value().get(0).location()); + Assertions.assertEquals("hucqdpfuvg", model.value().get(0).tags().get("sbjjc")); + Assertions.assertEquals(1662630957, model.value().get(0).dailyBackupsToKeep()); + Assertions.assertEquals(631067005, model.value().get(0).weeklyBackupsToKeep()); + Assertions.assertEquals(2102238742, model.value().get(0).monthlyBackupsToKeep()); + Assertions.assertFalse(model.value().get(0).enabled()); + Assertions.assertEquals("gcxn", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java index 6a07a0326e5e..1aa3eb657faf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -14,31 +14,31 @@ public final class BackupPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupPolicyInner model = BinaryData.fromString( - "{\"etag\":\"dxggicccnxqhuexm\",\"properties\":{\"backupPolicyId\":\"tlstvlzywem\",\"provisioningState\":\"rncsdtclu\",\"dailyBackupsToKeep\":2121256273,\"weeklyBackupsToKeep\":1137275627,\"monthlyBackupsToKeep\":1674447280,\"volumesAssigned\":1861224364,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"feadcygq\",\"volumeResourceId\":\"yhejhzisxgfp\",\"backupsCount\":1351567723,\"policyEnabled\":false}]},\"location\":\"vk\",\"tags\":{\"swibyr\":\"qvujzraehtwdwrf\",\"h\":\"dl\",\"khevxccedc\":\"hfwpracstwit\",\"jc\":\"nmdyodnwzxl\"},\"id\":\"nhltiugcxn\",\"name\":\"vvwxqi\",\"type\":\"y\"}") + "{\"properties\":{\"backupPolicyId\":\"cjzkzivgvvcna\",\"provisioningState\":\"hyrnxxmu\",\"dailyBackupsToKeep\":2127430069,\"weeklyBackupsToKeep\":742564082,\"monthlyBackupsToKeep\":1429248323,\"volumesAssigned\":233559890,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"tchealmf\",\"volumeResourceId\":\"d\",\"backupsCount\":1434664141,\"policyEnabled\":false},{\"volumeName\":\"wvgpiohg\",\"volumeResourceId\":\"rtfudxepxg\",\"backupsCount\":682770513,\"policyEnabled\":true}]},\"etag\":\"vmnpkukghimdblx\",\"location\":\"imfnjhfjx\",\"tags\":{\"foqreyfkzik\":\"zk\",\"wczelpci\":\"jawneaiv\",\"abfatkl\":\"elsfeaen\"},\"id\":\"dxbjhwuaanozj\",\"name\":\"sphyoulpjrvxa\",\"type\":\"l\"}") .toObject(BackupPolicyInner.class); - Assertions.assertEquals("vk", model.location()); - Assertions.assertEquals("qvujzraehtwdwrf", model.tags().get("swibyr")); - Assertions.assertEquals(2121256273, model.dailyBackupsToKeep()); - Assertions.assertEquals(1137275627, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1674447280, model.monthlyBackupsToKeep()); - Assertions.assertFalse(model.enabled()); + Assertions.assertEquals("imfnjhfjx", model.location()); + Assertions.assertEquals("zk", model.tags().get("foqreyfkzik")); + Assertions.assertEquals(2127430069, model.dailyBackupsToKeep()); + Assertions.assertEquals(742564082, model.weeklyBackupsToKeep()); + Assertions.assertEquals(1429248323, model.monthlyBackupsToKeep()); + Assertions.assertTrue(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupPolicyInner model = new BackupPolicyInner().withLocation("vk") - .withTags(mapOf("swibyr", "qvujzraehtwdwrf", "h", "dl", "khevxccedc", "hfwpracstwit", "jc", "nmdyodnwzxl")) - .withDailyBackupsToKeep(2121256273) - .withWeeklyBackupsToKeep(1137275627) - .withMonthlyBackupsToKeep(1674447280) - .withEnabled(false); + BackupPolicyInner model = new BackupPolicyInner().withLocation("imfnjhfjx") + .withTags(mapOf("foqreyfkzik", "zk", "wczelpci", "jawneaiv", "abfatkl", "elsfeaen")) + .withDailyBackupsToKeep(2127430069) + .withWeeklyBackupsToKeep(742564082) + .withMonthlyBackupsToKeep(1429248323) + .withEnabled(true); model = BinaryData.fromObject(model).toObject(BackupPolicyInner.class); - Assertions.assertEquals("vk", model.location()); - Assertions.assertEquals("qvujzraehtwdwrf", model.tags().get("swibyr")); - Assertions.assertEquals(2121256273, model.dailyBackupsToKeep()); - Assertions.assertEquals(1137275627, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1674447280, model.monthlyBackupsToKeep()); - Assertions.assertFalse(model.enabled()); + Assertions.assertEquals("imfnjhfjx", model.location()); + Assertions.assertEquals("zk", model.tags().get("foqreyfkzik")); + Assertions.assertEquals(2127430069, model.dailyBackupsToKeep()); + Assertions.assertEquals(742564082, model.weeklyBackupsToKeep()); + Assertions.assertEquals(1429248323, model.monthlyBackupsToKeep()); + Assertions.assertTrue(model.enabled()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java index 41ac8bb83a63..2747488c5413 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -14,31 +14,30 @@ public final class BackupPolicyPatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupPolicyPatch model = BinaryData.fromString( - "{\"properties\":{\"backupPolicyId\":\"vfxzsjab\",\"provisioningState\":\"systawfsdjp\",\"dailyBackupsToKeep\":387671304,\"weeklyBackupsToKeep\":250834954,\"monthlyBackupsToKeep\":911357247,\"volumesAssigned\":1795251983,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"vncjabudurgk\",\"volumeResourceId\":\"mokzhjjklf\",\"backupsCount\":1604322971,\"policyEnabled\":true}]},\"location\":\"wqlgzrf\",\"tags\":{\"lbjbsyb\":\"yebizikayuh\",\"vm\":\"qwrvtldgmfp\",\"wbdsr\":\"ipaslthaqfxssmwu\",\"owqkdwytisi\":\"zpdrhneu\"},\"id\":\"ircgpikpz\",\"name\":\"mejzanlfzxia\",\"type\":\"rmbzo\"}") + "{\"location\":\"xrwlyc\",\"id\":\"uhpkxkgymar\",\"name\":\"n\",\"type\":\"xqugjhkycubedd\",\"tags\":{\"zqalkrmnjijpx\":\"ofwq\",\"byxbaaabjy\":\"cqqudf\",\"zrtuzq\":\"ayffim\",\"fdnw\":\"gsexne\"},\"properties\":{\"backupPolicyId\":\"ewzsyyceuzsoib\",\"provisioningState\":\"dpfrxtrthzvaytdw\",\"dailyBackupsToKeep\":1467238377,\"weeklyBackupsToKeep\":323414034,\"monthlyBackupsToKeep\":1725477484,\"volumesAssigned\":749295202,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"i\",\"volumeResourceId\":\"vpdtiirqtdqoa\",\"backupsCount\":200859544,\"policyEnabled\":false},{\"volumeName\":\"gsquyfxrxxlept\",\"volumeResourceId\":\"mxjezwlw\",\"backupsCount\":966805028,\"policyEnabled\":false},{\"volumeName\":\"cvydypatdoo\",\"volumeResourceId\":\"jkniodko\",\"backupsCount\":354248500,\"policyEnabled\":false},{\"volumeName\":\"jhemms\",\"volumeResourceId\":\"dkcrodt\",\"backupsCount\":1997229408,\"policyEnabled\":false}]}}") .toObject(BackupPolicyPatch.class); - Assertions.assertEquals("wqlgzrf", model.location()); - Assertions.assertEquals("yebizikayuh", model.tags().get("lbjbsyb")); - Assertions.assertEquals(387671304, model.dailyBackupsToKeep()); - Assertions.assertEquals(250834954, model.weeklyBackupsToKeep()); - Assertions.assertEquals(911357247, model.monthlyBackupsToKeep()); + Assertions.assertEquals("xrwlyc", model.location()); + Assertions.assertEquals("ofwq", model.tags().get("zqalkrmnjijpx")); + Assertions.assertEquals(1467238377, model.dailyBackupsToKeep()); + Assertions.assertEquals(323414034, model.weeklyBackupsToKeep()); + Assertions.assertEquals(1725477484, model.monthlyBackupsToKeep()); Assertions.assertFalse(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupPolicyPatch model = new BackupPolicyPatch().withLocation("wqlgzrf") - .withTags(mapOf("lbjbsyb", "yebizikayuh", "vm", "qwrvtldgmfp", "wbdsr", "ipaslthaqfxssmwu", "owqkdwytisi", - "zpdrhneu")) - .withDailyBackupsToKeep(387671304) - .withWeeklyBackupsToKeep(250834954) - .withMonthlyBackupsToKeep(911357247) + BackupPolicyPatch model = new BackupPolicyPatch().withLocation("xrwlyc") + .withTags(mapOf("zqalkrmnjijpx", "ofwq", "byxbaaabjy", "cqqudf", "zrtuzq", "ayffim", "fdnw", "gsexne")) + .withDailyBackupsToKeep(1467238377) + .withWeeklyBackupsToKeep(323414034) + .withMonthlyBackupsToKeep(1725477484) .withEnabled(false); model = BinaryData.fromObject(model).toObject(BackupPolicyPatch.class); - Assertions.assertEquals("wqlgzrf", model.location()); - Assertions.assertEquals("yebizikayuh", model.tags().get("lbjbsyb")); - Assertions.assertEquals(387671304, model.dailyBackupsToKeep()); - Assertions.assertEquals(250834954, model.weeklyBackupsToKeep()); - Assertions.assertEquals(911357247, model.monthlyBackupsToKeep()); + Assertions.assertEquals("xrwlyc", model.location()); + Assertions.assertEquals("ofwq", model.tags().get("zqalkrmnjijpx")); + Assertions.assertEquals(1467238377, model.dailyBackupsToKeep()); + Assertions.assertEquals(323414034, model.weeklyBackupsToKeep()); + Assertions.assertEquals(1725477484, model.monthlyBackupsToKeep()); Assertions.assertFalse(model.enabled()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java index e15f8d3195be..7e7b692e74b1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,24 +12,24 @@ public final class BackupPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupPolicyProperties model = BinaryData.fromString( - "{\"backupPolicyId\":\"nyowxwlmdjrkvfg\",\"provisioningState\":\"fvpdbo\",\"dailyBackupsToKeep\":2095776205,\"weeklyBackupsToKeep\":1592823352,\"monthlyBackupsToKeep\":218756340,\"volumesAssigned\":1933405509,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"bdeibqipqk\",\"volumeResourceId\":\"vxndz\",\"backupsCount\":74498684,\"policyEnabled\":false}]}") + "{\"backupPolicyId\":\"imjwosyt\",\"provisioningState\":\"tcs\",\"dailyBackupsToKeep\":1365275067,\"weeklyBackupsToKeep\":468391476,\"monthlyBackupsToKeep\":279496369,\"volumesAssigned\":1686364184,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"zikhl\",\"volumeResourceId\":\"jhdgqggebdunyga\",\"backupsCount\":624778524,\"policyEnabled\":true}]}") .toObject(BackupPolicyProperties.class); - Assertions.assertEquals(2095776205, model.dailyBackupsToKeep()); - Assertions.assertEquals(1592823352, model.weeklyBackupsToKeep()); - Assertions.assertEquals(218756340, model.monthlyBackupsToKeep()); + Assertions.assertEquals(1365275067, model.dailyBackupsToKeep()); + Assertions.assertEquals(468391476, model.weeklyBackupsToKeep()); + Assertions.assertEquals(279496369, model.monthlyBackupsToKeep()); Assertions.assertTrue(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupPolicyProperties model = new BackupPolicyProperties().withDailyBackupsToKeep(2095776205) - .withWeeklyBackupsToKeep(1592823352) - .withMonthlyBackupsToKeep(218756340) + BackupPolicyProperties model = new BackupPolicyProperties().withDailyBackupsToKeep(1365275067) + .withWeeklyBackupsToKeep(468391476) + .withMonthlyBackupsToKeep(279496369) .withEnabled(true); model = BinaryData.fromObject(model).toObject(BackupPolicyProperties.class); - Assertions.assertEquals(2095776205, model.dailyBackupsToKeep()); - Assertions.assertEquals(1592823352, model.weeklyBackupsToKeep()); - Assertions.assertEquals(218756340, model.monthlyBackupsToKeep()); + Assertions.assertEquals(1365275067, model.dailyBackupsToKeep()); + Assertions.assertEquals(468391476, model.weeklyBackupsToKeep()); + Assertions.assertEquals(279496369, model.monthlyBackupsToKeep()); Assertions.assertTrue(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 index 9b0c9faa48d4..1c86af6c36bb 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,24 +12,24 @@ public final class BackupPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupProperties model = BinaryData.fromString( - "{\"backupId\":\"wfscjfn\",\"creationDate\":\"2021-07-26T17:01:13Z\",\"snapshotCreationDate\":\"2021-06-16T16:28:25Z\",\"completionDate\":\"2021-11-10T04:53:36Z\",\"provisioningState\":\"zdvoqytibyowbb\",\"size\":6726059527948715904,\"label\":\"utp\",\"backupType\":\"Manual\",\"failureReason\":\"xoi\",\"volumeResourceId\":\"msksbp\",\"useExistingSnapshot\":false,\"snapshotName\":\"oljxkcgx\",\"backupPolicyResourceId\":\"xsffgcviz\",\"isLargeVolume\":false}") + "{\"backupId\":\"yzxuutkncw\",\"creationDate\":\"2021-01-31T22:27:42Z\",\"snapshotCreationDate\":\"2021-08-14T16:13:22Z\",\"completionDate\":\"2021-01-19T16:43:53Z\",\"provisioningState\":\"togt\",\"size\":5623641553510482328,\"label\":\"sx\",\"backupType\":\"Scheduled\",\"failureReason\":\"cykvceo\",\"volumeResourceId\":\"eil\",\"useExistingSnapshot\":true,\"snapshotName\":\"tyfjfcnjbkcnxdhb\",\"backupPolicyResourceId\":\"kphywpnvjto\",\"isLargeVolume\":true}") .toObject(BackupProperties.class); - Assertions.assertEquals("utp", model.label()); - Assertions.assertEquals("msksbp", model.volumeResourceId()); - Assertions.assertFalse(model.useExistingSnapshot()); - Assertions.assertEquals("oljxkcgx", model.snapshotName()); + Assertions.assertEquals("sx", model.label()); + Assertions.assertEquals("eil", model.volumeResourceId()); + Assertions.assertTrue(model.useExistingSnapshot()); + Assertions.assertEquals("tyfjfcnjbkcnxdhb", model.snapshotName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupProperties model = new BackupProperties().withLabel("utp") - .withVolumeResourceId("msksbp") - .withUseExistingSnapshot(false) - .withSnapshotName("oljxkcgx"); + BackupProperties model = new BackupProperties().withLabel("sx") + .withVolumeResourceId("eil") + .withUseExistingSnapshot(true) + .withSnapshotName("tyfjfcnjbkcnxdhb"); model = BinaryData.fromObject(model).toObject(BackupProperties.class); - Assertions.assertEquals("utp", model.label()); - Assertions.assertEquals("msksbp", model.volumeResourceId()); - Assertions.assertFalse(model.useExistingSnapshot()); - Assertions.assertEquals("oljxkcgx", model.snapshotName()); + Assertions.assertEquals("sx", model.label()); + Assertions.assertEquals("eil", model.volumeResourceId()); + Assertions.assertTrue(model.useExistingSnapshot()); + Assertions.assertEquals("tyfjfcnjbkcnxdhb", 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 index 7096ed354f51..0874d6d98669 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,22 +13,21 @@ public final class BackupRestoreFilesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupRestoreFiles model = BinaryData.fromString( - "{\"fileList\":[\"tcyohpfkyrk\",\"bdgiogsjk\",\"nwqjnoba\",\"yhddvia\"],\"restoreFilePath\":\"gfnmntfpmvmemfnc\",\"destinationVolumeId\":\"dwvvba\"}") + "{\"fileList\":[\"rxkpmloazuruoc\"],\"restoreFilePath\":\"oorb\",\"destinationVolumeId\":\"eoybfhjxakvvjgs\"}") .toObject(BackupRestoreFiles.class); - Assertions.assertEquals("tcyohpfkyrk", model.fileList().get(0)); - Assertions.assertEquals("gfnmntfpmvmemfnc", model.restoreFilePath()); - Assertions.assertEquals("dwvvba", model.destinationVolumeId()); + Assertions.assertEquals("rxkpmloazuruoc", model.fileList().get(0)); + Assertions.assertEquals("oorb", model.restoreFilePath()); + Assertions.assertEquals("eoybfhjxakvvjgs", model.destinationVolumeId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupRestoreFiles model - = new BackupRestoreFiles().withFileList(Arrays.asList("tcyohpfkyrk", "bdgiogsjk", "nwqjnoba", "yhddvia")) - .withRestoreFilePath("gfnmntfpmvmemfnc") - .withDestinationVolumeId("dwvvba"); + BackupRestoreFiles model = new BackupRestoreFiles().withFileList(Arrays.asList("rxkpmloazuruoc")) + .withRestoreFilePath("oorb") + .withDestinationVolumeId("eoybfhjxakvvjgs"); model = BinaryData.fromObject(model).toObject(BackupRestoreFiles.class); - Assertions.assertEquals("tcyohpfkyrk", model.fileList().get(0)); - Assertions.assertEquals("gfnmntfpmvmemfnc", model.restoreFilePath()); - Assertions.assertEquals("dwvvba", model.destinationVolumeId()); + Assertions.assertEquals("rxkpmloazuruoc", model.fileList().get(0)); + Assertions.assertEquals("oorb", model.restoreFilePath()); + Assertions.assertEquals("eoybfhjxakvvjgs", 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 index 220debc3be52..81186e6f7a2f 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,13 +11,7 @@ public final class BackupStatusInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupStatusInner model = BinaryData.fromString( - "{\"healthy\":true,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"xcv\",\"errorMessage\":\"rhnj\",\"lastTransferSize\":4416106020884010184,\"lastTransferType\":\"tnovqfzgemjdftul\",\"totalTransferBytes\":9148960841724922095,\"transferProgressBytes\":6160828479857694240}") + "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"vbvmeu\",\"errorMessage\":\"ivyhzceuojgjrwju\",\"lastTransferSize\":8193997964555788181,\"lastTransferType\":\"mcdytdxwitxnrj\",\"totalTransferBytes\":7022663417329031305,\"transferProgressBytes\":6962157826226813076}") .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 index 4cad8866e3e4..9f61ca7f80d1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -14,19 +14,19 @@ public final class BackupVaultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupVaultInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"fku\"},\"location\":\"cxkdmligovi\",\"tags\":{\"uruocbgo\":\"kpmloa\"},\"id\":\"rb\",\"name\":\"eoybfhjxakvvjgs\",\"type\":\"ordilmywwtkgkxny\"}") + "{\"properties\":{\"provisioningState\":\"qatmtdhtmdvy\"},\"location\":\"ikdgszywkbir\",\"tags\":{\"hkjoqr\":\"zh\",\"mfiibfggj\":\"qqaatjinrvgou\",\"rwxkvtkkgl\":\"ool\"},\"id\":\"qwjygvja\",\"name\":\"vblm\",\"type\":\"vkzuhbxvvyhgso\"}") .toObject(BackupVaultInner.class); - Assertions.assertEquals("cxkdmligovi", model.location()); - Assertions.assertEquals("kpmloa", model.tags().get("uruocbgo")); + Assertions.assertEquals("ikdgszywkbir", model.location()); + Assertions.assertEquals("zh", model.tags().get("hkjoqr")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupVaultInner model - = new BackupVaultInner().withLocation("cxkdmligovi").withTags(mapOf("uruocbgo", "kpmloa")); + BackupVaultInner model = new BackupVaultInner().withLocation("ikdgszywkbir") + .withTags(mapOf("hkjoqr", "zh", "mfiibfggj", "qqaatjinrvgou", "rwxkvtkkgl", "ool")); model = BinaryData.fromObject(model).toObject(BackupVaultInner.class); - Assertions.assertEquals("cxkdmligovi", model.location()); - Assertions.assertEquals("kpmloa", model.tags().get("uruocbgo")); + Assertions.assertEquals("ikdgszywkbir", model.location()); + Assertions.assertEquals("zh", model.tags().get("hkjoqr")); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java index 5c583ca1b795..603a5f1a2f41 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,18 +13,18 @@ public final class BackupVaultPatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BackupVaultPatch model - = BinaryData.fromString("{\"tags\":{\"j\":\"wbcihxuuwh\",\"akkud\":\"xccybvpa\",\"wjplma\":\"px\"}}") - .toObject(BackupVaultPatch.class); - Assertions.assertEquals("wbcihxuuwh", model.tags().get("j")); + BackupVaultPatch model = BinaryData.fromString( + "{\"tags\":{\"hrixkwmy\":\"hlmctlpdngitvgb\",\"hbpnaixexccbd\":\"jejveg\",\"htpwij\":\"eaxhcexdrrvqahqk\"}}") + .toObject(BackupVaultPatch.class); + Assertions.assertEquals("hlmctlpdngitvgb", model.tags().get("hrixkwmy")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupVaultPatch model - = new BackupVaultPatch().withTags(mapOf("j", "wbcihxuuwh", "akkud", "xccybvpa", "wjplma", "px")); + BackupVaultPatch model = new BackupVaultPatch() + .withTags(mapOf("hrixkwmy", "hlmctlpdngitvgb", "hbpnaixexccbd", "jejveg", "htpwij", "eaxhcexdrrvqahqk")); model = BinaryData.fromObject(model).toObject(BackupVaultPatch.class); - Assertions.assertEquals("wbcihxuuwh", model.tags().get("j")); + Assertions.assertEquals("hlmctlpdngitvgb", model.tags().get("hrixkwmy")); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java index 100f7fab3371..76b026caa2c2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,7 +11,7 @@ public final class BackupVaultPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupVaultProperties model - = BinaryData.fromString("{\"provisioningState\":\"abgyvudt\"}").toObject(BackupVaultProperties.class); + = BinaryData.fromString("{\"provisioningState\":\"yrqufegxuvwz\"}").toObject(BackupVaultProperties.class); } @org.junit.jupiter.api.Test diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java index 6e46dc1aa5a5..533b9205e123 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -23,7 +23,7 @@ public final class BackupVaultsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"wrq\",\"tags\":{\"k\":\"lopmjnlexwhcbjpi\",\"intqpbrlcyr\":\"phuuuerctato\",\"crrpcjttbstvje\":\"uczkgofxyfsruc\",\"mlghktuidvrmazlp\":\"qnrmvvfko\"},\"id\":\"wwexymzvlazipbh\",\"name\":\"wvqsgny\",\"type\":\"uuzivensrpmeyyvp\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"pgahxkumas\",\"tags\":{\"qepvufhbzeh\":\"acfdmmcpugme\",\"clgsc\":\"whoqhnlbqnbldxe\"},\"id\":\"orim\",\"name\":\"rsrrmoucsofldp\",\"type\":\"viyfcaabeolhbhlv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupVault response = manager.backupVaults() - .define("ajqfutlx") - .withRegion("ohcmbu") - .withExistingNetAppAccount("uuvbx", "grebwggahttzlsw") - .withTags(mapOf("ydyvkfkmro", "jrohmbpyryxameb", "v", "xne", "pyapucygvoav", "mtodl")) + .define("napqo") + .withRegion("ybww") + .withExistingNetAppAccount("tfgxqbawpcb", "nzqcy") + .withTags(mapOf("muvapc", "vibidmhmwffpl")) .create(); - Assertions.assertEquals("wrq", response.location()); - Assertions.assertEquals("lopmjnlexwhcbjpi", response.tags().get("k")); + Assertions.assertEquals("pgahxkumas", response.location()); + Assertions.assertEquals("acfdmmcpugme", response.tags().get("qepvufhbzeh")); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java index 16c98a2dfd2a..e6906d09aff6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class BackupVaultsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"qwoyxqvapco\"},\"location\":\"oucqpqojx\",\"tags\":{\"tzqdd\":\"rzdcgdzbenribcaw\",\"mzwcjjncqt\":\"jwfljhznamtua\"},\"id\":\"z\",\"name\":\"izvg\",\"type\":\"gat\"}"; + = "{\"properties\":{\"provisioningState\":\"yoogw\"},\"location\":\"nsduugwbsre\",\"tags\":{\"fuarenlvhht\":\"q\",\"bo\":\"lnvnafvvkyfedev\",\"minqcym\":\"lcqxypokk\"},\"id\":\"zng\",\"name\":\"bdxxe\",\"type\":\"unin\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupVault response = manager.backupVaults() - .getWithResponse("klinhmdptysprq", "gnzxojpslsvj", "pli", com.azure.core.util.Context.NONE) + .getWithResponse("hpfpazjzoywjxhp", "ulontacnpqwteht", "evrh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("oucqpqojx", response.location()); - Assertions.assertEquals("rzdcgdzbenribcaw", response.tags().get("tzqdd")); + Assertions.assertEquals("nsduugwbsre", response.location()); + Assertions.assertEquals("q", response.tags().get("fuarenlvhht")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java index 28271cb314b0..3ad600a99c3d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class BackupVaultsListByNetAppAccountMockTests { @Test public void testListByNetAppAccount() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"mjel\"},\"location\":\"acigel\",\"tags\":{\"vqvwzkjopwbe\":\"d\",\"x\":\"nrlkwzdqy\",\"seqchkrt\":\"eakxcptsoqfyi\"},\"id\":\"zrazisgyk\",\"name\":\"uem\",\"type\":\"anbwzohmnrxxbso\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"tmxxdtddmflhuy\"},\"location\":\"zv\",\"tags\":{\"prwnwvroevytlyo\":\"apxbannovvoxczy\",\"bcrymodizrx\":\"rrrouuxvnsa\",\"pmkmlmvevfx\":\"lobdxna\"},\"id\":\"op\",\"name\":\"hbzxli\",\"type\":\"hrdd\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testListByNetAppAccount() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.backupVaults().listByNetAppAccount("bxubmdna", "cbq", com.azure.core.util.Context.NONE); + = manager.backupVaults().listByNetAppAccount("udbchaqdtv", "ec", com.azure.core.util.Context.NONE); - Assertions.assertEquals("acigel", response.iterator().next().location()); - Assertions.assertEquals("d", response.iterator().next().tags().get("vqvwzkjopwbe")); + Assertions.assertEquals("zv", response.iterator().next().location()); + Assertions.assertEquals("apxbannovvoxczy", response.iterator().next().tags().get("prwnwvroevytlyo")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java index f83ff61cf425..c326c3a821b0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java @@ -1,49 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner; -import com.azure.resourcemanager.netapp.models.BackupVaultsList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; +import com.azure.resourcemanager.netapp.implementation.models.BackupVaultsList; 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\":\"zfttsttktlahb\"},\"location\":\"ctxtgzukxi\",\"tags\":{\"cpjuisa\":\"qtgqqqxhrnxr\"},\"id\":\"okqdzfvaz\",\"name\":\"vjlfrqtt\",\"type\":\"ajlkatnw\"}],\"nextLink\":\"iopid\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"svfycxzbfv\"},\"location\":\"wvrvmtg\",\"tags\":{\"nsxkmcwaekrrjr\":\"pyostronzmyhgfi\",\"jglikkxwslolb\":\"afxtsgum\",\"elfk\":\"pvuzlmv\",\"njwmwkpnbsazejj\":\"gplcrpwjxeznoigb\"},\"id\":\"qkagfhsxt\",\"name\":\"augzxnfaazpxdtn\",\"type\":\"dm\"},{\"properties\":{\"provisioningState\":\"jlwuenvrkp\"},\"location\":\"uaibrebqaaysj\",\"tags\":{\"zlwfffiakp\":\"qtnqtt\",\"tmmjihyeozph\":\"pqqmted\"},\"id\":\"wau\",\"name\":\"qncygupkvi\",\"type\":\"mdscwxqupev\"},{\"properties\":{\"provisioningState\":\"stotxh\"},\"location\":\"ujbypelmcuvhixb\",\"tags\":{\"yl\":\"fw\",\"ujrywvtyl\":\"coolsttpkiwkkb\"},\"id\":\"fpncurdo\",\"name\":\"wiithtywub\",\"type\":\"cbihwqk\"}],\"nextLink\":\"dntwjchrdgo\"}") .toObject(BackupVaultsList.class); - Assertions.assertEquals("ctxtgzukxi", model.value().get(0).location()); - Assertions.assertEquals("qtgqqqxhrnxr", model.value().get(0).tags().get("cpjuisa")); - Assertions.assertEquals("iopid", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupVaultsList model = new BackupVaultsList() - .withValue(Arrays - .asList(new BackupVaultInner().withLocation("ctxtgzukxi").withTags(mapOf("cpjuisa", "qtgqqqxhrnxr")))) - .withNextLink("iopid"); - model = BinaryData.fromObject(model).toObject(BackupVaultsList.class); - Assertions.assertEquals("ctxtgzukxi", model.value().get(0).location()); - Assertions.assertEquals("qtgqqqxhrnxr", model.value().get(0).tags().get("cpjuisa")); - Assertions.assertEquals("iopid", 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; + Assertions.assertEquals("wvrvmtg", model.value().get(0).location()); + Assertions.assertEquals("pyostronzmyhgfi", model.value().get(0).tags().get("nsxkmcwaekrrjr")); + Assertions.assertEquals("dntwjchrdgo", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java index 005b17941696..0bab8ea8b7d5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class BackupsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"backupId\":\"p\",\"creationDate\":\"2021-02-22T22:51:57Z\",\"snapshotCreationDate\":\"2021-08-25T08:12:27Z\",\"completionDate\":\"2020-12-20T09:21:57Z\",\"provisioningState\":\"Succeeded\",\"size\":6121654459267984810,\"label\":\"dmxzjijpv\",\"backupType\":\"Manual\",\"failureReason\":\"kihcirlde\",\"volumeResourceId\":\"xrdcoxnbkkja\",\"useExistingSnapshot\":false,\"snapshotName\":\"nqbnqb\",\"backupPolicyResourceId\":\"zxqltgrdogypx\",\"isLargeVolume\":true},\"id\":\"fihwu\",\"name\":\"vctafsrb\",\"type\":\"rblmli\"}"; + = "{\"properties\":{\"backupId\":\"mwmdxmebwjscjpa\",\"creationDate\":\"2021-10-23T16:03:49Z\",\"snapshotCreationDate\":\"2021-07-30T12:17:23Z\",\"completionDate\":\"2021-09-27T23:30:18Z\",\"provisioningState\":\"Succeeded\",\"size\":3284652238021656307,\"label\":\"jddtvqct\",\"backupType\":\"Manual\",\"failureReason\":\"jaeukmrsieekpn\",\"volumeResourceId\":\"zaapmudqmeqwi\",\"useExistingSnapshot\":false,\"snapshotName\":\"udqwyxebeybpmzz\",\"backupPolicyResourceId\":\"tffyaqit\",\"isLargeVolume\":false},\"id\":\"ioqaqhvs\",\"name\":\"ufuqyrx\",\"type\":\"dlcgqlsismjqfr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,17 +31,17 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Backup response = manager.backups() - .define("lzgaufcshhvnew") - .withExistingBackupVault("xeiqbpsmg", "mguaml", "dlrgms") - .withVolumeResourceId("phdrw") - .withLabel("ypnyghshxc") + .define("egprhptil") + .withExistingBackupVault("jcsheafid", "tugsresmkssjh", "iftxfkf") + .withVolumeResourceId("ylhjlm") + .withLabel("phbqz") .withUseExistingSnapshot(false) - .withSnapshotName("vyom") + .withSnapshotName("primr") .create(); - Assertions.assertEquals("dmxzjijpv", response.label()); - Assertions.assertEquals("xrdcoxnbkkja", response.volumeResourceId()); + Assertions.assertEquals("jddtvqct", response.label()); + Assertions.assertEquals("zaapmudqmeqwi", response.volumeResourceId()); Assertions.assertFalse(response.useExistingSnapshot()); - Assertions.assertEquals("nqbnqb", response.snapshotName()); + Assertions.assertEquals("udqwyxebeybpmzz", response.snapshotName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java index 2c21d8060d7e..2596376bec7d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -20,7 +20,7 @@ public final class BackupsGetLatestStatusWithResponseMockTests { @Test public void testGetLatestStatusWithResponse() throws Exception { String responseStr - = "{\"healthy\":false,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Uninitialized\",\"unhealthyReason\":\"t\",\"errorMessage\":\"wxvgpiudeugfsxze\",\"lastTransferSize\":4398452965731029485,\"lastTransferType\":\"kufykhvu\",\"totalTransferBytes\":6780132883179901729,\"transferProgressBytes\":7620434324373710563}"; + = "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"dosfjbjsvgjrw\",\"errorMessage\":\"yvycytdclxgcckn\",\"lastTransferSize\":6413704895289470933,\"lastTransferType\":\"tmvpdvjdhtt\",\"totalTransferBytes\":6530762857956828664,\"transferProgressBytes\":4806267712213844002}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetLatestStatusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupStatus response = manager.backups() - .getLatestStatusWithResponse("ywaeeczgf", "ukklelss", "blycsxzujksr", "smdesqplpvmjcd", + .getLatestStatusWithResponse("zvytnrzvuljraaer", "nok", "gukkjqnvbroy", "a", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java index 4acbcac04950..08ff6fdde0e1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -20,7 +20,7 @@ public final class BackupsGetVolumeLatestRestoreStatusWithResponseMockTests { @Test public void testGetVolumeLatestRestoreStatusWithResponse() throws Exception { String responseStr - = "{\"healthy\":true,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"fxhikkflrmymyi\",\"errorMessage\":\"qlhris\",\"totalTransferBytes\":8418188609017059062}"; + = "{\"healthy\":true,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"lgehg\",\"errorMessage\":\"ipifhpfeoajvg\",\"totalTransferBytes\":5736463297269671882}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetVolumeLatestRestoreStatusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RestoreStatus response = manager.backups() - .getVolumeLatestRestoreStatusWithResponse("tznabao", "nslujd", "ltymkmvguihywart", "pphkixkykxds", + .getVolumeLatestRestoreStatusWithResponse("ihchrphkmcrjdqn", "dfzpbgtgkylkdg", "rjeuut", "wxezwzhok", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java index b769f26cb36b..e6ec4cf9f5b2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class BackupsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"backupId\":\"j\",\"creationDate\":\"2021-11-22T14:35:55Z\",\"snapshotCreationDate\":\"2021-08-07T04:21:54Z\",\"completionDate\":\"2021-03-20T09:49:19Z\",\"provisioningState\":\"pgxh\",\"size\":8810903424099452521,\"label\":\"qwcabvnui\",\"backupType\":\"Manual\",\"failureReason\":\"aswlp\",\"volumeResourceId\":\"ugmrmf\",\"useExistingSnapshot\":true,\"snapshotName\":\"wtoaukhfk\",\"backupPolicyResourceId\":\"isizm\",\"isLargeVolume\":false},\"id\":\"sx\",\"name\":\"wuived\",\"type\":\"cgyee\"}"; + = "{\"properties\":{\"backupId\":\"bjjidjksyxky\",\"creationDate\":\"2021-06-14T02:15:17Z\",\"snapshotCreationDate\":\"2021-09-27T05:48:08Z\",\"completionDate\":\"2021-01-08T06:53:43Z\",\"provisioningState\":\"jednlj\",\"size\":7592252826756292876,\"label\":\"aulx\",\"backupType\":\"Scheduled\",\"failureReason\":\"jbnkpp\",\"volumeResourceId\":\"ynenlsvxeizz\",\"useExistingSnapshot\":true,\"snapshotName\":\"nsrmffeycx\",\"backupPolicyResourceId\":\"tpiymerteea\",\"isLargeVolume\":true},\"id\":\"iekkkzddrtkgdojb\",\"name\":\"xv\",\"type\":\"vrefdeesv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Backup response = manager.backups() - .getWithResponse("kdfrdbiqmrjgeihf", "lg", "wfiwzcxmj", "byephmgt", com.azure.core.util.Context.NONE) + .getWithResponse("wa", "pqg", "tjeaahhvjhh", "akz", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("qwcabvnui", response.label()); - Assertions.assertEquals("ugmrmf", response.volumeResourceId()); + Assertions.assertEquals("aulx", response.label()); + Assertions.assertEquals("ynenlsvxeizz", response.volumeResourceId()); Assertions.assertTrue(response.useExistingSnapshot()); - Assertions.assertEquals("wtoaukhfk", response.snapshotName()); + Assertions.assertEquals("nsrmffeycx", response.snapshotName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java index 3a035057fd3b..6c32bed8c791 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class BackupsListByVaultMockTests { @Test public void testListByVault() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"backupId\":\"phqlkccuz\",\"creationDate\":\"2021-06-12T18:54:42Z\",\"snapshotCreationDate\":\"2021-02-24T05:56:22Z\",\"completionDate\":\"2021-06-14T12:47:22Z\",\"provisioningState\":\"iul\",\"size\":1966566036888522546,\"label\":\"prglvawuwzduf\",\"backupType\":\"Scheduled\",\"failureReason\":\"lsbbj\",\"volumeResourceId\":\"mcub\",\"useExistingSnapshot\":true,\"snapshotName\":\"oxxkubvp\",\"backupPolicyResourceId\":\"v\",\"isLargeVolume\":false},\"id\":\"rbqgvgov\",\"name\":\"bbttefjo\",\"type\":\"nssqyzqed\"}]}"; + = "{\"value\":[{\"properties\":{\"backupId\":\"tvtzeexavoxtfg\",\"creationDate\":\"2021-10-13T21:26:08Z\",\"snapshotCreationDate\":\"2021-07-20T08:15:13Z\",\"completionDate\":\"2021-07-23T09:21:39Z\",\"provisioningState\":\"wpypqtgsfj\",\"size\":1144456929835288203,\"label\":\"hhxud\",\"backupType\":\"Manual\",\"failureReason\":\"d\",\"volumeResourceId\":\"tnsi\",\"useExistingSnapshot\":true,\"snapshotName\":\"z\",\"backupPolicyResourceId\":\"es\",\"isLargeVolume\":true},\"id\":\"pagzrcxfailcfxwm\",\"name\":\"boxdfgsftufq\",\"type\":\"brjlnacgcckknhxk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testListByVault() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.backups() - .listByVault("iiiovgqcgxuugq", "ctotiowlx", "e", "dptjgwdtgukranb", com.azure.core.util.Context.NONE); + .listByVault("cuijpxt", "s", "wprtu", "wsawddjibabxvi", com.azure.core.util.Context.NONE); - Assertions.assertEquals("prglvawuwzduf", response.iterator().next().label()); - Assertions.assertEquals("mcub", response.iterator().next().volumeResourceId()); + Assertions.assertEquals("hhxud", response.iterator().next().label()); + Assertions.assertEquals("tnsi", response.iterator().next().volumeResourceId()); Assertions.assertTrue(response.iterator().next().useExistingSnapshot()); - Assertions.assertEquals("oxxkubvp", response.iterator().next().snapshotName()); + Assertions.assertEquals("z", 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 index b9a348deb236..63dfc4277bef 100644 --- 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 @@ -1,53 +1,23 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupInner; -import com.azure.resourcemanager.netapp.models.BackupsList; -import java.util.Arrays; +import com.azure.resourcemanager.netapp.implementation.models.BackupsList; 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\":\"nssxmojmsvpk\",\"creationDate\":\"2021-06-06T17:21:37Z\",\"snapshotCreationDate\":\"2021-09-03T19:15:23Z\",\"completionDate\":\"2021-06-29T06:50:32Z\",\"provisioningState\":\"zqljyxgtczh\",\"size\":7400057251495207075,\"label\":\"dshmkxmaehvbbx\",\"backupType\":\"Manual\",\"failureReason\":\"ltfnhtbaxkgx\",\"volumeResourceId\":\"wrck\",\"useExistingSnapshot\":false,\"snapshotName\":\"yhpluodpvruudlgz\",\"backupPolicyResourceId\":\"thost\",\"isLargeVolume\":true},\"id\":\"tvdxeclzedqb\",\"name\":\"vh\",\"type\":\"lhpl\"},{\"properties\":{\"backupId\":\"qkdlw\",\"creationDate\":\"2021-06-02T22:55:20Z\",\"snapshotCreationDate\":\"2021-04-24T09:11:55Z\",\"completionDate\":\"2021-11-14T02:43:26Z\",\"provisioningState\":\"xtrqjfs\",\"size\":9061974154322303797,\"label\":\"xhwgfwsrtaw\",\"backupType\":\"Scheduled\",\"failureReason\":\"brhu\",\"volumeResourceId\":\"skh\",\"useExistingSnapshot\":false,\"snapshotName\":\"oookkqfq\",\"backupPolicyResourceId\":\"vleo\",\"isLargeVolume\":false},\"id\":\"uiqtqzfavy\",\"name\":\"nqqyba\",\"type\":\"yeua\"},{\"properties\":{\"backupId\":\"kq\",\"creationDate\":\"2021-05-30T08:11:11Z\",\"snapshotCreationDate\":\"2021-11-18T10:38:36Z\",\"completionDate\":\"2021-08-16T02:48:50Z\",\"provisioningState\":\"sjc\",\"size\":9014783078965490836,\"label\":\"ntiew\",\"backupType\":\"Manual\",\"failureReason\":\"bquwrbehw\",\"volumeResourceId\":\"gohbuffkmrq\",\"useExistingSnapshot\":true,\"snapshotName\":\"hmxtdr\",\"backupPolicyResourceId\":\"utacoe\",\"isLargeVolume\":false},\"id\":\"wzcjznmwcpmgua\",\"name\":\"draufactkah\",\"type\":\"ovajjziuxxps\"},{\"properties\":{\"backupId\":\"eekulfgslqubkwd\",\"creationDate\":\"2021-11-08T16:30:24Z\",\"snapshotCreationDate\":\"2021-04-28T05:58:57Z\",\"completionDate\":\"2021-04-26T16:34:12Z\",\"provisioningState\":\"ujbazpjuohminyfl\",\"size\":3372671534162877362,\"label\":\"duvwpklvxwmygd\",\"backupType\":\"Manual\",\"failureReason\":\"qchiszep\",\"volumeResourceId\":\"nb\",\"useExistingSnapshot\":false,\"snapshotName\":\"gibbdaxc\",\"backupPolicyResourceId\":\"fozauorsuk\",\"isLargeVolume\":false},\"id\":\"qplhlvnu\",\"name\":\"epzl\",\"type\":\"phwzsoldweyuqdu\"}],\"nextLink\":\"mnnrwr\"}") + "{\"value\":[{\"properties\":{\"backupId\":\"abgy\",\"creationDate\":\"2021-06-14T01:08:13Z\",\"snapshotCreationDate\":\"2021-08-09T16:13:09Z\",\"completionDate\":\"2021-01-26T13:24:27Z\",\"provisioningState\":\"qugxywpmueefjzwf\",\"size\":833817548931918464,\"label\":\"ids\",\"backupType\":\"Scheduled\",\"failureReason\":\"obglaocqxtcc\",\"volumeResourceId\":\"g\",\"useExistingSnapshot\":false,\"snapshotName\":\"ytlmoyrxvwfud\",\"backupPolicyResourceId\":\"zntxhdz\",\"isLargeVolume\":true},\"id\":\"jbhckfrlhr\",\"name\":\"sbkyvpycanuzbp\",\"type\":\"kafkuwbcrnwbm\"},{\"properties\":{\"backupId\":\"hseyvju\",\"creationDate\":\"2021-04-19T12:26:41Z\",\"snapshotCreationDate\":\"2021-09-18T12:00:30Z\",\"completionDate\":\"2021-11-09T03:55:11Z\",\"provisioningState\":\"kdeemaofmxagkvtm\",\"size\":8799257187575805529,\"label\":\"rhahvljuahaquhcd\",\"backupType\":\"Manual\",\"failureReason\":\"alaexqpvfadmwsrc\",\"volumeResourceId\":\"gvxp\",\"useExistingSnapshot\":false,\"snapshotName\":\"zlfmisgwbnbbeld\",\"backupPolicyResourceId\":\"k\",\"isLargeVolume\":false},\"id\":\"io\",\"name\":\"rqhakauha\",\"type\":\"hsfwxosowzxcug\"}],\"nextLink\":\"jooxdjebw\"}") .toObject(BackupsList.class); - Assertions.assertEquals("dshmkxmaehvbbx", model.value().get(0).label()); - Assertions.assertEquals("wrck", model.value().get(0).volumeResourceId()); + Assertions.assertEquals("ids", model.value().get(0).label()); + Assertions.assertEquals("g", model.value().get(0).volumeResourceId()); Assertions.assertFalse(model.value().get(0).useExistingSnapshot()); - Assertions.assertEquals("yhpluodpvruudlgz", model.value().get(0).snapshotName()); - Assertions.assertEquals("mnnrwr", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupsList model = new BackupsList().withValue(Arrays.asList( - new BackupInner().withLabel("dshmkxmaehvbbx") - .withVolumeResourceId("wrck") - .withUseExistingSnapshot(false) - .withSnapshotName("yhpluodpvruudlgz"), - new BackupInner().withLabel("xhwgfwsrtaw") - .withVolumeResourceId("skh") - .withUseExistingSnapshot(false) - .withSnapshotName("oookkqfq"), - new BackupInner().withLabel("ntiew") - .withVolumeResourceId("gohbuffkmrq") - .withUseExistingSnapshot(true) - .withSnapshotName("hmxtdr"), - new BackupInner().withLabel("duvwpklvxwmygd") - .withVolumeResourceId("nb") - .withUseExistingSnapshot(false) - .withSnapshotName("gibbdaxc"))) - .withNextLink("mnnrwr"); - model = BinaryData.fromObject(model).toObject(BackupsList.class); - Assertions.assertEquals("dshmkxmaehvbbx", model.value().get(0).label()); - Assertions.assertEquals("wrck", model.value().get(0).volumeResourceId()); - Assertions.assertFalse(model.value().get(0).useExistingSnapshot()); - Assertions.assertEquals("yhpluodpvruudlgz", model.value().get(0).snapshotName()); - Assertions.assertEquals("mnnrwr", model.nextLink()); + Assertions.assertEquals("ytlmoyrxvwfud", model.value().get(0).snapshotName()); + Assertions.assertEquals("jooxdjebw", 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 index 26a886ef5af2..51255718ef31 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,14 +12,14 @@ public final class BackupsMigrationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupsMigrationRequest model - = BinaryData.fromString("{\"backupVaultId\":\"xlllchp\"}").toObject(BackupsMigrationRequest.class); - Assertions.assertEquals("xlllchp", model.backupVaultId()); + = BinaryData.fromString("{\"backupVaultId\":\"srhnjivo\"}").toObject(BackupsMigrationRequest.class); + Assertions.assertEquals("srhnjivo", model.backupVaultId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupsMigrationRequest model = new BackupsMigrationRequest().withBackupVaultId("xlllchp"); + BackupsMigrationRequest model = new BackupsMigrationRequest().withBackupVaultId("srhnjivo"); model = BinaryData.fromObject(model).toObject(BackupsMigrationRequest.class); - Assertions.assertEquals("xlllchp", model.backupVaultId()); + Assertions.assertEquals("srhnjivo", 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 index a3656b973d0e..1b276fbc805b 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,18 +12,18 @@ public final class BreakFileLocksRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BreakFileLocksRequest model - = BinaryData.fromString("{\"clientIp\":\"odfvuefywsbp\",\"confirmRunningDisruptiveOperation\":false}") + = BinaryData.fromString("{\"clientIp\":\"xb\",\"confirmRunningDisruptiveOperation\":false}") .toObject(BreakFileLocksRequest.class); - Assertions.assertEquals("odfvuefywsbp", model.clientIp()); + Assertions.assertEquals("xb", model.clientIp()); Assertions.assertFalse(model.confirmRunningDisruptiveOperation()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { BreakFileLocksRequest model - = new BreakFileLocksRequest().withClientIp("odfvuefywsbp").withConfirmRunningDisruptiveOperation(false); + = new BreakFileLocksRequest().withClientIp("xb").withConfirmRunningDisruptiveOperation(false); model = BinaryData.fromObject(model).toObject(BreakFileLocksRequest.class); - Assertions.assertEquals("odfvuefywsbp", model.clientIp()); + Assertions.assertEquals("xb", model.clientIp()); Assertions.assertFalse(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 index 6fd737b2562a..5dcf0a26cbbe 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketInnerTests.java deleted file mode 100644 index de6e0c9d0d94..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketInnerTests.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.BucketInner; -import com.azure.resourcemanager.netapp.models.BucketPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerProperties; -import com.azure.resourcemanager.netapp.models.CifsUser; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NfsUser; -import org.junit.jupiter.api.Assertions; - -public final class BucketInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BucketInner model = BinaryData.fromString( - "{\"properties\":{\"path\":\"qvldspastjbkkd\",\"fileSystemUser\":{\"nfsUser\":{\"userId\":2449402228806390937,\"groupId\":8338278745166305901},\"cifsUser\":{\"username\":\"rriloz\"}},\"provisioningState\":\"Updating\",\"status\":\"Active\",\"server\":{\"fqdn\":\"pxlktwkuziycsl\",\"certificateCommonName\":\"ufuztcktyhjtq\",\"certificateExpiryDate\":\"2021-07-31T16:28:11Z\",\"ipAddress\":\"zulwmmrqzzrrj\",\"certificateObject\":\"gl\"},\"permissions\":\"ReadOnly\"},\"id\":\"krvq\",\"name\":\"ev\",\"type\":\"oepry\"}") - .toObject(BucketInner.class); - Assertions.assertEquals("qvldspastjbkkd", model.path()); - Assertions.assertEquals(2449402228806390937L, model.fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(8338278745166305901L, model.fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("rriloz", model.fileSystemUser().cifsUser().username()); - Assertions.assertEquals("pxlktwkuziycsl", model.server().fqdn()); - Assertions.assertEquals("gl", model.server().certificateObject()); - Assertions.assertEquals(BucketPermissions.READ_ONLY, model.permissions()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BucketInner model = new BucketInner().withPath("qvldspastjbkkd") - .withFileSystemUser(new FileSystemUser() - .withNfsUser(new NfsUser().withUserId(2449402228806390937L).withGroupId(8338278745166305901L)) - .withCifsUser(new CifsUser().withUsername("rriloz"))) - .withServer(new BucketServerProperties().withFqdn("pxlktwkuziycsl").withCertificateObject("gl")) - .withPermissions(BucketPermissions.READ_ONLY); - model = BinaryData.fromObject(model).toObject(BucketInner.class); - Assertions.assertEquals("qvldspastjbkkd", model.path()); - Assertions.assertEquals(2449402228806390937L, model.fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(8338278745166305901L, model.fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("rriloz", model.fileSystemUser().cifsUser().username()); - Assertions.assertEquals("pxlktwkuziycsl", model.server().fqdn()); - Assertions.assertEquals("gl", model.server().certificateObject()); - Assertions.assertEquals(BucketPermissions.READ_ONLY, model.permissions()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketListTests.java deleted file mode 100644 index 77790eb9c44a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketListTests.java +++ /dev/null @@ -1,66 +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.BucketInner; -import com.azure.resourcemanager.netapp.models.BucketList; -import com.azure.resourcemanager.netapp.models.BucketPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerProperties; -import com.azure.resourcemanager.netapp.models.CifsUser; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NfsUser; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BucketListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BucketList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"path\":\"vwrdnhfukuvsj\",\"fileSystemUser\":{\"nfsUser\":{\"userId\":4555995825543462077,\"groupId\":5004966782756902203},\"cifsUser\":{\"username\":\"qypfcv\"}},\"provisioningState\":\"Accepted\",\"status\":\"NoCredentialsSet\",\"server\":{\"fqdn\":\"bm\",\"certificateCommonName\":\"jbabwidf\",\"certificateExpiryDate\":\"2021-05-31T20:33:23Z\",\"ipAddress\":\"puunnoxyhkxgqd\",\"certificateObject\":\"i\"},\"permissions\":\"ReadOnly\"},\"id\":\"oqcaaewdaomdj\",\"name\":\"l\",\"type\":\"jxxkzbrmsgei\"},{\"properties\":{\"path\":\"ykzkdncjdxo\",\"fileSystemUser\":{\"nfsUser\":{\"userId\":5953743800911269792,\"groupId\":63941224599650233},\"cifsUser\":{\"username\":\"z\"}},\"provisioningState\":\"Moving\",\"status\":\"Active\",\"server\":{\"fqdn\":\"tqxepn\",\"certificateCommonName\":\"b\",\"certificateExpiryDate\":\"2021-09-26T03:21:12Z\",\"ipAddress\":\"lyjt\",\"certificateObject\":\"of\"},\"permissions\":\"ReadWrite\"},\"id\":\"fcibyfmowuxrkj\",\"name\":\"vdwxfzwi\",\"type\":\"vwzjbhyz\"}],\"nextLink\":\"jrkambtrnegvmnv\"}") - .toObject(BucketList.class); - Assertions.assertEquals("vwrdnhfukuvsj", model.value().get(0).path()); - Assertions.assertEquals(4555995825543462077L, model.value().get(0).fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(5004966782756902203L, model.value().get(0).fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("qypfcv", model.value().get(0).fileSystemUser().cifsUser().username()); - Assertions.assertEquals("bm", model.value().get(0).server().fqdn()); - Assertions.assertEquals("i", model.value().get(0).server().certificateObject()); - Assertions.assertEquals(BucketPermissions.READ_ONLY, model.value().get(0).permissions()); - Assertions.assertEquals("jrkambtrnegvmnv", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BucketList model - = new BucketList() - .withValue( - Arrays - .asList( - new BucketInner().withPath("vwrdnhfukuvsj") - .withFileSystemUser(new FileSystemUser() - .withNfsUser(new NfsUser().withUserId(4555995825543462077L) - .withGroupId(5004966782756902203L)) - .withCifsUser(new CifsUser().withUsername("qypfcv"))) - .withServer(new BucketServerProperties().withFqdn("bm").withCertificateObject("i")) - .withPermissions(BucketPermissions.READ_ONLY), - new BucketInner().withPath("ykzkdncjdxo") - .withFileSystemUser(new FileSystemUser() - .withNfsUser( - new NfsUser().withUserId(5953743800911269792L).withGroupId(63941224599650233L)) - .withCifsUser(new CifsUser().withUsername("z"))) - .withServer(new BucketServerProperties().withFqdn("tqxepn").withCertificateObject("of")) - .withPermissions(BucketPermissions.READ_WRITE))) - .withNextLink("jrkambtrnegvmnv"); - model = BinaryData.fromObject(model).toObject(BucketList.class); - Assertions.assertEquals("vwrdnhfukuvsj", model.value().get(0).path()); - Assertions.assertEquals(4555995825543462077L, model.value().get(0).fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(5004966782756902203L, model.value().get(0).fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("qypfcv", model.value().get(0).fileSystemUser().cifsUser().username()); - Assertions.assertEquals("bm", model.value().get(0).server().fqdn()); - Assertions.assertEquals("i", model.value().get(0).server().certificateObject()); - Assertions.assertEquals(BucketPermissions.READ_ONLY, model.value().get(0).permissions()); - Assertions.assertEquals("jrkambtrnegvmnv", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketPatchPropertiesTests.java deleted file mode 100644 index b4eff900f09d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketPatchPropertiesTests.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.BucketPatchProperties; -import com.azure.resourcemanager.netapp.models.BucketPatchPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; -import com.azure.resourcemanager.netapp.models.CifsUser; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NfsUser; -import org.junit.jupiter.api.Assertions; - -public final class BucketPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BucketPatchProperties model = BinaryData.fromString( - "{\"path\":\"pnvdxz\",\"fileSystemUser\":{\"nfsUser\":{\"userId\":5184735928624525939,\"groupId\":107685473629648091},\"cifsUser\":{\"username\":\"qagt\"}},\"provisioningState\":\"Deleting\",\"server\":{\"fqdn\":\"fkqojpy\",\"certificateObject\":\"gtrd\"},\"permissions\":\"ReadOnly\"}") - .toObject(BucketPatchProperties.class); - Assertions.assertEquals("pnvdxz", model.path()); - Assertions.assertEquals(5184735928624525939L, model.fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(107685473629648091L, model.fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("qagt", model.fileSystemUser().cifsUser().username()); - Assertions.assertEquals("fkqojpy", model.server().fqdn()); - Assertions.assertEquals("gtrd", model.server().certificateObject()); - Assertions.assertEquals(BucketPatchPermissions.READ_ONLY, model.permissions()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BucketPatchProperties model = new BucketPatchProperties().withPath("pnvdxz") - .withFileSystemUser(new FileSystemUser() - .withNfsUser(new NfsUser().withUserId(5184735928624525939L).withGroupId(107685473629648091L)) - .withCifsUser(new CifsUser().withUsername("qagt"))) - .withServer(new BucketServerPatchProperties().withFqdn("fkqojpy").withCertificateObject("gtrd")) - .withPermissions(BucketPatchPermissions.READ_ONLY); - model = BinaryData.fromObject(model).toObject(BucketPatchProperties.class); - Assertions.assertEquals("pnvdxz", model.path()); - Assertions.assertEquals(5184735928624525939L, model.fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(107685473629648091L, model.fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("qagt", model.fileSystemUser().cifsUser().username()); - Assertions.assertEquals("fkqojpy", model.server().fqdn()); - Assertions.assertEquals("gtrd", model.server().certificateObject()); - Assertions.assertEquals(BucketPatchPermissions.READ_ONLY, model.permissions()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketPatchTests.java deleted file mode 100644 index 2a22dba45918..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketPatchTests.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.models.BucketPatch; -import com.azure.resourcemanager.netapp.models.BucketPatchPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; -import com.azure.resourcemanager.netapp.models.CifsUser; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NfsUser; -import org.junit.jupiter.api.Assertions; - -public final class BucketPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BucketPatch model = BinaryData.fromString( - "{\"properties\":{\"path\":\"yik\",\"fileSystemUser\":{\"nfsUser\":{\"userId\":4524825461883558353,\"groupId\":3474591298556028282},\"cifsUser\":{\"username\":\"mncsttijfybvp\"}},\"provisioningState\":\"Provisioning\",\"server\":{\"fqdn\":\"gsgbdhuzq\",\"certificateObject\":\"j\"},\"permissions\":\"ReadWrite\"},\"id\":\"nscliqhzvhxnk\",\"name\":\"mtk\",\"type\":\"bo\"}") - .toObject(BucketPatch.class); - Assertions.assertEquals("yik", model.path()); - Assertions.assertEquals(4524825461883558353L, model.fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(3474591298556028282L, model.fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("mncsttijfybvp", model.fileSystemUser().cifsUser().username()); - Assertions.assertEquals("gsgbdhuzq", model.server().fqdn()); - Assertions.assertEquals("j", model.server().certificateObject()); - Assertions.assertEquals(BucketPatchPermissions.READ_WRITE, model.permissions()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BucketPatch model = new BucketPatch().withPath("yik") - .withFileSystemUser(new FileSystemUser() - .withNfsUser(new NfsUser().withUserId(4524825461883558353L).withGroupId(3474591298556028282L)) - .withCifsUser(new CifsUser().withUsername("mncsttijfybvp"))) - .withServer(new BucketServerPatchProperties().withFqdn("gsgbdhuzq").withCertificateObject("j")) - .withPermissions(BucketPatchPermissions.READ_WRITE); - model = BinaryData.fromObject(model).toObject(BucketPatch.class); - Assertions.assertEquals("yik", model.path()); - Assertions.assertEquals(4524825461883558353L, model.fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(3474591298556028282L, model.fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("mncsttijfybvp", model.fileSystemUser().cifsUser().username()); - Assertions.assertEquals("gsgbdhuzq", model.server().fqdn()); - Assertions.assertEquals("j", model.server().certificateObject()); - Assertions.assertEquals(BucketPatchPermissions.READ_WRITE, model.permissions()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketPropertiesTests.java deleted file mode 100644 index e7a183139613..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketPropertiesTests.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.BucketProperties; -import com.azure.resourcemanager.netapp.models.BucketPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerProperties; -import com.azure.resourcemanager.netapp.models.CifsUser; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NfsUser; -import org.junit.jupiter.api.Assertions; - -public final class BucketPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BucketProperties model = BinaryData.fromString( - "{\"path\":\"nwy\",\"fileSystemUser\":{\"nfsUser\":{\"userId\":2401123487237665785,\"groupId\":9080277930297911514},\"cifsUser\":{\"username\":\"aawzqadfl\"}},\"provisioningState\":\"Succeeded\",\"status\":\"CredentialsExpired\",\"server\":{\"fqdn\":\"aecxndtic\",\"certificateCommonName\":\"pvz\",\"certificateExpiryDate\":\"2021-12-05T05:29:15Z\",\"ipAddress\":\"mldgxobfirc\",\"certificateObject\":\"pkc\"},\"permissions\":\"ReadOnly\"}") - .toObject(BucketProperties.class); - Assertions.assertEquals("nwy", model.path()); - Assertions.assertEquals(2401123487237665785L, model.fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(9080277930297911514L, model.fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("aawzqadfl", model.fileSystemUser().cifsUser().username()); - Assertions.assertEquals("aecxndtic", model.server().fqdn()); - Assertions.assertEquals("pkc", model.server().certificateObject()); - Assertions.assertEquals(BucketPermissions.READ_ONLY, model.permissions()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BucketProperties model = new BucketProperties().withPath("nwy") - .withFileSystemUser(new FileSystemUser() - .withNfsUser(new NfsUser().withUserId(2401123487237665785L).withGroupId(9080277930297911514L)) - .withCifsUser(new CifsUser().withUsername("aawzqadfl"))) - .withServer(new BucketServerProperties().withFqdn("aecxndtic").withCertificateObject("pkc")) - .withPermissions(BucketPermissions.READ_ONLY); - model = BinaryData.fromObject(model).toObject(BucketProperties.class); - Assertions.assertEquals("nwy", model.path()); - Assertions.assertEquals(2401123487237665785L, model.fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(9080277930297911514L, model.fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("aawzqadfl", model.fileSystemUser().cifsUser().username()); - Assertions.assertEquals("aecxndtic", model.server().fqdn()); - Assertions.assertEquals("pkc", model.server().certificateObject()); - Assertions.assertEquals(BucketPermissions.READ_ONLY, model.permissions()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPatchPropertiesTests.java deleted file mode 100644 index 51e6a93c47d3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPatchPropertiesTests.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.BucketServerPatchProperties; -import org.junit.jupiter.api.Assertions; - -public final class BucketServerPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BucketServerPatchProperties model = BinaryData.fromString("{\"fqdn\":\"mzzs\",\"certificateObject\":\"m\"}") - .toObject(BucketServerPatchProperties.class); - Assertions.assertEquals("mzzs", model.fqdn()); - Assertions.assertEquals("m", model.certificateObject()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BucketServerPatchProperties model - = new BucketServerPatchProperties().withFqdn("mzzs").withCertificateObject("m"); - model = BinaryData.fromObject(model).toObject(BucketServerPatchProperties.class); - Assertions.assertEquals("mzzs", model.fqdn()); - Assertions.assertEquals("m", model.certificateObject()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPropertiesTests.java deleted file mode 100644 index 06b01c9bc65a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketServerPropertiesTests.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.BucketServerProperties; -import org.junit.jupiter.api.Assertions; - -public final class BucketServerPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BucketServerProperties model = BinaryData.fromString( - "{\"fqdn\":\"tj\",\"certificateCommonName\":\"ysdzhez\",\"certificateExpiryDate\":\"2021-07-03T03:06:30Z\",\"ipAddress\":\"iqyuvvfo\",\"certificateObject\":\"p\"}") - .toObject(BucketServerProperties.class); - Assertions.assertEquals("tj", model.fqdn()); - Assertions.assertEquals("p", model.certificateObject()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BucketServerProperties model = new BucketServerProperties().withFqdn("tj").withCertificateObject("p"); - model = BinaryData.fromObject(model).toObject(BucketServerProperties.class); - Assertions.assertEquals("tj", model.fqdn()); - Assertions.assertEquals("p", model.certificateObject()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateMockTests.java deleted file mode 100644 index 226554956976..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,57 +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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Bucket; -import com.azure.resourcemanager.netapp.models.BucketPermissions; -import com.azure.resourcemanager.netapp.models.BucketServerProperties; -import com.azure.resourcemanager.netapp.models.CifsUser; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NfsUser; -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 BucketsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"path\":\"oyzbamwineofvf\",\"fileSystemUser\":{\"nfsUser\":{\"userId\":6634708207074157916,\"groupId\":961650519866515302},\"cifsUser\":{\"username\":\"boclzhzjknyuxgv\"}},\"provisioningState\":\"Succeeded\",\"status\":\"NoCredentialsSet\",\"server\":{\"fqdn\":\"pzaamrdixtreki\",\"certificateCommonName\":\"wyskbruffgll\",\"certificateExpiryDate\":\"2021-02-08T16:15:08Z\",\"ipAddress\":\"tvlxhrpqh\",\"certificateObject\":\"blcouqehbhbcdszi\"},\"permissions\":\"ReadWrite\"},\"id\":\"ndo\",\"name\":\"pmbltoormkfql\",\"type\":\"xldykalsygaolnjp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - Bucket response = manager.buckets() - .define("sryjqgdkfno") - .withExistingVolume("lrtywikdmhlakuf", "gbhgau", "cdixmx", "f") - .withPath("oqbvjhvefgwbmqj") - .withFileSystemUser(new FileSystemUser() - .withNfsUser(new NfsUser().withUserId(4828105529763249652L).withGroupId(1533925900451984741L)) - .withCifsUser(new CifsUser().withUsername("b"))) - .withServer(new BucketServerProperties().withFqdn("b").withCertificateObject("jcmmzrrscub")) - .withPermissions(BucketPermissions.READ_ONLY) - .create(); - - Assertions.assertEquals("oyzbamwineofvf", response.path()); - Assertions.assertEquals(6634708207074157916L, response.fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(961650519866515302L, response.fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("boclzhzjknyuxgv", response.fileSystemUser().cifsUser().username()); - Assertions.assertEquals("pzaamrdixtreki", response.server().fqdn()); - Assertions.assertEquals("blcouqehbhbcdszi", response.server().certificateObject()); - Assertions.assertEquals(BucketPermissions.READ_WRITE, response.permissions()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketsGetWithResponseMockTests.java deleted file mode 100644 index 0a07ec97201a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketsGetWithResponseMockTests.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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Bucket; -import com.azure.resourcemanager.netapp.models.BucketPermissions; -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 BucketsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"path\":\"vmaonurjt\",\"fileSystemUser\":{\"nfsUser\":{\"userId\":7748280938760549360,\"groupId\":1762623729794433667},\"cifsUser\":{\"username\":\"slclblyjxltbsju\"}},\"provisioningState\":\"Accepted\",\"status\":\"NoCredentialsSet\",\"server\":{\"fqdn\":\"gctmgxuupbezq\",\"certificateCommonName\":\"ydrtc\",\"certificateExpiryDate\":\"2021-07-11T08:16:04Z\",\"ipAddress\":\"qkkyihztgeqmg\",\"certificateObject\":\"gwldo\"},\"permissions\":\"ReadOnly\"},\"id\":\"llcecfehuwaoa\",\"name\":\"uhicqllizstacsjv\",\"type\":\"rweft\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - Bucket response = manager.buckets() - .getWithResponse("vidbztjhqtfb", "vnynkb", "etnjuhpsprkz", "aupia", "cxnafbwqrooh", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vmaonurjt", response.path()); - Assertions.assertEquals(7748280938760549360L, response.fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(1762623729794433667L, response.fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("slclblyjxltbsju", response.fileSystemUser().cifsUser().username()); - Assertions.assertEquals("gctmgxuupbezq", response.server().fqdn()); - Assertions.assertEquals("gwldo", response.server().certificateObject()); - Assertions.assertEquals(BucketPermissions.READ_ONLY, response.permissions()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketsListMockTests.java deleted file mode 100644 index 4c37efd44af9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BucketsListMockTests.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.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Bucket; -import com.azure.resourcemanager.netapp.models.BucketPermissions; -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 BucketsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"path\":\"mp\",\"fileSystemUser\":{\"nfsUser\":{\"userId\":8509605857029832760,\"groupId\":3653005464283088293},\"cifsUser\":{\"username\":\"tuiaclkiexhajlfn\"}},\"provisioningState\":\"Moving\",\"status\":\"NoCredentialsSet\",\"server\":{\"fqdn\":\"t\",\"certificateCommonName\":\"iygbpvn\",\"certificateExpiryDate\":\"2021-04-05T20:55:30Z\",\"ipAddress\":\"txkyctwwgzwxjlm\",\"certificateObject\":\"vogygzyvneez\"},\"permissions\":\"ReadOnly\"},\"id\":\"htmoqqtlffhzbkr\",\"name\":\"jjjavfqnvhnq\",\"type\":\"ewdogiyetesy\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.buckets().list("patlbijp", "gsksrfhf", "olmk", "bnxwc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mp", response.iterator().next().path()); - Assertions.assertEquals(8509605857029832760L, response.iterator().next().fileSystemUser().nfsUser().userId()); - Assertions.assertEquals(3653005464283088293L, response.iterator().next().fileSystemUser().nfsUser().groupId()); - Assertions.assertEquals("tuiaclkiexhajlfn", response.iterator().next().fileSystemUser().cifsUser().username()); - Assertions.assertEquals("t", response.iterator().next().server().fqdn()); - Assertions.assertEquals("vogygzyvneez", response.iterator().next().server().certificateObject()); - Assertions.assertEquals(BucketPermissions.READ_ONLY, response.iterator().next().permissions()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java index 89a363179ffc..e7580558ec13 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -17,36 +17,37 @@ public final class CapacityPoolInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityPoolInner model = BinaryData.fromString( - "{\"etag\":\"oyrxvwfudwpzntxh\",\"properties\":{\"poolId\":\"hl\",\"size\":2074686312708379193,\"serviceLevel\":\"Premium\",\"provisioningState\":\"ck\",\"totalThroughputMibps\":70.234726,\"utilizedThroughputMibps\":47.60285,\"customThroughputMibps\":84.460884,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"location\":\"anuzbpzkafkuw\",\"tags\":{\"seyvj\":\"nwbmeh\"},\"id\":\"srtslhspkdeem\",\"name\":\"ofmxagkvtmelmqkr\",\"type\":\"ahvljuaha\"}") + "{\"properties\":{\"poolId\":\"tnovqfzgemjdftul\",\"size\":7390049782510101354,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"ceamtm\",\"totalThroughputMibps\":2.9999912,\"utilizedThroughputMibps\":1.4412522,\"customThroughputMibps\":418634069,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"etag\":\"knssxmojm\",\"location\":\"p\",\"tags\":{\"zqljyxgtczh\":\"rvkwc\",\"hmkxmaehvbb\":\"ydbsd\",\"kgxywr\":\"uripltfnhtba\",\"uodpv\":\"kpyklyhp\"},\"id\":\"uudl\",\"name\":\"zibt\",\"type\":\"ostgkts\"}") .toObject(CapacityPoolInner.class); - Assertions.assertEquals("anuzbpzkafkuw", model.location()); - Assertions.assertEquals("nwbmeh", model.tags().get("seyvj")); - Assertions.assertEquals(2074686312708379193L, model.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(84.460884F, model.customThroughputMibps()); + Assertions.assertEquals("p", model.location()); + Assertions.assertEquals("rvkwc", model.tags().get("zqljyxgtczh")); + Assertions.assertEquals(7390049782510101354L, model.size()); + Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.serviceLevel()); + Assertions.assertEquals(418634069, model.customThroughputMibps()); Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertTrue(model.coolAccess()); + Assertions.assertFalse(model.coolAccess()); Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapacityPoolInner model = new CapacityPoolInner().withLocation("anuzbpzkafkuw") - .withTags(mapOf("seyvj", "nwbmeh")) - .withSize(2074686312708379193L) - .withServiceLevel(ServiceLevel.PREMIUM) - .withCustomThroughputMibps(84.460884F) + CapacityPoolInner model = new CapacityPoolInner().withLocation("p") + .withTags( + mapOf("zqljyxgtczh", "rvkwc", "hmkxmaehvbb", "ydbsd", "kgxywr", "uripltfnhtba", "uodpv", "kpyklyhp")) + .withSize(7390049782510101354L) + .withServiceLevel(ServiceLevel.FLEXIBLE) + .withCustomThroughputMibps(418634069) .withQosType(QosType.AUTO) - .withCoolAccess(true) + .withCoolAccess(false) .withEncryptionType(EncryptionType.DOUBLE); model = BinaryData.fromObject(model).toObject(CapacityPoolInner.class); - Assertions.assertEquals("anuzbpzkafkuw", model.location()); - Assertions.assertEquals("nwbmeh", model.tags().get("seyvj")); - Assertions.assertEquals(2074686312708379193L, model.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(84.460884F, model.customThroughputMibps()); + Assertions.assertEquals("p", model.location()); + Assertions.assertEquals("rvkwc", model.tags().get("zqljyxgtczh")); + Assertions.assertEquals(7390049782510101354L, model.size()); + Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.serviceLevel()); + Assertions.assertEquals(418634069, model.customThroughputMibps()); Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertTrue(model.coolAccess()); + Assertions.assertFalse(model.coolAccess()); Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java index f82efb064e3c..f8e28f7cca70 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java @@ -1,69 +1,30 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; -import com.azure.resourcemanager.netapp.models.CapacityPoolList; +import com.azure.resourcemanager.netapp.implementation.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\":\"i\",\"properties\":{\"poolId\":\"kvceoveilovnotyf\",\"size\":3928242933963476014,\"serviceLevel\":\"Standard\",\"provisioningState\":\"bkc\",\"totalThroughputMibps\":22.10667,\"utilizedThroughputMibps\":20.912487,\"customThroughputMibps\":83.024284,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"vjtoqnermclfp\",\"tags\":{\"azqugxywpmueefj\":\"oxuscrpabgyepsbj\",\"dsuyonobgla\":\"wfqkquj\"},\"id\":\"cq\",\"name\":\"tcc\",\"type\":\"g\"}],\"nextLink\":\"dxyt\"}") + "{\"value\":[{\"properties\":{\"poolId\":\"agohbuff\",\"size\":2232582311474631364,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"mvvhmxtdrjfuta\",\"totalThroughputMibps\":65.33831,\"utilizedThroughputMibps\":78.66932,\"customThroughputMibps\":650990462,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"etag\":\"wcpmguaadraufac\",\"location\":\"ahzovajjziuxxp\",\"tags\":{\"enr\":\"eekulfgslqubkwd\",\"pjuohminyfl\":\"sutujba\"},\"id\":\"orwmduvwpklv\",\"name\":\"w\",\"type\":\"ygdxpgpqchis\"},{\"properties\":{\"poolId\":\"pnnbjc\",\"size\":7786397610725733542,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"bdaxconfozauorsu\",\"totalThroughputMibps\":71.50412,\"utilizedThroughputMibps\":30.461628,\"customThroughputMibps\":1406759128,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"etag\":\"epzl\",\"location\":\"hw\",\"tags\":{\"wey\":\"l\",\"talywjhhgdnhxms\":\"qdunvmnnrwrbior\",\"omi\":\"v\"},\"id\":\"ox\",\"name\":\"gdufiqnd\",\"type\":\"euzaof\"},{\"properties\":{\"poolId\":\"hvcyyysfg\",\"size\":5917251343624011044,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"biipuip\",\"totalThroughputMibps\":38.999645,\"utilizedThroughputMibps\":26.093245,\"customThroughputMibps\":1863787560,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"etag\":\"shqvcimpev\",\"location\":\"mblrrilbywd\",\"tags\":{\"rwfscjfnynszquj\":\"icc\",\"gyavu\":\"zdvoqytibyowbb\",\"smsks\":\"pthjoxo\",\"lqol\":\"pi\"},\"id\":\"xkcgxxlxsffgcvi\",\"name\":\"qzdwlvwlyoup\",\"type\":\"gfbkjubdyh\"},{\"properties\":{\"poolId\":\"fminsgowzf\",\"size\":3309941778234907018,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"ktlahbqa\",\"totalThroughputMibps\":96.70858,\"utilizedThroughputMibps\":52.75987,\"customThroughputMibps\":1217445631,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"etag\":\"tg\",\"location\":\"q\",\"tags\":{\"rxcpjuisavo\":\"n\",\"ajlkatnw\":\"qdzfvazivjlfrqtt\"},\"id\":\"yiopi\",\"name\":\"kqqfk\",\"type\":\"vscx\"}],\"nextLink\":\"mligov\"}") .toObject(CapacityPoolList.class); - Assertions.assertEquals("vjtoqnermclfp", model.value().get(0).location()); - Assertions.assertEquals("oxuscrpabgyepsbj", model.value().get(0).tags().get("azqugxywpmueefj")); - Assertions.assertEquals(3928242933963476014L, model.value().get(0).size()); - Assertions.assertEquals(ServiceLevel.STANDARD, model.value().get(0).serviceLevel()); - Assertions.assertEquals(83.024284F, model.value().get(0).customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, model.value().get(0).qosType()); - Assertions.assertFalse(model.value().get(0).coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.value().get(0).encryptionType()); - Assertions.assertEquals("dxyt", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapacityPoolList model - = new CapacityPoolList().withValue(Arrays.asList(new CapacityPoolInner().withLocation("vjtoqnermclfp") - .withTags(mapOf("azqugxywpmueefj", "oxuscrpabgyepsbj", "dsuyonobgla", "wfqkquj")) - .withSize(3928242933963476014L) - .withServiceLevel(ServiceLevel.STANDARD) - .withCustomThroughputMibps(83.024284F) - .withQosType(QosType.AUTO) - .withCoolAccess(false) - .withEncryptionType(EncryptionType.DOUBLE))).withNextLink("dxyt"); - model = BinaryData.fromObject(model).toObject(CapacityPoolList.class); - Assertions.assertEquals("vjtoqnermclfp", model.value().get(0).location()); - Assertions.assertEquals("oxuscrpabgyepsbj", model.value().get(0).tags().get("azqugxywpmueefj")); - Assertions.assertEquals(3928242933963476014L, model.value().get(0).size()); - Assertions.assertEquals(ServiceLevel.STANDARD, model.value().get(0).serviceLevel()); - Assertions.assertEquals(83.024284F, model.value().get(0).customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, model.value().get(0).qosType()); - Assertions.assertFalse(model.value().get(0).coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.value().get(0).encryptionType()); - Assertions.assertEquals("dxyt", 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; + Assertions.assertEquals("ahzovajjziuxxp", model.value().get(0).location()); + Assertions.assertEquals("eekulfgslqubkwd", model.value().get(0).tags().get("enr")); + Assertions.assertEquals(2232582311474631364L, model.value().get(0).size()); + Assertions.assertEquals(ServiceLevel.ULTRA, model.value().get(0).serviceLevel()); + Assertions.assertEquals(650990462, model.value().get(0).customThroughputMibps()); + Assertions.assertEquals(QosType.MANUAL, model.value().get(0).qosType()); + Assertions.assertTrue(model.value().get(0).coolAccess()); + Assertions.assertEquals(EncryptionType.SINGLE, model.value().get(0).encryptionType()); + Assertions.assertEquals("mligov", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java index 113783684779..ebf8b3eea75e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -15,31 +15,31 @@ public final class CapacityPoolPatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityPoolPatch model = BinaryData.fromString( - "{\"properties\":{\"size\":6983403361765190016,\"qosType\":\"Auto\",\"coolAccess\":false,\"customThroughputMibps\":96.34032},\"location\":\"e\",\"tags\":{\"ali\":\"wkz\"},\"id\":\"urqhaka\",\"name\":\"hashsfwxosow\",\"type\":\"xcug\"}") + "{\"location\":\"btx\",\"id\":\"gfwsrtaw\",\"name\":\"ezbrhubskh\",\"type\":\"ygo\",\"tags\":{\"orfmluiqt\":\"kqfqjbvl\",\"vyvnqqyb\":\"zf\",\"yjkqabqgzslesjcb\":\"ryeu\"},\"properties\":{\"size\":908053922560982746,\"qosType\":\"Auto\",\"coolAccess\":false,\"customThroughputMibps\":1014646419}}") .toObject(CapacityPoolPatch.class); - Assertions.assertEquals("e", model.location()); - Assertions.assertEquals("wkz", model.tags().get("ali")); - Assertions.assertEquals(6983403361765190016L, model.size()); + Assertions.assertEquals("btx", model.location()); + Assertions.assertEquals("kqfqjbvl", model.tags().get("orfmluiqt")); + Assertions.assertEquals(908053922560982746L, model.size()); Assertions.assertEquals(QosType.AUTO, model.qosType()); Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(96.34032F, model.customThroughputMibps()); + Assertions.assertEquals(1014646419, model.customThroughputMibps()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapacityPoolPatch model = new CapacityPoolPatch().withLocation("e") - .withTags(mapOf("ali", "wkz")) - .withSize(6983403361765190016L) + CapacityPoolPatch model = new CapacityPoolPatch().withLocation("btx") + .withTags(mapOf("orfmluiqt", "kqfqjbvl", "vyvnqqyb", "zf", "yjkqabqgzslesjcb", "ryeu")) + .withSize(908053922560982746L) .withQosType(QosType.AUTO) .withCoolAccess(false) - .withCustomThroughputMibps(96.34032F); + .withCustomThroughputMibps(1014646419); model = BinaryData.fromObject(model).toObject(CapacityPoolPatch.class); - Assertions.assertEquals("e", model.location()); - Assertions.assertEquals("wkz", model.tags().get("ali")); - Assertions.assertEquals(6983403361765190016L, model.size()); + Assertions.assertEquals("btx", model.location()); + Assertions.assertEquals("kqfqjbvl", model.tags().get("orfmluiqt")); + Assertions.assertEquals(908053922560982746L, model.size()); Assertions.assertEquals(QosType.AUTO, model.qosType()); Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(96.34032F, model.customThroughputMibps()); + Assertions.assertEquals(1014646419, model.customThroughputMibps()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java index a68dead58e7f..c25533f3e946 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,21 +13,10 @@ public final class CheckAvailabilityResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CheckAvailabilityResponseInner model - = BinaryData.fromString("{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"npgacftade\"}") + = BinaryData.fromString("{\"isAvailable\":false,\"reason\":\"Invalid\",\"message\":\"npkc\"}") .toObject(CheckAvailabilityResponseInner.class); - Assertions.assertTrue(model.isAvailable()); + Assertions.assertFalse(model.isAvailable()); Assertions.assertEquals(InAvailabilityReasonType.INVALID, model.reason()); - Assertions.assertEquals("npgacftade", model.message()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckAvailabilityResponseInner model = new CheckAvailabilityResponseInner().withIsAvailable(true) - .withReason(InAvailabilityReasonType.INVALID) - .withMessage("npgacftade"); - model = BinaryData.fromObject(model).toObject(CheckAvailabilityResponseInner.class); - Assertions.assertTrue(model.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.INVALID, model.reason()); - Assertions.assertEquals("npgacftade", model.message()); + Assertions.assertEquals("npkc", model.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CifsUserTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CifsUserTests.java deleted file mode 100644 index 51b01e1462df..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CifsUserTests.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.CifsUser; -import org.junit.jupiter.api.Assertions; - -public final class CifsUserTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CifsUser model = BinaryData.fromString("{\"username\":\"wdigumbnraauz\"}").toObject(CifsUser.class); - Assertions.assertEquals("wdigumbnraauz", model.username()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CifsUser model = new CifsUser().withUsername("wdigumbnraauz"); - model = BinaryData.fromObject(model).toObject(CifsUser.class); - Assertions.assertEquals("wdigumbnraauz", model.username()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java index cb373b701bc9..d55997c6c48a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,15 +11,8 @@ public final class ClusterPeerCommandResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ClusterPeerCommandResponseInner model = BinaryData.fromString("{\"peerAcceptCommand\":\"uijfqk\"}") + ClusterPeerCommandResponseInner model = BinaryData.fromString("{\"peerAcceptCommand\":\"iwjmygtdssls\"}") .toObject(ClusterPeerCommandResponseInner.class); - Assertions.assertEquals("uijfqk", model.peerAcceptCommand()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPeerCommandResponseInner model = new ClusterPeerCommandResponseInner().withPeerAcceptCommand("uijfqk"); - model = BinaryData.fromObject(model).toObject(ClusterPeerCommandResponseInner.class); - Assertions.assertEquals("uijfqk", model.peerAcceptCommand()); + Assertions.assertEquals("iwjmygtdssls", 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 index f579ee703d16..d18f97ec2217 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,24 +12,24 @@ public final class DailyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DailySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":445064797,\"hour\":2101936696,\"minute\":1225956555,\"usedBytes\":8980911642598746949}") + "{\"snapshotsToKeep\":351540832,\"hour\":1043474675,\"minute\":1810528552,\"usedBytes\":2246531138644222618}") .toObject(DailySchedule.class); - Assertions.assertEquals(445064797, model.snapshotsToKeep()); - Assertions.assertEquals(2101936696, model.hour()); - Assertions.assertEquals(1225956555, model.minute()); - Assertions.assertEquals(8980911642598746949L, model.usedBytes()); + Assertions.assertEquals(351540832, model.snapshotsToKeep()); + Assertions.assertEquals(1043474675, model.hour()); + Assertions.assertEquals(1810528552, model.minute()); + Assertions.assertEquals(2246531138644222618L, model.usedBytes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DailySchedule model = new DailySchedule().withSnapshotsToKeep(445064797) - .withHour(2101936696) - .withMinute(1225956555) - .withUsedBytes(8980911642598746949L); + DailySchedule model = new DailySchedule().withSnapshotsToKeep(351540832) + .withHour(1043474675) + .withMinute(1810528552) + .withUsedBytes(2246531138644222618L); model = BinaryData.fromObject(model).toObject(DailySchedule.class); - Assertions.assertEquals(445064797, model.snapshotsToKeep()); - Assertions.assertEquals(2101936696, model.hour()); - Assertions.assertEquals(1225956555, model.minute()); - Assertions.assertEquals(8980911642598746949L, model.usedBytes()); + Assertions.assertEquals(351540832, model.snapshotsToKeep()); + Assertions.assertEquals(1043474675, model.hour()); + Assertions.assertEquals(1810528552, model.minute()); + Assertions.assertEquals(2246531138644222618L, 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 index d8e21a47438d..9f9824e96731 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,24 +13,11 @@ public final class DestinationReplicationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DestinationReplication model = BinaryData.fromString( - "{\"resourceId\":\"fovasr\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"bhsqfsubcgjbirxb\",\"zone\":\"bsrfbj\"}") + "{\"resourceId\":\"rgvtqag\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"nhijggmebfsi\",\"zone\":\"butr\"}") .toObject(DestinationReplication.class); - Assertions.assertEquals("fovasr", model.resourceId()); + Assertions.assertEquals("rgvtqag", model.resourceId()); Assertions.assertEquals(ReplicationType.CROSS_REGION_REPLICATION, model.replicationType()); - Assertions.assertEquals("bhsqfsubcgjbirxb", model.region()); - Assertions.assertEquals("bsrfbj", model.zone()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DestinationReplication model = new DestinationReplication().withResourceId("fovasr") - .withReplicationType(ReplicationType.CROSS_REGION_REPLICATION) - .withRegion("bhsqfsubcgjbirxb") - .withZone("bsrfbj"); - model = BinaryData.fromObject(model).toObject(DestinationReplication.class); - Assertions.assertEquals("fovasr", model.resourceId()); - Assertions.assertEquals(ReplicationType.CROSS_REGION_REPLICATION, model.replicationType()); - Assertions.assertEquals("bhsqfsubcgjbirxb", model.region()); - Assertions.assertEquals("bsrfbj", model.zone()); + Assertions.assertEquals("nhijggmebfsi", model.region()); + Assertions.assertEquals("butr", 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 index fd4a0cbe379a..75e894e21a72 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -16,12 +16,4 @@ public void testDeserialize() throws Exception { Assertions.assertEquals("tgrhpdjpjumas", model.name()); Assertions.assertEquals("zj", model.displayName()); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Dimension model = new Dimension().withName("tgrhpdjpjumas").withDisplayName("zj"); - model = BinaryData.fromObject(model).toObject(Dimension.class); - Assertions.assertEquals("tgrhpdjpjumas", model.name()); - Assertions.assertEquals("zj", 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 index cb6083f63222..735a2ac71afd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,17 +13,18 @@ public final class EncryptionIdentityTests { public void testDeserialize() throws Exception { EncryptionIdentity model = BinaryData .fromString( - "{\"principalId\":\"wbavxbniwdj\",\"userAssignedIdentity\":\"zt\",\"federatedClientId\":\"bpg\"}") + "{\"principalId\":\"rfh\",\"userAssignedIdentity\":\"ctymoxoftp\",\"federatedClientId\":\"iwyczuh\"}") .toObject(EncryptionIdentity.class); - Assertions.assertEquals("zt", model.userAssignedIdentity()); - Assertions.assertEquals("bpg", model.federatedClientId()); + Assertions.assertEquals("ctymoxoftp", model.userAssignedIdentity()); + Assertions.assertEquals("iwyczuh", model.federatedClientId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EncryptionIdentity model = new EncryptionIdentity().withUserAssignedIdentity("zt").withFederatedClientId("bpg"); + EncryptionIdentity model + = new EncryptionIdentity().withUserAssignedIdentity("ctymoxoftp").withFederatedClientId("iwyczuh"); model = BinaryData.fromObject(model).toObject(EncryptionIdentity.class); - Assertions.assertEquals("zt", model.userAssignedIdentity()); - Assertions.assertEquals("bpg", model.federatedClientId()); + Assertions.assertEquals("ctymoxoftp", model.userAssignedIdentity()); + Assertions.assertEquals("iwyczuh", model.federatedClientId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java index 02c0e020cb04..59d1df8b1017 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,18 +12,18 @@ public final class EncryptionTransitionRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EncryptionTransitionRequest model - = BinaryData.fromString("{\"virtualNetworkId\":\"iuebbaumny\",\"privateEndpointId\":\"upedeojnabckhs\"}") + = BinaryData.fromString("{\"virtualNetworkId\":\"kojgcyzts\",\"privateEndpointId\":\"mznbaeqphch\"}") .toObject(EncryptionTransitionRequest.class); - Assertions.assertEquals("iuebbaumny", model.virtualNetworkId()); - Assertions.assertEquals("upedeojnabckhs", model.privateEndpointId()); + Assertions.assertEquals("kojgcyzts", model.virtualNetworkId()); + Assertions.assertEquals("mznbaeqphch", model.privateEndpointId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EncryptionTransitionRequest model = new EncryptionTransitionRequest().withVirtualNetworkId("iuebbaumny") - .withPrivateEndpointId("upedeojnabckhs"); + EncryptionTransitionRequest model + = new EncryptionTransitionRequest().withVirtualNetworkId("kojgcyzts").withPrivateEndpointId("mznbaeqphch"); model = BinaryData.fromObject(model).toObject(EncryptionTransitionRequest.class); - Assertions.assertEquals("iuebbaumny", model.virtualNetworkId()); - Assertions.assertEquals("upedeojnabckhs", model.privateEndpointId()); + Assertions.assertEquals("kojgcyzts", model.virtualNetworkId()); + Assertions.assertEquals("mznbaeqphch", 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 index b8a91d59e86d..727cf022306d 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,57 +13,57 @@ public final class ExportPolicyRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExportPolicyRule model = BinaryData.fromString( - "{\"ruleIndex\":1115460475,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"srknftguv\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"}") + "{\"ruleIndex\":93185233,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"zfbuhf\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"}") .toObject(ExportPolicyRule.class); - Assertions.assertEquals(1115460475, model.ruleIndex()); + Assertions.assertEquals(93185233, model.ruleIndex()); Assertions.assertFalse(model.unixReadOnly()); Assertions.assertTrue(model.unixReadWrite()); Assertions.assertFalse(model.kerberos5ReadOnly()); - Assertions.assertFalse(model.kerberos5ReadWrite()); + Assertions.assertTrue(model.kerberos5ReadWrite()); Assertions.assertTrue(model.kerberos5IReadOnly()); Assertions.assertFalse(model.kerberos5IReadWrite()); - Assertions.assertFalse(model.kerberos5PReadOnly()); - Assertions.assertTrue(model.kerberos5PReadWrite()); + Assertions.assertTrue(model.kerberos5PReadOnly()); + Assertions.assertFalse(model.kerberos5PReadWrite()); Assertions.assertFalse(model.cifs()); - Assertions.assertTrue(model.nfsv3()); - Assertions.assertTrue(model.nfsv41()); - Assertions.assertEquals("srknftguv", model.allowedClients()); + Assertions.assertFalse(model.nfsv3()); + Assertions.assertFalse(model.nfsv41()); + Assertions.assertEquals("zfbuhf", model.allowedClients()); Assertions.assertTrue(model.hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.chownMode()); + Assertions.assertEquals(ChownMode.RESTRICTED, model.chownMode()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExportPolicyRule model = new ExportPolicyRule().withRuleIndex(1115460475) + ExportPolicyRule model = new ExportPolicyRule().withRuleIndex(93185233) .withUnixReadOnly(false) .withUnixReadWrite(true) .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) + .withKerberos5ReadWrite(true) .withKerberos5IReadOnly(true) .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(true) + .withKerberos5PReadOnly(true) + .withKerberos5PReadWrite(false) .withCifs(false) - .withNfsv3(true) - .withNfsv41(true) - .withAllowedClients("srknftguv") + .withNfsv3(false) + .withNfsv41(false) + .withAllowedClients("zfbuhf") .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED); + .withChownMode(ChownMode.RESTRICTED); model = BinaryData.fromObject(model).toObject(ExportPolicyRule.class); - Assertions.assertEquals(1115460475, model.ruleIndex()); + Assertions.assertEquals(93185233, model.ruleIndex()); Assertions.assertFalse(model.unixReadOnly()); Assertions.assertTrue(model.unixReadWrite()); Assertions.assertFalse(model.kerberos5ReadOnly()); - Assertions.assertFalse(model.kerberos5ReadWrite()); + Assertions.assertTrue(model.kerberos5ReadWrite()); Assertions.assertTrue(model.kerberos5IReadOnly()); Assertions.assertFalse(model.kerberos5IReadWrite()); - Assertions.assertFalse(model.kerberos5PReadOnly()); - Assertions.assertTrue(model.kerberos5PReadWrite()); + Assertions.assertTrue(model.kerberos5PReadOnly()); + Assertions.assertFalse(model.kerberos5PReadWrite()); Assertions.assertFalse(model.cifs()); - Assertions.assertTrue(model.nfsv3()); - Assertions.assertTrue(model.nfsv41()); - Assertions.assertEquals("srknftguv", model.allowedClients()); + Assertions.assertFalse(model.nfsv3()); + Assertions.assertFalse(model.nfsv41()); + Assertions.assertEquals("zfbuhf", model.allowedClients()); Assertions.assertTrue(model.hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.chownMode()); + Assertions.assertEquals(ChownMode.RESTRICTED, 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 index 127f66591150..86d426c25051 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,22 +12,21 @@ public final class FilePathAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FilePathAvailabilityRequest model = BinaryData - .fromString( - "{\"name\":\"xnltyfsoppu\",\"subnetId\":\"uesnzwdejbavo\",\"availabilityZone\":\"zdmohctbqvu\"}") + .fromString("{\"name\":\"ayzri\",\"subnetId\":\"khyawfvjlboxqv\",\"availabilityZone\":\"lmxhomdyn\"}") .toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("xnltyfsoppu", model.name()); - Assertions.assertEquals("uesnzwdejbavo", model.subnetId()); - Assertions.assertEquals("zdmohctbqvu", model.availabilityZone()); + Assertions.assertEquals("ayzri", model.name()); + Assertions.assertEquals("khyawfvjlboxqv", model.subnetId()); + Assertions.assertEquals("lmxhomdyn", model.availabilityZone()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FilePathAvailabilityRequest model = new FilePathAvailabilityRequest().withName("xnltyfsoppu") - .withSubnetId("uesnzwdejbavo") - .withAvailabilityZone("zdmohctbqvu"); + FilePathAvailabilityRequest model = new FilePathAvailabilityRequest().withName("ayzri") + .withSubnetId("khyawfvjlboxqv") + .withAvailabilityZone("lmxhomdyn"); model = BinaryData.fromObject(model).toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("xnltyfsoppu", model.name()); - Assertions.assertEquals("uesnzwdejbavo", model.subnetId()); - Assertions.assertEquals("zdmohctbqvu", model.availabilityZone()); + Assertions.assertEquals("ayzri", model.name()); + Assertions.assertEquals("khyawfvjlboxqv", model.subnetId()); + Assertions.assertEquals("lmxhomdyn", model.availabilityZone()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FileSystemUserTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FileSystemUserTests.java deleted file mode 100644 index 1f3a424661a8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FileSystemUserTests.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.CifsUser; -import com.azure.resourcemanager.netapp.models.FileSystemUser; -import com.azure.resourcemanager.netapp.models.NfsUser; -import org.junit.jupiter.api.Assertions; - -public final class FileSystemUserTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileSystemUser model = BinaryData.fromString( - "{\"nfsUser\":{\"userId\":4767053638441284929,\"groupId\":2638896199399411626},\"cifsUser\":{\"username\":\"fvjlboxqvkjlmx\"}}") - .toObject(FileSystemUser.class); - Assertions.assertEquals(4767053638441284929L, model.nfsUser().userId()); - Assertions.assertEquals(2638896199399411626L, model.nfsUser().groupId()); - Assertions.assertEquals("fvjlboxqvkjlmx", model.cifsUser().username()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileSystemUser model = new FileSystemUser() - .withNfsUser(new NfsUser().withUserId(4767053638441284929L).withGroupId(2638896199399411626L)) - .withCifsUser(new CifsUser().withUsername("fvjlboxqvkjlmx")); - model = BinaryData.fromObject(model).toObject(FileSystemUser.class); - Assertions.assertEquals(4767053638441284929L, model.nfsUser().userId()); - Assertions.assertEquals(2638896199399411626L, model.nfsUser().groupId()); - Assertions.assertEquals("fvjlboxqvkjlmx", model.cifsUser().username()); - } -} 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 index d4a6615b8da3..de185fbf8cc4 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,15 +11,15 @@ public final class GetGroupIdListForLdapUserRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - GetGroupIdListForLdapUserRequest model = BinaryData.fromString("{\"username\":\"wyhrfouyftaakc\"}") - .toObject(GetGroupIdListForLdapUserRequest.class); - Assertions.assertEquals("wyhrfouyftaakc", model.username()); + GetGroupIdListForLdapUserRequest model + = BinaryData.fromString("{\"username\":\"srfbjfdtwss\"}").toObject(GetGroupIdListForLdapUserRequest.class); + Assertions.assertEquals("srfbjfdtwss", model.username()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GetGroupIdListForLdapUserRequest model = new GetGroupIdListForLdapUserRequest().withUsername("wyhrfouyftaakc"); + GetGroupIdListForLdapUserRequest model = new GetGroupIdListForLdapUserRequest().withUsername("srfbjfdtwss"); model = BinaryData.fromObject(model).toObject(GetGroupIdListForLdapUserRequest.class); - Assertions.assertEquals("wyhrfouyftaakc", model.username()); + Assertions.assertEquals("srfbjfdtwss", 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 index eca29fb42435..ddc4d591b0fc 100644 --- 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 @@ -1,28 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.netapp.fluent.models.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\":[\"yzvqt\",\"nubexk\",\"zksmondj\"]}") + = BinaryData.fromString("{\"groupIdsForLdapUser\":[\"tpvjzbexilzznfqq\",\"vwpm\",\"taruoujmkcj\"]}") .toObject(GetGroupIdListForLdapUserResponseInner.class); - Assertions.assertEquals("yzvqt", model.groupIdsForLdapUser().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetGroupIdListForLdapUserResponseInner model = new GetGroupIdListForLdapUserResponseInner() - .withGroupIdsForLdapUser(Arrays.asList("yzvqt", "nubexk", "zksmondj")); - model = BinaryData.fromObject(model).toObject(GetGroupIdListForLdapUserResponseInner.class); - Assertions.assertEquals("yzvqt", model.groupIdsForLdapUser().get(0)); + Assertions.assertEquals("tpvjzbexilzznfqq", 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 index 8435626c90ba..1bb184e3a0b0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,21 +12,21 @@ public final class HourlyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HourlySchedule model = BinaryData - .fromString("{\"snapshotsToKeep\":2084460640,\"minute\":124681073,\"usedBytes\":3697925526495592044}") + .fromString("{\"snapshotsToKeep\":1699030440,\"minute\":1045229648,\"usedBytes\":5254392939268183781}") .toObject(HourlySchedule.class); - Assertions.assertEquals(2084460640, model.snapshotsToKeep()); - Assertions.assertEquals(124681073, model.minute()); - Assertions.assertEquals(3697925526495592044L, model.usedBytes()); + Assertions.assertEquals(1699030440, model.snapshotsToKeep()); + Assertions.assertEquals(1045229648, model.minute()); + Assertions.assertEquals(5254392939268183781L, model.usedBytes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - HourlySchedule model = new HourlySchedule().withSnapshotsToKeep(2084460640) - .withMinute(124681073) - .withUsedBytes(3697925526495592044L); + HourlySchedule model = new HourlySchedule().withSnapshotsToKeep(1699030440) + .withMinute(1045229648) + .withUsedBytes(5254392939268183781L); model = BinaryData.fromObject(model).toObject(HourlySchedule.class); - Assertions.assertEquals(2084460640, model.snapshotsToKeep()); - Assertions.assertEquals(124681073, model.minute()); - Assertions.assertEquals(3697925526495592044L, model.usedBytes()); + Assertions.assertEquals(1699030440, model.snapshotsToKeep()); + Assertions.assertEquals(1045229648, model.minute()); + Assertions.assertEquals(5254392939268183781L, model.usedBytes()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java index 2d83181defff..f8b0fa827b99 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,18 +12,18 @@ public final class KeyVaultPrivateEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { KeyVaultPrivateEndpoint model - = BinaryData.fromString("{\"virtualNetworkId\":\"tldwkyzxuutk\",\"privateEndpointId\":\"ws\"}") + = BinaryData.fromString("{\"virtualNetworkId\":\"aifmvikl\",\"privateEndpointId\":\"dvk\"}") .toObject(KeyVaultPrivateEndpoint.class); - Assertions.assertEquals("tldwkyzxuutk", model.virtualNetworkId()); - Assertions.assertEquals("ws", model.privateEndpointId()); + Assertions.assertEquals("aifmvikl", model.virtualNetworkId()); + Assertions.assertEquals("dvk", model.privateEndpointId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { KeyVaultPrivateEndpoint model - = new KeyVaultPrivateEndpoint().withVirtualNetworkId("tldwkyzxuutk").withPrivateEndpointId("ws"); + = new KeyVaultPrivateEndpoint().withVirtualNetworkId("aifmvikl").withPrivateEndpointId("dvk"); model = BinaryData.fromObject(model).toObject(KeyVaultPrivateEndpoint.class); - Assertions.assertEquals("tldwkyzxuutk", model.virtualNetworkId()); - Assertions.assertEquals("ws", model.privateEndpointId()); + Assertions.assertEquals("aifmvikl", model.virtualNetworkId()); + Assertions.assertEquals("dvk", model.privateEndpointId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapConfigurationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapConfigurationTests.java deleted file mode 100644 index df437094a76a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapConfigurationTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.LdapConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LdapConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LdapConfiguration model = BinaryData.fromString( - "{\"domain\":\"ytxhp\",\"ldapServers\":[\"zpfzabglc\",\"hxw\"],\"ldapOverTLS\":false,\"serverCACertificate\":\"qik\",\"certificateCNHost\":\"bovpl\"}") - .toObject(LdapConfiguration.class); - Assertions.assertEquals("ytxhp", model.domain()); - Assertions.assertEquals("zpfzabglc", model.ldapServers().get(0)); - Assertions.assertFalse(model.ldapOverTls()); - Assertions.assertEquals("qik", model.serverCACertificate()); - Assertions.assertEquals("bovpl", model.certificateCNHost()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LdapConfiguration model = new LdapConfiguration().withDomain("ytxhp") - .withLdapServers(Arrays.asList("zpfzabglc", "hxw")) - .withLdapOverTls(false) - .withServerCACertificate("qik") - .withCertificateCNHost("bovpl"); - model = BinaryData.fromObject(model).toObject(LdapConfiguration.class); - Assertions.assertEquals("ytxhp", model.domain()); - Assertions.assertEquals("zpfzabglc", model.ldapServers().get(0)); - Assertions.assertFalse(model.ldapOverTls()); - Assertions.assertEquals("qik", model.serverCACertificate()); - Assertions.assertEquals("bovpl", model.certificateCNHost()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java index 88db36ddeb71..28cbdb5c44cb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,21 +12,22 @@ public final class LdapSearchScopeOptTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LdapSearchScopeOpt model = BinaryData - .fromString("{\"userDN\":\"eyueaxibxujwb\",\"groupDN\":\"walm\",\"groupMembershipFilter\":\"yoxa\"}") + .fromString( + "{\"userDN\":\"bomvzzbtdcqv\",\"groupDN\":\"iyujviylwdshfs\",\"groupMembershipFilter\":\"rbgyefry\"}") .toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("eyueaxibxujwb", model.userDN()); - Assertions.assertEquals("walm", model.groupDN()); - Assertions.assertEquals("yoxa", model.groupMembershipFilter()); + Assertions.assertEquals("bomvzzbtdcqv", model.userDN()); + Assertions.assertEquals("iyujviylwdshfs", model.groupDN()); + Assertions.assertEquals("rbgyefry", model.groupMembershipFilter()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LdapSearchScopeOpt model = new LdapSearchScopeOpt().withUserDN("eyueaxibxujwb") - .withGroupDN("walm") - .withGroupMembershipFilter("yoxa"); + LdapSearchScopeOpt model = new LdapSearchScopeOpt().withUserDN("bomvzzbtdcqv") + .withGroupDN("iyujviylwdshfs") + .withGroupMembershipFilter("rbgyefry"); model = BinaryData.fromObject(model).toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("eyueaxibxujwb", model.userDN()); - Assertions.assertEquals("walm", model.groupDN()); - Assertions.assertEquals("yoxa", model.groupMembershipFilter()); + Assertions.assertEquals("bomvzzbtdcqv", model.userDN()); + Assertions.assertEquals("iyujviylwdshfs", model.groupDN()); + Assertions.assertEquals("rbgyefry", 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 b25d8bbc1e1d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListQuotaReportResponseInnerTests.java +++ /dev/null @@ -1,63 +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\":\"IndividualGroupQuota\",\"quotaTarget\":\"pomgkopkwhojvp\",\"quotaLimitUsedInKiBs\":4279032137659144852,\"quotaLimitTotalInKiBs\":8997316824402958697,\"percentageUsed\":90.659065,\"isDerivedQuota\":false},{\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"qvmkcxo\",\"quotaLimitUsedInKiBs\":471020820536063690,\"quotaLimitTotalInKiBs\":5939290521556195540,\"percentageUsed\":34.474384,\"isDerivedQuota\":true},{\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"tddckcb\",\"quotaLimitUsedInKiBs\":5774593596555668768,\"quotaLimitTotalInKiBs\":1999500267063441667,\"percentageUsed\":58.71668,\"isDerivedQuota\":true},{\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"hos\",\"quotaLimitUsedInKiBs\":1466489575973148390,\"quotaLimitTotalInKiBs\":2817771375039124322,\"percentageUsed\":4.6601415,\"isDerivedQuota\":false}]}") - .toObject(ListQuotaReportResponseInner.class); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("pomgkopkwhojvp", model.value().get(0).quotaTarget()); - Assertions.assertEquals(4279032137659144852L, model.value().get(0).quotaLimitUsedInKiBs()); - Assertions.assertEquals(8997316824402958697L, model.value().get(0).quotaLimitTotalInKiBs()); - Assertions.assertEquals(90.659065F, model.value().get(0).percentageUsed()); - Assertions.assertFalse(model.value().get(0).isDerivedQuota()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ListQuotaReportResponseInner model = new ListQuotaReportResponseInner().withValue(Arrays.asList( - new QuotaReport().withQuotaType(Type.INDIVIDUAL_GROUP_QUOTA) - .withQuotaTarget("pomgkopkwhojvp") - .withQuotaLimitUsedInKiBs(4279032137659144852L) - .withQuotaLimitTotalInKiBs(8997316824402958697L) - .withPercentageUsed(90.659065F) - .withIsDerivedQuota(false), - new QuotaReport().withQuotaType(Type.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("qvmkcxo") - .withQuotaLimitUsedInKiBs(471020820536063690L) - .withQuotaLimitTotalInKiBs(5939290521556195540L) - .withPercentageUsed(34.474384F) - .withIsDerivedQuota(true), - new QuotaReport().withQuotaType(Type.DEFAULT_USER_QUOTA) - .withQuotaTarget("tddckcb") - .withQuotaLimitUsedInKiBs(5774593596555668768L) - .withQuotaLimitTotalInKiBs(1999500267063441667L) - .withPercentageUsed(58.71668F) - .withIsDerivedQuota(true), - new QuotaReport().withQuotaType(Type.DEFAULT_USER_QUOTA) - .withQuotaTarget("hos") - .withQuotaLimitUsedInKiBs(1466489575973148390L) - .withQuotaLimitTotalInKiBs(2817771375039124322L) - .withPercentageUsed(4.6601415F) - .withIsDerivedQuota(false))); - model = BinaryData.fromObject(model).toObject(ListQuotaReportResponseInner.class); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("pomgkopkwhojvp", model.value().get(0).quotaTarget()); - Assertions.assertEquals(4279032137659144852L, model.value().get(0).quotaLimitUsedInKiBs()); - Assertions.assertEquals(8997316824402958697L, model.value().get(0).quotaLimitTotalInKiBs()); - Assertions.assertEquals(90.659065F, model.value().get(0).percentageUsed()); - Assertions.assertFalse(model.value().get(0).isDerivedQuota()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsRequestTests.java new file mode 100644 index 000000000000..2a49b3ed58ff --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsRequestTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.netapp.models.Exclude; +import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; +import org.junit.jupiter.api.Assertions; + +public final class ListReplicationsRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ListReplicationsRequest model + = BinaryData.fromString("{\"exclude\":\"None\"}").toObject(ListReplicationsRequest.class); + Assertions.assertEquals(Exclude.NONE, model.exclude()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ListReplicationsRequest model = new ListReplicationsRequest().withExclude(Exclude.NONE); + model = BinaryData.fromObject(model).toObject(ListReplicationsRequest.class); + Assertions.assertEquals(Exclude.NONE, model.exclude()); + } +} 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 index b8fd61245dbc..5ea47c9f1374 100644 --- 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 @@ -1,40 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; +import com.azure.resourcemanager.netapp.implementation.models.ListReplications; 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\":\"aasipqi\",\"endpointType\":\"dst\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"qerpqlpqwcc\",\"remoteVolumeRegion\":\"qgbdbuta\"}]}") + "{\"value\":[{\"replicationId\":\"nayqi\",\"endpointType\":\"dst\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"havhqlkthumaqolb\",\"remoteVolumeRegion\":\"cdui\",\"mirrorState\":\"Uninitialized\",\"replicationCreationTime\":\"2021-07-05T23:49:12Z\",\"replicationDeletionTime\":\"2021-11-08T10:44:08Z\"}],\"nextLink\":\"vaolpsslqlf\"}") .toObject(ListReplications.class); Assertions.assertEquals(EndpointType.DST, model.value().get(0).endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.value().get(0).replicationSchedule()); - Assertions.assertEquals("qerpqlpqwcc", model.value().get(0).remoteVolumeResourceId()); - Assertions.assertEquals("qgbdbuta", 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.HOURLY) - .withRemoteVolumeResourceId("qerpqlpqwcc") - .withRemoteVolumeRegion("qgbdbuta"))); - model = BinaryData.fromObject(model).toObject(ListReplications.class); - Assertions.assertEquals(EndpointType.DST, model.value().get(0).endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.value().get(0).replicationSchedule()); - Assertions.assertEquals("qerpqlpqwcc", model.value().get(0).remoteVolumeResourceId()); - Assertions.assertEquals("qgbdbuta", model.value().get(0).remoteVolumeRegion()); + Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.value().get(0).replicationSchedule()); + Assertions.assertEquals("havhqlkthumaqolb", model.value().get(0).remoteVolumeResourceId()); + Assertions.assertEquals("cdui", model.value().get(0).remoteVolumeRegion()); + Assertions.assertEquals("vaolpsslqlf", model.nextLink()); } } 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 index 4800c47f11b1..c217230ff6c5 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -16,12 +16,4 @@ public void testDeserialize() throws Exception { Assertions.assertEquals("yegu", model.name()); Assertions.assertEquals("hb", model.displayName()); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogSpecification model = new LogSpecification().withName("yegu").withDisplayName("hb"); - model = BinaryData.fromObject(model).toObject(LogSpecification.class); - Assertions.assertEquals("yegu", model.name()); - Assertions.assertEquals("hb", 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 index 3ba499eb7e9d..631f295b85e7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -16,7 +16,7 @@ public final class ManagedServiceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"89047f54-fc8b-4a1f-a5fc-d757bb445c08\",\"tenantId\":\"88b5f406-0c0f-4c71-9eff-8f674c4ba104\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"gu\":{\"principalId\":\"edca8328-c9da-4350-b3b8-65255fe27d6e\",\"clientId\":\"8e784279-d39a-4142-802c-4755a404c940\"}}}") + "{\"principalId\":\"11f9dc72-c39a-4bb4-bf8d-496e9cd41526\",\"tenantId\":\"61873b1b-7278-4284-9b6f-be667619ac20\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"h\":{\"principalId\":\"a506ca0e-4326-420e-a182-5d9ef8e0ea29\",\"clientId\":\"a8e0438a-294a-49e2-b3dc-6ec8c5c828ce\"},\"spskasdvlmfwdgz\":{\"principalId\":\"168ccc49-72ec-4c19-bdba-165fa9319d41\",\"clientId\":\"313d5d2c-4fcf-4dc5-9644-adcc42fa4285\"}}}") .toObject(ManagedServiceIdentity.class); Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); } @@ -24,7 +24,8 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("gu", new UserAssignedIdentity())); + .withUserAssignedIdentities( + mapOf("h", new UserAssignedIdentity(), "spskasdvlmfwdgz", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); } 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 index a2c7dbe8324d..f5801024bc2a 100644 --- 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 @@ -1,14 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.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 { @@ -35,45 +33,4 @@ public void testDeserialize() throws Exception { Assertions.assertEquals("nj", model.resourceIdDimensionNameOverride()); Assertions.assertTrue(model.isInternal()); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetricSpecification model = new MetricSpecification().withName("otkftutqxlngx") - .withDisplayName("fgugnxkrxdqmid") - .withDisplayDescription("hzrvqd") - .withUnit("bhj") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("qfbow", "kanyktzlcuiywg", "ywgndrv")) - .withInternalMetricName("hzgpphrcgyncocpe") - .withEnableRegionalMdmAccount(false) - .withSourceMdmAccount("mcoo") - .withSourceMdmNamespace("xlzevgbmqjqabcy") - .withDimensions(Arrays.asList(new Dimension().withName("kwlzuvccfwnfn").withDisplayName("cfionl"), - new Dimension().withName("x").withDisplayName("qgtz"), - new Dimension().withName("pnqbqqwxrjfe").withDisplayName("lnwsubisn"), - new Dimension().withName("mpmngnzscxaqwoo").withDisplayName("cbonqvpk"))) - .withAggregationType("rxnjeaseipheofl") - .withFillGapWithZero(false) - .withCategory("y") - .withResourceIdDimensionNameOverride("nj") - .withIsInternal(true); - model = BinaryData.fromObject(model).toObject(MetricSpecification.class); - Assertions.assertEquals("otkftutqxlngx", model.name()); - Assertions.assertEquals("fgugnxkrxdqmid", model.displayName()); - Assertions.assertEquals("hzrvqd", model.displayDescription()); - Assertions.assertEquals("bhj", model.unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0)); - Assertions.assertEquals("qfbow", model.supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("hzgpphrcgyncocpe", model.internalMetricName()); - Assertions.assertFalse(model.enableRegionalMdmAccount()); - Assertions.assertEquals("mcoo", model.sourceMdmAccount()); - Assertions.assertEquals("xlzevgbmqjqabcy", model.sourceMdmNamespace()); - Assertions.assertEquals("kwlzuvccfwnfn", model.dimensions().get(0).name()); - Assertions.assertEquals("cfionl", model.dimensions().get(0).displayName()); - Assertions.assertEquals("rxnjeaseipheofl", model.aggregationType()); - Assertions.assertFalse(model.fillGapWithZero()); - Assertions.assertEquals("y", model.category()); - Assertions.assertEquals("nj", model.resourceIdDimensionNameOverride()); - Assertions.assertTrue(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 index f82d6641139c..4e3d3971d9c7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,27 +12,27 @@ public final class MonthlyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MonthlySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":1895840108,\"daysOfMonth\":\"efkdlf\",\"hour\":1731932488,\"minute\":1662630957,\"usedBytes\":2710412149295788675}") + "{\"snapshotsToKeep\":22897042,\"daysOfMonth\":\"yftaakcpw\",\"hour\":1040923285,\"minute\":842537299,\"usedBytes\":7212384813102944092}") .toObject(MonthlySchedule.class); - Assertions.assertEquals(1895840108, model.snapshotsToKeep()); - Assertions.assertEquals("efkdlf", model.daysOfMonth()); - Assertions.assertEquals(1731932488, model.hour()); - Assertions.assertEquals(1662630957, model.minute()); - Assertions.assertEquals(2710412149295788675L, model.usedBytes()); + Assertions.assertEquals(22897042, model.snapshotsToKeep()); + Assertions.assertEquals("yftaakcpw", model.daysOfMonth()); + Assertions.assertEquals(1040923285, model.hour()); + Assertions.assertEquals(842537299, model.minute()); + Assertions.assertEquals(7212384813102944092L, model.usedBytes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MonthlySchedule model = new MonthlySchedule().withSnapshotsToKeep(1895840108) - .withDaysOfMonth("efkdlf") - .withHour(1731932488) - .withMinute(1662630957) - .withUsedBytes(2710412149295788675L); + MonthlySchedule model = new MonthlySchedule().withSnapshotsToKeep(22897042) + .withDaysOfMonth("yftaakcpw") + .withHour(1040923285) + .withMinute(842537299) + .withUsedBytes(7212384813102944092L); model = BinaryData.fromObject(model).toObject(MonthlySchedule.class); - Assertions.assertEquals(1895840108, model.snapshotsToKeep()); - Assertions.assertEquals("efkdlf", model.daysOfMonth()); - Assertions.assertEquals(1731932488, model.hour()); - Assertions.assertEquals(1662630957, model.minute()); - Assertions.assertEquals(2710412149295788675L, model.usedBytes()); + Assertions.assertEquals(22897042, model.snapshotsToKeep()); + Assertions.assertEquals("yftaakcpw", model.daysOfMonth()); + Assertions.assertEquals(1040923285, model.hour()); + Assertions.assertEquals(842537299, model.minute()); + Assertions.assertEquals(7212384813102944092L, 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 index f17bc17b072f..8cce69a43db9 100644 --- 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 @@ -1,29 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; +import com.azure.resourcemanager.netapp.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\":\"wmdyvxqtay\",\"fileSystemId\":\"iwwroyqbexrmc\",\"ipAddress\":\"bycnojvkn\",\"smbServerFqdn\":\"fqsgzvahapjy\"}") + "{\"mountTargetId\":\"ffeii\",\"fileSystemId\":\"hl\",\"ipAddress\":\"ez\",\"smbServerFqdn\":\"shxmzsbbzoggigrx\"}") .toObject(MountTargetProperties.class); - Assertions.assertEquals("iwwroyqbexrmc", model.fileSystemId()); - Assertions.assertEquals("fqsgzvahapjy", model.smbServerFqdn()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MountTargetProperties model - = new MountTargetProperties().withFileSystemId("iwwroyqbexrmc").withSmbServerFqdn("fqsgzvahapjy"); - model = BinaryData.fromObject(model).toObject(MountTargetProperties.class); - Assertions.assertEquals("iwwroyqbexrmc", model.fileSystemId()); - Assertions.assertEquals("fqsgzvahapjy", model.smbServerFqdn()); + Assertions.assertEquals("hl", model.fileSystemId()); + Assertions.assertEquals("shxmzsbbzoggigrx", model.smbServerFqdn()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java index 90495f9144c9..49536ebc5aae 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -10,7 +10,7 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.QuotaItem; +import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; @@ -20,7 +20,7 @@ public final class NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"current\":1992563781,\"default\":249669652,\"usage\":472451577},\"id\":\"bxigdhxiidlo\",\"name\":\"edbw\",\"type\":\"pyqy\"}"; + = "{\"properties\":{\"current\":1928900887,\"default\":956016489,\"usage\":1913497059},\"id\":\"mun\",\"name\":\"qsxvmhf\",\"type\":\"uzjyihsasbhudypo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,8 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - QuotaItem response = manager.netAppResourceQuotaLimitsAccounts() - .getWithResponse("hltnjadhqoawjq", "yueayfbpcmsp", "byrrueqth", com.azure.core.util.Context.NONE) + SubscriptionQuotaItem response = manager.netAppResourceQuotaLimitsAccounts() + .getWithResponse("gsjj", "undxgketw", "hhzjhfj", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java index aaa44cd46128..6480aea513aa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,7 +11,7 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.QuotaItem; +import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; @@ -21,7 +21,7 @@ public final class NetAppResourceQuotaLimitsAccountsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"current\":149368324,\"default\":1320300577,\"usage\":523480750},\"id\":\"klsbsbqqqagw\",\"name\":\"rxaomzisglrrcze\",\"type\":\"k\"}]}"; + = "{\"value\":[{\"properties\":{\"current\":2092951767,\"default\":97968246,\"usage\":2105592893},\"id\":\"nygq\",\"name\":\"nfwqzdzgtilaxhn\",\"type\":\"hqlyvijo\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,8 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.netAppResourceQuotaLimitsAccounts().list("wxihs", "nxw", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.netAppResourceQuotaLimitsAccounts().list("yue", "slynsqyrpfoo", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java index fb292f0b0e4f..506ae88ad4fe 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -10,7 +10,7 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.QuotaItem; +import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; @@ -20,7 +20,7 @@ public final class NetAppResourceQuotaLimitsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"current\":1391311949,\"default\":1527840088,\"usage\":219424992},\"id\":\"pqtgsfjac\",\"name\":\"slhhxudbxv\",\"type\":\"d\"}"; + = "{\"properties\":{\"current\":698476500,\"default\":1137080537,\"usage\":1889972002},\"id\":\"pvwgfstmhqykizmd\",\"name\":\"saoafcluqvox\",\"type\":\"ycjimryvwgcwwpbm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,8 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - QuotaItem response = manager.netAppResourceQuotaLimits() - .getWithResponse("itvtzeexavo", "tfgle", com.azure.core.util.Context.NONE) + SubscriptionQuotaItem response = manager.netAppResourceQuotaLimits() + .getWithResponse("mxuq", "bsxtkcudfbsfarfs", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java index 992ddc877212..4b6c33ac69d0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,7 +11,7 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.QuotaItem; +import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; @@ -21,7 +21,7 @@ public final class NetAppResourceQuotaLimitsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"current\":1418439712,\"default\":2054437598,\"usage\":1020538162},\"id\":\"s\",\"name\":\"wprtu\",\"type\":\"wsawddjibabxvi\"}]}"; + = "{\"value\":[{\"properties\":{\"current\":1162604826,\"default\":405632211,\"usage\":322305993},\"id\":\"hecbvopwndyq\",\"name\":\"eallklmtkhlo\",\"type\":\"kxxpvbrd\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,8 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.netAppResourceQuotaLimits().list("vrefdeesv", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.netAppResourceQuotaLimits().list("gwe", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java index fe178a0a9d63..c79dc9b422a3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class NetAppResourceRegionInfosGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"storageToNetworkProximity\":\"T1\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"kkjqnvbroylaxxu\",\"isAvailable\":true},{\"availabilityZone\":\"sdosfjbjsvgjr\",\"isAvailable\":false},{\"availabilityZone\":\"vyc\",\"isAvailable\":false}]},\"id\":\"lxgccknfnwmbtm\",\"name\":\"pdvjdhttzaefedx\",\"type\":\"hchrphkmcrjdqn\"}"; + = "{\"properties\":{\"storageToNetworkProximity\":\"Default\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"yych\",\"isAvailable\":true}]},\"id\":\"lpjrtwsz\",\"name\":\"vv\",\"type\":\"icphvtrrmhw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RegionInfoResource response = manager.netAppResourceRegionInfos() - .getWithResponse("zvytnrzvuljraaer", com.azure.core.util.Context.NONE) + .getWithResponse("jmzsyzfh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1, response.storageToNetworkProximity()); - Assertions.assertEquals("kkjqnvbroylaxxu", response.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertEquals(RegionStorageToNetworkProximity.DEFAULT, response.storageToNetworkProximity()); + Assertions.assertEquals("yych", response.availabilityZoneMappings().get(0).availabilityZone()); Assertions.assertTrue(response.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java index bdef090ce6c0..f8a138a5b3db 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -23,7 +23,7 @@ public final class NetAppResourceRegionInfosListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"es\",\"isAvailable\":true}]},\"id\":\"pagzrcxfailcfxwm\",\"name\":\"boxdfgsftufq\",\"type\":\"brjlnacgcckknhxk\"}]}"; + = "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"Default\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"yzlwh\",\"isAvailable\":true},{\"availabilityZone\":\"hoocl\",\"isAvailable\":false},{\"availabilityZone\":\"qmemc\",\"isAvailable\":true},{\"availabilityZone\":\"mykyujxsglhs\",\"isAvailable\":false}]},\"id\":\"ejylmbkzu\",\"name\":\"nigrfihotjewl\",\"type\":\"xuzzjgnrefq\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,12 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.netAppResourceRegionInfos().list("tnsi", com.azure.core.util.Context.NONE); + = manager.netAppResourceRegionInfos().list("bfdpyflubhv", com.azure.core.util.Context.NONE); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2, + Assertions.assertEquals(RegionStorageToNetworkProximity.DEFAULT, response.iterator().next().storageToNetworkProximity()); - Assertions.assertEquals("es", response.iterator().next().availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertEquals("yzlwh", + response.iterator().next().availabilityZoneMappings().get(0).availabilityZone()); Assertions.assertTrue(response.iterator().next().availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java index b63f1f18d039..664a362b6bcd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -20,7 +20,7 @@ public final class NetAppResourceUsagesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"id\":\"ckt\",\"name\":{\"value\":\"merteeammxqiek\",\"localizedValue\":\"zddrt\"},\"properties\":{\"currentValue\":1587956871,\"limit\":1241768286,\"unit\":\"xv\"}}"; + = "{\"id\":\"vvpa\",\"name\":{\"value\":\"sgb\",\"localizedValue\":\"antuygdhgaqipirp\"},\"properties\":{\"currentValue\":986571803,\"limit\":1818026917,\"unit\":\"lopmjnlexwhcbjpi\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); UsageResult response = manager.netAppResourceUsages() - .getWithResponse("zg", "klnsrmffey", com.azure.core.util.Context.NONE) + .getWithResponse("vyuns", "xlghieegj", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java index 2f7c830c1dc6..23f7be045aab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class NetAppResourceUsagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"id\":\"kyxvxevblbjedn\",\"name\":{\"value\":\"age\",\"localizedValue\":\"ulxunsmjbnkpp\"},\"properties\":{\"currentValue\":1640986571,\"limit\":1909310911,\"unit\":\"vxei\"}}]}"; + = "{\"value\":[{\"id\":\"m\",\"name\":{\"value\":\"xne\",\"localizedValue\":\"sm\"},\"properties\":{\"currentValue\":1095840050,\"limit\":1064315343,\"unit\":\"apucygvo\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.netAppResourceUsages().list("idjks", com.azure.core.util.Context.NONE); + = manager.netAppResourceUsages().list("yvk", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java index e60639395f43..702a6241d2f1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests { @Test public void testCheckFilePathAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"nwlduycvuzhyrmew\"}"; + String responseStr = "{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"qbnqbpizxqltgrdo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,15 @@ public void testCheckFilePathAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CheckAvailabilityResponse response = manager.netAppResources() - .checkFilePathAvailabilityWithResponse("nzqodfvpg", - new FilePathAvailabilityRequest().withName("hoxgsgbpf") - .withSubnetId("zdjtxvzflbqv") - .withAvailabilityZone("qvlgafcqusrdvetn"), + .checkFilePathAvailabilityWithResponse("dzsylollgtrczz", + new FilePathAvailabilityRequest().withName("dmxzjijpv") + .withSubnetId("aurkihcirlde") + .withAvailabilityZone("rdcoxnbkkj"), com.azure.core.util.Context.NONE) .getValue(); Assertions.assertTrue(response.isAvailable()); Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); - Assertions.assertEquals("nwlduycvuzhyrmew", response.message()); + Assertions.assertEquals("qbnqbpizxqltgrdo", response.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java index 0d3f8eb1a404..ec7892f19df0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -23,7 +23,7 @@ public final class NetAppResourcesCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":false,\"reason\":\"Invalid\",\"message\":\"wrxgkneuvy\"}"; + String responseStr = "{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"xuifmcsypobkdqz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CheckAvailabilityResponse response = manager.netAppResources() - .checkNameAvailabilityWithResponse("ftjuh", - new ResourceNameAvailabilityRequest().withName("qaz") - .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS) - .withResourceGroup("tgguwpijrajcivmm"), + .checkNameAvailabilityWithResponse("hrpq", + new ResourceNameAvailabilityRequest().withName("df") + .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS) + .withResourceGroup("kois"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertFalse(response.isAvailable()); + Assertions.assertTrue(response.isAvailable()); Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); - Assertions.assertEquals("wrxgkneuvy", response.message()); + Assertions.assertEquals("xuifmcsypobkdqz", response.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java index 05121c9d168d..ea7e55be2192 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -23,7 +23,7 @@ public final class NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests { @Test public void testCheckQuotaAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"eqsx\"}"; + String responseStr = "{\"isAvailable\":false,\"reason\":\"Invalid\",\"message\":\"iowxi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,15 @@ public void testCheckQuotaAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CheckAvailabilityResponse response = manager.netAppResources() - .checkQuotaAvailabilityWithResponse("pmvekdxukuqg", - new QuotaAvailabilityRequest().withName("jjxundxgke") - .withType( - CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS) - .withResourceGroup("zhhzjhfjmhvvmu"), + .checkQuotaAvailabilityWithResponse("ypxrx", + new QuotaAvailabilityRequest().withName("bfihw") + .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS) + .withResourceGroup("vctafsrb"), com.azure.core.util.Context.NONE) .getValue(); Assertions.assertFalse(response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("eqsx", response.message()); + Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); + Assertions.assertEquals("iowxi", response.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java index 11129fca1048..bc1c50245984 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -23,7 +23,7 @@ public final class NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests { @Test public void testQueryNetworkSiblingSetWithResponse() throws Exception { String responseStr - = "{\"networkSiblingSetId\":\"uwivkxoy\",\"subnetId\":\"nbixxrti\",\"networkSiblingSetStateId\":\"cpwpg\",\"networkFeatures\":\"Basic\",\"provisioningState\":\"Updating\",\"nicInfoList\":[{\"ipAddress\":\"oxfrkenxpmyyefr\",\"volumeResourceIds\":[\"dnqqskawaoqvmmb\",\"pqfrtqlkz\",\"egnitg\",\"kxlzyqdrfeg\"]}]}"; + = "{\"networkSiblingSetId\":\"byrrueqth\",\"subnetId\":\"gnmbscbbxigdhx\",\"networkSiblingSetStateId\":\"d\",\"networkFeatures\":\"Basic_Standard\",\"provisioningState\":\"Updating\",\"nicInfoList\":[{\"ipAddress\":\"pyqy\",\"volumeResourceIds\":[\"ubmdnafcbqwre\",\"jelaqacigele\",\"hdbvqvwzkjop\"]},{\"ipAddress\":\"eonrlkwzdqybxce\",\"volumeResourceIds\":[\"cptsoqfyiase\",\"chkrttzr\",\"zisgykiuemvanb\",\"zohmnrxxbs\"]}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testQueryNetworkSiblingSetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSiblingSet response = manager.netAppResources() - .queryNetworkSiblingSetWithResponse("qdnfwqzdz", - new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("tilaxh").withSubnetId("fhqlyvi"), + .queryNetworkSiblingSetWithResponse("zezkhhltnjadh", + new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("oawjqoyueay").withSubnetId("bpcms"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("uwivkxoy", response.networkSiblingSetId()); - Assertions.assertEquals("nbixxrti", response.subnetId()); - Assertions.assertEquals("cpwpg", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC, response.networkFeatures()); - Assertions.assertEquals("dnqqskawaoqvmmb", response.nicInfoList().get(0).volumeResourceIds().get(0)); + Assertions.assertEquals("byrrueqth", response.networkSiblingSetId()); + Assertions.assertEquals("gnmbscbbxigdhx", response.subnetId()); + Assertions.assertEquals("d", response.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, response.networkFeatures()); + Assertions.assertEquals("ubmdnafcbqwre", response.nicInfoList().get(0).volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java index 7597afd3b582..a6ab9b16a8de 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class NetAppResourcesQueryRegionInfoWithResponseMockTests { @Test public void testQueryRegionInfoWithResponse() throws Exception { String responseStr - = "{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"hudypohyuemsl\",\"isAvailable\":false},{\"availabilityZone\":\"yrpfoobrlttymsj\",\"isAvailable\":true}]}"; + = "{\"storageToNetworkProximity\":\"T1\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"bqqqagwwrxa\",\"isAvailable\":true},{\"availabilityZone\":\"sgl\",\"isAvailable\":true}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testQueryRegionInfoWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RegionInfo response = manager.netAppResources() - .queryRegionInfoWithResponse("mhfbuzjy", com.azure.core.util.Context.NONE) + .queryRegionInfoWithResponse("spnxwqagnepzw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2, response.storageToNetworkProximity()); - Assertions.assertEquals("hudypohyuemsl", response.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertFalse(response.availabilityZoneMappings().get(0).isAvailable()); + Assertions.assertEquals(RegionStorageToNetworkProximity.T1, response.storageToNetworkProximity()); + Assertions.assertEquals("bqqqagwwrxa", response.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertTrue(response.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java index 480325801f6f..19f76c277c26 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -23,7 +23,7 @@ public final class NetAppResourcesUpdateNetworkSiblingSetMockTests { @Test public void testUpdateNetworkSiblingSet() throws Exception { String responseStr - = "{\"networkSiblingSetId\":\"kjsqzhzbezkgi\",\"subnetId\":\"idxas\",\"networkSiblingSetStateId\":\"ddyvvjskgfmo\",\"networkFeatures\":\"Basic\",\"provisioningState\":\"Succeeded\",\"nicInfoList\":[{\"ipAddress\":\"tjeaahhvjhh\",\"volumeResourceIds\":[\"zybbj\"]}]}"; + = "{\"networkSiblingSetId\":\"apcohhouc\",\"subnetId\":\"q\",\"networkSiblingSetStateId\":\"xcxzrzdcgdzben\",\"networkFeatures\":\"Standard\",\"provisioningState\":\"Failed\",\"nicInfoList\":[{\"ipAddress\":\"zqddtjwfljhzn\",\"volumeResourceIds\":[\"uatmzwcjjncqtj\",\"mizvgbgatzuuvbx\",\"grebwggahttzlsw\"]},{\"ipAddress\":\"jqfutlxj\",\"volumeResourceIds\":[\"asunwqrjzfrgq\",\"aohcmbuocn\",\"r\",\"hmbpyryxamebly\"]}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testUpdateNetworkSiblingSet() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSiblingSet response = manager.netAppResources() - .updateNetworkSiblingSet("ealzxwhcansymoyq", - new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("lwigdivbkbx") - .withSubnetId("omfaj") - .withNetworkSiblingSetStateId("wasqvdaeyyg") + .updateNetworkSiblingSet("jklinh", + new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("dptysprqs") + .withSubnetId("nzxojpslsvjgpli") + .withNetworkSiblingSetStateId("fiqwoy") .withNetworkFeatures(NetworkFeatures.BASIC_STANDARD), com.azure.core.util.Context.NONE); - Assertions.assertEquals("kjsqzhzbezkgi", response.networkSiblingSetId()); - Assertions.assertEquals("idxas", response.subnetId()); - Assertions.assertEquals("ddyvvjskgfmo", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC, response.networkFeatures()); - Assertions.assertEquals("zybbj", response.nicInfoList().get(0).volumeResourceIds().get(0)); + Assertions.assertEquals("apcohhouc", response.networkSiblingSetId()); + Assertions.assertEquals("q", response.subnetId()); + Assertions.assertEquals("xcxzrzdcgdzben", response.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.STANDARD, response.networkFeatures()); + Assertions.assertEquals("uatmzwcjjncqtj", response.nicInfoList().get(0).volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java index 05d5f65c93a1..8ee4e170a4df 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java @@ -1,46 +1,24 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.netapp.fluent.models.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\":\"yeamdphagalpb\",\"subnetId\":\"wgipwhono\",\"networkSiblingSetStateId\":\"gshwankixz\",\"networkFeatures\":\"Basic_Standard\",\"provisioningState\":\"Updating\",\"nicInfoList\":[{\"ipAddress\":\"tmryw\",\"volumeResourceIds\":[\"oqftiyqzrnkcq\",\"yx\",\"whzlsicohoq\",\"nwvlryavwhheunmm\"]},{\"ipAddress\":\"gyxzk\",\"volumeResourceIds\":[\"cukoklyaxuconu\",\"szfkbe\",\"pewr\"]},{\"ipAddress\":\"mwvvjektcxsenhw\",\"volumeResourceIds\":[\"ffrzpwvlqdqgbiqy\"]},{\"ipAddress\":\"hkaetcktvfc\",\"volumeResourceIds\":[\"snkymuctq\",\"jf\",\"ebrjcxe\"]}]}") + "{\"networkSiblingSetId\":\"qyikvy\",\"subnetId\":\"uyav\",\"networkSiblingSetStateId\":\"wmn\",\"networkFeatures\":\"Standard_Basic\",\"provisioningState\":\"Succeeded\",\"nicInfoList\":[{\"ipAddress\":\"bvpoekrsgsgbdhu\",\"volumeResourceIds\":[\"njdgkynscliq\",\"zvhxnk\",\"mtk\",\"bo\"]},{\"ipAddress\":\"pnvdxz\",\"volumeResourceIds\":[\"hfrbbc\",\"vqagtltdhlf\",\"qojpy\"]}]}") .toObject(NetworkSiblingSetInner.class); - Assertions.assertEquals("yeamdphagalpb", model.networkSiblingSetId()); - Assertions.assertEquals("wgipwhono", model.subnetId()); - Assertions.assertEquals("gshwankixz", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); - Assertions.assertEquals("oqftiyqzrnkcq", model.nicInfoList().get(0).volumeResourceIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkSiblingSetInner model = new NetworkSiblingSetInner().withNetworkSiblingSetId("yeamdphagalpb") - .withSubnetId("wgipwhono") - .withNetworkSiblingSetStateId("gshwankixz") - .withNetworkFeatures(NetworkFeatures.BASIC_STANDARD) - .withNicInfoList(Arrays.asList( - new NicInfo() - .withVolumeResourceIds(Arrays.asList("oqftiyqzrnkcq", "yx", "whzlsicohoq", "nwvlryavwhheunmm")), - new NicInfo().withVolumeResourceIds(Arrays.asList("cukoklyaxuconu", "szfkbe", "pewr")), - new NicInfo().withVolumeResourceIds(Arrays.asList("ffrzpwvlqdqgbiqy")), - new NicInfo().withVolumeResourceIds(Arrays.asList("snkymuctq", "jf", "ebrjcxe")))); - model = BinaryData.fromObject(model).toObject(NetworkSiblingSetInner.class); - Assertions.assertEquals("yeamdphagalpb", model.networkSiblingSetId()); - Assertions.assertEquals("wgipwhono", model.subnetId()); - Assertions.assertEquals("gshwankixz", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); - Assertions.assertEquals("oqftiyqzrnkcq", model.nicInfoList().get(0).volumeResourceIds().get(0)); + Assertions.assertEquals("qyikvy", model.networkSiblingSetId()); + Assertions.assertEquals("uyav", model.subnetId()); + Assertions.assertEquals("wmn", model.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); + Assertions.assertEquals("njdgkynscliq", model.nicInfoList().get(0).volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NfsUserTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NfsUserTests.java deleted file mode 100644 index a92648ffbae6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NfsUserTests.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.NfsUser; -import org.junit.jupiter.api.Assertions; - -public final class NfsUserTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NfsUser model = BinaryData.fromString("{\"userId\":3072021334506042533,\"groupId\":4997501643254233811}") - .toObject(NfsUser.class); - Assertions.assertEquals(3072021334506042533L, model.userId()); - Assertions.assertEquals(4997501643254233811L, model.groupId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NfsUser model = new NfsUser().withUserId(3072021334506042533L).withGroupId(4997501643254233811L); - model = BinaryData.fromObject(model).toObject(NfsUser.class); - Assertions.assertEquals(3072021334506042533L, model.userId()); - Assertions.assertEquals(4997501643254233811L, model.groupId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java index 45ad8e0f3708..b0f0888fd36e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java @@ -1,28 +1,18 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.netapp.models.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\":\"uwutttxfvjrbi\",\"volumeResourceIds\":[\"xepcyvahfn\",\"jky\",\"xjvuujqgidokg\",\"ljyoxgvcltb\"]}") + NicInfo model = BinaryData.fromString("{\"ipAddress\":\"gtrd\",\"volumeResourceIds\":[\"fmzzsdymbrny\",\"u\"]}") .toObject(NicInfo.class); - Assertions.assertEquals("xepcyvahfn", model.volumeResourceIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NicInfo model - = new NicInfo().withVolumeResourceIds(Arrays.asList("xepcyvahfn", "jky", "xjvuujqgidokg", "ljyoxgvcltb")); - model = BinaryData.fromObject(model).toObject(NicInfo.class); - Assertions.assertEquals("xepcyvahfn", model.volumeResourceIds().get(0)); + Assertions.assertEquals("fmzzsdymbrny", 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 index 6c614f261cc1..121a738d3174 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -19,17 +19,4 @@ public void testDeserialize() throws Exception { Assertions.assertEquals("vnipjox", model.operation()); Assertions.assertEquals("nchgej", model.description()); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay().withProvider("nyejhkryhtnap") - .withResource("wlokjyem") - .withOperation("vnipjox") - .withDescription("nchgej"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("nyejhkryhtnap", model.provider()); - Assertions.assertEquals("wlokjyem", model.resource()); - Assertions.assertEquals("vnipjox", model.operation()); - Assertions.assertEquals("nchgej", 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 index 946b27ed7bb6..e7a9de01910c 100644 --- 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 @@ -1,87 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.netapp.fluent.models.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\":\"pewnw\",\"display\":{\"provider\":\"tjzyflus\",\"resource\":\"hmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"txukcdmp\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"anzwuxzdxta\",\"displayName\":\"lhmwhfpmrqobm\",\"displayDescription\":\"kknryrtihf\",\"unit\":\"ijbpzvgnwzsymgl\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"dbihanufhfcbj\",\"s\"],\"internalMetricName\":\"ithxqhabifpi\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"zb\",\"sourceMdmNamespace\":\"cnpqxuhivyqniwby\",\"dimensions\":[{}],\"aggregationType\":\"vd\",\"fillGapWithZero\":true,\"category\":\"rtfw\",\"resourceIdDimensionNameOverride\":\"k\",\"isInternal\":true}],\"logSpecifications\":[{\"name\":\"cs\",\"displayName\":\"s\"}]}}}") + "{\"name\":\"jddeqsrdeupewnw\",\"display\":{\"provider\":\"tjzyflus\",\"resource\":\"hmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"txukcdmp\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"anzwuxzdxta\",\"displayName\":\"lhmwhfpmrqobm\",\"displayDescription\":\"kknryrtihf\",\"unit\":\"ijbpzvgnwzsymgl\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"dbihanufhfcbj\",\"s\"],\"internalMetricName\":\"ithxqhabifpi\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"zb\",\"sourceMdmNamespace\":\"cnpqxuhivyqniwby\",\"dimensions\":[{}],\"aggregationType\":\"vd\",\"fillGapWithZero\":true,\"category\":\"rtfw\",\"resourceIdDimensionNameOverride\":\"k\",\"isInternal\":true}],\"logSpecifications\":[{\"name\":\"cs\",\"displayName\":\"s\"}]}}}") .toObject(OperationInner.class); - Assertions.assertEquals("pewnw", model.name()); - Assertions.assertEquals("tjzyflus", model.display().provider()); - Assertions.assertEquals("hmofc", model.display().resource()); - Assertions.assertEquals("smy", model.display().operation()); - Assertions.assertEquals("kdtmlxhekuk", model.display().description()); - Assertions.assertEquals("txukcdmp", model.origin()); - Assertions.assertEquals("anzwuxzdxta", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("lhmwhfpmrqobm", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("kknryrtihf", - model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("ijbpzvgnwzsymgl", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("dbihanufhfcbj", - model.serviceSpecification().metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("ithxqhabifpi", - model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertFalse(model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("zb", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("cnpqxuhivyqniwby", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("vd", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertTrue(model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("rtfw", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("k", - model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertTrue(model.serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("cs", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("s", model.serviceSpecification().logSpecifications().get(0).displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withName("pewnw") - .withDisplay(new OperationDisplay().withProvider("tjzyflus") - .withResource("hmofc") - .withOperation("smy") - .withDescription("kdtmlxhekuk")) - .withOrigin("txukcdmp") - .withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications(Arrays.asList(new MetricSpecification().withName("anzwuxzdxta") - .withDisplayName("lhmwhfpmrqobm") - .withDisplayDescription("kknryrtihf") - .withUnit("ijbpzvgnwzsymgl") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("dbihanufhfcbj", "s")) - .withInternalMetricName("ithxqhabifpi") - .withEnableRegionalMdmAccount(false) - .withSourceMdmAccount("zb") - .withSourceMdmNamespace("cnpqxuhivyqniwby") - .withDimensions(Arrays.asList(new Dimension())) - .withAggregationType("vd") - .withFillGapWithZero(true) - .withCategory("rtfw") - .withResourceIdDimensionNameOverride("k") - .withIsInternal(true))) - .withLogSpecifications(Arrays.asList(new LogSpecification().withName("cs").withDisplayName("s")))); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - Assertions.assertEquals("pewnw", model.name()); + Assertions.assertEquals("jddeqsrdeupewnw", model.name()); Assertions.assertEquals("tjzyflus", model.display().provider()); Assertions.assertEquals("hmofc", model.display().resource()); Assertions.assertEquals("smy", model.display().operation()); 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 index a8ed423d0080..03fc0a38f104 100644 --- 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 @@ -1,71 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.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 com.azure.resourcemanager.netapp.implementation.models.OperationListResult; 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\":[{}]}}}],\"nextLink\":\"rd\"}") + "{\"value\":[{\"name\":\"hq\",\"display\":{\"provider\":\"jxpybczmeh\",\"resource\":\"zopbsphrupidgs\",\"operation\":\"bejhphoycmsxa\",\"description\":\"hdxbmtqio\"},\"origin\":\"zehtbmu\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{}],\"logSpecifications\":[{},{}]}}},{\"name\":\"hwlrx\",\"display\":{\"provider\":\"soqijg\",\"resource\":\"mbpazlobcufpdzn\",\"operation\":\"t\",\"description\":\"qjnqglhqgnufoooj\"},\"origin\":\"ifsqesaagdfmg\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{}],\"logSpecifications\":[{},{}]}}},{\"name\":\"f\",\"display\":{\"provider\":\"rvktsi\",\"resource\":\"to\",\"operation\":\"pa\",\"description\":\"ajpsquc\"},\"origin\":\"o\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{},{},{}],\"logSpecifications\":[{},{},{},{}]}}}],\"nextLink\":\"nygj\"}") .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()); + Assertions.assertEquals("hq", model.value().get(0).name()); + Assertions.assertEquals("jxpybczmeh", model.value().get(0).display().provider()); + Assertions.assertEquals("zopbsphrupidgs", model.value().get(0).display().resource()); + Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().operation()); + Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().description()); + Assertions.assertEquals("zehtbmu", model.value().get(0).origin()); + Assertions.assertEquals("nygj", model.nextLink()); } } 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 index 4069970c46d1..31d099821be9 100644 --- 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 @@ -1,17 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.netapp.fluent.models.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 { @@ -50,120 +45,4 @@ public void testDeserialize() throws Exception { Assertions.assertEquals("nwui", model.serviceSpecification().logSpecifications().get(0).name()); Assertions.assertEquals("a", 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("ailzydehojwyahu") - .withDisplayName("npmqnjaqwixjspro") - .withDisplayDescription("cputegjvwmfdats") - .withUnit("dvpjhulsuuvmk") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("ndiodjpslwejdpv")) - .withInternalMetricName("yoqpsoaccta") - .withEnableRegionalMdmAccount(false) - .withSourceMdmAccount("j") - .withSourceMdmNamespace("hbcryffdfdosyge") - .withDimensions(Arrays.asList(new Dimension().withName("jakhmsbzjh").withDisplayName("zevdphlx"), - new Dimension().withName("lthqtrgqjbp").withDisplayName("fsinzgvfcjrwzoxx"), - new Dimension().withName("felluwfzitonpe").withDisplayName("pjkjlxofpdv"), - new Dimension().withName("fxxypininmayhuy").withDisplayName("kpode"))) - .withAggregationType("oginuvamiheognar") - .withFillGapWithZero(false) - .withCategory("heotusiv") - .withResourceIdDimensionNameOverride("v") - .withIsInternal(false), - new MetricSpecification().withName("ihnhun") - .withDisplayName("wjzrnfygxgisp") - .withDisplayDescription("vtz") - .withUnit("ufubl") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("fjaeq", "hqjbasvmsmj", "ulngsntn")) - .withInternalMetricName("bkzgcwrwclx") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("jdous") - .withSourceMdmNamespace("qvkoc") - .withDimensions(Arrays.asList(new Dimension().withName("kwt").withDisplayName("xbnjbiksq"), - new Dimension().withName("lssai").withDisplayName("p"), - new Dimension().withName("nzl").withDisplayName("fmppe"))) - .withAggregationType("vmgxsab") - .withFillGapWithZero(true) - .withCategory("uujitcjc") - .withResourceIdDimensionNameOverride("zevndhkrwpdappds") - .withIsInternal(true), - new MetricSpecification().withName("wrwjfeu") - .withDisplayName("hutje") - .withDisplayDescription("mrldhu") - .withUnit("zzd") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("eablg", "huticndvkao", "wyiftyhxhur", "k")) - .withInternalMetricName("yxolniwp") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("jfkgiawxk") - .withSourceMdmNamespace("ypl") - .withDimensions(Arrays.asList(new Dimension().withName("asy").withDisplayName("nddhsgcbacph"), - new Dimension().withName("koty").withDisplayName("gou"))) - .withAggregationType("ndlik") - .withFillGapWithZero(true) - .withCategory("gfgibm") - .withResourceIdDimensionNameOverride("gakeqsr") - .withIsInternal(true), - new MetricSpecification().withName("qqedqytbciqfou") - .withDisplayName("mmnkzsmodmgl") - .withDisplayDescription("gpbkwtmut") - .withUnit("qktapspwgcuert") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("qw", "bmdg", "bjf", "dgmb")) - .withInternalMetricName("ex") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("tq") - .withSourceMdmNamespace("ol") - .withDimensions(Arrays.asList(new Dimension().withName("s").withDisplayName("gbquxigj"), - new Dimension().withName("gzjaoyfhrtxilne").withDisplayName("ujysvle"), - new Dimension().withName("vfqawrlyxwjkcpr").withDisplayName("wbxgjvt"))) - .withAggregationType("p") - .withFillGapWithZero(false) - .withCategory("dnrujqguhmuouqfp") - .withResourceIdDimensionNameOverride("zw") - .withIsInternal(false))) - .withLogSpecifications(Arrays.asList(new LogSpecification().withName("nwui").withDisplayName("a"), - new LogSpecification().withName("ufizuckyf").withDisplayName("rfidfvzwdz"), - new LogSpecification().withName("tymw").withDisplayName("dkfthwxmnt"), - new LogSpecification().withName("waopvkmijcmmxd").withDisplayName("fufsrpymzi")))); - model = BinaryData.fromObject(model).toObject(OperationProperties.class); - Assertions.assertEquals("ailzydehojwyahu", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("npmqnjaqwixjspro", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("cputegjvwmfdats", - model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("dvpjhulsuuvmk", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("ndiodjpslwejdpv", - model.serviceSpecification().metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("yoqpsoaccta", - model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertFalse(model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("j", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("hbcryffdfdosyge", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("jakhmsbzjh", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("zevdphlx", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("oginuvamiheognar", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertFalse(model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("heotusiv", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("v", - model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertFalse(model.serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("nwui", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("a", 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 index 5665bda10400..0088075ae8c0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -23,7 +23,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"ckh\",\"display\":{\"provider\":\"vdff\",\"resource\":\"afqr\",\"operation\":\"daspavehhrvk\",\"description\":\"n\"},\"origin\":\"zudhcxg\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"dyuib\",\"displayName\":\"fdn\",\"displayDescription\":\"ydvfvfcjnae\",\"unit\":\"srvhmgorffuki\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"lefaxvxilcbtgn\"],\"internalMetricName\":\"zeyqxtjjfzqlqhyc\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"ggxdb\",\"sourceMdmNamespace\":\"smieknlra\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"wiuagydwqf\",\"fillGapWithZero\":false,\"category\":\"rfgi\",\"resourceIdDimensionNameOverride\":\"tcojocqwo\",\"isInternal\":true},{\"name\":\"jvusfzldmozux\",\"displayName\":\"fsbtkad\",\"displayDescription\":\"s\",\"unit\":\"nbtgkbugrjqctoj\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"pe\",\"ojyqdhcuplcplcw\",\"hihihlhzdsqtzbsr\",\"nowc\"],\"internalMetricName\":\"fgmvecactxmwo\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"wcluqovekqvgq\",\"sourceMdmNamespace\":\"wifzmp\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"vqikfxcvhrfsphu\",\"fillGapWithZero\":true,\"category\":\"tikteusqczkvykl\",\"resourceIdDimensionNameOverride\":\"byjaffmmf\",\"isInternal\":false},{\"name\":\"cuubgq\",\"displayName\":\"rtalmet\",\"displayDescription\":\"wgdsl\",\"unit\":\"ihhrmo\",\"supportedAggregationTypes\":[\"Average\"],\"supportedTimeGrainTypes\":[\"ypxiutcxap\",\"hyrpetogebjoxs\",\"hvnh\",\"abrqnkkzj\"],\"internalMetricName\":\"b\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"ehvvib\",\"sourceMdmNamespace\":\"jj\",\"dimensions\":[{},{},{}],\"aggregationType\":\"beitpkx\",\"fillGapWithZero\":false,\"category\":\"ob\",\"resourceIdDimensionNameOverride\":\"ft\",\"isInternal\":true},{\"name\":\"cwq\",\"displayName\":\"imaq\",\"displayDescription\":\"hemjy\",\"unit\":\"hujswtwkozzwcul\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"jwltlwtjjgu\",\"talhsnvkcdmxzr\",\"oaimlnw\"],\"internalMetricName\":\"aomylwea\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"sethwwn\",\"sourceMdmNamespace\":\"hlf\",\"dimensions\":[{},{}],\"aggregationType\":\"ch\",\"fillGapWithZero\":true,\"category\":\"bousn\",\"resourceIdDimensionNameOverride\":\"pgfewetwlyx\",\"isInternal\":false}],\"logSpecifications\":[{\"name\":\"xhdjhl\",\"displayName\":\"mbcxfhbcp\"},{\"name\":\"xvxcjzhq\",\"displayName\":\"xfpxtgqscja\"}]}}}]}"; + = "{\"value\":[{\"name\":\"jhf\",\"display\":{\"provider\":\"ecactx\",\"resource\":\"oteyowc\",\"operation\":\"qovekqvgqou\",\"description\":\"fzmpjwyivq\"},\"origin\":\"f\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"sphuagrttikteus\",\"displayName\":\"zkvyklx\",\"displayDescription\":\"yja\",\"unit\":\"mmfblcqcuubgqib\",\"supportedAggregationTypes\":[\"Average\"],\"supportedTimeGrainTypes\":[\"tttwgdslqxih\",\"rmooizqse\",\"pxiutc\",\"apzhyrpetoge\"],\"internalMetricName\":\"oxslh\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"abrqnkkzj\",\"sourceMdmNamespace\":\"b\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"ehvvib\",\"fillGapWithZero\":false,\"category\":\"s\",\"resourceIdDimensionNameOverride\":\"qbeitpkxztmoob\",\"isInternal\":false},{\"name\":\"idgfc\",\"displayName\":\"mpimaqxzhemjyh\",\"displayDescription\":\"uj\",\"unit\":\"t\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"lkb\"],\"internalMetricName\":\"pfajnjwltlwtjj\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"alhsnvkc\",\"sourceMdmNamespace\":\"xzrpo\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"nwiaaomyl\",\"fillGapWithZero\":false,\"category\":\"ulcsethwwnpj\",\"resourceIdDimensionNameOverride\":\"fz\",\"isInternal\":false},{\"name\":\"hwahfbousn\",\"displayName\":\"pgfewetwlyx\",\"displayDescription\":\"cxy\",\"unit\":\"hdjhlimmbcx\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"xcjzhqizxfpxt\",\"qscjavftjuh\",\"qaz\",\"mtggu\"],\"internalMetricName\":\"ijr\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"vmmghfcfiwrxgk\",\"sourceMdmNamespace\":\"uvyinzqodfvpgs\",\"dimensions\":[{}],\"aggregationType\":\"sgbpfgzdjtx\",\"fillGapWithZero\":false,\"category\":\"bqvgaqv\",\"resourceIdDimensionNameOverride\":\"a\",\"isInternal\":true}],\"logSpecifications\":[{\"name\":\"dvetnws\",\"displayName\":\"utnw\"},{\"name\":\"uycvuzhyrmewip\",\"displayName\":\"ekdxuku\"}]}}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,19 +34,19 @@ public void testList() throws Exception { PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("ckh", response.iterator().next().name()); - Assertions.assertEquals("vdff", response.iterator().next().display().provider()); - Assertions.assertEquals("afqr", response.iterator().next().display().resource()); - Assertions.assertEquals("daspavehhrvk", response.iterator().next().display().operation()); - Assertions.assertEquals("n", response.iterator().next().display().description()); - Assertions.assertEquals("zudhcxg", response.iterator().next().origin()); - Assertions.assertEquals("dyuib", + Assertions.assertEquals("jhf", response.iterator().next().name()); + Assertions.assertEquals("ecactx", response.iterator().next().display().provider()); + Assertions.assertEquals("oteyowc", response.iterator().next().display().resource()); + Assertions.assertEquals("qovekqvgqou", response.iterator().next().display().operation()); + Assertions.assertEquals("fzmpjwyivq", response.iterator().next().display().description()); + Assertions.assertEquals("f", response.iterator().next().origin()); + Assertions.assertEquals("sphuagrttikteus", response.iterator().next().serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("fdn", + Assertions.assertEquals("zkvyklx", response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("ydvfvfcjnae", + Assertions.assertEquals("yja", response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("srvhmgorffuki", + Assertions.assertEquals("mmfblcqcuubgqib", response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit()); Assertions.assertEquals(MetricAggregationType.AVERAGE, response.iterator() @@ -56,7 +56,7 @@ public void testList() throws Exception { .get(0) .supportedAggregationTypes() .get(0)); - Assertions.assertEquals("lefaxvxilcbtgn", + Assertions.assertEquals("tttwgdslqxih", response.iterator() .next() .serviceSpecification() @@ -64,21 +64,21 @@ public void testList() throws Exception { .get(0) .supportedTimeGrainTypes() .get(0)); - Assertions.assertEquals("zeyqxtjjfzqlqhyc", + Assertions.assertEquals("oxslh", response.iterator().next().serviceSpecification().metricSpecifications().get(0).internalMetricName()); Assertions.assertFalse( response.iterator().next().serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("ggxdb", + Assertions.assertEquals("abrqnkkzj", response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("smieknlra", + Assertions.assertEquals("b", response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("wiuagydwqf", + Assertions.assertEquals("ehvvib", response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType()); Assertions.assertFalse( response.iterator().next().serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("rfgi", + Assertions.assertEquals("s", response.iterator().next().serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("tcojocqwo", + Assertions.assertEquals("qbeitpkxztmoob", response.iterator() .next() .serviceSpecification() @@ -86,10 +86,10 @@ public void testList() throws Exception { .get(0) .resourceIdDimensionNameOverride()); Assertions - .assertTrue(response.iterator().next().serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("xhdjhl", + .assertFalse(response.iterator().next().serviceSpecification().metricSpecifications().get(0).isInternal()); + Assertions.assertEquals("dvetnws", response.iterator().next().serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("mbcxfhbcp", + Assertions.assertEquals("utnw", 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 index 9443bac9084e..11ad290a74ef 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,17 +12,16 @@ public final class PeerClusterForVolumeMigrationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PeerClusterForVolumeMigrationRequest model - = BinaryData.fromString("{\"peerIpAddresses\":[\"vljxywsu\",\"syrsndsytgadgvra\",\"aeneqnzarrwl\"]}") - .toObject(PeerClusterForVolumeMigrationRequest.class); - Assertions.assertEquals("vljxywsu", model.peerIpAddresses().get(0)); + PeerClusterForVolumeMigrationRequest model = BinaryData.fromString("{\"peerIpAddresses\":[\"erscdntne\"]}") + .toObject(PeerClusterForVolumeMigrationRequest.class); + Assertions.assertEquals("erscdntne", model.peerIpAddresses().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PeerClusterForVolumeMigrationRequest model = new PeerClusterForVolumeMigrationRequest() - .withPeerIpAddresses(Arrays.asList("vljxywsu", "syrsndsytgadgvra", "aeneqnzarrwl")); + PeerClusterForVolumeMigrationRequest model + = new PeerClusterForVolumeMigrationRequest().withPeerIpAddresses(Arrays.asList("erscdntne")); model = BinaryData.fromObject(model).toObject(PeerClusterForVolumeMigrationRequest.class); - Assertions.assertEquals("vljxywsu", model.peerIpAddresses().get(0)); + Assertions.assertEquals("erscdntne", 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 index 20b218f445f7..0aa4540b9d0d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,14 +12,14 @@ public final class PoolChangeRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PoolChangeRequest model - = BinaryData.fromString("{\"newPoolResourceId\":\"iipfpubj\"}").toObject(PoolChangeRequest.class); - Assertions.assertEquals("iipfpubj", model.newPoolResourceId()); + = BinaryData.fromString("{\"newPoolResourceId\":\"semwabnet\"}").toObject(PoolChangeRequest.class); + Assertions.assertEquals("semwabnet", model.newPoolResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PoolChangeRequest model = new PoolChangeRequest().withNewPoolResourceId("iipfpubj"); + PoolChangeRequest model = new PoolChangeRequest().withNewPoolResourceId("semwabnet"); model = BinaryData.fromObject(model).toObject(PoolChangeRequest.class); - Assertions.assertEquals("iipfpubj", model.newPoolResourceId()); + Assertions.assertEquals("semwabnet", model.newPoolResourceId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java index 2e0cba609320..a9c58489e14c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,24 +13,24 @@ public final class PoolPatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PoolPatchProperties model = BinaryData.fromString( - "{\"size\":985999643464514171,\"qosType\":\"Auto\",\"coolAccess\":false,\"customThroughputMibps\":80.753395}") + "{\"size\":6158704597688718378,\"qosType\":\"Manual\",\"coolAccess\":false,\"customThroughputMibps\":1678889630}") .toObject(PoolPatchProperties.class); - Assertions.assertEquals(985999643464514171L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); + Assertions.assertEquals(6158704597688718378L, model.size()); + Assertions.assertEquals(QosType.MANUAL, model.qosType()); Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(80.753395F, model.customThroughputMibps()); + Assertions.assertEquals(1678889630, model.customThroughputMibps()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PoolPatchProperties model = new PoolPatchProperties().withSize(985999643464514171L) - .withQosType(QosType.AUTO) + PoolPatchProperties model = new PoolPatchProperties().withSize(6158704597688718378L) + .withQosType(QosType.MANUAL) .withCoolAccess(false) - .withCustomThroughputMibps(80.753395F); + .withCustomThroughputMibps(1678889630); model = BinaryData.fromObject(model).toObject(PoolPatchProperties.class); - Assertions.assertEquals(985999643464514171L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); + Assertions.assertEquals(6158704597688718378L, model.size()); + Assertions.assertEquals(QosType.MANUAL, model.qosType()); Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(80.753395F, model.customThroughputMibps()); + Assertions.assertEquals(1678889630, model.customThroughputMibps()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java index 78dae4c12b0d..f62500298d73 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -15,30 +15,30 @@ public final class PoolPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PoolProperties model = BinaryData.fromString( - "{\"poolId\":\"hcdhmdual\",\"size\":2559158309988957100,\"serviceLevel\":\"Premium\",\"provisioningState\":\"vfadmws\",\"totalThroughputMibps\":4.791844,\"utilizedThroughputMibps\":44.560753,\"customThroughputMibps\":10.123992,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Single\"}") + "{\"poolId\":\"dxeclzedqbcvh\",\"size\":3554459404592540938,\"serviceLevel\":\"Premium\",\"provisioningState\":\"odqkdlwwqfb\",\"totalThroughputMibps\":19.944017,\"utilizedThroughputMibps\":43.051697,\"customThroughputMibps\":1934168431,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"}") .toObject(PoolProperties.class); - Assertions.assertEquals(2559158309988957100L, model.size()); + Assertions.assertEquals(3554459404592540938L, model.size()); Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(10.123992F, model.customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); + Assertions.assertEquals(1934168431, model.customThroughputMibps()); + Assertions.assertEquals(QosType.MANUAL, model.qosType()); Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); + Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PoolProperties model = new PoolProperties().withSize(2559158309988957100L) + PoolProperties model = new PoolProperties().withSize(3554459404592540938L) .withServiceLevel(ServiceLevel.PREMIUM) - .withCustomThroughputMibps(10.123992F) - .withQosType(QosType.AUTO) + .withCustomThroughputMibps(1934168431) + .withQosType(QosType.MANUAL) .withCoolAccess(true) - .withEncryptionType(EncryptionType.SINGLE); + .withEncryptionType(EncryptionType.DOUBLE); model = BinaryData.fromObject(model).toObject(PoolProperties.class); - Assertions.assertEquals(2559158309988957100L, model.size()); + Assertions.assertEquals(3554459404592540938L, model.size()); Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(10.123992F, model.customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); + Assertions.assertEquals(1934168431, model.customThroughputMibps()); + Assertions.assertEquals(QosType.MANUAL, model.qosType()); Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); + 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 index d7eae3fed82f..5cb5cd661b04 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -26,7 +26,7 @@ public final class PoolsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"etag\":\"fuojrngif\",\"properties\":{\"poolId\":\"z\",\"size\":8761692939426802425,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"Succeeded\",\"totalThroughputMibps\":47.9407,\"utilizedThroughputMibps\":9.529722,\"customThroughputMibps\":40.48493,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"location\":\"lzo\",\"tags\":{\"dgug\":\"ctfnmdxotng\"},\"id\":\"yzihgrkyuizabsn\",\"name\":\"fpphoj\",\"type\":\"evy\"}"; + = "{\"properties\":{\"poolId\":\"nsq\",\"size\":9179856154635151160,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"Succeeded\",\"totalThroughputMibps\":70.34075,\"utilizedThroughputMibps\":40.122326,\"customThroughputMibps\":301976454,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"etag\":\"jyfdvlv\",\"location\":\"wrnfxtgdd\",\"tags\":{\"kcoeqswank\":\"hehnmnaoya\"},\"id\":\"t\",\"name\":\"tmhdroznnhdr\",\"type\":\"ktgj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,24 +36,24 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapacityPool response = manager.pools() - .define("xkjibnxmy") - .withRegion("wmqs") - .withExistingNetAppAccount("tybbwwpgda", "chzyvlixqnrk") - .withSize(8488562628713523190L) - .withServiceLevel(ServiceLevel.FLEXIBLE) - .withTags(mapOf("ctddun", "dqzh", "pchrqbn", "ndy", "gydcw", "jrcg")) - .withCustomThroughputMibps(59.372757F) + .define("sinuqtljqobbpih") + .withRegion("kmdyomkxfbvfbh") + .withExistingNetAppAccount("josovyrrl", "a") + .withSize(8601531135339154686L) + .withServiceLevel(ServiceLevel.PREMIUM) + .withTags(mapOf("gddeimaw", "rhpw")) + .withCustomThroughputMibps(2083123836) .withQosType(QosType.MANUAL) .withCoolAccess(false) .withEncryptionType(EncryptionType.SINGLE) .create(); - Assertions.assertEquals("lzo", response.location()); - Assertions.assertEquals("ctfnmdxotng", response.tags().get("dgug")); - Assertions.assertEquals(8761692939426802425L, response.size()); - Assertions.assertEquals(ServiceLevel.ULTRA, response.serviceLevel()); - Assertions.assertEquals(40.48493F, response.customThroughputMibps()); - Assertions.assertEquals(QosType.MANUAL, response.qosType()); + Assertions.assertEquals("wrnfxtgdd", response.location()); + Assertions.assertEquals("hehnmnaoya", response.tags().get("kcoeqswank")); + Assertions.assertEquals(9179856154635151160L, response.size()); + Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, response.serviceLevel()); + Assertions.assertEquals(301976454, response.customThroughputMibps()); + Assertions.assertEquals(QosType.AUTO, response.qosType()); Assertions.assertFalse(response.coolAccess()); Assertions.assertEquals(EncryptionType.SINGLE, response.encryptionType()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java index 20e38b281484..8edf08a5c761 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -24,7 +24,7 @@ public final class PoolsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"etag\":\"ccxjm\",\"properties\":{\"poolId\":\"fdgnwncypuuwwlt\",\"size\":3010705428081291072,\"serviceLevel\":\"Premium\",\"provisioningState\":\"tzenk\",\"totalThroughputMibps\":58.080147,\"utilizedThroughputMibps\":71.052414,\"customThroughputMibps\":34.28848,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"location\":\"yhbxcudchxgs\",\"tags\":{\"vizbfhfo\":\"ldforobwj\",\"bbelawumuaslzk\":\"vacqpbtuodxesz\",\"mdr\":\"rrwoycqucwyhahn\"},\"id\":\"ywuhpsvfuur\",\"name\":\"tlwexxwlalniexz\",\"type\":\"rzpgep\"}"; + = "{\"properties\":{\"poolId\":\"hmoz\",\"size\":4571783407707453265,\"serviceLevel\":\"Standard\",\"provisioningState\":\"ln\",\"totalThroughputMibps\":9.580618,\"utilizedThroughputMibps\":96.16699,\"customThroughputMibps\":1586632226,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"etag\":\"wamxqzrag\",\"location\":\"dphtv\",\"tags\":{\"vl\":\"a\"},\"id\":\"jchcsrlzknmzla\",\"name\":\"rupdwvnphcnzq\",\"type\":\"pjhmqrhvthl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,16 +34,16 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapacityPool response = manager.pools() - .getWithResponse("xlpm", "erbdk", "lvidizozs", com.azure.core.util.Context.NONE) + .getWithResponse("okcdxfzzzwyjaf", "tlhguynuchl", "mltx", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("yhbxcudchxgs", response.location()); - Assertions.assertEquals("ldforobwj", response.tags().get("vizbfhfo")); - Assertions.assertEquals(3010705428081291072L, response.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, response.serviceLevel()); - Assertions.assertEquals(34.28848F, response.customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, response.qosType()); + Assertions.assertEquals("dphtv", response.location()); + Assertions.assertEquals("a", response.tags().get("vl")); + Assertions.assertEquals(4571783407707453265L, response.size()); + Assertions.assertEquals(ServiceLevel.STANDARD, response.serviceLevel()); + Assertions.assertEquals(1586632226, response.customThroughputMibps()); + Assertions.assertEquals(QosType.MANUAL, response.qosType()); Assertions.assertTrue(response.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, response.encryptionType()); + Assertions.assertEquals(EncryptionType.DOUBLE, response.encryptionType()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java index 8efe66d356fe..96c91793b73c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -25,7 +25,7 @@ public final class PoolsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"etag\":\"mhh\",\"properties\":{\"poolId\":\"oqaqhvseufuq\",\"size\":2623469123642487838,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"lcgqlsismj\",\"totalThroughputMibps\":25.698645,\"utilizedThroughputMibps\":75.36992,\"customThroughputMibps\":24.463505,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"location\":\"rsjuivfcdisyir\",\"tags\":{\"xrxzbujrtr\":\"hcz\",\"khgn\":\"qvwre\",\"piqywnc\":\"nzonzl\",\"zehtdhgb\":\"jtszcof\"},\"id\":\"k\",\"name\":\"reljeamur\",\"type\":\"zmlovuanash\"}]}"; + = "{\"value\":[{\"properties\":{\"poolId\":\"npxybafiq\",\"size\":8630165926695508112,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"bgj\",\"totalThroughputMibps\":26.121838,\"utilizedThroughputMibps\":66.93982,\"customThroughputMibps\":768847582,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"etag\":\"wvmzegjonfhjir\",\"location\":\"dnqzbrfkspzhzmt\",\"tags\":{\"igsxcdgljplk\":\"cit\",\"htomflrytswfp\":\"ua\",\"skw\":\"mdgycxn\",\"shhkvpedw\":\"qjjyslurl\"},\"id\":\"slsrhmpq\",\"name\":\"wwsko\",\"type\":\"dcbrwimuvq\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,14 +35,14 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.pools().list("yxeb", "ybpmzznrtffyaq", com.azure.core.util.Context.NONE); + = manager.pools().list("iwdcxsmlzzhzd", "xetlgydlhqv", com.azure.core.util.Context.NONE); - Assertions.assertEquals("rsjuivfcdisyir", response.iterator().next().location()); - Assertions.assertEquals("hcz", response.iterator().next().tags().get("xrxzbujrtr")); - Assertions.assertEquals(2623469123642487838L, response.iterator().next().size()); + Assertions.assertEquals("dnqzbrfkspzhzmt", response.iterator().next().location()); + Assertions.assertEquals("cit", response.iterator().next().tags().get("igsxcdgljplk")); + Assertions.assertEquals(8630165926695508112L, response.iterator().next().size()); Assertions.assertEquals(ServiceLevel.FLEXIBLE, response.iterator().next().serviceLevel()); - Assertions.assertEquals(24.463505F, response.iterator().next().customThroughputMibps()); - Assertions.assertEquals(QosType.MANUAL, response.iterator().next().qosType()); + Assertions.assertEquals(768847582, response.iterator().next().customThroughputMibps()); + Assertions.assertEquals(QosType.AUTO, response.iterator().next().qosType()); Assertions.assertTrue(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 index c91409b615cb..8184750014a8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,18 +12,18 @@ public final class QueryNetworkSiblingSetRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QueryNetworkSiblingSetRequest model - = BinaryData.fromString("{\"networkSiblingSetId\":\"ishc\",\"subnetId\":\"khaj\"}") + = BinaryData.fromString("{\"networkSiblingSetId\":\"hezwwvaiq\",\"subnetId\":\"uvvfonkp\"}") .toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("ishc", model.networkSiblingSetId()); - Assertions.assertEquals("khaj", model.subnetId()); + Assertions.assertEquals("hezwwvaiq", model.networkSiblingSetId()); + Assertions.assertEquals("uvvfonkp", model.subnetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { QueryNetworkSiblingSetRequest model - = new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("ishc").withSubnetId("khaj"); + = new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("hezwwvaiq").withSubnetId("uvvfonkp"); model = BinaryData.fromObject(model).toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("ishc", model.networkSiblingSetId()); - Assertions.assertEquals("khaj", model.subnetId()); + Assertions.assertEquals("hezwwvaiq", model.networkSiblingSetId()); + Assertions.assertEquals("uvvfonkp", model.subnetId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java index 0298ed49a90b..c326e4034561 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,23 +13,25 @@ public final class QuotaAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaAvailabilityRequest model = BinaryData.fromString( - "{\"name\":\"wxdndnvowgujjug\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools\",\"resourceGroup\":\"kcglhslaz\"}") + "{\"name\":\"dwdigumb\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots\",\"resourceGroup\":\"aauzzptjazysd\"}") .toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("wxdndnvowgujjug", model.name()); - Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS, + Assertions.assertEquals("dwdigumb", model.name()); + Assertions.assertEquals( + CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, model.type()); - Assertions.assertEquals("kcglhslaz", model.resourceGroup()); + Assertions.assertEquals("aauzzptjazysd", model.resourceGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - QuotaAvailabilityRequest model = new QuotaAvailabilityRequest().withName("wxdndnvowgujjug") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS) - .withResourceGroup("kcglhslaz"); + QuotaAvailabilityRequest model = new QuotaAvailabilityRequest().withName("dwdigumb") + .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS) + .withResourceGroup("aauzzptjazysd"); model = BinaryData.fromObject(model).toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("wxdndnvowgujjug", model.name()); - Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS, + Assertions.assertEquals("dwdigumb", model.name()); + Assertions.assertEquals( + CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, model.type()); - Assertions.assertEquals("kcglhslaz", model.resourceGroup()); + Assertions.assertEquals("aauzzptjazysd", model.resourceGroup()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemInnerTests.java deleted file mode 100644 index 775e37bdc133..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemInnerTests.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.QuotaItemInner; - -public final class QuotaItemInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuotaItemInner model = BinaryData.fromString( - "{\"properties\":{\"current\":445329815,\"default\":668778225,\"usage\":807862919},\"id\":\"okacspk\",\"name\":\"lhzdobp\",\"type\":\"jmflbvvnch\"}") - .toObject(QuotaItemInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuotaItemInner model = new QuotaItemInner(); - model = BinaryData.fromObject(model).toObject(QuotaItemInner.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemListTests.java index 095dee98f44d..f81450196fb3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemListTests.java @@ -1,29 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; -import com.azure.resourcemanager.netapp.models.QuotaItemList; -import java.util.Arrays; +import com.azure.resourcemanager.netapp.implementation.models.QuotaItemList; import org.junit.jupiter.api.Assertions; public final class QuotaItemListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaItemList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"current\":1747091504,\"default\":1085417867,\"usage\":93101784},\"id\":\"qrvkdv\",\"name\":\"sllr\",\"type\":\"vvdfwatkpnpul\"}],\"nextLink\":\"xbczwtruwiqz\"}") + "{\"value\":[{\"properties\":{\"current\":1636345438,\"default\":1735591195,\"usage\":632380018},\"id\":\"ppusuesnzwdejba\",\"name\":\"orxzdmohctbqvud\",\"type\":\"xdn\"}],\"nextLink\":\"vo\"}") .toObject(QuotaItemList.class); - Assertions.assertEquals("xbczwtruwiqz", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuotaItemList model - = new QuotaItemList().withValue(Arrays.asList(new QuotaItemInner())).withNextLink("xbczwtruwiqz"); - model = BinaryData.fromObject(model).toObject(QuotaItemList.class); - Assertions.assertEquals("xbczwtruwiqz", model.nextLink()); + Assertions.assertEquals("vo", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemPropertiesTests.java index fc1dfbf7aa19..facde49b8fda 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaItemPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,13 +11,7 @@ public final class QuotaItemPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaItemProperties model - = BinaryData.fromString("{\"current\":812677705,\"default\":1925395217,\"usage\":1426028232}") + = BinaryData.fromString("{\"current\":1146215181,\"default\":1348050771,\"usage\":587661863}") .toObject(QuotaItemProperties.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuotaItemProperties model = new QuotaItemProperties(); - model = BinaryData.fromObject(model).toObject(QuotaItemProperties.class); - } } 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 a37144a1d46b..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\":\"DefaultUserQuota\",\"quotaTarget\":\"qyib\",\"quotaLimitUsedInKiBs\":8539790193753290872,\"quotaLimitTotalInKiBs\":3859662575119335920,\"percentageUsed\":88.90607,\"isDerivedQuota\":true}") - .toObject(QuotaReport.class); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("qyib", model.quotaTarget()); - Assertions.assertEquals(8539790193753290872L, model.quotaLimitUsedInKiBs()); - Assertions.assertEquals(3859662575119335920L, model.quotaLimitTotalInKiBs()); - Assertions.assertEquals(88.90607F, model.percentageUsed()); - Assertions.assertTrue(model.isDerivedQuota()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuotaReport model = new QuotaReport().withQuotaType(Type.DEFAULT_USER_QUOTA) - .withQuotaTarget("qyib") - .withQuotaLimitUsedInKiBs(8539790193753290872L) - .withQuotaLimitTotalInKiBs(3859662575119335920L) - .withPercentageUsed(88.90607F) - .withIsDerivedQuota(true); - model = BinaryData.fromObject(model).toObject(QuotaReport.class); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("qyib", model.quotaTarget()); - Assertions.assertEquals(8539790193753290872L, model.quotaLimitUsedInKiBs()); - Assertions.assertEquals(3859662575119335920L, model.quotaLimitTotalInKiBs()); - Assertions.assertEquals(88.90607F, model.percentageUsed()); - Assertions.assertTrue(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 index 3b82a5b9d1d3..7bc67d15bcc8 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,15 +11,15 @@ public final class ReestablishReplicationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ReestablishReplicationRequest model = BinaryData.fromString("{\"sourceVolumeId\":\"wofyyvoqacpiexp\"}") + ReestablishReplicationRequest model = BinaryData.fromString("{\"sourceVolumeId\":\"tjrybnwjewgdr\"}") .toObject(ReestablishReplicationRequest.class); - Assertions.assertEquals("wofyyvoqacpiexp", model.sourceVolumeId()); + Assertions.assertEquals("tjrybnwjewgdr", model.sourceVolumeId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ReestablishReplicationRequest model = new ReestablishReplicationRequest().withSourceVolumeId("wofyyvoqacpiexp"); + ReestablishReplicationRequest model = new ReestablishReplicationRequest().withSourceVolumeId("tjrybnwjewgdr"); model = BinaryData.fromObject(model).toObject(ReestablishReplicationRequest.class); - Assertions.assertEquals("wofyyvoqacpiexp", model.sourceVolumeId()); + Assertions.assertEquals("tjrybnwjewgdr", 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 index f840e8da92c5..370f26030636 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,18 +12,9 @@ public final class RegionInfoAvailabilityZoneMappingsItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegionInfoAvailabilityZoneMappingsItem model - = BinaryData.fromString("{\"availabilityZone\":\"sauuimj\",\"isAvailable\":true}") + = BinaryData.fromString("{\"availabilityZone\":\"ddhcratizzr\",\"isAvailable\":false}") .toObject(RegionInfoAvailabilityZoneMappingsItem.class); - Assertions.assertEquals("sauuimj", model.availabilityZone()); - Assertions.assertTrue(model.isAvailable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfoAvailabilityZoneMappingsItem model - = new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("sauuimj").withIsAvailable(true); - model = BinaryData.fromObject(model).toObject(RegionInfoAvailabilityZoneMappingsItem.class); - Assertions.assertEquals("sauuimj", model.availabilityZone()); - Assertions.assertTrue(model.isAvailable()); + Assertions.assertEquals("ddhcratizzr", model.availabilityZone()); + Assertions.assertFalse(model.isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java index d9b6a1e75927..aa85de3d3ce0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java @@ -1,36 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.netapp.fluent.models.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\":\"T1\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"hrsajiwkuofo\",\"isAvailable\":true}]}") + "{\"storageToNetworkProximity\":\"T1AndT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"qfi\",\"isAvailable\":false},{\"availabilityZone\":\"knpirgnepttwq\",\"isAvailable\":true},{\"availabilityZone\":\"ffcdmqnrojl\",\"isAvailable\":false},{\"availabilityZone\":\"k\",\"isAvailable\":true}]}") .toObject(RegionInfoInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1, model.storageToNetworkProximity()); - Assertions.assertEquals("hrsajiwkuofo", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertTrue(model.availabilityZoneMappings().get(0).isAvailable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfoInner model = new RegionInfoInner().withStorageToNetworkProximity(RegionStorageToNetworkProximity.T1) - .withAvailabilityZoneMappings( - Arrays.asList(new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("hrsajiwkuofo") - .withIsAvailable(true))); - model = BinaryData.fromObject(model).toObject(RegionInfoInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1, model.storageToNetworkProximity()); - Assertions.assertEquals("hrsajiwkuofo", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertTrue(model.availabilityZoneMappings().get(0).isAvailable()); + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2, model.storageToNetworkProximity()); + Assertions.assertEquals("qfi", model.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertFalse(model.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java index bbd3a2774731..640c1037ce8e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java @@ -1,38 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.netapp.fluent.models.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\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"rbpizc\",\"isAvailable\":true}]},\"id\":\"sdpydnfyhxdeoejz\",\"name\":\"cwif\",\"type\":\"jttgzf\"}") + "{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"ton\",\"isAvailable\":false}]},\"id\":\"uu\",\"name\":\"fdlwg\",\"type\":\"ytsbwtovv\"}") .toObject(RegionInfoResourceInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - model.storageToNetworkProximity()); - Assertions.assertEquals("rbpizc", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertTrue(model.availabilityZoneMappings().get(0).isAvailable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfoResourceInner model = new RegionInfoResourceInner() - .withStorageToNetworkProximity(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("rbpizc").withIsAvailable(true))); - model = BinaryData.fromObject(model).toObject(RegionInfoResourceInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - model.storageToNetworkProximity()); - Assertions.assertEquals("rbpizc", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertTrue(model.availabilityZoneMappings().get(0).isAvailable()); + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2, model.storageToNetworkProximity()); + Assertions.assertEquals("ton", model.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertFalse(model.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java index f7b09f1d53d3..d689292d7858 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java @@ -1,55 +1,24 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner; -import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem; -import com.azure.resourcemanager.netapp.models.RegionInfosList; +import com.azure.resourcemanager.netapp.implementation.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\":\"AcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"yjr\",\"isAvailable\":false},{\"availabilityZone\":\"aos\",\"isAvailable\":false},{\"availabilityZone\":\"sonpclhocohs\",\"isAvailable\":false},{\"availabilityZone\":\"leggzfbu\",\"isAvailable\":true}]},\"id\":\"faxkffeii\",\"name\":\"hl\",\"type\":\"m\"},{\"properties\":{\"storageToNetworkProximity\":\"Default\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"mzsb\",\"isAvailable\":true},{\"availabilityZone\":\"gigr\",\"isAvailable\":true},{\"availabilityZone\":\"rvjx\",\"isAvailable\":true},{\"availabilityZone\":\"pydptko\",\"isAvailable\":true}]},\"id\":\"uknvudwti\",\"name\":\"kbldngkpocipa\",\"type\":\"yxoegukgjnp\"}],\"nextLink\":\"cgygev\"}") + "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"Default\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"qyzhf\",\"isAvailable\":false},{\"availabilityZone\":\"gogczhonnxkrlgny\",\"isAvailable\":false}]},\"id\":\"sxkkg\",\"name\":\"h\",\"type\":\"rghxjb\"},{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"gf\",\"isAvailable\":true}]},\"id\":\"ofbshr\",\"name\":\"svbuswdvzyy\",\"type\":\"ycnunvjsrtk\"}],\"nextLink\":\"wnopqgikyzirtx\"}") .toObject(RegionInfosList.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.ACROSS_T2, + Assertions.assertEquals(RegionStorageToNetworkProximity.DEFAULT, model.value().get(0).storageToNetworkProximity()); - Assertions.assertEquals("yjr", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertEquals("qyzhf", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); Assertions.assertFalse(model.value().get(0).availabilityZoneMappings().get(0).isAvailable()); - Assertions.assertEquals("cgygev", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfosList model = new RegionInfosList().withValue(Arrays.asList( - new RegionInfoResourceInner().withStorageToNetworkProximity(RegionStorageToNetworkProximity.ACROSS_T2) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("yjr").withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("aos").withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem() - .withAvailabilityZone("sonpclhocohs") - .withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("leggzfbu") - .withIsAvailable(true))), - new RegionInfoResourceInner().withStorageToNetworkProximity(RegionStorageToNetworkProximity.DEFAULT) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("mzsb").withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("gigr").withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("rvjx").withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("pydptko") - .withIsAvailable(true))))) - .withNextLink("cgygev"); - model = BinaryData.fromObject(model).toObject(RegionInfosList.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.ACROSS_T2, - model.value().get(0).storageToNetworkProximity()); - Assertions.assertEquals("yjr", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertFalse(model.value().get(0).availabilityZoneMappings().get(0).isAvailable()); - Assertions.assertEquals("cgygev", model.nextLink()); + Assertions.assertEquals("wnopqgikyzirtx", 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 index 57a9d581cc6c..4842b06c1451 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,20 +12,22 @@ public final class RemotePathTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RemotePath model = BinaryData - .fromString("{\"externalHostName\":\"wwwfbkr\",\"serverName\":\"rn\",\"volumeName\":\"vshqjohxcr\"}") + .fromString( + "{\"externalHostName\":\"cispnqzahmgkbr\",\"serverName\":\"yydhibnuqqk\",\"volumeName\":\"ik\"}") .toObject(RemotePath.class); - Assertions.assertEquals("wwwfbkr", model.externalHostname()); - Assertions.assertEquals("rn", model.serverName()); - Assertions.assertEquals("vshqjohxcr", model.volumeName()); + Assertions.assertEquals("cispnqzahmgkbr", model.externalHostname()); + Assertions.assertEquals("yydhibnuqqk", model.serverName()); + Assertions.assertEquals("ik", model.volumeName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RemotePath model - = new RemotePath().withExternalHostname("wwwfbkr").withServerName("rn").withVolumeName("vshqjohxcr"); + RemotePath model = new RemotePath().withExternalHostname("cispnqzahmgkbr") + .withServerName("yydhibnuqqk") + .withVolumeName("ik"); model = BinaryData.fromObject(model).toObject(RemotePath.class); - Assertions.assertEquals("wwwfbkr", model.externalHostname()); - Assertions.assertEquals("rn", model.serverName()); - Assertions.assertEquals("vshqjohxcr", model.volumeName()); + Assertions.assertEquals("cispnqzahmgkbr", model.externalHostname()); + Assertions.assertEquals("yydhibnuqqk", model.serverName()); + Assertions.assertEquals("ik", 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 index 2ee1ce665ccc..3edc6bf7c4b1 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -14,24 +14,11 @@ public final class ReplicationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplicationInner model = BinaryData.fromString( - "{\"replicationId\":\"fbtkuwhhmhyk\",\"endpointType\":\"src\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"fnndl\",\"remoteVolumeRegion\":\"chkoymkcdyh\"}") + "{\"replicationId\":\"dnbbglzps\",\"endpointType\":\"dst\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"cwyhzdxssa\",\"remoteVolumeRegion\":\"zmnvdfznudaod\",\"mirrorState\":\"Uninitialized\",\"replicationCreationTime\":\"2021-01-24T14:26:11Z\",\"replicationDeletionTime\":\"2021-10-12T01:30:58Z\"}") .toObject(ReplicationInner.class); - Assertions.assertEquals(EndpointType.SRC, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule()); - Assertions.assertEquals("fnndl", model.remoteVolumeResourceId()); - Assertions.assertEquals("chkoymkcdyh", model.remoteVolumeRegion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationInner model = new ReplicationInner().withEndpointType(EndpointType.SRC) - .withReplicationSchedule(ReplicationSchedule.HOURLY) - .withRemoteVolumeResourceId("fnndl") - .withRemoteVolumeRegion("chkoymkcdyh"); - model = BinaryData.fromObject(model).toObject(ReplicationInner.class); - Assertions.assertEquals(EndpointType.SRC, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule()); - Assertions.assertEquals("fnndl", model.remoteVolumeResourceId()); - Assertions.assertEquals("chkoymkcdyh", model.remoteVolumeRegion()); + Assertions.assertEquals(EndpointType.DST, model.endpointType()); + Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.replicationSchedule()); + Assertions.assertEquals("cwyhzdxssa", model.remoteVolumeResourceId()); + Assertions.assertEquals("zmnvdfznudaod", 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 index dfe80642b89c..7a40e31b5163 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -14,30 +14,30 @@ public final class ReplicationObjectTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplicationObject model = BinaryData.fromString( - "{\"replicationId\":\"pcqeqx\",\"endpointType\":\"src\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"zxctobgb\",\"remotePath\":{\"externalHostName\":\"moizpos\",\"serverName\":\"mgrcfbu\",\"volumeName\":\"rmfqjhhkxbpvj\"},\"remoteVolumeRegion\":\"jhxxjyn\",\"destinationReplications\":[{\"resourceId\":\"vkr\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"xqzvszjfa\",\"zone\":\"j\"},{\"resourceId\":\"xxivetv\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"qtdo\",\"zone\":\"cbxvwvxyslqbh\"}],\"externalReplicationSetupStatus\":\"ClusterPeerRequired\",\"externalReplicationSetupInfo\":\"blytk\",\"mirrorState\":\"Uninitialized\",\"relationshipStatus\":\"Transferring\"}") + "{\"replicationId\":\"jektcxsenh\",\"endpointType\":\"dst\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"rzpwvlqdqgbiq\",\"remotePath\":{\"externalHostName\":\"ihkaetcktvfc\",\"serverName\":\"vf\",\"volumeName\":\"nkymuctqhjfbebrj\"},\"remoteVolumeRegion\":\"erfuwuttt\",\"destinationReplications\":[{\"resourceId\":\"rbirphxe\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"ahfn\",\"zone\":\"kyqxjvuujqgidokg\"},{\"resourceId\":\"jyoxgvclt\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"c\",\"zone\":\"kjeszz\"},{\"resourceId\":\"ijhtxf\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"fsm\",\"zone\":\"eh\"},{\"resourceId\":\"vecxgodebfqkk\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"ukgri\",\"zone\":\"lzlfbxzpuz\"}]}") .toObject(ReplicationObject.class); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule()); - Assertions.assertEquals("zxctobgb", model.remoteVolumeResourceId()); - Assertions.assertEquals("moizpos", model.remotePath().externalHostname()); - Assertions.assertEquals("mgrcfbu", model.remotePath().serverName()); - Assertions.assertEquals("rmfqjhhkxbpvj", model.remotePath().volumeName()); - Assertions.assertEquals("jhxxjyn", model.remoteVolumeRegion()); + Assertions.assertEquals(ReplicationSchedule.DAILY, model.replicationSchedule()); + Assertions.assertEquals("rzpwvlqdqgbiq", model.remoteVolumeResourceId()); + Assertions.assertEquals("ihkaetcktvfc", model.remotePath().externalHostname()); + Assertions.assertEquals("vf", model.remotePath().serverName()); + Assertions.assertEquals("nkymuctqhjfbebrj", model.remotePath().volumeName()); + Assertions.assertEquals("erfuwuttt", model.remoteVolumeRegion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ReplicationObject model = new ReplicationObject().withReplicationSchedule(ReplicationSchedule.HOURLY) - .withRemoteVolumeResourceId("zxctobgb") - .withRemotePath(new RemotePath().withExternalHostname("moizpos") - .withServerName("mgrcfbu") - .withVolumeName("rmfqjhhkxbpvj")) - .withRemoteVolumeRegion("jhxxjyn"); + ReplicationObject model = new ReplicationObject().withReplicationSchedule(ReplicationSchedule.DAILY) + .withRemoteVolumeResourceId("rzpwvlqdqgbiq") + .withRemotePath(new RemotePath().withExternalHostname("ihkaetcktvfc") + .withServerName("vf") + .withVolumeName("nkymuctqhjfbebrj")) + .withRemoteVolumeRegion("erfuwuttt"); model = BinaryData.fromObject(model).toObject(ReplicationObject.class); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule()); - Assertions.assertEquals("zxctobgb", model.remoteVolumeResourceId()); - Assertions.assertEquals("moizpos", model.remotePath().externalHostname()); - Assertions.assertEquals("mgrcfbu", model.remotePath().serverName()); - Assertions.assertEquals("rmfqjhhkxbpvj", model.remotePath().volumeName()); - Assertions.assertEquals("jhxxjyn", model.remoteVolumeRegion()); + Assertions.assertEquals(ReplicationSchedule.DAILY, model.replicationSchedule()); + Assertions.assertEquals("rzpwvlqdqgbiq", model.remoteVolumeResourceId()); + Assertions.assertEquals("ihkaetcktvfc", model.remotePath().externalHostname()); + Assertions.assertEquals("vf", model.remotePath().serverName()); + Assertions.assertEquals("nkymuctqhjfbebrj", model.remotePath().volumeName()); + Assertions.assertEquals("erfuwuttt", 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 index 2ab6cb108cf8..573ef90db96a 100644 --- 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 @@ -1,36 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; +import com.azure.resourcemanager.netapp.models.MirrorState; +import com.azure.resourcemanager.netapp.models.VolumeReplicationRelationshipStatus; 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\":\"Idle\",\"mirrorState\":\"Mirrored\",\"totalProgress\":\"enwash\",\"errorMessage\":\"dtkcnqxwbpokulp\"}") + "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Uninitialized\",\"totalProgress\":\"qp\",\"errorMessage\":\"indoygmifthnzd\"}") .toObject(ReplicationStatusInner.class); Assertions.assertTrue(model.healthy()); - Assertions.assertEquals(RelationshipStatus.IDLE, model.relationshipStatus()); - Assertions.assertEquals("enwash", model.totalProgress()); - Assertions.assertEquals("dtkcnqxwbpokulp", model.errorMessage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationStatusInner model = new ReplicationStatusInner().withHealthy(true) - .withRelationshipStatus(RelationshipStatus.IDLE) - .withTotalProgress("enwash") - .withErrorMessage("dtkcnqxwbpokulp"); - model = BinaryData.fromObject(model).toObject(ReplicationStatusInner.class); - Assertions.assertTrue(model.healthy()); - Assertions.assertEquals(RelationshipStatus.IDLE, model.relationshipStatus()); - Assertions.assertEquals("enwash", model.totalProgress()); - Assertions.assertEquals("dtkcnqxwbpokulp", model.errorMessage()); + Assertions.assertEquals(VolumeReplicationRelationshipStatus.TRANSFERRING, model.relationshipStatus()); + Assertions.assertEquals(MirrorState.UNINITIALIZED, model.mirrorState()); + Assertions.assertEquals("qp", model.totalProgress()); + Assertions.assertEquals("indoygmifthnzd", 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 index b43509c46a21..4e5cec8298cf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,23 +13,23 @@ public final class ResourceNameAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceNameAvailabilityRequest model = BinaryData.fromString( - "{\"name\":\"xhejjzzvdud\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes\",\"resourceGroup\":\"dslfhotwmcy\"}") + "{\"name\":\"laecxndticok\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots\",\"resourceGroup\":\"zmlqtmldgxo\"}") .toObject(ResourceNameAvailabilityRequest.class); - Assertions.assertEquals("xhejjzzvdud", model.name()); - Assertions.assertEquals(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES, - model.type()); - Assertions.assertEquals("dslfhotwmcy", model.resourceGroup()); + Assertions.assertEquals("laecxndticok", model.name()); + Assertions.assertEquals( + CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, model.type()); + Assertions.assertEquals("zmlqtmldgxo", model.resourceGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceNameAvailabilityRequest model = new ResourceNameAvailabilityRequest().withName("xhejjzzvdud") - .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES) - .withResourceGroup("dslfhotwmcy"); + ResourceNameAvailabilityRequest model = new ResourceNameAvailabilityRequest().withName("laecxndticok") + .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS) + .withResourceGroup("zmlqtmldgxo"); model = BinaryData.fromObject(model).toObject(ResourceNameAvailabilityRequest.class); - Assertions.assertEquals("xhejjzzvdud", model.name()); - Assertions.assertEquals(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES, - model.type()); - Assertions.assertEquals("dslfhotwmcy", model.resourceGroup()); + Assertions.assertEquals("laecxndticok", model.name()); + Assertions.assertEquals( + CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, model.type()); + Assertions.assertEquals("zmlqtmldgxo", 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 index c13d3bb89db6..59c35191209c 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,13 +11,7 @@ public final class RestoreStatusInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestoreStatusInner model = BinaryData.fromString( - "{\"healthy\":true,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"o\",\"errorMessage\":\"jw\",\"totalTransferBytes\":4972912184284980492}") + "{\"healthy\":false,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Uninitialized\",\"unhealthyReason\":\"bkpyc\",\"errorMessage\":\"lwn\",\"totalTransferBytes\":4447451036511336103}") .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 index a504edf2049a..ea63bf00844e 100644 --- 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 @@ -1,16 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.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 { @@ -41,72 +37,4 @@ public void testDeserialize() throws Exception { Assertions.assertEquals("qciwqvhkhixuigdt", model.logSpecifications().get(0).name()); Assertions.assertEquals("bob", 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("zcxtbzsgfyccsn") - .withDisplayName("mdwzjeiachboo") - .withDisplayDescription("lnrosfqp") - .withUnit("ehzzvypyqrim") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("dkirsoodqxhcr", "nohjt", "kwh")) - .withInternalMetricName("oifiyipjxsqwpgr") - .withEnableRegionalMdmAccount(false) - .withSourceMdmAccount("orcjxvsnby") - .withSourceMdmNamespace("abnmocpcyshu") - .withDimensions(Arrays.asList(new Dimension().withName("bl").withDisplayName("gpbtoqcjmklj"), - new Dimension().withName("bqidtqaj").withDisplayName("ulpkudjkrl"), - new Dimension().withName("bzhfepgzgqexz").withDisplayName("c"), - new Dimension().withName("c").withDisplayName("ierhhbcsglummaj"))) - .withAggregationType("aodxo") - .withFillGapWithZero(true) - .withCategory("xkqpxo") - .withResourceIdDimensionNameOverride("jionpimexgstxgc") - .withIsInternal(false), - new MetricSpecification().withName("maajrmvdjwzrlo") - .withDisplayName("clwhijcoejctbz") - .withDisplayDescription("s") - .withUnit("y") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("ukdkexxppofmxa", "c", "jpgd")) - .withInternalMetricName("ocjjxhvpmouexh") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("bqe") - .withSourceMdmNamespace("nxqbzvddn") - .withDimensions(Arrays.asList(new Dimension().withName("eic").withDisplayName("w"))) - .withAggregationType("zao") - .withFillGapWithZero(true) - .withCategory("rhcffcydd") - .withResourceIdDimensionNameOverride("mjthjqkwp") - .withIsInternal(false))) - .withLogSpecifications( - Arrays.asList(new LogSpecification().withName("qciwqvhkhixuigdt").withDisplayName("bob"), - new LogSpecification().withName("ghmewuam").withDisplayName("hrzayvvtpgvdf"))); - model = BinaryData.fromObject(model).toObject(ServiceSpecification.class); - Assertions.assertEquals("zcxtbzsgfyccsn", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("mdwzjeiachboo", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("lnrosfqp", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("ehzzvypyqrim", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("dkirsoodqxhcr", model.metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("oifiyipjxsqwpgr", model.metricSpecifications().get(0).internalMetricName()); - Assertions.assertFalse(model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("orcjxvsnby", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("abnmocpcyshu", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("bl", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("gpbtoqcjmklj", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("aodxo", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertTrue(model.metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("xkqpxo", model.metricSpecifications().get(0).category()); - Assertions.assertEquals("jionpimexgstxgc", - model.metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertFalse(model.metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("qciwqvhkhixuigdt", model.logSpecifications().get(0).name()); - Assertions.assertEquals("bob", 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 index f5b6a9b4d9db..0a4ad36b182a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,15 +12,15 @@ public final class SnapshotInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotInner model = BinaryData.fromString( - "{\"location\":\"qgxqquezikyw\",\"properties\":{\"snapshotId\":\"kallatmel\",\"created\":\"2021-06-18T06:04:26Z\",\"provisioningState\":\"iccjzkzivgvvcna\"},\"id\":\"hyrnxxmu\",\"name\":\"edndr\",\"type\":\"v\"}") + "{\"properties\":{\"snapshotId\":\"mbes\",\"created\":\"2021-02-14T02:40:27Z\",\"provisioningState\":\"wwtppj\"},\"location\":\"lcxog\",\"id\":\"konzmnsik\",\"name\":\"mkqzeqqkdltfzxmh\",\"type\":\"v\"}") .toObject(SnapshotInner.class); - Assertions.assertEquals("qgxqquezikyw", model.location()); + Assertions.assertEquals("lcxog", model.location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SnapshotInner model = new SnapshotInner().withLocation("qgxqquezikyw"); + SnapshotInner model = new SnapshotInner().withLocation("lcxog"); model = BinaryData.fromObject(model).toObject(SnapshotInner.class); - Assertions.assertEquals("qgxqquezikyw", model.location()); + Assertions.assertEquals("lcxog", model.location()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java index 3cffd312bdfd..1acd07e1fc7f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -27,7 +27,7 @@ public final class SnapshotPoliciesCreateWithResponseMockTests { @Test public void testCreateWithResponse() throws Exception { String responseStr - = "{\"etag\":\"kyefchnmnahmnxhk\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1375223336,\"minute\":1523309198,\"usedBytes\":6875461100902154029},\"dailySchedule\":{\"snapshotsToKeep\":1025524893,\"hour\":641060199,\"minute\":1908059989,\"usedBytes\":6980954745708555342},\"weeklySchedule\":{\"snapshotsToKeep\":109793124,\"day\":\"wmozqvbub\",\"hour\":1359553105,\"minute\":584332320,\"usedBytes\":4252712587815072260},\"monthlySchedule\":{\"snapshotsToKeep\":459336606,\"daysOfMonth\":\"gaztt\",\"hour\":184475150,\"minute\":459855545,\"usedBytes\":3462457286901025092},\"enabled\":true,\"provisioningState\":\"pubowsepdfg\"},\"location\":\"tdherngbtcjuahok\",\"tags\":{\"ofshfphwpnulaiyw\":\"bkau\",\"ywhslwkojpllndnp\":\"e\",\"yetefyp\":\"wrpqafgfugsnnf\"},\"id\":\"coc\",\"name\":\"fjgtixrjvzuy\",\"type\":\"urmlmuo\"}"; + = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":139843072,\"minute\":184999250,\"usedBytes\":671480520917844064},\"dailySchedule\":{\"snapshotsToKeep\":1286205076,\"hour\":1685347257,\"minute\":1978421071,\"usedBytes\":5949517522965784982},\"weeklySchedule\":{\"snapshotsToKeep\":521658697,\"day\":\"sehaohdjhhflzok\",\"hour\":434777672,\"minute\":94741475,\"usedBytes\":947940587713808603},\"monthlySchedule\":{\"snapshotsToKeep\":699384305,\"daysOfMonth\":\"gltsxoat\",\"hour\":184618447,\"minute\":1097989023,\"usedBytes\":6123043499529132871},\"enabled\":true,\"provisioningState\":\"e\"},\"etag\":\"occsr\",\"location\":\"zihmipgawtxxpky\",\"tags\":{\"pcycilrmcaykg\":\"cjxgrytf\",\"pndfcpfnznt\":\"noxuztrksx\",\"xuzvoamktcqi\":\"jtwkjaos\",\"rtltla\":\"smgbzahgxqdl\"},\"id\":\"rltzkatbhjmz\",\"name\":\"nbsoqeqalarv\",\"type\":\"agunbtgfebw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,49 +37,49 @@ public void testCreateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SnapshotPolicy response = manager.snapshotPolicies() - .define("xgjiuqh") - .withRegion("pofoi") - .withExistingNetAppAccount("phdu", "neiknpg") - .withTags(mapOf("ilkmk", "p")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1063877777) - .withMinute(189610286) - .withUsedBytes(994426263609562850L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(783540465) - .withHour(2101350417) - .withMinute(1212082891) - .withUsedBytes(2313274218462985682L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(455213677) - .withDay("o") - .withHour(172898691) - .withMinute(726864279) - .withUsedBytes(5332986278611814316L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(125495169) - .withDaysOfMonth("xoe") - .withHour(189021776) - .withMinute(1567586671) - .withUsedBytes(9143156260970924467L)) - .withEnabled(false) + .define("yinljqe") + .withRegion("tbxqmuluxlxq") + .withExistingNetAppAccount("mxswvruunzz", "gehkfkimrtixokff") + .withTags(mapOf("ycucrwnamikzeb", "ers", "ziqgfuh", "qbsms")) + .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(400692388) + .withMinute(117552544) + .withUsedBytes(4999588293339147648L)) + .withDailySchedule(new DailySchedule().withSnapshotsToKeep(927727255) + .withHour(171287650) + .withMinute(2112276373) + .withUsedBytes(8975179932311001443L)) + .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1153037194) + .withDay("du") + .withHour(1806892496) + .withMinute(667519337) + .withUsedBytes(3451295234524077317L)) + .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1949096000) + .withDaysOfMonth("b") + .withHour(1840305152) + .withMinute(1547135133) + .withUsedBytes(8260240583130824742L)) + .withEnabled(true) .create(); - Assertions.assertEquals("tdherngbtcjuahok", response.location()); - Assertions.assertEquals("bkau", response.tags().get("ofshfphwpnulaiyw")); - Assertions.assertEquals(1375223336, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1523309198, response.hourlySchedule().minute()); - Assertions.assertEquals(6875461100902154029L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(1025524893, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(641060199, response.dailySchedule().hour()); - Assertions.assertEquals(1908059989, response.dailySchedule().minute()); - Assertions.assertEquals(6980954745708555342L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(109793124, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("wmozqvbub", response.weeklySchedule().day()); - Assertions.assertEquals(1359553105, response.weeklySchedule().hour()); - Assertions.assertEquals(584332320, response.weeklySchedule().minute()); - Assertions.assertEquals(4252712587815072260L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(459336606, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("gaztt", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(184475150, response.monthlySchedule().hour()); - Assertions.assertEquals(459855545, response.monthlySchedule().minute()); - Assertions.assertEquals(3462457286901025092L, response.monthlySchedule().usedBytes()); + Assertions.assertEquals("zihmipgawtxxpky", response.location()); + Assertions.assertEquals("cjxgrytf", response.tags().get("pcycilrmcaykg")); + Assertions.assertEquals(139843072, response.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(184999250, response.hourlySchedule().minute()); + Assertions.assertEquals(671480520917844064L, response.hourlySchedule().usedBytes()); + Assertions.assertEquals(1286205076, response.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(1685347257, response.dailySchedule().hour()); + Assertions.assertEquals(1978421071, response.dailySchedule().minute()); + Assertions.assertEquals(5949517522965784982L, response.dailySchedule().usedBytes()); + Assertions.assertEquals(521658697, response.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("sehaohdjhhflzok", response.weeklySchedule().day()); + Assertions.assertEquals(434777672, response.weeklySchedule().hour()); + Assertions.assertEquals(94741475, response.weeklySchedule().minute()); + Assertions.assertEquals(947940587713808603L, response.weeklySchedule().usedBytes()); + Assertions.assertEquals(699384305, response.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("gltsxoat", response.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(184618447, response.monthlySchedule().hour()); + Assertions.assertEquals(1097989023, response.monthlySchedule().minute()); + Assertions.assertEquals(6123043499529132871L, response.monthlySchedule().usedBytes()); Assertions.assertTrue(response.enabled()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java index e56421a76a72..c43c7b3bf24d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.snapshotPolicies().delete("fr", "xousxauzl", "vsg", com.azure.core.util.Context.NONE); + manager.snapshotPolicies().delete("m", "dmspof", "pv", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java index 35bbf56b065b..f62e1920429d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class SnapshotPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"etag\":\"ubcpzgpxti\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1447599159,\"minute\":666978054,\"usedBytes\":3056575382713445212},\"dailySchedule\":{\"snapshotsToKeep\":1035678028,\"hour\":2098514959,\"minute\":110670070,\"usedBytes\":7717455974347272022},\"weeklySchedule\":{\"snapshotsToKeep\":1614297715,\"day\":\"pikqmh\",\"hour\":1148372917,\"minute\":200690953,\"usedBytes\":7097521120621616769},\"monthlySchedule\":{\"snapshotsToKeep\":2093217192,\"daysOfMonth\":\"rqzdfuydzvkfvx\",\"hour\":976662726,\"minute\":1675068224,\"usedBytes\":2350782477198178194},\"enabled\":true,\"provisioningState\":\"mvkhlggd\"},\"location\":\"em\",\"tags\":{\"ljfp\":\"zszuwiwtglxx\"},\"id\":\"picrmnzhrgmqgjsx\",\"name\":\"pqcbfrmbodthsq\",\"type\":\"gvriibakclac\"}"; + = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":122939434,\"minute\":107099927,\"usedBytes\":284285859613384184},\"dailySchedule\":{\"snapshotsToKeep\":1504701395,\"hour\":494637597,\"minute\":1759230509,\"usedBytes\":3362274562531904097},\"weeklySchedule\":{\"snapshotsToKeep\":669649169,\"day\":\"xmvwfg\",\"hour\":1895835136,\"minute\":414360047,\"usedBytes\":4367486194556700788},\"monthlySchedule\":{\"snapshotsToKeep\":1417437720,\"daysOfMonth\":\"lzqnhcvs\",\"hour\":1417564823,\"minute\":1936009218,\"usedBytes\":2855783179854311369},\"enabled\":false,\"provisioningState\":\"gnxf\"},\"etag\":\"onmpqoxwdof\",\"location\":\"xiqxeiiqbimh\",\"tags\":{\"vwbcblembnkbwv\":\"winhehfqpo\",\"uwfmduragegizvc\":\"vxkdivqihebwtswb\"},\"id\":\"felisdjub\",\"name\":\"gbqi\",\"type\":\"kxkbsazgakgacyr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,28 +31,28 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SnapshotPolicy response = manager.snapshotPolicies() - .getWithResponse("aglqivbgkcvkh", "zvuqdflvon", "yp", com.azure.core.util.Context.NONE) + .getWithResponse("aivmxyasflvgs", "zwywako", "hknsmjbl", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("em", response.location()); - Assertions.assertEquals("zszuwiwtglxx", response.tags().get("ljfp")); - Assertions.assertEquals(1447599159, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(666978054, response.hourlySchedule().minute()); - Assertions.assertEquals(3056575382713445212L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(1035678028, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(2098514959, response.dailySchedule().hour()); - Assertions.assertEquals(110670070, response.dailySchedule().minute()); - Assertions.assertEquals(7717455974347272022L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(1614297715, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("pikqmh", response.weeklySchedule().day()); - Assertions.assertEquals(1148372917, response.weeklySchedule().hour()); - Assertions.assertEquals(200690953, response.weeklySchedule().minute()); - Assertions.assertEquals(7097521120621616769L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(2093217192, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("rqzdfuydzvkfvx", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(976662726, response.monthlySchedule().hour()); - Assertions.assertEquals(1675068224, response.monthlySchedule().minute()); - Assertions.assertEquals(2350782477198178194L, response.monthlySchedule().usedBytes()); - Assertions.assertTrue(response.enabled()); + Assertions.assertEquals("xiqxeiiqbimh", response.location()); + Assertions.assertEquals("winhehfqpo", response.tags().get("vwbcblembnkbwv")); + Assertions.assertEquals(122939434, response.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(107099927, response.hourlySchedule().minute()); + Assertions.assertEquals(284285859613384184L, response.hourlySchedule().usedBytes()); + Assertions.assertEquals(1504701395, response.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(494637597, response.dailySchedule().hour()); + Assertions.assertEquals(1759230509, response.dailySchedule().minute()); + Assertions.assertEquals(3362274562531904097L, response.dailySchedule().usedBytes()); + Assertions.assertEquals(669649169, response.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("xmvwfg", response.weeklySchedule().day()); + Assertions.assertEquals(1895835136, response.weeklySchedule().hour()); + Assertions.assertEquals(414360047, response.weeklySchedule().minute()); + Assertions.assertEquals(4367486194556700788L, response.weeklySchedule().usedBytes()); + Assertions.assertEquals(1417437720, response.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("lzqnhcvs", response.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(1417564823, response.monthlySchedule().hour()); + Assertions.assertEquals(1936009218, response.monthlySchedule().minute()); + Assertions.assertEquals(2855783179854311369L, response.monthlySchedule().usedBytes()); + Assertions.assertFalse(response.enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java index 21133bec0cea..fcbf91f0d1e5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class SnapshotPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"etag\":\"gxffmshkwf\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1874784092,\"minute\":1139944911,\"usedBytes\":3706323507119701161},\"dailySchedule\":{\"snapshotsToKeep\":530743618,\"hour\":29760646,\"minute\":1805819824,\"usedBytes\":7577684278453969496},\"weeklySchedule\":{\"snapshotsToKeep\":1182183471,\"day\":\"xbiygnugjknfsmf\",\"hour\":801406490,\"minute\":1703966020,\"usedBytes\":8661454181197474572},\"monthlySchedule\":{\"snapshotsToKeep\":1037919815,\"daysOfMonth\":\"qoiquvrehmrnjhv\",\"hour\":14202620,\"minute\":455910755,\"usedBytes\":7457236027788701363},\"enabled\":false,\"provisioningState\":\"t\"},\"location\":\"auunfprnjletlx\",\"tags\":{\"nlqwzdvpiwhx\":\"pddouifamowaziyn\",\"xylrjvmtygjbmz\":\"szdtmaajquh\",\"yjpmspbpssdfppyo\":\"ospspshckf\"},\"id\":\"tieyujtvczkcny\",\"name\":\"rxmunjdxvgln\",\"type\":\"vxlx\"}]}"; + = "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":162758827,\"minute\":1553181859,\"usedBytes\":9014985599249156768},\"dailySchedule\":{\"snapshotsToKeep\":2051570067,\"hour\":1363158856,\"minute\":140033236,\"usedBytes\":6172562275136277207},\"weeklySchedule\":{\"snapshotsToKeep\":1720434943,\"day\":\"ibmikostbzb\",\"hour\":1151685721,\"minute\":775922838,\"usedBytes\":201396794516817899},\"monthlySchedule\":{\"snapshotsToKeep\":1310458507,\"daysOfMonth\":\"fy\",\"hour\":200835193,\"minute\":362710224,\"usedBytes\":8706735414371355551},\"enabled\":false,\"provisioningState\":\"ezzcez\"},\"etag\":\"fwyfwlwxjwet\",\"location\":\"sihclafzvaylp\",\"tags\":{\"mwqkchcxwaxf\":\"qqwzt\"},\"id\":\"w\",\"name\":\"jkjexf\",\"type\":\"eqvhpsylkk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,27 +32,27 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.snapshotPolicies().list("bglbyvict", "tbrxkjz", com.azure.core.util.Context.NONE); + = manager.snapshotPolicies().list("hryl", "iofrzgbzjedmstk", com.azure.core.util.Context.NONE); - Assertions.assertEquals("auunfprnjletlx", response.iterator().next().location()); - Assertions.assertEquals("pddouifamowaziyn", response.iterator().next().tags().get("nlqwzdvpiwhx")); - Assertions.assertEquals(1874784092, response.iterator().next().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1139944911, response.iterator().next().hourlySchedule().minute()); - Assertions.assertEquals(3706323507119701161L, response.iterator().next().hourlySchedule().usedBytes()); - Assertions.assertEquals(530743618, response.iterator().next().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(29760646, response.iterator().next().dailySchedule().hour()); - Assertions.assertEquals(1805819824, response.iterator().next().dailySchedule().minute()); - Assertions.assertEquals(7577684278453969496L, response.iterator().next().dailySchedule().usedBytes()); - Assertions.assertEquals(1182183471, response.iterator().next().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("xbiygnugjknfsmf", response.iterator().next().weeklySchedule().day()); - Assertions.assertEquals(801406490, response.iterator().next().weeklySchedule().hour()); - Assertions.assertEquals(1703966020, response.iterator().next().weeklySchedule().minute()); - Assertions.assertEquals(8661454181197474572L, response.iterator().next().weeklySchedule().usedBytes()); - Assertions.assertEquals(1037919815, response.iterator().next().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("qoiquvrehmrnjhv", response.iterator().next().monthlySchedule().daysOfMonth()); - Assertions.assertEquals(14202620, response.iterator().next().monthlySchedule().hour()); - Assertions.assertEquals(455910755, response.iterator().next().monthlySchedule().minute()); - Assertions.assertEquals(7457236027788701363L, response.iterator().next().monthlySchedule().usedBytes()); + Assertions.assertEquals("sihclafzvaylp", response.iterator().next().location()); + Assertions.assertEquals("qqwzt", response.iterator().next().tags().get("mwqkchcxwaxf")); + Assertions.assertEquals(162758827, response.iterator().next().hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(1553181859, response.iterator().next().hourlySchedule().minute()); + Assertions.assertEquals(9014985599249156768L, response.iterator().next().hourlySchedule().usedBytes()); + Assertions.assertEquals(2051570067, response.iterator().next().dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(1363158856, response.iterator().next().dailySchedule().hour()); + Assertions.assertEquals(140033236, response.iterator().next().dailySchedule().minute()); + Assertions.assertEquals(6172562275136277207L, response.iterator().next().dailySchedule().usedBytes()); + Assertions.assertEquals(1720434943, response.iterator().next().weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("ibmikostbzb", response.iterator().next().weeklySchedule().day()); + Assertions.assertEquals(1151685721, response.iterator().next().weeklySchedule().hour()); + Assertions.assertEquals(775922838, response.iterator().next().weeklySchedule().minute()); + Assertions.assertEquals(201396794516817899L, response.iterator().next().weeklySchedule().usedBytes()); + Assertions.assertEquals(1310458507, response.iterator().next().monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("fy", response.iterator().next().monthlySchedule().daysOfMonth()); + Assertions.assertEquals(200835193, response.iterator().next().monthlySchedule().hour()); + Assertions.assertEquals(362710224, response.iterator().next().monthlySchedule().minute()); + Assertions.assertEquals(8706735414371355551L, response.iterator().next().monthlySchedule().usedBytes()); Assertions.assertFalse(response.iterator().next().enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java index 0026bf18aaca..377a26ca1754 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java @@ -1,104 +1,39 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.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 com.azure.resourcemanager.netapp.implementation.models.SnapshotPoliciesList; 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\":\"kghimdblxgwimfnj\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":510557599,\"minute\":1675220188,\"usedBytes\":1198847986383751038},\"dailySchedule\":{\"snapshotsToKeep\":1767053067,\"hour\":739435613,\"minute\":1563203885,\"usedBytes\":8338807266312513089},\"weeklySchedule\":{\"snapshotsToKeep\":1648570452,\"day\":\"aw\",\"hour\":113630721,\"minute\":841259449,\"usedBytes\":9051460600298746000},\"monthlySchedule\":{\"snapshotsToKeep\":220414413,\"daysOfMonth\":\"c\",\"hour\":1974208739,\"minute\":833171610,\"usedBytes\":2411008459227076557},\"enabled\":true,\"provisioningState\":\"abfatkl\"},\"location\":\"xbjhwuaanozjosph\",\"tags\":{\"jrvxaglrv\":\"l\",\"tcs\":\"mjwosytx\"},\"id\":\"fcktqumiekke\",\"name\":\"zikhl\",\"type\":\"fjhdg\"}]}") + "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1525827841,\"minute\":984158144,\"usedBytes\":8989578588874797078},\"dailySchedule\":{\"snapshotsToKeep\":1343129600,\"hour\":533630159,\"minute\":761467477,\"usedBytes\":6830630218833714201},\"weeklySchedule\":{\"snapshotsToKeep\":1512461872,\"day\":\"qiiobyuqer\",\"hour\":270206644,\"minute\":2131221175,\"usedBytes\":5523285325646920804},\"monthlySchedule\":{\"snapshotsToKeep\":1945025825,\"daysOfMonth\":\"bdbutauvf\",\"hour\":1152975758,\"minute\":468710648,\"usedBytes\":436852010695338274},\"enabled\":true,\"provisioningState\":\"ojoxafnndlp\"},\"etag\":\"hkoymkcdyhbp\",\"location\":\"pwdreqnovvqf\",\"tags\":{\"rsndsytgadgvra\":\"jxywsuws\",\"uu\":\"aeneqnzarrwl\"},\"id\":\"jfqka\",\"name\":\"e\",\"type\":\"iipfpubj\"},{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1113434704,\"minute\":254804801,\"usedBytes\":6753222489346190909},\"dailySchedule\":{\"snapshotsToKeep\":1368625669,\"hour\":2128432962,\"minute\":1615767806,\"usedBytes\":2110068594447415749},\"weeklySchedule\":{\"snapshotsToKeep\":1931540064,\"day\":\"nynfsynljphuo\",\"hour\":415163187,\"minute\":951463794,\"usedBytes\":3252607462843621148},\"monthlySchedule\":{\"snapshotsToKeep\":1759738487,\"daysOfMonth\":\"zihleosjswsr\",\"hour\":2109654936,\"minute\":1326847440,\"usedBytes\":6943996810549393659},\"enabled\":false,\"provisioningState\":\"ckqqzqioxiysui\"},\"etag\":\"ynkedyatrwyhqmib\",\"location\":\"hwit\",\"tags\":{\"pcdpumnz\":\"pyy\",\"abikns\":\"mwzn\",\"dtlwwrlkd\":\"rgjhxb\",\"lxdy\":\"tncvokot\"},\"id\":\"gsyocogj\",\"name\":\"tdtbnnhadooc\",\"type\":\"kvci\"}],\"nextLink\":\"nvpamq\"}") .toObject(SnapshotPoliciesList.class); - Assertions.assertEquals("xbjhwuaanozjosph", model.value().get(0).location()); - Assertions.assertEquals("l", model.value().get(0).tags().get("jrvxaglrv")); - Assertions.assertEquals(510557599, model.value().get(0).hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1675220188, model.value().get(0).hourlySchedule().minute()); - Assertions.assertEquals(1198847986383751038L, model.value().get(0).hourlySchedule().usedBytes()); - Assertions.assertEquals(1767053067, model.value().get(0).dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(739435613, model.value().get(0).dailySchedule().hour()); - Assertions.assertEquals(1563203885, model.value().get(0).dailySchedule().minute()); - Assertions.assertEquals(8338807266312513089L, model.value().get(0).dailySchedule().usedBytes()); - Assertions.assertEquals(1648570452, model.value().get(0).weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("aw", model.value().get(0).weeklySchedule().day()); - Assertions.assertEquals(113630721, model.value().get(0).weeklySchedule().hour()); - Assertions.assertEquals(841259449, model.value().get(0).weeklySchedule().minute()); - Assertions.assertEquals(9051460600298746000L, model.value().get(0).weeklySchedule().usedBytes()); - Assertions.assertEquals(220414413, model.value().get(0).monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("c", model.value().get(0).monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1974208739, model.value().get(0).monthlySchedule().hour()); - Assertions.assertEquals(833171610, model.value().get(0).monthlySchedule().minute()); - Assertions.assertEquals(2411008459227076557L, model.value().get(0).monthlySchedule().usedBytes()); + Assertions.assertEquals("pwdreqnovvqf", model.value().get(0).location()); + Assertions.assertEquals("jxywsuws", model.value().get(0).tags().get("rsndsytgadgvra")); + Assertions.assertEquals(1525827841, model.value().get(0).hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(984158144, model.value().get(0).hourlySchedule().minute()); + Assertions.assertEquals(8989578588874797078L, model.value().get(0).hourlySchedule().usedBytes()); + Assertions.assertEquals(1343129600, model.value().get(0).dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(533630159, model.value().get(0).dailySchedule().hour()); + Assertions.assertEquals(761467477, model.value().get(0).dailySchedule().minute()); + Assertions.assertEquals(6830630218833714201L, model.value().get(0).dailySchedule().usedBytes()); + Assertions.assertEquals(1512461872, model.value().get(0).weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("qiiobyuqer", model.value().get(0).weeklySchedule().day()); + Assertions.assertEquals(270206644, model.value().get(0).weeklySchedule().hour()); + Assertions.assertEquals(2131221175, model.value().get(0).weeklySchedule().minute()); + Assertions.assertEquals(5523285325646920804L, model.value().get(0).weeklySchedule().usedBytes()); + Assertions.assertEquals(1945025825, model.value().get(0).monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("bdbutauvf", model.value().get(0).monthlySchedule().daysOfMonth()); + Assertions.assertEquals(1152975758, model.value().get(0).monthlySchedule().hour()); + Assertions.assertEquals(468710648, model.value().get(0).monthlySchedule().minute()); + Assertions.assertEquals(436852010695338274L, model.value().get(0).monthlySchedule().usedBytes()); Assertions.assertTrue(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("xbjhwuaanozjosph") - .withTags(mapOf("jrvxaglrv", "l", "tcs", "mjwosytx")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(510557599) - .withMinute(1675220188) - .withUsedBytes(1198847986383751038L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1767053067) - .withHour(739435613) - .withMinute(1563203885) - .withUsedBytes(8338807266312513089L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1648570452) - .withDay("aw") - .withHour(113630721) - .withMinute(841259449) - .withUsedBytes(9051460600298746000L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(220414413) - .withDaysOfMonth("c") - .withHour(1974208739) - .withMinute(833171610) - .withUsedBytes(2411008459227076557L)) - .withEnabled(true))); - model = BinaryData.fromObject(model).toObject(SnapshotPoliciesList.class); - Assertions.assertEquals("xbjhwuaanozjosph", model.value().get(0).location()); - Assertions.assertEquals("l", model.value().get(0).tags().get("jrvxaglrv")); - Assertions.assertEquals(510557599, model.value().get(0).hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1675220188, model.value().get(0).hourlySchedule().minute()); - Assertions.assertEquals(1198847986383751038L, model.value().get(0).hourlySchedule().usedBytes()); - Assertions.assertEquals(1767053067, model.value().get(0).dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(739435613, model.value().get(0).dailySchedule().hour()); - Assertions.assertEquals(1563203885, model.value().get(0).dailySchedule().minute()); - Assertions.assertEquals(8338807266312513089L, model.value().get(0).dailySchedule().usedBytes()); - Assertions.assertEquals(1648570452, model.value().get(0).weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("aw", model.value().get(0).weeklySchedule().day()); - Assertions.assertEquals(113630721, model.value().get(0).weeklySchedule().hour()); - Assertions.assertEquals(841259449, model.value().get(0).weeklySchedule().minute()); - Assertions.assertEquals(9051460600298746000L, model.value().get(0).weeklySchedule().usedBytes()); - Assertions.assertEquals(220414413, model.value().get(0).monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("c", model.value().get(0).monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1974208739, model.value().get(0).monthlySchedule().hour()); - Assertions.assertEquals(833171610, model.value().get(0).monthlySchedule().minute()); - Assertions.assertEquals(2411008459227076557L, model.value().get(0).monthlySchedule().usedBytes()); - Assertions.assertTrue(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; + Assertions.assertEquals("nvpamq", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java index 8808313e6a23..bca83d9d7fe3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -18,72 +18,72 @@ public final class SnapshotPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotPolicyInner model = BinaryData.fromString( - "{\"etag\":\"gebdunygaeq\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1475802306,\"minute\":1233334035,\"usedBytes\":6620237582798297782},\"dailySchedule\":{\"snapshotsToKeep\":48002498,\"hour\":1459715111,\"minute\":2063960908,\"usedBytes\":8725801999952390480},\"weeklySchedule\":{\"snapshotsToKeep\":1120671201,\"day\":\"arm\",\"hour\":1679294493,\"minute\":522176461,\"usedBytes\":7091421984194372162},\"monthlySchedule\":{\"snapshotsToKeep\":1756269391,\"daysOfMonth\":\"yxxrwlycoduh\",\"hour\":1842821288,\"minute\":1440361385,\"usedBytes\":4645704067973725569},\"enabled\":true,\"provisioningState\":\"n\"},\"location\":\"xqugjhkycubedd\",\"tags\":{\"zqalkrmnjijpx\":\"ofwq\",\"byxbaaabjy\":\"cqqudf\",\"zrtuzq\":\"ayffim\",\"fdnw\":\"gsexne\"},\"id\":\"wmewzsyy\",\"name\":\"euzsoi\",\"type\":\"judpfrxt\"}") + "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1036395530,\"minute\":834040298,\"usedBytes\":1971349718738257268},\"dailySchedule\":{\"snapshotsToKeep\":571890155,\"hour\":2019789161,\"minute\":314213768,\"usedBytes\":1796224915838134100},\"weeklySchedule\":{\"snapshotsToKeep\":369872117,\"day\":\"owwquuvxz\",\"hour\":1447033048,\"minute\":2116821034,\"usedBytes\":2045084080849688226},\"monthlySchedule\":{\"snapshotsToKeep\":176578322,\"daysOfMonth\":\"osggbhc\",\"hour\":1150860999,\"minute\":1492751876,\"usedBytes\":8361434893170853179},\"enabled\":true,\"provisioningState\":\"jutiiswacff\"},\"etag\":\"k\",\"location\":\"ewkfvhqcrai\",\"tags\":{\"pfuflrw\":\"n\",\"lxyjr\":\"mh\"},\"id\":\"sag\",\"name\":\"fcnihgwq\",\"type\":\"pnedgf\"}") .toObject(SnapshotPolicyInner.class); - Assertions.assertEquals("xqugjhkycubedd", model.location()); - Assertions.assertEquals("ofwq", model.tags().get("zqalkrmnjijpx")); - Assertions.assertEquals(1475802306, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1233334035, model.hourlySchedule().minute()); - Assertions.assertEquals(6620237582798297782L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(48002498, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1459715111, model.dailySchedule().hour()); - Assertions.assertEquals(2063960908, model.dailySchedule().minute()); - Assertions.assertEquals(8725801999952390480L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(1120671201, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("arm", model.weeklySchedule().day()); - Assertions.assertEquals(1679294493, model.weeklySchedule().hour()); - Assertions.assertEquals(522176461, model.weeklySchedule().minute()); - Assertions.assertEquals(7091421984194372162L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(1756269391, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("yxxrwlycoduh", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1842821288, model.monthlySchedule().hour()); - Assertions.assertEquals(1440361385, model.monthlySchedule().minute()); - Assertions.assertEquals(4645704067973725569L, model.monthlySchedule().usedBytes()); + Assertions.assertEquals("ewkfvhqcrai", model.location()); + Assertions.assertEquals("n", model.tags().get("pfuflrw")); + Assertions.assertEquals(1036395530, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(834040298, model.hourlySchedule().minute()); + Assertions.assertEquals(1971349718738257268L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(571890155, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(2019789161, model.dailySchedule().hour()); + Assertions.assertEquals(314213768, model.dailySchedule().minute()); + Assertions.assertEquals(1796224915838134100L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(369872117, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("owwquuvxz", model.weeklySchedule().day()); + Assertions.assertEquals(1447033048, model.weeklySchedule().hour()); + Assertions.assertEquals(2116821034, model.weeklySchedule().minute()); + Assertions.assertEquals(2045084080849688226L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(176578322, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("osggbhc", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(1150860999, model.monthlySchedule().hour()); + Assertions.assertEquals(1492751876, model.monthlySchedule().minute()); + Assertions.assertEquals(8361434893170853179L, model.monthlySchedule().usedBytes()); Assertions.assertTrue(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SnapshotPolicyInner model = new SnapshotPolicyInner().withLocation("xqugjhkycubedd") - .withTags(mapOf("zqalkrmnjijpx", "ofwq", "byxbaaabjy", "cqqudf", "zrtuzq", "ayffim", "fdnw", "gsexne")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1475802306) - .withMinute(1233334035) - .withUsedBytes(6620237582798297782L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(48002498) - .withHour(1459715111) - .withMinute(2063960908) - .withUsedBytes(8725801999952390480L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1120671201) - .withDay("arm") - .withHour(1679294493) - .withMinute(522176461) - .withUsedBytes(7091421984194372162L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1756269391) - .withDaysOfMonth("yxxrwlycoduh") - .withHour(1842821288) - .withMinute(1440361385) - .withUsedBytes(4645704067973725569L)) + SnapshotPolicyInner model = new SnapshotPolicyInner().withLocation("ewkfvhqcrai") + .withTags(mapOf("pfuflrw", "n", "lxyjr", "mh")) + .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1036395530) + .withMinute(834040298) + .withUsedBytes(1971349718738257268L)) + .withDailySchedule(new DailySchedule().withSnapshotsToKeep(571890155) + .withHour(2019789161) + .withMinute(314213768) + .withUsedBytes(1796224915838134100L)) + .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(369872117) + .withDay("owwquuvxz") + .withHour(1447033048) + .withMinute(2116821034) + .withUsedBytes(2045084080849688226L)) + .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(176578322) + .withDaysOfMonth("osggbhc") + .withHour(1150860999) + .withMinute(1492751876) + .withUsedBytes(8361434893170853179L)) .withEnabled(true); model = BinaryData.fromObject(model).toObject(SnapshotPolicyInner.class); - Assertions.assertEquals("xqugjhkycubedd", model.location()); - Assertions.assertEquals("ofwq", model.tags().get("zqalkrmnjijpx")); - Assertions.assertEquals(1475802306, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1233334035, model.hourlySchedule().minute()); - Assertions.assertEquals(6620237582798297782L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(48002498, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1459715111, model.dailySchedule().hour()); - Assertions.assertEquals(2063960908, model.dailySchedule().minute()); - Assertions.assertEquals(8725801999952390480L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(1120671201, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("arm", model.weeklySchedule().day()); - Assertions.assertEquals(1679294493, model.weeklySchedule().hour()); - Assertions.assertEquals(522176461, model.weeklySchedule().minute()); - Assertions.assertEquals(7091421984194372162L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(1756269391, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("yxxrwlycoduh", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1842821288, model.monthlySchedule().hour()); - Assertions.assertEquals(1440361385, model.monthlySchedule().minute()); - Assertions.assertEquals(4645704067973725569L, model.monthlySchedule().usedBytes()); + Assertions.assertEquals("ewkfvhqcrai", model.location()); + Assertions.assertEquals("n", model.tags().get("pfuflrw")); + Assertions.assertEquals(1036395530, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(834040298, model.hourlySchedule().minute()); + Assertions.assertEquals(1971349718738257268L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(571890155, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(2019789161, model.dailySchedule().hour()); + Assertions.assertEquals(314213768, model.dailySchedule().minute()); + Assertions.assertEquals(1796224915838134100L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(369872117, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("owwquuvxz", model.weeklySchedule().day()); + Assertions.assertEquals(1447033048, model.weeklySchedule().hour()); + Assertions.assertEquals(2116821034, model.weeklySchedule().minute()); + Assertions.assertEquals(2045084080849688226L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(176578322, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("osggbhc", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(1150860999, model.monthlySchedule().hour()); + Assertions.assertEquals(1492751876, model.monthlySchedule().minute()); + Assertions.assertEquals(8361434893170853179L, model.monthlySchedule().usedBytes()); Assertions.assertTrue(model.enabled()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java index 7baa01317223..641dd6a1acb1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -18,74 +18,73 @@ public final class SnapshotPolicyPatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotPolicyPatch model = BinaryData.fromString( - "{\"location\":\"gaowpulpqblylsyx\",\"id\":\"jnsjervtiagxsd\",\"name\":\"uem\",\"type\":\"bzkfzbeyvpn\",\"tags\":{\"xdxr\":\"vinvkj\",\"aztz\":\"uukzclewyhmlw\",\"yq\":\"ofncckwyfzqwhxxb\",\"ztppriolxorjalto\":\"xzfe\"},\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":618891293,\"minute\":1429171965,\"usedBytes\":6564772827394590293},\"dailySchedule\":{\"snapshotsToKeep\":1051180868,\"hour\":1806206586,\"minute\":358085488,\"usedBytes\":1296933680465064139},\"weeklySchedule\":{\"snapshotsToKeep\":1589501712,\"day\":\"pfuvglsbjjca\",\"hour\":1995846414,\"minute\":1075232734,\"usedBytes\":652867049720214090},\"monthlySchedule\":{\"snapshotsToKeep\":1601872964,\"daysOfMonth\":\"cormr\",\"hour\":1360670450,\"minute\":1954508595,\"usedBytes\":2688344690599449184},\"enabled\":false,\"provisioningState\":\"lvkgju\"}}") + "{\"location\":\"bexkpzksmondj\",\"id\":\"uxvypomgkopkwh\",\"name\":\"v\",\"type\":\"jqg\",\"tags\":{\"xozap\":\"mocmbqfqvmk\",\"dd\":\"helxprglya\"},\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":373907539,\"minute\":1344502344,\"usedBytes\":179498978109269734},\"dailySchedule\":{\"snapshotsToKeep\":374378513,\"hour\":2014016933,\"minute\":792920613,\"usedBytes\":2792970654371570691},\"weeklySchedule\":{\"snapshotsToKeep\":1487162894,\"day\":\"qrhzoymibmrqyib\",\"hour\":1988324847,\"minute\":1263635295,\"usedBytes\":2799974459561219489},\"monthlySchedule\":{\"snapshotsToKeep\":1796967394,\"daysOfMonth\":\"rkwofyyvoqa\",\"hour\":848769798,\"minute\":339045288,\"usedBytes\":5359591244102758807},\"enabled\":true,\"provisioningState\":\"bwoenwashrt\"}}") .toObject(SnapshotPolicyPatch.class); - Assertions.assertEquals("gaowpulpqblylsyx", model.location()); - Assertions.assertEquals("vinvkj", model.tags().get("xdxr")); - Assertions.assertEquals(618891293, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1429171965, model.hourlySchedule().minute()); - Assertions.assertEquals(6564772827394590293L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1051180868, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1806206586, model.dailySchedule().hour()); - Assertions.assertEquals(358085488, model.dailySchedule().minute()); - Assertions.assertEquals(1296933680465064139L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(1589501712, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("pfuvglsbjjca", model.weeklySchedule().day()); - Assertions.assertEquals(1995846414, model.weeklySchedule().hour()); - Assertions.assertEquals(1075232734, model.weeklySchedule().minute()); - Assertions.assertEquals(652867049720214090L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(1601872964, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("cormr", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1360670450, model.monthlySchedule().hour()); - Assertions.assertEquals(1954508595, model.monthlySchedule().minute()); - Assertions.assertEquals(2688344690599449184L, model.monthlySchedule().usedBytes()); - Assertions.assertFalse(model.enabled()); + Assertions.assertEquals("bexkpzksmondj", model.location()); + Assertions.assertEquals("mocmbqfqvmk", model.tags().get("xozap")); + Assertions.assertEquals(373907539, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(1344502344, model.hourlySchedule().minute()); + Assertions.assertEquals(179498978109269734L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(374378513, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(2014016933, model.dailySchedule().hour()); + Assertions.assertEquals(792920613, model.dailySchedule().minute()); + Assertions.assertEquals(2792970654371570691L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(1487162894, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("qrhzoymibmrqyib", model.weeklySchedule().day()); + Assertions.assertEquals(1988324847, model.weeklySchedule().hour()); + Assertions.assertEquals(1263635295, model.weeklySchedule().minute()); + Assertions.assertEquals(2799974459561219489L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(1796967394, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("rkwofyyvoqa", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(848769798, model.monthlySchedule().hour()); + Assertions.assertEquals(339045288, model.monthlySchedule().minute()); + Assertions.assertEquals(5359591244102758807L, model.monthlySchedule().usedBytes()); + Assertions.assertTrue(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SnapshotPolicyPatch model = new SnapshotPolicyPatch().withLocation("gaowpulpqblylsyx") - .withTags( - mapOf("xdxr", "vinvkj", "aztz", "uukzclewyhmlw", "yq", "ofncckwyfzqwhxxb", "ztppriolxorjalto", "xzfe")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(618891293) - .withMinute(1429171965) - .withUsedBytes(6564772827394590293L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1051180868) - .withHour(1806206586) - .withMinute(358085488) - .withUsedBytes(1296933680465064139L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1589501712) - .withDay("pfuvglsbjjca") - .withHour(1995846414) - .withMinute(1075232734) - .withUsedBytes(652867049720214090L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1601872964) - .withDaysOfMonth("cormr") - .withHour(1360670450) - .withMinute(1954508595) - .withUsedBytes(2688344690599449184L)) - .withEnabled(false); + SnapshotPolicyPatch model = new SnapshotPolicyPatch().withLocation("bexkpzksmondj") + .withTags(mapOf("xozap", "mocmbqfqvmk", "dd", "helxprglya")) + .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(373907539) + .withMinute(1344502344) + .withUsedBytes(179498978109269734L)) + .withDailySchedule(new DailySchedule().withSnapshotsToKeep(374378513) + .withHour(2014016933) + .withMinute(792920613) + .withUsedBytes(2792970654371570691L)) + .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1487162894) + .withDay("qrhzoymibmrqyib") + .withHour(1988324847) + .withMinute(1263635295) + .withUsedBytes(2799974459561219489L)) + .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1796967394) + .withDaysOfMonth("rkwofyyvoqa") + .withHour(848769798) + .withMinute(339045288) + .withUsedBytes(5359591244102758807L)) + .withEnabled(true); model = BinaryData.fromObject(model).toObject(SnapshotPolicyPatch.class); - Assertions.assertEquals("gaowpulpqblylsyx", model.location()); - Assertions.assertEquals("vinvkj", model.tags().get("xdxr")); - Assertions.assertEquals(618891293, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1429171965, model.hourlySchedule().minute()); - Assertions.assertEquals(6564772827394590293L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1051180868, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1806206586, model.dailySchedule().hour()); - Assertions.assertEquals(358085488, model.dailySchedule().minute()); - Assertions.assertEquals(1296933680465064139L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(1589501712, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("pfuvglsbjjca", model.weeklySchedule().day()); - Assertions.assertEquals(1995846414, model.weeklySchedule().hour()); - Assertions.assertEquals(1075232734, model.weeklySchedule().minute()); - Assertions.assertEquals(652867049720214090L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(1601872964, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("cormr", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1360670450, model.monthlySchedule().hour()); - Assertions.assertEquals(1954508595, model.monthlySchedule().minute()); - Assertions.assertEquals(2688344690599449184L, model.monthlySchedule().usedBytes()); - Assertions.assertFalse(model.enabled()); + Assertions.assertEquals("bexkpzksmondj", model.location()); + Assertions.assertEquals("mocmbqfqvmk", model.tags().get("xozap")); + Assertions.assertEquals(373907539, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(1344502344, model.hourlySchedule().minute()); + Assertions.assertEquals(179498978109269734L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(374378513, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(2014016933, model.dailySchedule().hour()); + Assertions.assertEquals(792920613, model.dailySchedule().minute()); + Assertions.assertEquals(2792970654371570691L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(1487162894, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("qrhzoymibmrqyib", model.weeklySchedule().day()); + Assertions.assertEquals(1988324847, model.weeklySchedule().hour()); + Assertions.assertEquals(1263635295, model.weeklySchedule().minute()); + Assertions.assertEquals(2799974459561219489L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(1796967394, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("rkwofyyvoqa", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(848769798, model.monthlySchedule().hour()); + Assertions.assertEquals(339045288, model.monthlySchedule().minute()); + Assertions.assertEquals(5359591244102758807L, model.monthlySchedule().usedBytes()); + Assertions.assertTrue(model.enabled()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java index a3c50a05d13f..15158f56585e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -16,67 +16,67 @@ public final class SnapshotPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotPolicyProperties model = BinaryData.fromString( - "{\"hourlySchedule\":{\"snapshotsToKeep\":747190122,\"minute\":383996827,\"usedBytes\":8358866216552319675},\"dailySchedule\":{\"snapshotsToKeep\":2045472309,\"hour\":1322383691,\"minute\":1729344688,\"usedBytes\":4145471517526414946},\"weeklySchedule\":{\"snapshotsToKeep\":1389326915,\"day\":\"iilivpdtiirqtd\",\"hour\":887642500,\"minute\":1693357038,\"usedBytes\":3114947430528398041},\"monthlySchedule\":{\"snapshotsToKeep\":1061692620,\"daysOfMonth\":\"uyfxrxxleptramxj\",\"hour\":576385447,\"minute\":800812531,\"usedBytes\":9127393651345868324},\"enabled\":false,\"provisioningState\":\"cvydypatdoo\"}") + "{\"hourlySchedule\":{\"snapshotsToKeep\":2005026599,\"minute\":532672509,\"usedBytes\":3312819565675205010},\"dailySchedule\":{\"snapshotsToKeep\":346770564,\"hour\":914097739,\"minute\":978047634,\"usedBytes\":5404644626428061791},\"weeklySchedule\":{\"snapshotsToKeep\":60814629,\"day\":\"otbobzdopcj\",\"hour\":546984067,\"minute\":2011097883,\"usedBytes\":453808776382149422},\"monthlySchedule\":{\"snapshotsToKeep\":1518598912,\"daysOfMonth\":\"xrslpm\",\"hour\":2107317095,\"minute\":306696017,\"usedBytes\":4150565343365520377},\"enabled\":false,\"provisioningState\":\"jw\"}") .toObject(SnapshotPolicyProperties.class); - Assertions.assertEquals(747190122, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(383996827, model.hourlySchedule().minute()); - Assertions.assertEquals(8358866216552319675L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(2045472309, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1322383691, model.dailySchedule().hour()); - Assertions.assertEquals(1729344688, model.dailySchedule().minute()); - Assertions.assertEquals(4145471517526414946L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(1389326915, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("iilivpdtiirqtd", model.weeklySchedule().day()); - Assertions.assertEquals(887642500, model.weeklySchedule().hour()); - Assertions.assertEquals(1693357038, model.weeklySchedule().minute()); - Assertions.assertEquals(3114947430528398041L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(1061692620, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("uyfxrxxleptramxj", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(576385447, model.monthlySchedule().hour()); - Assertions.assertEquals(800812531, model.monthlySchedule().minute()); - Assertions.assertEquals(9127393651345868324L, model.monthlySchedule().usedBytes()); + Assertions.assertEquals(2005026599, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(532672509, model.hourlySchedule().minute()); + Assertions.assertEquals(3312819565675205010L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(346770564, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(914097739, model.dailySchedule().hour()); + Assertions.assertEquals(978047634, model.dailySchedule().minute()); + Assertions.assertEquals(5404644626428061791L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(60814629, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("otbobzdopcj", model.weeklySchedule().day()); + Assertions.assertEquals(546984067, model.weeklySchedule().hour()); + Assertions.assertEquals(2011097883, model.weeklySchedule().minute()); + Assertions.assertEquals(453808776382149422L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(1518598912, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("xrslpm", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(2107317095, model.monthlySchedule().hour()); + Assertions.assertEquals(306696017, model.monthlySchedule().minute()); + Assertions.assertEquals(4150565343365520377L, model.monthlySchedule().usedBytes()); Assertions.assertFalse(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SnapshotPolicyProperties model = new SnapshotPolicyProperties() - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(747190122) - .withMinute(383996827) - .withUsedBytes(8358866216552319675L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(2045472309) - .withHour(1322383691) - .withMinute(1729344688) - .withUsedBytes(4145471517526414946L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1389326915) - .withDay("iilivpdtiirqtd") - .withHour(887642500) - .withMinute(1693357038) - .withUsedBytes(3114947430528398041L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1061692620) - .withDaysOfMonth("uyfxrxxleptramxj") - .withHour(576385447) - .withMinute(800812531) - .withUsedBytes(9127393651345868324L)) + .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2005026599) + .withMinute(532672509) + .withUsedBytes(3312819565675205010L)) + .withDailySchedule(new DailySchedule().withSnapshotsToKeep(346770564) + .withHour(914097739) + .withMinute(978047634) + .withUsedBytes(5404644626428061791L)) + .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(60814629) + .withDay("otbobzdopcj") + .withHour(546984067) + .withMinute(2011097883) + .withUsedBytes(453808776382149422L)) + .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1518598912) + .withDaysOfMonth("xrslpm") + .withHour(2107317095) + .withMinute(306696017) + .withUsedBytes(4150565343365520377L)) .withEnabled(false); model = BinaryData.fromObject(model).toObject(SnapshotPolicyProperties.class); - Assertions.assertEquals(747190122, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(383996827, model.hourlySchedule().minute()); - Assertions.assertEquals(8358866216552319675L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(2045472309, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1322383691, model.dailySchedule().hour()); - Assertions.assertEquals(1729344688, model.dailySchedule().minute()); - Assertions.assertEquals(4145471517526414946L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(1389326915, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("iilivpdtiirqtd", model.weeklySchedule().day()); - Assertions.assertEquals(887642500, model.weeklySchedule().hour()); - Assertions.assertEquals(1693357038, model.weeklySchedule().minute()); - Assertions.assertEquals(3114947430528398041L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(1061692620, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("uyfxrxxleptramxj", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(576385447, model.monthlySchedule().hour()); - Assertions.assertEquals(800812531, model.monthlySchedule().minute()); - Assertions.assertEquals(9127393651345868324L, model.monthlySchedule().usedBytes()); + Assertions.assertEquals(2005026599, model.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(532672509, model.hourlySchedule().minute()); + Assertions.assertEquals(3312819565675205010L, model.hourlySchedule().usedBytes()); + Assertions.assertEquals(346770564, model.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(914097739, model.dailySchedule().hour()); + Assertions.assertEquals(978047634, model.dailySchedule().minute()); + Assertions.assertEquals(5404644626428061791L, model.dailySchedule().usedBytes()); + Assertions.assertEquals(60814629, model.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("otbobzdopcj", model.weeklySchedule().day()); + Assertions.assertEquals(546984067, model.weeklySchedule().hour()); + Assertions.assertEquals(2011097883, model.weeklySchedule().minute()); + Assertions.assertEquals(453808776382149422L, model.weeklySchedule().usedBytes()); + Assertions.assertEquals(1518598912, model.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("xrslpm", model.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(2107317095, model.monthlySchedule().hour()); + Assertions.assertEquals(306696017, model.monthlySchedule().minute()); + Assertions.assertEquals(4150565343365520377L, model.monthlySchedule().usedBytes()); Assertions.assertFalse(model.enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java index d479a9927931..2e6f38763cc5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -10,8 +10,9 @@ public final class SnapshotPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SnapshotProperties model = BinaryData.fromString( - "{\"snapshotId\":\"kwqqtchealmf\",\"created\":\"2021-05-23T20:32:01Z\",\"provisioningState\":\"aygdvwvgpioh\"}") + SnapshotProperties model = BinaryData + .fromString( + "{\"snapshotId\":\"ur\",\"created\":\"2020-12-25T12:19:04Z\",\"provisioningState\":\"wobdagxtibqdx\"}") .toObject(SnapshotProperties.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java index 06f580b79f68..4c58a08c6467 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,18 +13,18 @@ public final class SnapshotRestoreFilesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotRestoreFiles model - = BinaryData.fromString("{\"filePaths\":[\"xrtfudxep\"],\"destinationPath\":\"yqagvrvm\"}") + = BinaryData.fromString("{\"filePaths\":[\"tdum\",\"rp\",\"xe\",\"mnzb\"],\"destinationPath\":\"hjpglkf\"}") .toObject(SnapshotRestoreFiles.class); - Assertions.assertEquals("xrtfudxep", model.filePaths().get(0)); - Assertions.assertEquals("yqagvrvm", model.destinationPath()); + Assertions.assertEquals("tdum", model.filePaths().get(0)); + Assertions.assertEquals("hjpglkf", model.destinationPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SnapshotRestoreFiles model - = new SnapshotRestoreFiles().withFilePaths(Arrays.asList("xrtfudxep")).withDestinationPath("yqagvrvm"); + SnapshotRestoreFiles model = new SnapshotRestoreFiles().withFilePaths(Arrays.asList("tdum", "rp", "xe", "mnzb")) + .withDestinationPath("hjpglkf"); model = BinaryData.fromObject(model).toObject(SnapshotRestoreFiles.class); - Assertions.assertEquals("xrtfudxep", model.filePaths().get(0)); - Assertions.assertEquals("yqagvrvm", model.destinationPath()); + Assertions.assertEquals("tdum", model.filePaths().get(0)); + Assertions.assertEquals("hjpglkf", model.destinationPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java index 68130ff42042..fc6bde307ac4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -27,8 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.snapshots() - .delete("qunjqh", "enx", "ulkpakd", "ifmjnn", "wtqabpxuckp", com.azure.core.util.Context.NONE); + manager.snapshots().delete("qdqx", "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/SnapshotsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java index da587e5e3bf7..b44c3c107468 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class SnapshotsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"location\":\"jxgrytfmp\",\"properties\":{\"snapshotId\":\"ilrmcaykggnox\",\"created\":\"2021-09-05T21:02:51Z\",\"provisioningState\":\"ksxwpnd\"},\"id\":\"pfnznthjtwkj\",\"name\":\"osrxuzvoa\",\"type\":\"ktcqio\"}"; + = "{\"properties\":{\"snapshotId\":\"exaoguya\",\"created\":\"2021-11-04T08:52:55Z\",\"provisioningState\":\"sdaultxij\"},\"location\":\"um\",\"id\":\"waz\",\"name\":\"nqnm\",\"type\":\"jng\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Snapshot response = manager.snapshots() - .getWithResponse("tsxoatftgz", "npbs", "vefloccsrmozihmi", "g", "wtxxpkyjcx", + .getWithResponse("aqtferr", "wexjkmfxapjwogq", "nobpudcdabtqwpw", "awbzasqb", "clj", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("jxgrytfmp", response.location()); + Assertions.assertEquals("um", response.location()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java index ff891b91a78a..eab7a07111d4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class SnapshotsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"hczznvf\",\"properties\":{\"snapshotId\":\"jsxjwwix\",\"created\":\"2021-05-29T07:40:45Z\",\"provisioningState\":\"wmxqhndvnoamlds\"},\"id\":\"aohdjh\",\"name\":\"flzokxco\",\"type\":\"pelnjetag\"}]}"; + = "{\"value\":[{\"properties\":{\"snapshotId\":\"kvntjlrigjkskyri\",\"created\":\"2020-12-31T15:34:24Z\",\"provisioningState\":\"idsxwaabzmifry\"},\"location\":\"znmmaxrizkzobgo\",\"id\":\"lhslnelxieixyn\",\"name\":\"lxecwcrojphslh\",\"type\":\"awjutifd\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.snapshots() - .list("ycucrwnamikzeb", "qbsms", "ziqgfuh", "kzruswh", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.snapshots().list("qryxyn", "nzrdpsovwxz", "ptgoeiybbabp", "hv", com.azure.core.util.Context.NONE); - Assertions.assertEquals("hczznvf", response.iterator().next().location()); + Assertions.assertEquals("znmmaxrizkzobgo", response.iterator().next().location()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java index 12c1dfddfc67..56d697ba5405 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java @@ -1,30 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; -import com.azure.resourcemanager.netapp.models.SnapshotsList; -import java.util.Arrays; +import com.azure.resourcemanager.netapp.implementation.models.SnapshotsList; 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\":\"plsaknynfsynljph\",\"properties\":{\"snapshotId\":\"xodlqiyntorzih\",\"created\":\"2021-04-08T02:51:20Z\",\"provisioningState\":\"jswsrmslyz\"},\"id\":\"zbchckqqzqioxiy\",\"name\":\"uiizynke\",\"type\":\"yatrwy\"},{\"location\":\"q\",\"properties\":{\"snapshotId\":\"zyh\",\"created\":\"2021-05-20T17:58:30Z\",\"provisioningState\":\"mypyynpcdpu\"},\"id\":\"zgmwznmabikns\",\"name\":\"rgjhxb\",\"type\":\"dtlwwrlkd\"},{\"location\":\"tncvokot\",\"properties\":{\"snapshotId\":\"d\",\"created\":\"2021-07-23T09:43:53Z\",\"provisioningState\":\"y\"},\"id\":\"ogjltdtbnnhad\",\"name\":\"ocrkvcikh\",\"type\":\"vpa\"}]}") + "{\"value\":[{\"properties\":{\"snapshotId\":\"kbogqxndlkzgx\",\"created\":\"2021-10-18T16:27:54Z\",\"provisioningState\":\"plbpodxun\"},\"location\":\"bebxmubyyntwl\",\"id\":\"qtkoievs\",\"name\":\"otgqrlltmu\",\"type\":\"lauwzizxbmpgcjef\"}],\"nextLink\":\"muvp\"}") .toObject(SnapshotsList.class); - Assertions.assertEquals("plsaknynfsynljph", 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("plsaknynfsynljph"), - new SnapshotInner().withLocation("q"), new SnapshotInner().withLocation("tncvokot"))); - model = BinaryData.fromObject(model).toObject(SnapshotsList.class); - Assertions.assertEquals("plsaknynfsynljph", model.value().get(0).location()); + Assertions.assertEquals("bebxmubyyntwl", model.value().get(0).location()); + Assertions.assertEquals("muvp", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java index 0296508d36ab..1411bbfe8134 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -30,9 +30,9 @@ public void testRestoreFiles() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.snapshots() - .restoreFiles("gqoweyirdhlisn", "wfl", "qmp", "zruwn", "qxpxiwfcngjsaa", - new SnapshotRestoreFiles().withFilePaths(Arrays.asList("ixtmkzjvkviirhgf", "rwsdp")) - .withDestinationPath("atzv"), + .restoreFiles("fmvigorqjbttzh", "aglkafhon", "juj", "ickpz", "cpopmxel", + new SnapshotRestoreFiles().withFilePaths(Arrays.asList("clt", "jedexxmlf", "kqscazuawxtzx")) + .withDestinationPath("amwabzxrvxcushsp"), 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 d690e3e6d6aa..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.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\":\"av\",\"properties\":{\"snapshotId\":\"qmjxlyyzglgouwtl\",\"created\":\"2021-03-15T04:42:49Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"axkjeytunlbfjk\",\"name\":\"rusnk\",\"type\":\"bhsy\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - Snapshot response = manager.snapshots() - .update("mgbzahgxqdlyrtl", "laprlt", "katbhjm", "nnbsoqeqa", "arvlagunbt", "datafebwlnbmhyreeudz", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("av", 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 new file mode 100644 index 000000000000..48e5f5a25a33 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; + +public final class SubscriptionQuotaItemInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SubscriptionQuotaItemInner model = BinaryData.fromString( + "{\"properties\":{\"current\":15253955,\"default\":1671923466,\"usage\":2029322855},\"id\":\"dudgwdslfhot\",\"name\":\"mcy\",\"type\":\"pwlbjnpg\"}") + .toObject(SubscriptionQuotaItemInner.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 index 8273640da503..3bcd62c9cbd1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,20 +12,20 @@ public final class SubvolumeInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeInfoInner model = BinaryData.fromString( - "{\"properties\":{\"path\":\"dshf\",\"size\":962248529586106867,\"parentPath\":\"gy\",\"provisioningState\":\"rymsgaojfmw\"},\"id\":\"otmrfhir\",\"name\":\"tymoxoftp\",\"type\":\"piwyczuhxacpqjl\"}") + "{\"properties\":{\"path\":\"dilmyww\",\"size\":2257431826333496773,\"parentPath\":\"nye\",\"provisioningState\":\"b\"},\"id\":\"vudtjuewbcihx\",\"name\":\"uwhcjyxccybv\",\"type\":\"ayakkudzpx\"}") .toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("dshf", model.path()); - Assertions.assertEquals(962248529586106867L, model.size()); - Assertions.assertEquals("gy", model.parentPath()); + Assertions.assertEquals("dilmyww", model.path()); + Assertions.assertEquals(2257431826333496773L, model.size()); + Assertions.assertEquals("nye", model.parentPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SubvolumeInfoInner model - = new SubvolumeInfoInner().withPath("dshf").withSize(962248529586106867L).withParentPath("gy"); + = new SubvolumeInfoInner().withPath("dilmyww").withSize(2257431826333496773L).withParentPath("nye"); model = BinaryData.fromObject(model).toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("dshf", model.path()); - Assertions.assertEquals(962248529586106867L, model.size()); - Assertions.assertEquals("gy", model.parentPath()); + Assertions.assertEquals("dilmyww", model.path()); + Assertions.assertEquals(2257431826333496773L, model.size()); + Assertions.assertEquals("nye", model.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java index 00e43a6ea3b7..20f9f9cece00 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,42 +13,17 @@ public final class SubvolumeModelInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeModelInner model = BinaryData.fromString( - "{\"id\":\"sutrgjup\",\"name\":\"utpwoqhihejqgw\",\"type\":\"nfqn\",\"properties\":{\"path\":\"psxjvf\",\"parentPath\":\"mwks\",\"size\":139453520421525767,\"bytesUsed\":1648418859978390426,\"permissions\":\"vydfceacvlhvygdy\",\"creationTimeStamp\":\"2021-04-02T04:25:09Z\",\"accessedTimeStamp\":\"2021-04-26T02:40:30Z\",\"modifiedTimeStamp\":\"2021-01-27T11:41:35Z\",\"changedTimeStamp\":\"2021-05-06T02:12:21Z\",\"provisioningState\":\"jslb\"}}") + "{\"id\":\"eqvldspast\",\"name\":\"kkdmfl\",\"type\":\"stmjlxrri\",\"properties\":{\"path\":\"apeewchpxlkt\",\"parentPath\":\"uziycsl\",\"size\":5713719406274088628,\"bytesUsed\":7273800949722293579,\"permissions\":\"ktyhjt\",\"creationTimeStamp\":\"2021-04-16T04:24:08Z\",\"accessedTimeStamp\":\"2021-03-02T18:17:10Z\",\"modifiedTimeStamp\":\"2021-05-27T00:20:23Z\",\"changedTimeStamp\":\"2021-06-12T16:16:37Z\",\"provisioningState\":\"mrqzzrrjvpgl\"}}") .toObject(SubvolumeModelInner.class); - Assertions.assertEquals("psxjvf", model.path()); - Assertions.assertEquals("mwks", model.parentPath()); - Assertions.assertEquals(139453520421525767L, model.size()); - Assertions.assertEquals(1648418859978390426L, model.bytesUsed()); - Assertions.assertEquals("vydfceacvlhvygdy", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-02T04:25:09Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-26T02:40:30Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-27T11:41:35Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-06T02:12:21Z"), model.changedTimestamp()); - Assertions.assertEquals("jslb", model.provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeModelInner model = new SubvolumeModelInner().withPath("psxjvf") - .withParentPath("mwks") - .withSize(139453520421525767L) - .withBytesUsed(1648418859978390426L) - .withPermissions("vydfceacvlhvygdy") - .withCreationTimestamp(OffsetDateTime.parse("2021-04-02T04:25:09Z")) - .withAccessedTimestamp(OffsetDateTime.parse("2021-04-26T02:40:30Z")) - .withModifiedTimestamp(OffsetDateTime.parse("2021-01-27T11:41:35Z")) - .withChangedTimestamp(OffsetDateTime.parse("2021-05-06T02:12:21Z")) - .withProvisioningState("jslb"); - model = BinaryData.fromObject(model).toObject(SubvolumeModelInner.class); - Assertions.assertEquals("psxjvf", model.path()); - Assertions.assertEquals("mwks", model.parentPath()); - Assertions.assertEquals(139453520421525767L, model.size()); - Assertions.assertEquals(1648418859978390426L, model.bytesUsed()); - Assertions.assertEquals("vydfceacvlhvygdy", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-02T04:25:09Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-26T02:40:30Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-27T11:41:35Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-06T02:12:21Z"), model.changedTimestamp()); - Assertions.assertEquals("jslb", model.provisioningState()); + Assertions.assertEquals("apeewchpxlkt", model.path()); + Assertions.assertEquals("uziycsl", model.parentPath()); + Assertions.assertEquals(5713719406274088628L, model.size()); + Assertions.assertEquals(7273800949722293579L, model.bytesUsed()); + Assertions.assertEquals("ktyhjt", model.permissions()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-16T04:24:08Z"), model.creationTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-02T18:17:10Z"), model.accessedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-27T00:20:23Z"), model.modifiedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-12T16:16:37Z"), model.changedTimestamp()); + Assertions.assertEquals("mrqzzrrjvpgl", model.provisioningState()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java index a4f47af96cd3..4ecdc8f95c23 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,42 +13,17 @@ public final class SubvolumeModelPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeModelProperties model = BinaryData.fromString( - "{\"path\":\"kojgcyzts\",\"parentPath\":\"z\",\"size\":1225838395587285153,\"bytesUsed\":1800143907295962702,\"permissions\":\"hqnrn\",\"creationTimeStamp\":\"2021-07-24T02:25:51Z\",\"accessedTimeStamp\":\"2021-01-21T00:49:26Z\",\"modifiedTimeStamp\":\"2021-01-03T13:06:24Z\",\"changedTimeStamp\":\"2021-10-20T16:41:45Z\",\"provisioningState\":\"qgaifmviklbydv\"}") + "{\"path\":\"zgkrvqe\",\"parentPath\":\"toepryu\",\"size\":2061235851967739080,\"bytesUsed\":4251085007035253174,\"permissions\":\"mov\",\"creationTimeStamp\":\"2021-08-21T09:22:41Z\",\"accessedTimeStamp\":\"2021-05-20T20:20:31Z\",\"modifiedTimeStamp\":\"2021-06-08T04:09:14Z\",\"changedTimeStamp\":\"2021-05-12T09:22:23Z\",\"provisioningState\":\"dflgzuri\"}") .toObject(SubvolumeModelProperties.class); - Assertions.assertEquals("kojgcyzts", model.path()); - Assertions.assertEquals("z", model.parentPath()); - Assertions.assertEquals(1225838395587285153L, model.size()); - Assertions.assertEquals(1800143907295962702L, model.bytesUsed()); - Assertions.assertEquals("hqnrn", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-24T02:25:51Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T00:49:26Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-03T13:06:24Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T16:41:45Z"), model.changedTimestamp()); - Assertions.assertEquals("qgaifmviklbydv", model.provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeModelProperties model = new SubvolumeModelProperties().withPath("kojgcyzts") - .withParentPath("z") - .withSize(1225838395587285153L) - .withBytesUsed(1800143907295962702L) - .withPermissions("hqnrn") - .withCreationTimestamp(OffsetDateTime.parse("2021-07-24T02:25:51Z")) - .withAccessedTimestamp(OffsetDateTime.parse("2021-01-21T00:49:26Z")) - .withModifiedTimestamp(OffsetDateTime.parse("2021-01-03T13:06:24Z")) - .withChangedTimestamp(OffsetDateTime.parse("2021-10-20T16:41:45Z")) - .withProvisioningState("qgaifmviklbydv"); - model = BinaryData.fromObject(model).toObject(SubvolumeModelProperties.class); - Assertions.assertEquals("kojgcyzts", model.path()); - Assertions.assertEquals("z", model.parentPath()); - Assertions.assertEquals(1225838395587285153L, model.size()); - Assertions.assertEquals(1800143907295962702L, model.bytesUsed()); - Assertions.assertEquals("hqnrn", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-24T02:25:51Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T00:49:26Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-03T13:06:24Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T16:41:45Z"), model.changedTimestamp()); - Assertions.assertEquals("qgaifmviklbydv", model.provisioningState()); + Assertions.assertEquals("zgkrvqe", model.path()); + Assertions.assertEquals("toepryu", model.parentPath()); + Assertions.assertEquals(2061235851967739080L, model.size()); + Assertions.assertEquals(4251085007035253174L, model.bytesUsed()); + Assertions.assertEquals("mov", model.permissions()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-21T09:22:41Z"), model.creationTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-20T20:20:31Z"), model.accessedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-08T04:09:14Z"), model.modifiedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-12T09:22:23Z"), model.changedTimestamp()); + Assertions.assertEquals("dflgzuri", model.provisioningState()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java index ad75a9535036..05228e7af580 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,17 +11,17 @@ public final class SubvolumePatchParamsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SubvolumePatchParams model = BinaryData.fromString("{\"size\":5651082290732520756,\"path\":\"jzgxmrhublwp\"}") + SubvolumePatchParams model = BinaryData.fromString("{\"size\":6255514138294758231,\"path\":\"vbalxlllc\"}") .toObject(SubvolumePatchParams.class); - Assertions.assertEquals(5651082290732520756L, model.size()); - Assertions.assertEquals("jzgxmrhublwp", model.path()); + Assertions.assertEquals(6255514138294758231L, model.size()); + Assertions.assertEquals("vbalxlllc", model.path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SubvolumePatchParams model = new SubvolumePatchParams().withSize(5651082290732520756L).withPath("jzgxmrhublwp"); + SubvolumePatchParams model = new SubvolumePatchParams().withSize(6255514138294758231L).withPath("vbalxlllc"); model = BinaryData.fromObject(model).toObject(SubvolumePatchParams.class); - Assertions.assertEquals(5651082290732520756L, model.size()); - Assertions.assertEquals("jzgxmrhublwp", model.path()); + Assertions.assertEquals(6255514138294758231L, model.size()); + Assertions.assertEquals("vbalxlllc", model.path()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java index 7011d867011f..1b7df02591f7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,18 +12,18 @@ public final class SubvolumePatchRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumePatchRequest model - = BinaryData.fromString("{\"properties\":{\"size\":3604947321817577406,\"path\":\"zvxurisjnhny\"}}") + = BinaryData.fromString("{\"properties\":{\"size\":472851699764261013,\"path\":\"egfnmntfpmvmemfn\"}}") .toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(3604947321817577406L, model.size()); - Assertions.assertEquals("zvxurisjnhny", model.path()); + Assertions.assertEquals(472851699764261013L, model.size()); + Assertions.assertEquals("egfnmntfpmvmemfn", model.path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SubvolumePatchRequest model - = new SubvolumePatchRequest().withSize(3604947321817577406L).withPath("zvxurisjnhny"); + = new SubvolumePatchRequest().withSize(472851699764261013L).withPath("egfnmntfpmvmemfn"); model = BinaryData.fromObject(model).toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(3604947321817577406L, model.size()); - Assertions.assertEquals("zvxurisjnhny", model.path()); + Assertions.assertEquals(472851699764261013L, model.size()); + Assertions.assertEquals("egfnmntfpmvmemfn", model.path()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java index afe25915bb6d..2b974cf26bba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,20 +12,21 @@ public final class SubvolumePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeProperties model = BinaryData.fromString( - "{\"path\":\"hyus\",\"size\":7815395193237239429,\"parentPath\":\"dvlmfwdgzxul\",\"provisioningState\":\"vpa\"}") + "{\"path\":\"jplmagstcy\",\"size\":7553431900772779958,\"parentPath\":\"yrkdbdgiogsjkmn\",\"provisioningState\":\"jnobaiyh\"}") .toObject(SubvolumeProperties.class); - Assertions.assertEquals("hyus", model.path()); - Assertions.assertEquals(7815395193237239429L, model.size()); - Assertions.assertEquals("dvlmfwdgzxul", model.parentPath()); + Assertions.assertEquals("jplmagstcy", model.path()); + Assertions.assertEquals(7553431900772779958L, model.size()); + Assertions.assertEquals("yrkdbdgiogsjkmn", model.parentPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SubvolumeProperties model - = new SubvolumeProperties().withPath("hyus").withSize(7815395193237239429L).withParentPath("dvlmfwdgzxul"); + SubvolumeProperties model = new SubvolumeProperties().withPath("jplmagstcy") + .withSize(7553431900772779958L) + .withParentPath("yrkdbdgiogsjkmn"); model = BinaryData.fromObject(model).toObject(SubvolumeProperties.class); - Assertions.assertEquals("hyus", model.path()); - Assertions.assertEquals(7815395193237239429L, model.size()); - Assertions.assertEquals("dvlmfwdgzxul", model.parentPath()); + Assertions.assertEquals("jplmagstcy", model.path()); + Assertions.assertEquals(7553431900772779958L, model.size()); + Assertions.assertEquals("yrkdbdgiogsjkmn", model.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java index 38dbf22075bb..d1c3f469a2e1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class SubvolumesCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"path\":\"f\",\"size\":4673485853004861736,\"parentPath\":\"pqthehnmnaoya\",\"provisioningState\":\"Succeeded\"},\"id\":\"roznnhdrlktgj\",\"name\":\"sggux\",\"type\":\"eml\"}"; + = "{\"properties\":{\"path\":\"kympqanxrjkixtw\",\"size\":6067956593612748016,\"parentPath\":\"pnyghs\",\"provisioningState\":\"Succeeded\"},\"id\":\"gmnsghpxy\",\"name\":\"phdrw\",\"type\":\"jkhvyomacluzvxnq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,15 +31,15 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SubvolumeInfo response = manager.subvolumes() - .define("gkkumuikjcj") - .withExistingVolume("fbvfbhdy", "rhpw", "gddeimaw", "o") - .withPath("tbw") - .withSize(7467140163227745505L) - .withParentPath("wxwcomli") + .define("sx") + .withExistingVolume("ey", "swlpaugmrmfj", "rxwtoaukhfkvc", "sizmoae") + .withPath("ive") + .withSize(5184898420559023748L) + .withParentPath("eewxeiqbpsmg") .create(); - Assertions.assertEquals("f", response.path()); - Assertions.assertEquals(4673485853004861736L, response.size()); - Assertions.assertEquals("pqthehnmnaoya", response.parentPath()); + Assertions.assertEquals("kympqanxrjkixtw", response.path()); + Assertions.assertEquals(6067956593612748016L, response.size()); + Assertions.assertEquals("pnyghs", response.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java index 184452be2a81..1ed8ccb9140e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.subvolumes() - .delete("igsxcdgljplk", "ua", "htomflrytswfp", "mdgycxn", "skw", com.azure.core.util.Context.NONE); + .delete("ujdjltymkmvg", "ihywartspph", "ixkykxd", "sj", "emmucfxh", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java index e29e82bbe4b6..0e884953c7f9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class SubvolumesGetMetadataMockTests { @Test public void testGetMetadata() throws Exception { String responseStr - = "{\"id\":\"osovyrrleaesin\",\"name\":\"tljqobbpih\",\"type\":\"cecybmrqbrjbbmpx\",\"properties\":{\"path\":\"yk\",\"parentPath\":\"e\",\"size\":6277267210588424602,\"bytesUsed\":3119397452989375837,\"permissions\":\"ksghudgzhxogjgg\",\"creationTimeStamp\":\"2021-06-10T02:57:11Z\",\"accessedTimeStamp\":\"2021-03-29T11:54:34Z\",\"modifiedTimeStamp\":\"2021-06-02T05:28:28Z\",\"changedTimeStamp\":\"2021-06-01T20:14:30Z\",\"provisioningState\":\"Succeeded\"}}"; + = "{\"id\":\"dfrdbi\",\"name\":\"rjgeih\",\"type\":\"lg\",\"properties\":{\"path\":\"iwzcxmjpbyeph\",\"parentPath\":\"t\",\"size\":971495123431334459,\"bytesUsed\":5030460959235510617,\"permissions\":\"fqip\",\"creationTimeStamp\":\"2020-12-22T02:20:11Z\",\"accessedTimeStamp\":\"2021-09-18T18:40:03Z\",\"modifiedTimeStamp\":\"2021-04-01T06:59Z\",\"changedTimeStamp\":\"2021-03-13T21:07:38Z\",\"provisioningState\":\"Succeeded\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,17 +31,18 @@ public void testGetMetadata() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SubvolumeModel response = manager.subvolumes() - .getMetadata("qjjyslurl", "shhkvpedw", "slsrhmpq", "wwsko", "dcbrwimuvq", com.azure.core.util.Context.NONE); + .getMetadata("wzdufypivlsbb", "pmcubkmifoxxkub", "phavpmhbrb", "gvgovpbbttefjo", "nssqyzqed", + com.azure.core.util.Context.NONE); - Assertions.assertEquals("yk", response.path()); - Assertions.assertEquals("e", response.parentPath()); - Assertions.assertEquals(6277267210588424602L, response.size()); - Assertions.assertEquals(3119397452989375837L, response.bytesUsed()); - Assertions.assertEquals("ksghudgzhxogjgg", response.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T02:57:11Z"), response.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-29T11:54:34Z"), response.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-02T05:28:28Z"), response.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-01T20:14:30Z"), response.changedTimestamp()); + Assertions.assertEquals("iwzcxmjpbyeph", response.path()); + Assertions.assertEquals("t", response.parentPath()); + Assertions.assertEquals(971495123431334459L, response.size()); + Assertions.assertEquals(5030460959235510617L, response.bytesUsed()); + Assertions.assertEquals("fqip", response.permissions()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-22T02:20:11Z"), response.creationTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-18T18:40:03Z"), response.accessedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-01T06:59Z"), response.modifiedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-13T21:07:38Z"), response.changedTimestamp()); Assertions.assertEquals("Succeeded", response.provisioningState()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java index 9a0e26a837d7..e69d132426be 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class SubvolumesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"path\":\"pxy\",\"size\":8822299010798818070,\"parentPath\":\"geaar\",\"provisioningState\":\"jekglklbyuli\"},\"id\":\"cwvmzegj\",\"name\":\"nfhjirwgdnqzbr\",\"type\":\"kspzhzmtksjcit\"}"; + = "{\"properties\":{\"path\":\"desqplpvmjcdo\",\"size\":5553919179908601818,\"parentPath\":\"yvteowxvgpiudeu\",\"provisioningState\":\"sxze\"},\"id\":\"axwk\",\"name\":\"fykhvuhxepmru\",\"type\":\"znabaobns\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SubvolumeInfo response = manager.subvolumes() - .getWithResponse("jchcsrlzknmzla", "rupdwvnphcnzq", "pjhmqrhvthl", "iwdcxsmlzzhzd", "xetlgydlhqv", - com.azure.core.util.Context.NONE) + .getWithResponse("sggux", "eml", "ywaeeczgf", "ukklelss", "blycsxzujksr", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pxy", response.path()); - Assertions.assertEquals(8822299010798818070L, response.size()); - Assertions.assertEquals("geaar", response.parentPath()); + Assertions.assertEquals("desqplpvmjcdo", response.path()); + Assertions.assertEquals(5553919179908601818L, response.size()); + Assertions.assertEquals("yvteowxvgpiudeu", response.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java index 4adbb1e3fa0c..f3a6cc0ded64 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class SubvolumesListByVolumeMockTests { @Test public void testListByVolume() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"path\":\"txd\",\"size\":7982443333722102241,\"parentPath\":\"us\",\"provisioningState\":\"vlnsnnjz\"},\"id\":\"afolpymwamxqzrag\",\"name\":\"gdphtvdula\",\"type\":\"vl\"}]}"; + = "{\"value\":[{\"properties\":{\"path\":\"otiowlxteqd\",\"size\":5387588961314601515,\"parentPath\":\"dtguk\",\"provisioningState\":\"nblwphqlkcc\"},\"id\":\"gygqwah\",\"name\":\"iul\",\"type\":\"gniiprglvaw\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testListByVolume() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.subvolumes().listByVolume("kcdxfzzzw", "jafi", "lhguyn", "chl", com.azure.core.util.Context.NONE); + PagedIterable response = manager.subvolumes() + .listByVolume("kkflrmymyincqlhr", "s", "sl", "iiiovgqcgxuugq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("txd", response.iterator().next().path()); - Assertions.assertEquals(7982443333722102241L, response.iterator().next().size()); - Assertions.assertEquals("us", response.iterator().next().parentPath()); + Assertions.assertEquals("otiowlxteqd", response.iterator().next().path()); + Assertions.assertEquals(5387588961314601515L, response.iterator().next().size()); + Assertions.assertEquals("dtguk", response.iterator().next().parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java index e19d8218bf8b..206207858e81 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java @@ -1,38 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; -import com.azure.resourcemanager.netapp.models.SubvolumesList; -import java.util.Arrays; +import com.azure.resourcemanager.netapp.implementation.models.SubvolumesList; 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\":\"sxiftozq\",\"size\":319144288054659459,\"parentPath\":\"wesgogczh\",\"provisioningState\":\"nxkrlgnyhmossxkk\"},\"id\":\"h\",\"name\":\"rghxjb\",\"type\":\"hqxvcxgfrpdsofbs\"},{\"properties\":{\"path\":\"svbuswdvzyy\",\"size\":9049331973830942528,\"parentPath\":\"nvjsrtkfa\",\"provisioningState\":\"opqgikyzirtxdyux\"},\"id\":\"jntpsewgioilqu\",\"name\":\"rydxtqm\",\"type\":\"eoxorggufhyao\"},{\"properties\":{\"path\":\"ghhavgrvkffo\",\"size\":1220387324863982995,\"parentPath\":\"jbibg\",\"provisioningState\":\"fxumv\"},\"id\":\"luyovwxnbkfezzx\",\"name\":\"cy\",\"type\":\"wzdgirujbzbo\"}],\"nextLink\":\"zzbtdcqvpniyujvi\"}") + "{\"value\":[{\"properties\":{\"path\":\"bzevwrd\",\"size\":9209137872063887003,\"parentPath\":\"uvsj\",\"provisioningState\":\"wsmystuluqypf\"},\"id\":\"lerchpq\",\"name\":\"mfpjbabw\",\"type\":\"dfc\"},{\"properties\":{\"path\":\"puunnoxyhkxgqd\",\"size\":944157000221842248,\"parentPath\":\"fhoqca\",\"provisioningState\":\"wdaomdjvlpjxxkzb\"},\"id\":\"sgeivsiy\",\"name\":\"zkdnc\",\"type\":\"dxonbzoggculap\"},{\"properties\":{\"path\":\"rpgogtqxep\",\"size\":4258812781218679511,\"parentPath\":\"uajlyj\",\"provisioningState\":\"vofqzhvfc\"},\"id\":\"yfm\",\"name\":\"wuxrkjpvdwxfzwi\",\"type\":\"vwzjbhyz\"}],\"nextLink\":\"jrkambtrnegvmnv\"}") .toObject(SubvolumesList.class); - Assertions.assertEquals("sxiftozq", model.value().get(0).path()); - Assertions.assertEquals(319144288054659459L, model.value().get(0).size()); - Assertions.assertEquals("wesgogczh", model.value().get(0).parentPath()); - Assertions.assertEquals("zzbtdcqvpniyujvi", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumesList model = new SubvolumesList().withValue(Arrays.asList( - new SubvolumeInfoInner().withPath("sxiftozq").withSize(319144288054659459L).withParentPath("wesgogczh"), - new SubvolumeInfoInner().withPath("svbuswdvzyy").withSize(9049331973830942528L).withParentPath("nvjsrtkfa"), - new SubvolumeInfoInner().withPath("ghhavgrvkffo").withSize(1220387324863982995L).withParentPath("jbibg"))) - .withNextLink("zzbtdcqvpniyujvi"); - model = BinaryData.fromObject(model).toObject(SubvolumesList.class); - Assertions.assertEquals("sxiftozq", model.value().get(0).path()); - Assertions.assertEquals(319144288054659459L, model.value().get(0).size()); - Assertions.assertEquals("wesgogczh", model.value().get(0).parentPath()); - Assertions.assertEquals("zzbtdcqvpniyujvi", model.nextLink()); + Assertions.assertEquals("bzevwrd", model.value().get(0).path()); + Assertions.assertEquals(9209137872063887003L, model.value().get(0).size()); + Assertions.assertEquals("uvsj", model.value().get(0).parentPath()); + Assertions.assertEquals("jrkambtrnegvmnv", 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 index 32bc0e66f759..9766fbf16b75 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,15 +11,8 @@ public final class SvmPeerCommandResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SvmPeerCommandResponseInner model - = BinaryData.fromString("{\"svmPeeringCommand\":\"e\"}").toObject(SvmPeerCommandResponseInner.class); - Assertions.assertEquals("e", model.svmPeeringCommand()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SvmPeerCommandResponseInner model = new SvmPeerCommandResponseInner().withSvmPeeringCommand("e"); - model = BinaryData.fromObject(model).toObject(SvmPeerCommandResponseInner.class); - Assertions.assertEquals("e", model.svmPeeringCommand()); + SvmPeerCommandResponseInner model = BinaryData.fromString("{\"svmPeeringCommand\":\"mweriofzpy\"}") + .toObject(SvmPeerCommandResponseInner.class); + Assertions.assertEquals("mweriofzpy", model.svmPeeringCommand()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java index f45c5d989582..82a42eb4f2bc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,25 +13,24 @@ public final class UpdateNetworkSiblingSetRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UpdateNetworkSiblingSetRequest model = BinaryData.fromString( - "{\"networkSiblingSetId\":\"sncghkjeszz\",\"subnetId\":\"bijhtxfvgxbf\",\"networkSiblingSetStateId\":\"mxnehmp\",\"networkFeatures\":\"Basic\"}") + "{\"networkSiblingSetId\":\"m\",\"subnetId\":\"rafwgckhocxvdf\",\"networkSiblingSetStateId\":\"fwafqrouda\",\"networkFeatures\":\"Standard\"}") .toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("sncghkjeszz", model.networkSiblingSetId()); - Assertions.assertEquals("bijhtxfvgxbf", model.subnetId()); - Assertions.assertEquals("mxnehmp", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC, model.networkFeatures()); + Assertions.assertEquals("m", model.networkSiblingSetId()); + Assertions.assertEquals("rafwgckhocxvdf", model.subnetId()); + Assertions.assertEquals("fwafqrouda", model.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.STANDARD, model.networkFeatures()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UpdateNetworkSiblingSetRequest model - = new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("sncghkjeszz") - .withSubnetId("bijhtxfvgxbf") - .withNetworkSiblingSetStateId("mxnehmp") - .withNetworkFeatures(NetworkFeatures.BASIC); + UpdateNetworkSiblingSetRequest model = new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("m") + .withSubnetId("rafwgckhocxvdf") + .withNetworkSiblingSetStateId("fwafqrouda") + .withNetworkFeatures(NetworkFeatures.STANDARD); model = BinaryData.fromObject(model).toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("sncghkjeszz", model.networkSiblingSetId()); - Assertions.assertEquals("bijhtxfvgxbf", model.subnetId()); - Assertions.assertEquals("mxnehmp", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC, model.networkFeatures()); + Assertions.assertEquals("m", model.networkSiblingSetId()); + Assertions.assertEquals("rafwgckhocxvdf", model.subnetId()); + Assertions.assertEquals("fwafqrouda", model.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.STANDARD, model.networkFeatures()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java index 76b584cfab18..2cc0b06a6022 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,17 +11,9 @@ public final class UsageNameTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UsageName model - = BinaryData.fromString("{\"value\":\"yocf\",\"localizedValue\":\"ksymd\"}").toObject(UsageName.class); - Assertions.assertEquals("yocf", model.value()); - Assertions.assertEquals("ksymd", model.localizedValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UsageName model = new UsageName().withValue("yocf").withLocalizedValue("ksymd"); - model = BinaryData.fromObject(model).toObject(UsageName.class); - Assertions.assertEquals("yocf", model.value()); - Assertions.assertEquals("ksymd", model.localizedValue()); + UsageName model = BinaryData.fromString("{\"value\":\"cp\",\"localizedValue\":\"wkhihihlhzdsqt\"}") + .toObject(UsageName.class); + Assertions.assertEquals("cp", model.value()); + Assertions.assertEquals("wkhihihlhzdsqt", model.localizedValue()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java index 1f360ea508c5..e020d4ad97ac 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -10,14 +10,7 @@ public final class UsagePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UsageProperties model - = BinaryData.fromString("{\"currentValue\":830050857,\"limit\":1193107670,\"unit\":\"iuxhqyudxorr\"}") - .toObject(UsageProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UsageProperties model = new UsageProperties(); - model = BinaryData.fromObject(model).toObject(UsageProperties.class); + UsageProperties model = BinaryData.fromString("{\"currentValue\":19838939,\"limit\":1553526894,\"unit\":\"o\"}") + .toObject(UsageProperties.class); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java index 315f3dd8cc84..145324dd1fad 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,13 +11,7 @@ public final class UsageResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsageResultInner model = BinaryData.fromString( - "{\"id\":\"xbezyiuokktwh\",\"name\":{\"value\":\"wz\",\"localizedValue\":\"q\"},\"properties\":{\"currentValue\":1170430043,\"limit\":950260289,\"unit\":\"xim\"}}") + "{\"id\":\"pysownbt\",\"name\":{\"value\":\"u\",\"localizedValue\":\"jqctojcmisofie\"},\"properties\":{\"currentValue\":697365196,\"limit\":419692653,\"unit\":\"qdhcu\"}}") .toObject(UsageResultInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UsageResultInner model = new UsageResultInner(); - model = BinaryData.fromObject(model).toObject(UsageResultInner.class); - } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java index c79fea3f3b24..ab069030b2e2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java @@ -1,30 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner; -import com.azure.resourcemanager.netapp.models.UsagesListResult; -import java.util.Arrays; +import com.azure.resourcemanager.netapp.implementation.models.UsagesListResult; import org.junit.jupiter.api.Assertions; public final class UsagesListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsagesListResult model = BinaryData.fromString( - "{\"value\":[{\"id\":\"gdtjixhbkuofqwey\",\"name\":{\"value\":\"enevfyexfwhybci\",\"localizedValue\":\"yvdcsitynnaa\"},\"properties\":{\"currentValue\":872045444,\"limit\":282747126,\"unit\":\"f\"}},{\"id\":\"scjeypv\",\"name\":{\"value\":\"rkgqhcjrefo\",\"localizedValue\":\"mkqsleyyv\"},\"properties\":{\"currentValue\":440516085,\"limit\":152662254,\"unit\":\"attpngjcrcczsq\"}},{\"id\":\"hvmdajvnysounq\",\"name\":{\"value\":\"noae\",\"localizedValue\":\"fhyhltrpmopjmcma\"},\"properties\":{\"currentValue\":1605990961,\"limit\":607140678,\"unit\":\"uiuaodsfcpkvxodp\"}}],\"nextLink\":\"zmyzydagf\"}") + "{\"value\":[{\"id\":\"ehhr\",\"name\":{\"value\":\"unzo\",\"localizedValue\":\"dhcxgkmoy\"},\"properties\":{\"currentValue\":1357025963,\"limit\":1627365000,\"unit\":\"hmfdnbzydvfvfcj\"}},{\"id\":\"eoisrvhmgor\",\"name\":{\"value\":\"kiscvwmzhwpl\",\"localizedValue\":\"a\"},\"properties\":{\"currentValue\":1880007503,\"limit\":1897852291,\"unit\":\"tg\"}},{\"id\":\"nzeyqxtjj\",\"name\":{\"value\":\"lqhy\",\"localizedValue\":\"vodggxdbee\"},\"properties\":{\"currentValue\":1362863960,\"limit\":1356434972,\"unit\":\"ra\"}},{\"id\":\"aawiuagydwqfb\",\"name\":{\"value\":\"rfgi\",\"localizedValue\":\"tcojocqwo\"},\"properties\":{\"currentValue\":681423135,\"limit\":1685240406,\"unit\":\"sfzldmoz\"}}],\"nextLink\":\"ylfsbtk\"}") .toObject(UsagesListResult.class); - Assertions.assertEquals("zmyzydagf", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UsagesListResult model = new UsagesListResult() - .withValue(Arrays.asList(new UsageResultInner(), new UsageResultInner(), new UsageResultInner())) - .withNextLink("zmyzydagf"); - model = BinaryData.fromObject(model).toObject(UsagesListResult.class); - Assertions.assertEquals("zmyzydagf", model.nextLink()); + Assertions.assertEquals("ylfsbtk", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java index aea59c0620e2..577c52a76019 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,7 +11,7 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"9ee35cb6-014c-4686-a50b-4fa17ceba7e9\",\"clientId\":\"5cdbe763-05e7-463a-9c87-6612fb6f4e5c\"}") + "{\"principalId\":\"3157a975-d55a-496b-9ceb-81854d4dec9c\",\"clientId\":\"8d60eb5f-9c98-46d8-badc-e60292e75f6e\"}") .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 index 29b674086ec4..6654ab2c2e12 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,22 +11,22 @@ public final class VolumeBackupPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VolumeBackupProperties model - = BinaryData.fromString("{\"backupPolicyId\":\"op\",\"policyEnforced\":false,\"backupVaultId\":\"hhuao\"}") - .toObject(VolumeBackupProperties.class); - Assertions.assertEquals("op", model.backupPolicyId()); + VolumeBackupProperties model = BinaryData + .fromString("{\"backupPolicyId\":\"onuq\",\"policyEnforced\":false,\"backupVaultId\":\"beypewrmjmw\"}") + .toObject(VolumeBackupProperties.class); + Assertions.assertEquals("onuq", model.backupPolicyId()); Assertions.assertFalse(model.policyEnforced()); - Assertions.assertEquals("hhuao", model.backupVaultId()); + Assertions.assertEquals("beypewrmjmw", model.backupVaultId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeBackupProperties model = new VolumeBackupProperties().withBackupPolicyId("op") + VolumeBackupProperties model = new VolumeBackupProperties().withBackupPolicyId("onuq") .withPolicyEnforced(false) - .withBackupVaultId("hhuao"); + .withBackupVaultId("beypewrmjmw"); model = BinaryData.fromObject(model).toObject(VolumeBackupProperties.class); - Assertions.assertEquals("op", model.backupPolicyId()); + Assertions.assertEquals("onuq", model.backupPolicyId()); Assertions.assertFalse(model.policyEnforced()); - Assertions.assertEquals("hhuao", model.backupVaultId()); + Assertions.assertEquals("beypewrmjmw", 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 index 320d80964dd6..83903dcc5279 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,24 +12,11 @@ public final class VolumeBackupsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeBackups model = BinaryData.fromString( - "{\"volumeName\":\"ajpjo\",\"volumeResourceId\":\"kqnyh\",\"backupsCount\":506694346,\"policyEnabled\":true}") + "{\"volumeName\":\"fatpxllrxcyjmoa\",\"volumeResourceId\":\"uvarmywdmjsjq\",\"backupsCount\":1756269391,\"policyEnabled\":true}") .toObject(VolumeBackups.class); - Assertions.assertEquals("ajpjo", model.volumeName()); - Assertions.assertEquals("kqnyh", model.volumeResourceId()); - Assertions.assertEquals(506694346, model.backupsCount()); - Assertions.assertTrue(model.policyEnabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeBackups model = new VolumeBackups().withVolumeName("ajpjo") - .withVolumeResourceId("kqnyh") - .withBackupsCount(506694346) - .withPolicyEnabled(true); - model = BinaryData.fromObject(model).toObject(VolumeBackups.class); - Assertions.assertEquals("ajpjo", model.volumeName()); - Assertions.assertEquals("kqnyh", model.volumeResourceId()); - Assertions.assertEquals(506694346, model.backupsCount()); + Assertions.assertEquals("fatpxllrxcyjmoa", model.volumeName()); + Assertions.assertEquals("uvarmywdmjsjq", model.volumeResourceId()); + Assertions.assertEquals(1756269391, model.backupsCount()); Assertions.assertTrue(model.policyEnabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java index 23e8f6586f3d..4d9421247178 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.volumeGroups().delete("rhtgvgzpcrrkol", "w", "mjsmwr", com.azure.core.util.Context.NONE); + manager.volumeGroups().delete("vmm", "npqfrtqlkzmeg", "itgvkx", 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 index 89e316bf8097..4e2f4b3db7b9 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -14,25 +14,25 @@ public final class VolumePatchPropertiesDataProtectionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumePatchPropertiesDataProtection model = BinaryData.fromString( - "{\"backup\":{\"backupPolicyId\":\"wvnhdldwmgx\",\"policyEnforced\":true,\"backupVaultId\":\"lpmutwuoegrpkhj\"},\"snapshot\":{\"snapshotPolicyId\":\"yqsluic\"}}") + "{\"backup\":{\"backupPolicyId\":\"vxysl\",\"policyEnforced\":true,\"backupVaultId\":\"fxoblytkb\"},\"snapshot\":{\"snapshotPolicyId\":\"ewwwfbkrvrnsv\"}}") .toObject(VolumePatchPropertiesDataProtection.class); - Assertions.assertEquals("wvnhdldwmgx", model.backup().backupPolicyId()); + Assertions.assertEquals("vxysl", model.backup().backupPolicyId()); Assertions.assertTrue(model.backup().policyEnforced()); - Assertions.assertEquals("lpmutwuoegrpkhj", model.backup().backupVaultId()); - Assertions.assertEquals("yqsluic", model.snapshot().snapshotPolicyId()); + Assertions.assertEquals("fxoblytkb", model.backup().backupVaultId()); + Assertions.assertEquals("ewwwfbkrvrnsv", model.snapshot().snapshotPolicyId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VolumePatchPropertiesDataProtection model = new VolumePatchPropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("wvnhdldwmgx") + .withBackup(new VolumeBackupProperties().withBackupPolicyId("vxysl") .withPolicyEnforced(true) - .withBackupVaultId("lpmutwuoegrpkhj")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("yqsluic")); + .withBackupVaultId("fxoblytkb")) + .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("ewwwfbkrvrnsv")); model = BinaryData.fromObject(model).toObject(VolumePatchPropertiesDataProtection.class); - Assertions.assertEquals("wvnhdldwmgx", model.backup().backupPolicyId()); + Assertions.assertEquals("vxysl", model.backup().backupPolicyId()); Assertions.assertTrue(model.backup().policyEnforced()); - Assertions.assertEquals("lpmutwuoegrpkhj", model.backup().backupVaultId()); - Assertions.assertEquals("yqsluic", model.snapshot().snapshotPolicyId()); + Assertions.assertEquals("fxoblytkb", model.backup().backupVaultId()); + Assertions.assertEquals("ewwwfbkrvrnsv", 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 index 24eac2722fb7..496d66640c74 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -15,61 +15,61 @@ public final class VolumePatchPropertiesExportPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumePatchPropertiesExportPolicy model = BinaryData.fromString( - "{\"rules\":[{\"ruleIndex\":183492568,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"fgdkzzew\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":875285248,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"xsaga\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1260393669,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"drhvoodsotbo\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"}]}") + "{\"rules\":[{\"ruleIndex\":1990032205,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"grcfb\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1710295425,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"r\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1314959549,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"tdo\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"}]}") .toObject(VolumePatchPropertiesExportPolicy.class); - Assertions.assertEquals(183492568, model.rules().get(0).ruleIndex()); - Assertions.assertFalse(model.rules().get(0).unixReadOnly()); - Assertions.assertTrue(model.rules().get(0).unixReadWrite()); - Assertions.assertTrue(model.rules().get(0).kerberos5ReadOnly()); + Assertions.assertEquals(1990032205, model.rules().get(0).ruleIndex()); + Assertions.assertTrue(model.rules().get(0).unixReadOnly()); + Assertions.assertFalse(model.rules().get(0).unixReadWrite()); + Assertions.assertFalse(model.rules().get(0).kerberos5ReadOnly()); Assertions.assertFalse(model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertFalse(model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertTrue(model.rules().get(0).kerberos5IReadWrite()); + Assertions.assertTrue(model.rules().get(0).kerberos5IReadOnly()); + Assertions.assertFalse(model.rules().get(0).kerberos5IReadWrite()); Assertions.assertTrue(model.rules().get(0).kerberos5PReadOnly()); Assertions.assertTrue(model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertFalse(model.rules().get(0).cifs()); + Assertions.assertTrue(model.rules().get(0).cifs()); Assertions.assertFalse(model.rules().get(0).nfsv3()); Assertions.assertTrue(model.rules().get(0).nfsv41()); - Assertions.assertEquals("fgdkzzew", model.rules().get(0).allowedClients()); - Assertions.assertFalse(model.rules().get(0).hasRootAccess()); + Assertions.assertEquals("grcfb", model.rules().get(0).allowedClients()); + Assertions.assertTrue(model.rules().get(0).hasRootAccess()); Assertions.assertEquals(ChownMode.UNRESTRICTED, 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(183492568) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) + new ExportPolicyRule().withRuleIndex(1990032205) + .withUnixReadOnly(true) + .withUnixReadWrite(false) + .withKerberos5ReadOnly(false) .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) + .withKerberos5IReadOnly(true) + .withKerberos5IReadWrite(false) .withKerberos5PReadOnly(true) .withKerberos5PReadWrite(true) - .withCifs(false) + .withCifs(true) .withNfsv3(false) .withNfsv41(true) - .withAllowedClients("fgdkzzew") - .withHasRootAccess(false) + .withAllowedClients("grcfb") + .withHasRootAccess(true) .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule().withRuleIndex(875285248) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(false) + new ExportPolicyRule().withRuleIndex(1710295425) + .withUnixReadOnly(false) + .withUnixReadWrite(true) + .withKerberos5ReadOnly(true) .withKerberos5ReadWrite(false) .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) + .withKerberos5IReadWrite(false) .withKerberos5PReadOnly(true) .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(true) + .withCifs(true) + .withNfsv3(false) .withNfsv41(false) - .withAllowedClients("xsaga") + .withAllowedClients("r") .withHasRootAccess(true) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule().withRuleIndex(1260393669) + .withChownMode(ChownMode.UNRESTRICTED), + new ExportPolicyRule().withRuleIndex(1314959549) .withUnixReadOnly(true) - .withUnixReadWrite(false) + .withUnixReadWrite(true) .withKerberos5ReadOnly(true) .withKerberos5ReadWrite(false) .withKerberos5IReadOnly(true) @@ -79,24 +79,24 @@ public void testSerialize() throws Exception { .withCifs(true) .withNfsv3(true) .withNfsv41(true) - .withAllowedClients("drhvoodsotbo") + .withAllowedClients("tdo") .withHasRootAccess(true) .withChownMode(ChownMode.RESTRICTED))); model = BinaryData.fromObject(model).toObject(VolumePatchPropertiesExportPolicy.class); - Assertions.assertEquals(183492568, model.rules().get(0).ruleIndex()); - Assertions.assertFalse(model.rules().get(0).unixReadOnly()); - Assertions.assertTrue(model.rules().get(0).unixReadWrite()); - Assertions.assertTrue(model.rules().get(0).kerberos5ReadOnly()); + Assertions.assertEquals(1990032205, model.rules().get(0).ruleIndex()); + Assertions.assertTrue(model.rules().get(0).unixReadOnly()); + Assertions.assertFalse(model.rules().get(0).unixReadWrite()); + Assertions.assertFalse(model.rules().get(0).kerberos5ReadOnly()); Assertions.assertFalse(model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertFalse(model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertTrue(model.rules().get(0).kerberos5IReadWrite()); + Assertions.assertTrue(model.rules().get(0).kerberos5IReadOnly()); + Assertions.assertFalse(model.rules().get(0).kerberos5IReadWrite()); Assertions.assertTrue(model.rules().get(0).kerberos5PReadOnly()); Assertions.assertTrue(model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertFalse(model.rules().get(0).cifs()); + Assertions.assertTrue(model.rules().get(0).cifs()); Assertions.assertFalse(model.rules().get(0).nfsv3()); Assertions.assertTrue(model.rules().get(0).nfsv41()); - Assertions.assertEquals("fgdkzzew", model.rules().get(0).allowedClients()); - Assertions.assertFalse(model.rules().get(0).hasRootAccess()); + Assertions.assertEquals("grcfb", model.rules().get(0).allowedClients()); + Assertions.assertTrue(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/VolumePatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java index 24101aa73e93..69616e9cef5b 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -24,39 +24,39 @@ public final class VolumePatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumePatchProperties model = BinaryData.fromString( - "{\"serviceLevel\":\"Ultra\",\"usageThreshold\":877746656530607911,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1995245792,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"odkwobd\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1795454962,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"plbpodxun\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1819295736,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"l\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"}]},\"protocolTypes\":[\"uwz\",\"zxb\",\"pgcjefuzmuvp\"],\"throughputMibps\":20.674778,\"dataProtection\":{\"backup\":{\"backupPolicyId\":\"orppxebmnzbtb\",\"policyEnforced\":false,\"backupVaultId\":\"lkfg\"},\"snapshot\":{\"snapshotPolicyId\":\"neuelfphsdyhtoz\"}},\"isDefaultQuotaEnabled\":false,\"defaultUserQuotaInKiBs\":1123884029466838588,\"defaultGroupQuotaInKiBs\":739493966833728448,\"unixPermissions\":\"v\",\"coolAccess\":false,\"coolnessPeriod\":1447033048,\"coolAccessRetrievalPolicy\":\"Never\",\"coolAccessTieringPolicy\":\"SnapshotOnly\",\"snapshotDirectoryVisible\":true,\"smbAccessBasedEnumeration\":\"Disabled\",\"smbNonBrowsable\":\"Disabled\"}") + "{\"serviceLevel\":\"Standard\",\"usageThreshold\":8523587026698323408,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":2120108327,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"pnyiropuhp\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"}]},\"protocolTypes\":[\"gqgitxmedjvcsl\"],\"throughputMibps\":31.70938,\"dataProtection\":{\"backup\":{\"backupPolicyId\":\"cwzzhxgktr\",\"policyEnforced\":true,\"backupVaultId\":\"napkteoellw\"},\"snapshot\":{\"snapshotPolicyId\":\"d\"}},\"isDefaultQuotaEnabled\":true,\"defaultUserQuotaInKiBs\":4189677250965468268,\"defaultGroupQuotaInKiBs\":1621994351674627524,\"unixPermissions\":\"op\",\"coolAccess\":false,\"coolnessPeriod\":1219903446,\"coolAccessRetrievalPolicy\":\"OnRead\",\"coolAccessTieringPolicy\":\"Auto\",\"snapshotDirectoryVisible\":true,\"smbAccessBasedEnumeration\":\"Disabled\",\"smbNonBrowsable\":\"Disabled\"}") .toObject(VolumePatchProperties.class); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(877746656530607911L, model.usageThreshold()); - Assertions.assertEquals(1995245792, model.exportPolicy().rules().get(0).ruleIndex()); + Assertions.assertEquals(ServiceLevel.STANDARD, model.serviceLevel()); + Assertions.assertEquals(8523587026698323408L, model.usageThreshold()); + Assertions.assertEquals(2120108327, model.exportPolicy().rules().get(0).ruleIndex()); Assertions.assertFalse(model.exportPolicy().rules().get(0).unixReadOnly()); Assertions.assertFalse(model.exportPolicy().rules().get(0).unixReadWrite()); Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5ReadOnly()); Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5ReadWrite()); - Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5IReadOnly()); - Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5IReadWrite()); - Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5PReadOnly()); + Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5IReadOnly()); + Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5IReadWrite()); + Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5PReadOnly()); Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertFalse(model.exportPolicy().rules().get(0).cifs()); + Assertions.assertTrue(model.exportPolicy().rules().get(0).cifs()); Assertions.assertTrue(model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertFalse(model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("odkwobd", model.exportPolicy().rules().get(0).allowedClients()); + Assertions.assertTrue(model.exportPolicy().rules().get(0).nfsv41()); + Assertions.assertEquals("pnyiropuhp", model.exportPolicy().rules().get(0).allowedClients()); Assertions.assertTrue(model.exportPolicy().rules().get(0).hasRootAccess()); Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("uwz", model.protocolTypes().get(0)); - Assertions.assertEquals(20.674778F, model.throughputMibps()); - Assertions.assertEquals("orppxebmnzbtb", model.dataProtection().backup().backupPolicyId()); - Assertions.assertFalse(model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("lkfg", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("neuelfphsdyhtoz", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertFalse(model.isDefaultQuotaEnabled()); - Assertions.assertEquals(1123884029466838588L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(739493966833728448L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("v", model.unixPermissions()); + Assertions.assertEquals("gqgitxmedjvcsl", model.protocolTypes().get(0)); + Assertions.assertEquals(31.70938F, model.throughputMibps()); + Assertions.assertEquals("cwzzhxgktr", model.dataProtection().backup().backupPolicyId()); + Assertions.assertTrue(model.dataProtection().backup().policyEnforced()); + Assertions.assertEquals("napkteoellw", model.dataProtection().backup().backupVaultId()); + Assertions.assertEquals("d", model.dataProtection().snapshot().snapshotPolicyId()); + Assertions.assertTrue(model.isDefaultQuotaEnabled()); + Assertions.assertEquals(4189677250965468268L, model.defaultUserQuotaInKiBs()); + Assertions.assertEquals(1621994351674627524L, model.defaultGroupQuotaInKiBs()); + Assertions.assertEquals("op", model.unixPermissions()); Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(1447033048, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.NEVER, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(CoolAccessTieringPolicy.SNAPSHOT_ONLY, model.coolAccessTieringPolicy()); + Assertions.assertEquals(1219903446, model.coolnessPeriod()); + Assertions.assertEquals(CoolAccessRetrievalPolicy.ON_READ, model.coolAccessRetrievalPolicy()); + Assertions.assertEquals(CoolAccessTieringPolicy.AUTO, model.coolAccessTieringPolicy()); Assertions.assertTrue(model.snapshotDirectoryVisible()); Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, model.smbAccessBasedEnumeration()); Assertions.assertEquals(SmbNonBrowsable.DISABLED, model.smbNonBrowsable()); @@ -64,104 +64,74 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumePatchProperties model = new VolumePatchProperties().withServiceLevel(ServiceLevel.ULTRA) - .withUsageThreshold(877746656530607911L) - .withExportPolicy(new VolumePatchPropertiesExportPolicy().withRules(Arrays.asList( - new ExportPolicyRule().withRuleIndex(1995245792) - .withUnixReadOnly(false) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(true) - .withNfsv41(false) - .withAllowedClients("odkwobd") - .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule().withRuleIndex(1795454962) + VolumePatchProperties model = new VolumePatchProperties().withServiceLevel(ServiceLevel.STANDARD) + .withUsageThreshold(8523587026698323408L) + .withExportPolicy(new VolumePatchPropertiesExportPolicy() + .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(2120108327) .withUnixReadOnly(false) .withUnixReadWrite(false) .withKerberos5ReadOnly(true) .withKerberos5ReadWrite(true) .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("plbpodxun") - .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule().withRuleIndex(1819295736) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("l") + .withKerberos5PReadOnly(false) + .withKerberos5PReadWrite(false) + .withCifs(true) + .withNfsv3(true) + .withNfsv41(true) + .withAllowedClients("pnyiropuhp") .withHasRootAccess(true) .withChownMode(ChownMode.UNRESTRICTED)))) - .withProtocolTypes(Arrays.asList("uwz", "zxb", "pgcjefuzmuvp")) - .withThroughputMibps(20.674778F) + .withProtocolTypes(Arrays.asList("gqgitxmedjvcsl")) + .withThroughputMibps(31.70938F) .withDataProtection(new VolumePatchPropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("orppxebmnzbtb") - .withPolicyEnforced(false) - .withBackupVaultId("lkfg")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("neuelfphsdyhtoz"))) - .withIsDefaultQuotaEnabled(false) - .withDefaultUserQuotaInKiBs(1123884029466838588L) - .withDefaultGroupQuotaInKiBs(739493966833728448L) - .withUnixPermissions("v") + .withBackup(new VolumeBackupProperties().withBackupPolicyId("cwzzhxgktr") + .withPolicyEnforced(true) + .withBackupVaultId("napkteoellw")) + .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("d"))) + .withIsDefaultQuotaEnabled(true) + .withDefaultUserQuotaInKiBs(4189677250965468268L) + .withDefaultGroupQuotaInKiBs(1621994351674627524L) + .withUnixPermissions("op") .withCoolAccess(false) - .withCoolnessPeriod(1447033048) - .withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy.NEVER) - .withCoolAccessTieringPolicy(CoolAccessTieringPolicy.SNAPSHOT_ONLY) + .withCoolnessPeriod(1219903446) + .withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy.ON_READ) + .withCoolAccessTieringPolicy(CoolAccessTieringPolicy.AUTO) .withSnapshotDirectoryVisible(true) .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED) .withSmbNonBrowsable(SmbNonBrowsable.DISABLED); model = BinaryData.fromObject(model).toObject(VolumePatchProperties.class); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(877746656530607911L, model.usageThreshold()); - Assertions.assertEquals(1995245792, model.exportPolicy().rules().get(0).ruleIndex()); + Assertions.assertEquals(ServiceLevel.STANDARD, model.serviceLevel()); + Assertions.assertEquals(8523587026698323408L, model.usageThreshold()); + Assertions.assertEquals(2120108327, model.exportPolicy().rules().get(0).ruleIndex()); Assertions.assertFalse(model.exportPolicy().rules().get(0).unixReadOnly()); Assertions.assertFalse(model.exportPolicy().rules().get(0).unixReadWrite()); Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5ReadOnly()); Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5ReadWrite()); - Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5IReadOnly()); - Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5IReadWrite()); - Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5PReadOnly()); + Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5IReadOnly()); + Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5IReadWrite()); + Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5PReadOnly()); Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertFalse(model.exportPolicy().rules().get(0).cifs()); + Assertions.assertTrue(model.exportPolicy().rules().get(0).cifs()); Assertions.assertTrue(model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertFalse(model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("odkwobd", model.exportPolicy().rules().get(0).allowedClients()); + Assertions.assertTrue(model.exportPolicy().rules().get(0).nfsv41()); + Assertions.assertEquals("pnyiropuhp", model.exportPolicy().rules().get(0).allowedClients()); Assertions.assertTrue(model.exportPolicy().rules().get(0).hasRootAccess()); Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("uwz", model.protocolTypes().get(0)); - Assertions.assertEquals(20.674778F, model.throughputMibps()); - Assertions.assertEquals("orppxebmnzbtb", model.dataProtection().backup().backupPolicyId()); - Assertions.assertFalse(model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("lkfg", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("neuelfphsdyhtoz", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertFalse(model.isDefaultQuotaEnabled()); - Assertions.assertEquals(1123884029466838588L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(739493966833728448L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("v", model.unixPermissions()); + Assertions.assertEquals("gqgitxmedjvcsl", model.protocolTypes().get(0)); + Assertions.assertEquals(31.70938F, model.throughputMibps()); + Assertions.assertEquals("cwzzhxgktr", model.dataProtection().backup().backupPolicyId()); + Assertions.assertTrue(model.dataProtection().backup().policyEnforced()); + Assertions.assertEquals("napkteoellw", model.dataProtection().backup().backupVaultId()); + Assertions.assertEquals("d", model.dataProtection().snapshot().snapshotPolicyId()); + Assertions.assertTrue(model.isDefaultQuotaEnabled()); + Assertions.assertEquals(4189677250965468268L, model.defaultUserQuotaInKiBs()); + Assertions.assertEquals(1621994351674627524L, model.defaultGroupQuotaInKiBs()); + Assertions.assertEquals("op", model.unixPermissions()); Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(1447033048, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.NEVER, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(CoolAccessTieringPolicy.SNAPSHOT_ONLY, model.coolAccessTieringPolicy()); + Assertions.assertEquals(1219903446, model.coolnessPeriod()); + Assertions.assertEquals(CoolAccessRetrievalPolicy.ON_READ, model.coolAccessRetrievalPolicy()); + Assertions.assertEquals(CoolAccessTieringPolicy.AUTO, model.coolAccessTieringPolicy()); Assertions.assertTrue(model.snapshotDirectoryVisible()); Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, model.smbAccessBasedEnumeration()); Assertions.assertEquals(SmbNonBrowsable.DISABLED, 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 index 8d3974099433..d0c4765b70e2 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -26,136 +26,166 @@ public final class VolumePatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumePatch model = BinaryData.fromString( - "{\"properties\":{\"serviceLevel\":\"Ultra\",\"usageThreshold\":6783178562921072735,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1133541665,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"ybn\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1130044611,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"nzdndslgna\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"}]},\"protocolTypes\":[\"uhavhql\",\"thuma\",\"olbgycduiertgccy\"],\"throughputMibps\":30.20277,\"dataProtection\":{\"backup\":{\"backupPolicyId\":\"ssl\",\"policyEnforced\":false,\"backupVaultId\":\"mdnbbglzpswiy\"},\"snapshot\":{\"snapshotPolicyId\":\"wyhzdx\"}},\"isDefaultQuotaEnabled\":true,\"defaultUserQuotaInKiBs\":3261490626317443130,\"defaultGroupQuotaInKiBs\":527102059874859174,\"unixPermissions\":\"fznudaodvxzb\",\"coolAccess\":true,\"coolnessPeriod\":1795882398,\"coolAccessRetrievalPolicy\":\"Never\",\"coolAccessTieringPolicy\":\"SnapshotOnly\",\"snapshotDirectoryVisible\":true,\"smbAccessBasedEnumeration\":\"Enabled\",\"smbNonBrowsable\":\"Enabled\"},\"location\":\"rzdzucerscdnt\",\"tags\":{\"tmweriofzpyq\":\"fiwjmygtdssls\",\"hhszh\":\"emwabnet\",\"lvwiwubmwmbesl\":\"d\"},\"id\":\"nkww\",\"name\":\"pp\",\"type\":\"flcxoga\"}") + "{\"location\":\"ow\",\"id\":\"przqlveu\",\"name\":\"upjm\",\"type\":\"fxobbcsws\",\"tags\":{\"fgb\":\"riplrbpbewtg\",\"wxzvlvqhjkb\":\"c\",\"iebwwaloayqcgwrt\":\"gibtnm\",\"zg\":\"j\"},\"properties\":{\"serviceLevel\":\"Standard\",\"usageThreshold\":4114340895697399622,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":351214213,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"hprwmdyv\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1285325454,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"mefqsgzvahapjyzh\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":141640204,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"vzunluthnnprnxi\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1819249918,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"gpw\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"}]},\"protocolTypes\":[\"bsjyofdx\"],\"throughputMibps\":7.019162,\"dataProtection\":{\"backup\":{\"backupPolicyId\":\"touwaboekqv\",\"policyEnforced\":false,\"backupVaultId\":\"smv\"},\"snapshot\":{\"snapshotPolicyId\":\"yjsflhhcaalnji\"}},\"isDefaultQuotaEnabled\":true,\"defaultUserQuotaInKiBs\":2531128431130049580,\"defaultGroupQuotaInKiBs\":4035973624859613630,\"unixPermissions\":\"aq\",\"coolAccess\":false,\"coolnessPeriod\":2113030944,\"coolAccessRetrievalPolicy\":\"Default\",\"coolAccessTieringPolicy\":\"SnapshotOnly\",\"snapshotDirectoryVisible\":false,\"smbAccessBasedEnumeration\":\"Enabled\",\"smbNonBrowsable\":\"Enabled\"}}") .toObject(VolumePatch.class); - Assertions.assertEquals("rzdzucerscdnt", model.location()); - Assertions.assertEquals("fiwjmygtdssls", model.tags().get("tmweriofzpyq")); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(6783178562921072735L, model.usageThreshold()); - Assertions.assertEquals(1133541665, model.exportPolicy().rules().get(0).ruleIndex()); + Assertions.assertEquals("ow", model.location()); + Assertions.assertEquals("riplrbpbewtg", model.tags().get("fgb")); + Assertions.assertEquals(ServiceLevel.STANDARD, model.serviceLevel()); + Assertions.assertEquals(4114340895697399622L, model.usageThreshold()); + Assertions.assertEquals(351214213, model.exportPolicy().rules().get(0).ruleIndex()); Assertions.assertFalse(model.exportPolicy().rules().get(0).unixReadOnly()); Assertions.assertTrue(model.exportPolicy().rules().get(0).unixReadWrite()); - Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5ReadOnly()); - Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5ReadWrite()); + Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5ReadOnly()); + Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5ReadWrite()); Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5IReadOnly()); Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5IReadWrite()); Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5PReadWrite()); + Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5PReadWrite()); Assertions.assertTrue(model.exportPolicy().rules().get(0).cifs()); Assertions.assertTrue(model.exportPolicy().rules().get(0).nfsv3()); Assertions.assertTrue(model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("ybn", model.exportPolicy().rules().get(0).allowedClients()); + Assertions.assertEquals("hprwmdyv", model.exportPolicy().rules().get(0).allowedClients()); Assertions.assertTrue(model.exportPolicy().rules().get(0).hasRootAccess()); Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("uhavhql", model.protocolTypes().get(0)); - Assertions.assertEquals(30.20277F, model.throughputMibps()); - Assertions.assertEquals("ssl", model.dataProtection().backup().backupPolicyId()); + Assertions.assertEquals("bsjyofdx", model.protocolTypes().get(0)); + Assertions.assertEquals(7.019162F, model.throughputMibps()); + Assertions.assertEquals("touwaboekqv", model.dataProtection().backup().backupPolicyId()); Assertions.assertFalse(model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("mdnbbglzpswiy", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("wyhzdx", model.dataProtection().snapshot().snapshotPolicyId()); + Assertions.assertEquals("smv", model.dataProtection().backup().backupVaultId()); + Assertions.assertEquals("yjsflhhcaalnji", model.dataProtection().snapshot().snapshotPolicyId()); Assertions.assertTrue(model.isDefaultQuotaEnabled()); - Assertions.assertEquals(3261490626317443130L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(527102059874859174L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("fznudaodvxzb", model.unixPermissions()); - Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(1795882398, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.NEVER, model.coolAccessRetrievalPolicy()); + Assertions.assertEquals(2531128431130049580L, model.defaultUserQuotaInKiBs()); + Assertions.assertEquals(4035973624859613630L, model.defaultGroupQuotaInKiBs()); + Assertions.assertEquals("aq", model.unixPermissions()); + Assertions.assertFalse(model.coolAccess()); + Assertions.assertEquals(2113030944, model.coolnessPeriod()); + Assertions.assertEquals(CoolAccessRetrievalPolicy.DEFAULT, model.coolAccessRetrievalPolicy()); Assertions.assertEquals(CoolAccessTieringPolicy.SNAPSHOT_ONLY, model.coolAccessTieringPolicy()); - Assertions.assertTrue(model.snapshotDirectoryVisible()); + Assertions.assertFalse(model.snapshotDirectoryVisible()); Assertions.assertEquals(SmbAccessBasedEnumeration.ENABLED, model.smbAccessBasedEnumeration()); Assertions.assertEquals(SmbNonBrowsable.ENABLED, model.smbNonBrowsable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumePatch model = new VolumePatch().withLocation("rzdzucerscdnt") - .withTags(mapOf("tmweriofzpyq", "fiwjmygtdssls", "hhszh", "emwabnet", "lvwiwubmwmbesl", "d")) - .withServiceLevel(ServiceLevel.ULTRA) - .withUsageThreshold(6783178562921072735L) + VolumePatch model = new VolumePatch().withLocation("ow") + .withTags(mapOf("fgb", "riplrbpbewtg", "wxzvlvqhjkb", "c", "iebwwaloayqcgwrt", "gibtnm", "zg", "j")) + .withServiceLevel(ServiceLevel.STANDARD) + .withUsageThreshold(4114340895697399622L) .withExportPolicy(new VolumePatchPropertiesExportPolicy().withRules(Arrays.asList( - new ExportPolicyRule().withRuleIndex(1133541665) + new ExportPolicyRule().withRuleIndex(351214213) .withUnixReadOnly(false) .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(false) + .withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(true) .withKerberos5IReadOnly(true) .withKerberos5IReadWrite(true) .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) + .withKerberos5PReadWrite(false) .withCifs(true) .withNfsv3(true) .withNfsv41(true) - .withAllowedClients("ybn") + .withAllowedClients("hprwmdyv") .withHasRootAccess(true) .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule().withRuleIndex(1130044611) + new ExportPolicyRule().withRuleIndex(1285325454) .withUnixReadOnly(true) - .withUnixReadWrite(true) + .withUnixReadWrite(false) .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(false) + .withKerberos5ReadWrite(true) + .withKerberos5IReadOnly(false) + .withKerberos5IReadWrite(true) + .withKerberos5PReadOnly(false) + .withKerberos5PReadWrite(true) .withCifs(true) .withNfsv3(false) .withNfsv41(false) - .withAllowedClients("nzdndslgna") + .withAllowedClients("mefqsgzvahapjyzh") + .withHasRootAccess(false) + .withChownMode(ChownMode.UNRESTRICTED), + new ExportPolicyRule().withRuleIndex(141640204) + .withUnixReadOnly(true) + .withUnixReadWrite(false) + .withKerberos5ReadOnly(true) + .withKerberos5ReadWrite(false) + .withKerberos5IReadOnly(false) + .withKerberos5IReadWrite(true) + .withKerberos5PReadOnly(false) + .withKerberos5PReadWrite(true) + .withCifs(false) + .withNfsv3(true) + .withNfsv41(true) + .withAllowedClients("vzunluthnnprnxi") .withHasRootAccess(true) + .withChownMode(ChownMode.RESTRICTED), + new ExportPolicyRule().withRuleIndex(1819249918) + .withUnixReadOnly(false) + .withUnixReadWrite(true) + .withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(true) + .withKerberos5IReadOnly(false) + .withKerberos5IReadWrite(true) + .withKerberos5PReadOnly(true) + .withKerberos5PReadWrite(true) + .withCifs(true) + .withNfsv3(true) + .withNfsv41(false) + .withAllowedClients("gpw") + .withHasRootAccess(false) .withChownMode(ChownMode.RESTRICTED)))) - .withProtocolTypes(Arrays.asList("uhavhql", "thuma", "olbgycduiertgccy")) - .withThroughputMibps(30.20277F) + .withProtocolTypes(Arrays.asList("bsjyofdx")) + .withThroughputMibps(7.019162F) .withDataProtection(new VolumePatchPropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("ssl") + .withBackup(new VolumeBackupProperties().withBackupPolicyId("touwaboekqv") .withPolicyEnforced(false) - .withBackupVaultId("mdnbbglzpswiy")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("wyhzdx"))) + .withBackupVaultId("smv")) + .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("yjsflhhcaalnji"))) .withIsDefaultQuotaEnabled(true) - .withDefaultUserQuotaInKiBs(3261490626317443130L) - .withDefaultGroupQuotaInKiBs(527102059874859174L) - .withUnixPermissions("fznudaodvxzb") - .withCoolAccess(true) - .withCoolnessPeriod(1795882398) - .withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy.NEVER) + .withDefaultUserQuotaInKiBs(2531128431130049580L) + .withDefaultGroupQuotaInKiBs(4035973624859613630L) + .withUnixPermissions("aq") + .withCoolAccess(false) + .withCoolnessPeriod(2113030944) + .withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy.DEFAULT) .withCoolAccessTieringPolicy(CoolAccessTieringPolicy.SNAPSHOT_ONLY) - .withSnapshotDirectoryVisible(true) + .withSnapshotDirectoryVisible(false) .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.ENABLED) .withSmbNonBrowsable(SmbNonBrowsable.ENABLED); model = BinaryData.fromObject(model).toObject(VolumePatch.class); - Assertions.assertEquals("rzdzucerscdnt", model.location()); - Assertions.assertEquals("fiwjmygtdssls", model.tags().get("tmweriofzpyq")); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(6783178562921072735L, model.usageThreshold()); - Assertions.assertEquals(1133541665, model.exportPolicy().rules().get(0).ruleIndex()); + Assertions.assertEquals("ow", model.location()); + Assertions.assertEquals("riplrbpbewtg", model.tags().get("fgb")); + Assertions.assertEquals(ServiceLevel.STANDARD, model.serviceLevel()); + Assertions.assertEquals(4114340895697399622L, model.usageThreshold()); + Assertions.assertEquals(351214213, model.exportPolicy().rules().get(0).ruleIndex()); Assertions.assertFalse(model.exportPolicy().rules().get(0).unixReadOnly()); Assertions.assertTrue(model.exportPolicy().rules().get(0).unixReadWrite()); - Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5ReadOnly()); - Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5ReadWrite()); + Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5ReadOnly()); + Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5ReadWrite()); Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5IReadOnly()); Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5IReadWrite()); Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertTrue(model.exportPolicy().rules().get(0).kerberos5PReadWrite()); + Assertions.assertFalse(model.exportPolicy().rules().get(0).kerberos5PReadWrite()); Assertions.assertTrue(model.exportPolicy().rules().get(0).cifs()); Assertions.assertTrue(model.exportPolicy().rules().get(0).nfsv3()); Assertions.assertTrue(model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("ybn", model.exportPolicy().rules().get(0).allowedClients()); + Assertions.assertEquals("hprwmdyv", model.exportPolicy().rules().get(0).allowedClients()); Assertions.assertTrue(model.exportPolicy().rules().get(0).hasRootAccess()); Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("uhavhql", model.protocolTypes().get(0)); - Assertions.assertEquals(30.20277F, model.throughputMibps()); - Assertions.assertEquals("ssl", model.dataProtection().backup().backupPolicyId()); + Assertions.assertEquals("bsjyofdx", model.protocolTypes().get(0)); + Assertions.assertEquals(7.019162F, model.throughputMibps()); + Assertions.assertEquals("touwaboekqv", model.dataProtection().backup().backupPolicyId()); Assertions.assertFalse(model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("mdnbbglzpswiy", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("wyhzdx", model.dataProtection().snapshot().snapshotPolicyId()); + Assertions.assertEquals("smv", model.dataProtection().backup().backupVaultId()); + Assertions.assertEquals("yjsflhhcaalnji", model.dataProtection().snapshot().snapshotPolicyId()); Assertions.assertTrue(model.isDefaultQuotaEnabled()); - Assertions.assertEquals(3261490626317443130L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(527102059874859174L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("fznudaodvxzb", model.unixPermissions()); - Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(1795882398, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.NEVER, model.coolAccessRetrievalPolicy()); + Assertions.assertEquals(2531128431130049580L, model.defaultUserQuotaInKiBs()); + Assertions.assertEquals(4035973624859613630L, model.defaultGroupQuotaInKiBs()); + Assertions.assertEquals("aq", model.unixPermissions()); + Assertions.assertFalse(model.coolAccess()); + Assertions.assertEquals(2113030944, model.coolnessPeriod()); + Assertions.assertEquals(CoolAccessRetrievalPolicy.DEFAULT, model.coolAccessRetrievalPolicy()); Assertions.assertEquals(CoolAccessTieringPolicy.SNAPSHOT_ONLY, model.coolAccessTieringPolicy()); - Assertions.assertTrue(model.snapshotDirectoryVisible()); + Assertions.assertFalse(model.snapshotDirectoryVisible()); Assertions.assertEquals(SmbAccessBasedEnumeration.ENABLED, model.smbAccessBasedEnumeration()); Assertions.assertEquals(SmbNonBrowsable.ENABLED, model.smbNonBrowsable()); } 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 index 56de79403ef5..c5cb2e26de4e 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -18,46 +18,46 @@ public final class VolumePropertiesDataProtectionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumePropertiesDataProtection model = BinaryData.fromString( - "{\"backup\":{\"backupPolicyId\":\"vgqzcjrvxd\",\"policyEnforced\":true,\"backupVaultId\":\"wlxkvugfhzovaw\"},\"replication\":{\"replicationId\":\"u\",\"endpointType\":\"dst\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"n\",\"remotePath\":{\"externalHostName\":\"nxipeil\",\"serverName\":\"jzuaejxdultskzbb\",\"volumeName\":\"dzumveekg\"},\"remoteVolumeRegion\":\"ozuhkfp\",\"destinationReplications\":[{\"resourceId\":\"ofd\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"sd\",\"zone\":\"ouwaboekqvkeln\"},{\"resourceId\":\"vbxwyjsflhh\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"n\",\"zone\":\"xisxyawjoyaqcsl\"},{\"resourceId\":\"pkii\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"xznelixhnrztf\",\"zone\":\"hb\"},{\"resourceId\":\"knalaulppg\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"napnyiropuhpigv\",\"zone\":\"ylgqgitxmedjvcsl\"}],\"externalReplicationSetupStatus\":\"ClusterPeerRequired\",\"externalReplicationSetupInfo\":\"wncwzzhxgktrmg\",\"mirrorState\":\"Broken\",\"relationshipStatus\":\"Idle\"},\"snapshot\":{\"snapshotPolicyId\":\"eoellwptfdygp\"},\"volumeRelocation\":{\"relocationRequested\":true,\"readyToBeFinalized\":true}}") + "{\"backup\":{\"backupPolicyId\":\"rvjx\",\"policyEnforced\":true,\"backupVaultId\":\"pydptko\"},\"replication\":{\"replicationId\":\"ou\",\"endpointType\":\"dst\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"tiukbldngkpoci\",\"remotePath\":{\"externalHostName\":\"z\",\"serverName\":\"xoegukgjnpiucgy\",\"volumeName\":\"evqzntypmrbp\"},\"remoteVolumeRegion\":\"c\",\"destinationReplications\":[{\"resourceId\":\"sdpydnfyhxdeoejz\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"fsj\",\"zone\":\"gzfbishcbk\"},{\"resourceId\":\"jdeyeamdpha\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"buxwgip\",\"zone\":\"onowk\"},{\"resourceId\":\"hwankixzbinjepu\",\"replicationType\":\"CrossRegionReplication\",\"region\":\"ywnuzoq\",\"zone\":\"iyqzrnk\"},{\"resourceId\":\"vyxlwhzlsicohoqq\",\"replicationType\":\"CrossZoneReplication\",\"region\":\"ryavwhheunmmqh\",\"zone\":\"xzko\"}]},\"snapshot\":{\"snapshotPolicyId\":\"uko\"},\"volumeRelocation\":{\"relocationRequested\":false,\"readyToBeFinalized\":true}}") .toObject(VolumePropertiesDataProtection.class); - Assertions.assertEquals("vgqzcjrvxd", model.backup().backupPolicyId()); + Assertions.assertEquals("rvjx", model.backup().backupPolicyId()); Assertions.assertTrue(model.backup().policyEnforced()); - Assertions.assertEquals("wlxkvugfhzovaw", model.backup().backupVaultId()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.replication().replicationSchedule()); - Assertions.assertEquals("n", model.replication().remoteVolumeResourceId()); - Assertions.assertEquals("nxipeil", model.replication().remotePath().externalHostname()); - Assertions.assertEquals("jzuaejxdultskzbb", model.replication().remotePath().serverName()); - Assertions.assertEquals("dzumveekg", model.replication().remotePath().volumeName()); - Assertions.assertEquals("ozuhkfp", model.replication().remoteVolumeRegion()); - Assertions.assertEquals("eoellwptfdygp", model.snapshot().snapshotPolicyId()); - Assertions.assertTrue(model.volumeRelocation().relocationRequested()); + Assertions.assertEquals("pydptko", model.backup().backupVaultId()); + Assertions.assertEquals(ReplicationSchedule.DAILY, model.replication().replicationSchedule()); + Assertions.assertEquals("tiukbldngkpoci", model.replication().remoteVolumeResourceId()); + Assertions.assertEquals("z", model.replication().remotePath().externalHostname()); + Assertions.assertEquals("xoegukgjnpiucgy", model.replication().remotePath().serverName()); + Assertions.assertEquals("evqzntypmrbp", model.replication().remotePath().volumeName()); + Assertions.assertEquals("c", model.replication().remoteVolumeRegion()); + Assertions.assertEquals("uko", model.snapshot().snapshotPolicyId()); + Assertions.assertFalse(model.volumeRelocation().relocationRequested()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VolumePropertiesDataProtection model = new VolumePropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("vgqzcjrvxd") + .withBackup(new VolumeBackupProperties().withBackupPolicyId("rvjx") .withPolicyEnforced(true) - .withBackupVaultId("wlxkvugfhzovaw")) - .withReplication(new ReplicationObject().withReplicationSchedule(ReplicationSchedule.ONE_ZEROMINUTELY) - .withRemoteVolumeResourceId("n") - .withRemotePath(new RemotePath().withExternalHostname("nxipeil") - .withServerName("jzuaejxdultskzbb") - .withVolumeName("dzumveekg")) - .withRemoteVolumeRegion("ozuhkfp")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("eoellwptfdygp")) - .withVolumeRelocation(new VolumeRelocationProperties().withRelocationRequested(true)); + .withBackupVaultId("pydptko")) + .withReplication(new ReplicationObject().withReplicationSchedule(ReplicationSchedule.DAILY) + .withRemoteVolumeResourceId("tiukbldngkpoci") + .withRemotePath(new RemotePath().withExternalHostname("z") + .withServerName("xoegukgjnpiucgy") + .withVolumeName("evqzntypmrbp")) + .withRemoteVolumeRegion("c")) + .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("uko")) + .withVolumeRelocation(new VolumeRelocationProperties().withRelocationRequested(false)); model = BinaryData.fromObject(model).toObject(VolumePropertiesDataProtection.class); - Assertions.assertEquals("vgqzcjrvxd", model.backup().backupPolicyId()); + Assertions.assertEquals("rvjx", model.backup().backupPolicyId()); Assertions.assertTrue(model.backup().policyEnforced()); - Assertions.assertEquals("wlxkvugfhzovaw", model.backup().backupVaultId()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.replication().replicationSchedule()); - Assertions.assertEquals("n", model.replication().remoteVolumeResourceId()); - Assertions.assertEquals("nxipeil", model.replication().remotePath().externalHostname()); - Assertions.assertEquals("jzuaejxdultskzbb", model.replication().remotePath().serverName()); - Assertions.assertEquals("dzumveekg", model.replication().remotePath().volumeName()); - Assertions.assertEquals("ozuhkfp", model.replication().remoteVolumeRegion()); - Assertions.assertEquals("eoellwptfdygp", model.snapshot().snapshotPolicyId()); - Assertions.assertTrue(model.volumeRelocation().relocationRequested()); + Assertions.assertEquals("pydptko", model.backup().backupVaultId()); + Assertions.assertEquals(ReplicationSchedule.DAILY, model.replication().replicationSchedule()); + Assertions.assertEquals("tiukbldngkpoci", model.replication().remoteVolumeResourceId()); + Assertions.assertEquals("z", model.replication().remotePath().externalHostname()); + Assertions.assertEquals("xoegukgjnpiucgy", model.replication().remotePath().serverName()); + Assertions.assertEquals("evqzntypmrbp", model.replication().remotePath().volumeName()); + Assertions.assertEquals("c", model.replication().remoteVolumeRegion()); + Assertions.assertEquals("uko", model.snapshot().snapshotPolicyId()); + Assertions.assertFalse(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 index 98eb39cf8f6d..8f2eb506136d 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -15,58 +15,88 @@ public final class VolumePropertiesExportPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumePropertiesExportPolicy model = BinaryData.fromString( - "{\"rules\":[{\"ruleIndex\":1553365340,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"loayqcgw\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"}]}") + "{\"rules\":[{\"ruleIndex\":146352395,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"bq\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":79438477,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"nchrkcciww\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"},{\"ruleIndex\":734048187,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"xieduugidyjrr\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"}]}") .toObject(VolumePropertiesExportPolicy.class); - Assertions.assertEquals(1553365340, model.rules().get(0).ruleIndex()); - Assertions.assertTrue(model.rules().get(0).unixReadOnly()); - Assertions.assertFalse(model.rules().get(0).unixReadWrite()); - Assertions.assertTrue(model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertFalse(model.rules().get(0).kerberos5ReadWrite()); + Assertions.assertEquals(146352395, model.rules().get(0).ruleIndex()); + Assertions.assertFalse(model.rules().get(0).unixReadOnly()); + Assertions.assertTrue(model.rules().get(0).unixReadWrite()); + Assertions.assertFalse(model.rules().get(0).kerberos5ReadOnly()); + Assertions.assertTrue(model.rules().get(0).kerberos5ReadWrite()); Assertions.assertTrue(model.rules().get(0).kerberos5IReadOnly()); Assertions.assertTrue(model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertFalse(model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertFalse(model.rules().get(0).kerberos5PReadWrite()); + Assertions.assertTrue(model.rules().get(0).kerberos5PReadOnly()); + Assertions.assertTrue(model.rules().get(0).kerberos5PReadWrite()); Assertions.assertTrue(model.rules().get(0).cifs()); - Assertions.assertFalse(model.rules().get(0).nfsv3()); + Assertions.assertTrue(model.rules().get(0).nfsv3()); Assertions.assertTrue(model.rules().get(0).nfsv41()); - Assertions.assertEquals("loayqcgw", model.rules().get(0).allowedClients()); - Assertions.assertFalse(model.rules().get(0).hasRootAccess()); + Assertions.assertEquals("bq", model.rules().get(0).allowedClients()); + Assertions.assertTrue(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(1553365340) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) + VolumePropertiesExportPolicy model = new VolumePropertiesExportPolicy().withRules(Arrays.asList( + new ExportPolicyRule().withRuleIndex(146352395) + .withUnixReadOnly(false) + .withUnixReadWrite(true) + .withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(true) + .withKerberos5IReadOnly(true) + .withKerberos5IReadWrite(true) + .withKerberos5PReadOnly(true) + .withKerberos5PReadWrite(true) + .withCifs(true) + .withNfsv3(true) + .withNfsv41(true) + .withAllowedClients("bq") + .withHasRootAccess(true) + .withChownMode(ChownMode.UNRESTRICTED), + new ExportPolicyRule().withRuleIndex(79438477) + .withUnixReadOnly(false) + .withUnixReadWrite(true) + .withKerberos5ReadOnly(false) .withKerberos5ReadWrite(false) .withKerberos5IReadOnly(true) .withKerberos5IReadWrite(true) .withKerberos5PReadOnly(false) .withKerberos5PReadWrite(false) - .withCifs(true) + .withCifs(false) .withNfsv3(false) .withNfsv41(true) - .withAllowedClients("loayqcgw") + .withAllowedClients("nchrkcciww") + .withHasRootAccess(true) + .withChownMode(ChownMode.RESTRICTED), + new ExportPolicyRule().withRuleIndex(734048187) + .withUnixReadOnly(false) + .withUnixReadWrite(false) + .withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false) + .withKerberos5IReadOnly(false) + .withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(true) + .withKerberos5PReadWrite(false) + .withCifs(false) + .withNfsv3(true) + .withNfsv41(false) + .withAllowedClients("xieduugidyjrr") .withHasRootAccess(false) .withChownMode(ChownMode.UNRESTRICTED))); model = BinaryData.fromObject(model).toObject(VolumePropertiesExportPolicy.class); - Assertions.assertEquals(1553365340, model.rules().get(0).ruleIndex()); - Assertions.assertTrue(model.rules().get(0).unixReadOnly()); - Assertions.assertFalse(model.rules().get(0).unixReadWrite()); - Assertions.assertTrue(model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertFalse(model.rules().get(0).kerberos5ReadWrite()); + Assertions.assertEquals(146352395, model.rules().get(0).ruleIndex()); + Assertions.assertFalse(model.rules().get(0).unixReadOnly()); + Assertions.assertTrue(model.rules().get(0).unixReadWrite()); + Assertions.assertFalse(model.rules().get(0).kerberos5ReadOnly()); + Assertions.assertTrue(model.rules().get(0).kerberos5ReadWrite()); Assertions.assertTrue(model.rules().get(0).kerberos5IReadOnly()); Assertions.assertTrue(model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertFalse(model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertFalse(model.rules().get(0).kerberos5PReadWrite()); + Assertions.assertTrue(model.rules().get(0).kerberos5PReadOnly()); + Assertions.assertTrue(model.rules().get(0).kerberos5PReadWrite()); Assertions.assertTrue(model.rules().get(0).cifs()); - Assertions.assertFalse(model.rules().get(0).nfsv3()); + Assertions.assertTrue(model.rules().get(0).nfsv3()); Assertions.assertTrue(model.rules().get(0).nfsv41()); - Assertions.assertEquals("loayqcgw", model.rules().get(0).allowedClients()); - Assertions.assertFalse(model.rules().get(0).hasRootAccess()); + Assertions.assertEquals("bq", model.rules().get(0).allowedClients()); + Assertions.assertTrue(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 index 84768fdb7854..120bb373cecf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -15,29 +15,29 @@ public final class VolumeQuotaRuleInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeQuotaRuleInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"quotaSizeInKiBs\":6267067833178554211,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"kfxu\"},\"location\":\"mdwzrmuhapfcqdps\",\"tags\":{\"vezrypqlmfeo\":\"vpsvuoymgcce\",\"edkowepbqpcrfk\":\"erqwkyhkobopg\",\"tn\":\"wccsnjvcdwxlpqek\"},\"id\":\"htjsying\",\"name\":\"fq\",\"type\":\"tmtdhtmdvypgik\"}") + "{\"properties\":{\"provisioningState\":\"Updating\",\"quotaSizeInKiBs\":3593253472995446368,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"unyowxwl\"},\"location\":\"jrkvfgbvfvpdbo\",\"tags\":{\"bdeibqipqk\":\"izsjqlhkrr\",\"rwkq\":\"hvxndzwmkrefajpj\",\"sjabibs\":\"yhgbijtjivfx\",\"bjxbkzbzk\":\"stawfsdjpvkv\"},\"id\":\"vncjabudurgk\",\"name\":\"kmokz\",\"type\":\"jjklff\"}") .toObject(VolumeQuotaRuleInner.class); - Assertions.assertEquals("mdwzrmuhapfcqdps", model.location()); - Assertions.assertEquals("vpsvuoymgcce", model.tags().get("vezrypqlmfeo")); - Assertions.assertEquals(6267067833178554211L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("kfxu", model.quotaTarget()); + Assertions.assertEquals("jrkvfgbvfvpdbo", model.location()); + Assertions.assertEquals("izsjqlhkrr", model.tags().get("bdeibqipqk")); + Assertions.assertEquals(3593253472995446368L, model.quotaSizeInKiBs()); + Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("unyowxwl", model.quotaTarget()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeQuotaRuleInner model = new VolumeQuotaRuleInner().withLocation("mdwzrmuhapfcqdps") - .withTags( - mapOf("vezrypqlmfeo", "vpsvuoymgcce", "edkowepbqpcrfk", "erqwkyhkobopg", "tn", "wccsnjvcdwxlpqek")) - .withQuotaSizeInKiBs(6267067833178554211L) - .withQuotaType(Type.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("kfxu"); + VolumeQuotaRuleInner model = new VolumeQuotaRuleInner().withLocation("jrkvfgbvfvpdbo") + .withTags(mapOf("bdeibqipqk", "izsjqlhkrr", "rwkq", "hvxndzwmkrefajpj", "sjabibs", "yhgbijtjivfx", + "bjxbkzbzk", "stawfsdjpvkv")) + .withQuotaSizeInKiBs(3593253472995446368L) + .withQuotaType(Type.DEFAULT_USER_QUOTA) + .withQuotaTarget("unyowxwl"); model = BinaryData.fromObject(model).toObject(VolumeQuotaRuleInner.class); - Assertions.assertEquals("mdwzrmuhapfcqdps", model.location()); - Assertions.assertEquals("vpsvuoymgcce", model.tags().get("vezrypqlmfeo")); - Assertions.assertEquals(6267067833178554211L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("kfxu", model.quotaTarget()); + Assertions.assertEquals("jrkvfgbvfvpdbo", model.location()); + Assertions.assertEquals("izsjqlhkrr", model.tags().get("bdeibqipqk")); + Assertions.assertEquals(3593253472995446368L, model.quotaSizeInKiBs()); + Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("unyowxwl", model.quotaTarget()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java index 5ac3d445912e..dc2e8a1d88ae 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -15,27 +15,26 @@ public final class VolumeQuotaRulePatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeQuotaRulePatch model = BinaryData.fromString( - "{\"tags\":{\"mfiibfggj\":\"qqaatjinrvgou\",\"rwxkvtkkgl\":\"ool\",\"vblm\":\"qwjygvja\",\"byrqufeg\":\"vkzuhbxvvyhgso\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":3115230018445319703,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"mctlpdngitv\"}}") + "{\"tags\":{\"ayuhqlbjbsy\":\"zi\",\"pgvmpipaslthaqfx\":\"bqwrvtldgm\",\"hneuyowqkd\":\"smwutwbdsrezpd\"},\"properties\":{\"provisioningState\":\"Accepted\",\"quotaSizeInKiBs\":1598919022248600128,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"gpikpzimejza\"}}") .toObject(VolumeQuotaRulePatch.class); - Assertions.assertEquals("qqaatjinrvgou", model.tags().get("mfiibfggj")); - Assertions.assertEquals(3115230018445319703L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("mctlpdngitv", model.quotaTarget()); + Assertions.assertEquals("zi", model.tags().get("ayuhqlbjbsy")); + Assertions.assertEquals(1598919022248600128L, model.quotaSizeInKiBs()); + Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("gpikpzimejza", model.quotaTarget()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VolumeQuotaRulePatch model = new VolumeQuotaRulePatch() - .withTags(mapOf("mfiibfggj", "qqaatjinrvgou", "rwxkvtkkgl", "ool", "vblm", "qwjygvja", "byrqufeg", - "vkzuhbxvvyhgso")) - .withQuotaSizeInKiBs(3115230018445319703L) - .withQuotaType(Type.INDIVIDUAL_GROUP_QUOTA) - .withQuotaTarget("mctlpdngitv"); + .withTags(mapOf("ayuhqlbjbsy", "zi", "pgvmpipaslthaqfx", "bqwrvtldgm", "hneuyowqkd", "smwutwbdsrezpd")) + .withQuotaSizeInKiBs(1598919022248600128L) + .withQuotaType(Type.DEFAULT_USER_QUOTA) + .withQuotaTarget("gpikpzimejza"); model = BinaryData.fromObject(model).toObject(VolumeQuotaRulePatch.class); - Assertions.assertEquals("qqaatjinrvgou", model.tags().get("mfiibfggj")); - Assertions.assertEquals(3115230018445319703L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("mctlpdngitv", model.quotaTarget()); + Assertions.assertEquals("zi", model.tags().get("ayuhqlbjbsy")); + Assertions.assertEquals(1598919022248600128L, model.quotaSizeInKiBs()); + Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("gpikpzimejza", model.quotaTarget()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java index d50f1fa937bd..697e7fe2f50f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -24,7 +24,7 @@ public final class VolumeQuotaRulesCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":340297523886727806,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"rdfjmzsyzfhotl\"},\"location\":\"k\",\"tags\":{\"nsjlpjrtws\":\"ch\",\"uic\":\"hv\",\"ubhvj\":\"hvtrrmhwrbfdpyf\",\"memhooclutnpq\":\"lrocuyzlwh\"},\"id\":\"emc\",\"name\":\"jk\",\"type\":\"mykyujxsglhs\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":5182036247086876592,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"nb\"},\"location\":\"yggagflnlgmt\",\"tags\":{\"rohkpigqfusu\":\"hzjmucftbyrp\",\"alhhjnhgwydyynfs\":\"kzmkwklsnoxaxmqe\",\"qtanarfdlpuk\":\"khgb\"},\"id\":\"py\",\"name\":\"neizjcpe\",\"type\":\"gkhnmgbrouxddbh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,20 +34,20 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); VolumeQuotaRule response = manager.volumeQuotaRules() - .define("aabeolhbhlvbmxuq") - .withRegion("arfsi") - .withExistingVolume("qhnlbqnbld", "eaclgschorimk", "srrm", "ucsofldpuviyf") - .withTags(mapOf("kizmdksaoafclu", "kjxnqpvwgfstmhq", "xmycjimryvwgcw", "v", "w", "pbmz")) - .withQuotaSizeInKiBs(8723001521754895664L) - .withQuotaType(Type.INDIVIDUAL_GROUP_QUOTA) - .withQuotaTarget("b") + .define("qxfzyjqttvwk") + .withRegion("uaucmf") + .withExistingVolume("sysidfvclglxnf", "ijtk", "usqogsfikayia", "sharujtj") + .withTags(mapOf("vitac", "nlaxpunjqikcz", "oxhlw", "xmfcsserxhtv")) + .withQuotaSizeInKiBs(7019076429746863657L) + .withQuotaType(Type.DEFAULT_USER_QUOTA) + .withQuotaTarget("bqeqqekewvnqvcd") .create(); - Assertions.assertEquals("k", response.location()); - Assertions.assertEquals("ch", response.tags().get("nsjlpjrtws")); - Assertions.assertEquals(340297523886727806L, response.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, response.quotaType()); - Assertions.assertEquals("rdfjmzsyzfhotl", response.quotaTarget()); + Assertions.assertEquals("yggagflnlgmt", response.location()); + Assertions.assertEquals("hzjmucftbyrp", response.tags().get("rohkpigqfusu")); + Assertions.assertEquals(5182036247086876592L, response.quotaSizeInKiBs()); + Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, response.quotaType()); + Assertions.assertEquals("nb", response.quotaTarget()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java index 7d149a6b2395..c8821d57e81f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumeQuotaRules() - .delete("mfsvbpav", "opfppdbwnupgah", "kuma", "jcaacfdmmcpugm", "hqepvufhbzehewh", + .delete("cnwfepbnwgfmxjg", "g", "jbgdlfgtdysnaquf", "qbctqha", "zjrwdkqze", com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java index b21f2c7bb313..2a2c980ae8a2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class VolumeQuotaRulesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\",\"quotaSizeInKiBs\":3451547714942547827,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"ybww\"},\"location\":\"d\",\"tags\":{\"plfmuvapckccrrvw\":\"idmhmwf\"},\"id\":\"yoxoy\",\"name\":\"ukphaimmoiroq\",\"type\":\"oshbragapyy\"}"; + = "{\"properties\":{\"provisioningState\":\"Patching\",\"quotaSizeInKiBs\":897633684000834955,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"sfnrdtjxt\"},\"location\":\"dcqtjvidttge\",\"tags\":{\"zies\":\"lvyjtcvuwkas\",\"uhxu\":\"uughtuqfecjxeyg\",\"hwpusxj\":\"cbuewmrswnjlxuz\",\"dohzjq\":\"aqehg\"},\"id\":\"tu\",\"name\":\"o\",\"type\":\"gebx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,14 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); VolumeQuotaRule response = manager.volumeQuotaRules() - .getWithResponse("hbzxli", "hrdd", "tfgxqbawpcb", "nzqcy", "napqo", com.azure.core.util.Context.NONE) + .getWithResponse("olbauirop", "ons", "onwpnga", "innixjawrtmjfj", "yccxlzhcox", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("d", response.location()); - Assertions.assertEquals("idmhmwf", response.tags().get("plfmuvapckccrrvw")); - Assertions.assertEquals(3451547714942547827L, response.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, response.quotaType()); - Assertions.assertEquals("ybww", response.quotaTarget()); + Assertions.assertEquals("dcqtjvidttge", response.location()); + Assertions.assertEquals("lvyjtcvuwkas", response.tags().get("zies")); + Assertions.assertEquals(897633684000834955L, response.quotaSizeInKiBs()); + Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, response.quotaType()); + Assertions.assertEquals("sfnrdtjxt", response.quotaTarget()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java index f45efcdd10d0..ca74c4521753 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -23,7 +23,7 @@ public final class VolumeQuotaRulesListByVolumeMockTests { @Test public void testListByVolume() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":1290302634644263235,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"dmflhuytx\"},\"location\":\"tznapxbannovv\",\"tags\":{\"lyokrrrou\":\"zytprwnwvroevy\",\"sasbcrymodizrx\":\"xv\"},\"id\":\"lobdxna\",\"name\":\"pmkmlmvevfx\",\"type\":\"op\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"quotaSizeInKiBs\":1367487808956907415,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"cjjvpilguooqja\"},\"location\":\"d\",\"tags\":{\"kjbsah\":\"ueio\",\"oebn\":\"tdtpdelqacslmo\",\"dirazf\":\"xofvcjk\",\"bmdujtmvcopexc\":\"xejw\"},\"id\":\"jurbuhhlkyqltqsr\",\"name\":\"gtuwkff\",\"type\":\"jk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,12 +33,12 @@ public void testListByVolume() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.volumeQuotaRules() - .listByVolume("bdxxe", "unin", "udbchaqdtv", "ec", com.azure.core.util.Context.NONE); + .listByVolume("yjleziunjx", "fza", "tkw", "eg", com.azure.core.util.Context.NONE); - Assertions.assertEquals("tznapxbannovv", response.iterator().next().location()); - Assertions.assertEquals("zytprwnwvroevy", response.iterator().next().tags().get("lyokrrrou")); - Assertions.assertEquals(1290302634644263235L, response.iterator().next().quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, response.iterator().next().quotaType()); - Assertions.assertEquals("dmflhuytx", response.iterator().next().quotaTarget()); + Assertions.assertEquals("d", response.iterator().next().location()); + Assertions.assertEquals("ueio", response.iterator().next().tags().get("kjbsah")); + Assertions.assertEquals(1367487808956907415L, response.iterator().next().quotaSizeInKiBs()); + Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, response.iterator().next().quotaType()); + Assertions.assertEquals("cjjvpilguooqja", response.iterator().next().quotaTarget()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java index a1c6e27af8af..e0b15f1781ef 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java @@ -1,61 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner; +import com.azure.resourcemanager.netapp.implementation.models.VolumeQuotaRulesList; 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\":\"Failed\",\"quotaSizeInKiBs\":496662249945843080,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"zpfrla\"},\"location\":\"zrnw\",\"tags\":{\"lwbtlhf\":\"ndfpwpj\",\"dhszfjv\":\"sj\",\"qmqhldvriii\":\"bgofeljag\"},\"id\":\"jnalghf\",\"name\":\"vtvsexsowueluq\",\"type\":\"hahhxvrhmzkwpj\"},{\"properties\":{\"provisioningState\":\"Updating\",\"quotaSizeInKiBs\":8756648845252646804,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"qs\"},\"location\":\"qxujxukndxd\",\"tags\":{\"yqtfihwh\":\"jguufzdm\",\"gamv\":\"otzi\",\"dphqamv\":\"phoszqz\",\"vtbvkayh\":\"kfwynw\"},\"id\":\"tnvyqiatkzwp\",\"name\":\"npwzcjaes\",\"type\":\"vvsccyajguq\"}]}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"quotaSizeInKiBs\":1661634789045622076,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"zonokixrjqci\"},\"location\":\"zpfrla\",\"tags\":{\"pj\":\"rnwoiindfp\"},\"id\":\"lwbtlhf\",\"name\":\"sj\",\"type\":\"dhszfjv\"},{\"properties\":{\"provisioningState\":\"Creating\",\"quotaSizeInKiBs\":4854317837359079981,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"rqmq\"},\"location\":\"dvriiiojnal\",\"tags\":{\"ueluqhhahhxvrhmz\":\"kvtvsexso\"},\"id\":\"wpjgwws\",\"name\":\"ughftqsx\",\"type\":\"qxujxukndxd\"},{\"properties\":{\"provisioningState\":\"Updating\",\"quotaSizeInKiBs\":6871622946068631848,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"msyqtfi\"},\"location\":\"hbotzingamvppho\",\"tags\":{\"nwcvtbvkayhmtnv\":\"zudphqamvdkfw\",\"zcjaesgvvsccy\":\"qiatkzwpcnp\"},\"id\":\"jguq\",\"name\":\"hwyg\",\"type\":\"lvdnkfx\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":6647177632922570765,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"hapfcqdpsqx\"},\"location\":\"psvuoymgc\",\"tags\":{\"erqwkyhkobopg\":\"vezrypqlmfeo\"},\"id\":\"edkowepbqpcrfk\",\"name\":\"wccsnjvcdwxlpqek\",\"type\":\"tn\"}],\"nextLink\":\"tjsyin\"}") .toObject(VolumeQuotaRulesList.class); - Assertions.assertEquals("zrnw", model.value().get(0).location()); - Assertions.assertEquals("ndfpwpj", model.value().get(0).tags().get("lwbtlhf")); - Assertions.assertEquals(496662249945843080L, model.value().get(0).quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("zpfrla", 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("zrnw") - .withTags(mapOf("lwbtlhf", "ndfpwpj", "dhszfjv", "sj", "qmqhldvriii", "bgofeljag")) - .withQuotaSizeInKiBs(496662249945843080L) - .withQuotaType(Type.DEFAULT_USER_QUOTA) - .withQuotaTarget("zpfrla"), - new VolumeQuotaRuleInner().withLocation("qxujxukndxd") - .withTags(mapOf("yqtfihwh", "jguufzdm", "gamv", "otzi", "dphqamv", "phoszqz", "vtbvkayh", "kfwynw")) - .withQuotaSizeInKiBs(8756648845252646804L) - .withQuotaType(Type.INDIVIDUAL_GROUP_QUOTA) - .withQuotaTarget("qs"))); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesList.class); - Assertions.assertEquals("zrnw", model.value().get(0).location()); - Assertions.assertEquals("ndfpwpj", model.value().get(0).tags().get("lwbtlhf")); - Assertions.assertEquals(496662249945843080L, model.value().get(0).quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("zpfrla", 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; + Assertions.assertEquals("zpfrla", model.value().get(0).location()); + Assertions.assertEquals("rnwoiindfp", model.value().get(0).tags().get("pj")); + Assertions.assertEquals(1661634789045622076L, model.value().get(0).quotaSizeInKiBs()); + Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.value().get(0).quotaType()); + Assertions.assertEquals("zonokixrjqci", model.value().get(0).quotaTarget()); + Assertions.assertEquals("tjsyin", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java index 40d554de377a..86085bb5dacf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -13,21 +13,21 @@ public final class VolumeQuotaRulesPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeQuotaRulesProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Updating\",\"quotaSizeInKiBs\":9200667924935240148,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"rryuzhlhkjo\"}") + "{\"provisioningState\":\"Creating\",\"quotaSizeInKiBs\":7272736071561293881,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"rfzeey\"}") .toObject(VolumeQuotaRulesProperties.class); - Assertions.assertEquals(9200667924935240148L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("rryuzhlhkjo", model.quotaTarget()); + Assertions.assertEquals(7272736071561293881L, model.quotaSizeInKiBs()); + Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("rfzeey", model.quotaTarget()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeQuotaRulesProperties model = new VolumeQuotaRulesProperties().withQuotaSizeInKiBs(9200667924935240148L) - .withQuotaType(Type.INDIVIDUAL_USER_QUOTA) - .withQuotaTarget("rryuzhlhkjo"); + VolumeQuotaRulesProperties model = new VolumeQuotaRulesProperties().withQuotaSizeInKiBs(7272736071561293881L) + .withQuotaType(Type.DEFAULT_USER_QUOTA) + .withQuotaTarget("rfzeey"); model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesProperties.class); - Assertions.assertEquals(9200667924935240148L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("rryuzhlhkjo", model.quotaTarget()); + Assertions.assertEquals(7272736071561293881L, model.quotaSizeInKiBs()); + Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); + Assertions.assertEquals("rfzeey", 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 index 1a72c26b6b51..8cd656bb11a1 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,15 +12,15 @@ public final class VolumeRelocationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeRelocationProperties model - = BinaryData.fromString("{\"relocationRequested\":true,\"readyToBeFinalized\":false}") + = BinaryData.fromString("{\"relocationRequested\":false,\"readyToBeFinalized\":false}") .toObject(VolumeRelocationProperties.class); - Assertions.assertTrue(model.relocationRequested()); + Assertions.assertFalse(model.relocationRequested()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeRelocationProperties model = new VolumeRelocationProperties().withRelocationRequested(true); + VolumeRelocationProperties model = new VolumeRelocationProperties().withRelocationRequested(false); model = BinaryData.fromObject(model).toObject(VolumeRelocationProperties.class); - Assertions.assertTrue(model.relocationRequested()); + Assertions.assertFalse(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 index 75c60f02ecfe..3d0e2c5070f3 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -11,14 +11,14 @@ public final class VolumeRevertTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VolumeRevert model = BinaryData.fromString("{\"snapshotId\":\"ggkzzlvmbmpa\"}").toObject(VolumeRevert.class); - Assertions.assertEquals("ggkzzlvmbmpa", model.snapshotId()); + VolumeRevert model = BinaryData.fromString("{\"snapshotId\":\"gjb\"}").toObject(VolumeRevert.class); + Assertions.assertEquals("gjb", model.snapshotId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeRevert model = new VolumeRevert().withSnapshotId("ggkzzlvmbmpa"); + VolumeRevert model = new VolumeRevert().withSnapshotId("gjb"); model = BinaryData.fromObject(model).toObject(VolumeRevert.class); - Assertions.assertEquals("ggkzzlvmbmpa", model.snapshotId()); + Assertions.assertEquals("gjb", 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 index a88d12f968f2..de2181e5527a 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,14 +12,14 @@ public final class VolumeSnapshotPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeSnapshotProperties model - = BinaryData.fromString("{\"snapshotPolicyId\":\"twss\"}").toObject(VolumeSnapshotProperties.class); - Assertions.assertEquals("twss", model.snapshotPolicyId()); + = BinaryData.fromString("{\"snapshotPolicyId\":\"pnazzm\"}").toObject(VolumeSnapshotProperties.class); + Assertions.assertEquals("pnazzm", model.snapshotPolicyId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeSnapshotProperties model = new VolumeSnapshotProperties().withSnapshotPolicyId("twss"); + VolumeSnapshotProperties model = new VolumeSnapshotProperties().withSnapshotPolicyId("pnazzm"); model = BinaryData.fromObject(model).toObject(VolumeSnapshotProperties.class); - Assertions.assertEquals("twss", model.snapshotPolicyId()); + Assertions.assertEquals("pnazzm", 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 index 4d04eb63e27b..6c4d58c0fdb8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -20,7 +20,7 @@ public final class VolumesAuthorizeExternalReplicationMockTests { @Test public void testAuthorizeExternalReplication() throws Exception { - String responseStr = "{\"svmPeeringCommand\":\"n\"}"; + String responseStr = "{\"svmPeeringCommand\":\"lm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,9 +30,8 @@ public void testAuthorizeExternalReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SvmPeerCommandResponse response = manager.volumes() - .authorizeExternalReplication("bzjedmstk", "nlvxbcuii", "nktwfansnvpdibmi", "ostbzbkiwb", - com.azure.core.util.Context.NONE); + .authorizeExternalReplication("bcysih", "gqcwdhohsdtmc", "zsu", "cohdx", com.azure.core.util.Context.NONE); - Assertions.assertEquals("n", response.svmPeeringCommand()); + Assertions.assertEquals("lm", 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 index 360f64602360..c2d5fadc4cfb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -29,8 +29,8 @@ public void testAuthorizeReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .authorizeReplication("iiqbi", "htmwwinh", "hfqpofv", "bcblemb", - new AuthorizeRequest().withRemoteVolumeResourceId("bwvqvxkdi"), com.azure.core.util.Context.NONE); + .authorizeReplication("prlpy", "nuciqdsmexiit", "fuxtyasiibmiybnn", "stgnl", + new AuthorizeRequest().withRemoteVolumeResourceId("nmgixh"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java index e294846daaea..70321b25ffff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -29,8 +29,8 @@ public void testBreakFileLocks() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .breakFileLocks("opqhewjptmc", "sbostzel", "dlat", "tmzlbiojlv", - new BreakFileLocksRequest().withClientIp("rbbpneqvcwwyy").withConfirmRunningDisruptiveOperation(true), + .breakFileLocks("rzpgep", "tybbwwpgda", "chzyvlixqnrk", "xkjibnxmy", + new BreakFileLocksRequest().withClientIp("xs").withConfirmRunningDisruptiveOperation(true), com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java index ce67c397c621..96f4b3e58b86 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -29,8 +29,8 @@ public void testBreakReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .breakReplication("s", "yrio", "vzidsxwaab", "mifrygznmma", - new BreakReplicationRequest().withForceBreakReplication(false), com.azure.core.util.Context.NONE); + .breakReplication("qqoli", "r", "aiouaubrjt", "oq", + new BreakReplicationRequest().withForceBreakReplication(true), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java index dbfa3d33a44c..70f9181a2e6a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -28,8 +28,7 @@ public void testDeleteReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .deleteReplication("ujlzqnhcvsqltn", "oibgsxg", "xfyqonmpqoxwdo", "dbxiqx", - com.azure.core.util.Context.NONE); + .deleteReplication("uyxoaf", "aoqltfaey", "inmfgvxirp", "hriypoqeyhlqhy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java index 3943511abea6..9a7c9977cf17 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -27,7 +27,8 @@ public void testFinalizeRelocation() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.volumes().finalizeRelocation("wwp", "jx", "nptfujgi", "gaao", com.azure.core.util.Context.NONE); + manager.volumes() + .finalizeRelocation("xzmqpnodawop", "hewjptmcgsbost", "eln", "la", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java index 14b831fe4d3e..216ac9be2d12 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -21,7 +21,7 @@ public final class VolumesListGetGroupIdListForLdapUserMockTests { @Test public void testListGetGroupIdListForLdapUser() throws Exception { - String responseStr = "{\"groupIdsForLdapUser\":[\"ap\",\"qtferrqwexjkmf\",\"apjwogqqnobpudcd\"]}"; + String responseStr = "{\"groupIdsForLdapUser\":[\"rcgegydcwboxjum\"]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testListGetGroupIdListForLdapUser() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GetGroupIdListForLdapUserResponse response = manager.volumes() - .listGetGroupIdListForLdapUser("ochpprpr", "nmokayzejnhlbk", "bzpcpiljhahzvec", "ndbnwieh", - new GetGroupIdListForLdapUserRequest().withUsername("lewjwiuubwef"), com.azure.core.util.Context.NONE); + .listGetGroupIdListForLdapUser("ntvlwijpsttexo", "qpwcyyufmh", "uncuw", "qspkcdqzhlctd", + new GetGroupIdListForLdapUserRequest().withUsername("unqndyfpchrqb"), com.azure.core.util.Context.NONE); - Assertions.assertEquals("ap", response.groupIdsForLdapUser().get(0)); + Assertions.assertEquals("rcgegydcwboxjum", 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 52f803a96a41..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.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\":\"zqdqxt\",\"quotaLimitUsedInKiBs\":6287732006458517592,\"quotaLimitTotalInKiBs\":2893338623366966580,\"percentageUsed\":10.898357,\"isDerivedQuota\":true},{\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"uik\",\"quotaLimitUsedInKiBs\":7886043925821923309,\"quotaLimitTotalInKiBs\":6452147471355395920,\"percentageUsed\":10.355675,\"isDerivedQuota\":true},{\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"ryxynqnzrd\",\"quotaLimitUsedInKiBs\":3232521207125821036,\"quotaLimitTotalInKiBs\":3377551222466265483,\"percentageUsed\":69.74501,\"isDerivedQuota\":true},{\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"ybbabpfhvfsl\",\"quotaLimitUsedInKiBs\":4611734614609465007,\"quotaLimitTotalInKiBs\":2580697924370368031,\"percentageUsed\":67.33186,\"isDerivedQuota\":true}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ListQuotaReportResponse response = manager.volumes() - .listQuotaReport("btqwpwyawbzas", "bucljgkyexaogu", "aipidsdaultxi", "jumfqwazlnq", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, response.value().get(0).quotaType()); - Assertions.assertEquals("zqdqxt", response.value().get(0).quotaTarget()); - Assertions.assertEquals(6287732006458517592L, response.value().get(0).quotaLimitUsedInKiBs()); - Assertions.assertEquals(2893338623366966580L, response.value().get(0).quotaLimitTotalInKiBs()); - Assertions.assertEquals(10.898357F, response.value().get(0).percentageUsed()); - Assertions.assertTrue(response.value().get(0).isDerivedQuota()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java index ec016e7778d1..7b88852fde2f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,6 +12,8 @@ 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.Exclude; +import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; import com.azure.resourcemanager.netapp.models.Replication; import com.azure.resourcemanager.netapp.models.ReplicationSchedule; import java.nio.charset.StandardCharsets; @@ -24,7 +26,7 @@ public final class VolumesListReplicationsMockTests { @Test public void testListReplications() throws Exception { String responseStr - = "{\"value\":[{\"replicationId\":\"amwabzxrvxcushsp\",\"endpointType\":\"dst\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"xyasflvgsgzw\",\"remoteVolumeRegion\":\"akoi\"}]}"; + = "{\"value\":[{\"replicationId\":\"gbeglqgleo\",\"endpointType\":\"dst\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"nlu\",\"remoteVolumeRegion\":\"krrfx\",\"mirrorState\":\"Broken\",\"replicationCreationTime\":\"2021-06-26T08:39:03Z\",\"replicationDeletionTime\":\"2021-02-28T15:02:58Z\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,11 +36,12 @@ public void testListReplications() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.volumes() - .listReplications("opmx", "lnwcltyjed", "xxmlfmkqscazua", "xtzx", com.azure.core.util.Context.NONE); + .listReplications("fdgugeyzi", "grkyuizabsnmfpph", "jee", "yhyhsgzfczb", + new ListReplicationsRequest().withExclude(Exclude.NONE), com.azure.core.util.Context.NONE); Assertions.assertEquals(EndpointType.DST, response.iterator().next().endpointType()); - Assertions.assertEquals(ReplicationSchedule.DAILY, response.iterator().next().replicationSchedule()); - Assertions.assertEquals("xyasflvgsgzw", response.iterator().next().remoteVolumeResourceId()); - Assertions.assertEquals("akoi", response.iterator().next().remoteVolumeRegion()); + Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, response.iterator().next().replicationSchedule()); + Assertions.assertEquals("nlu", response.iterator().next().remoteVolumeResourceId()); + Assertions.assertEquals("krrfx", response.iterator().next().remoteVolumeRegion()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java index 4d63c7f653b3..dc3ea7ea05a3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -22,7 +22,7 @@ public final class VolumesPeerExternalClusterMockTests { @Test public void testPeerExternalCluster() throws Exception { - String responseStr = "{\"peerAcceptCommand\":\"rz\"}"; + String responseStr = "{\"peerAcceptCommand\":\"qwthmky\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testPeerExternalCluster() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ClusterPeerCommandResponse response = manager.volumes() - .peerExternalCluster("ggbqi", "kxkbsazgakgacyr", "m", "dmspof", - new PeerClusterForVolumeMigrationRequest().withPeerIpAddresses(Arrays.asList("vuhrylni")), + .peerExternalCluster("cmjkavlgorbmftpm", "tzfjltf", "nzcyjtotp", "opv", + new PeerClusterForVolumeMigrationRequest().withPeerIpAddresses(Arrays.asList("dbzqgqqihed")), com.azure.core.util.Context.NONE); - Assertions.assertEquals("rz", response.peerAcceptCommand()); + Assertions.assertEquals("qwthmky", 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 index 48fadeba177c..b8bcdd28807f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -29,8 +29,8 @@ public void testPoolChange() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .poolChange("ophzfylsgcrp", "bcunezzceze", "fwyfwlwxjwet", "psihcla", - new PoolChangeRequest().withNewPoolResourceId("zvaylptrsqqw"), com.azure.core.util.Context.NONE); + .poolChange("muapcvhdbevw", "qxeysko", "qzinkfkbg", "z", + new PoolChangeRequest().withNewPoolResourceId("owxeqocljmy"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java index 18210555dcee..636a9cdff04f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -28,7 +28,7 @@ public void testReInitializeReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .reInitializeReplication("qihebw", "swbzuwfmdurage", "izvcjfe", "isdju", com.azure.core.util.Context.NONE); + .reInitializeReplication("mavmq", "oudorhcgyyp", "otwypundmb", "hu", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java index 6c3755d163df..dcac9307b23a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -10,8 +10,9 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; +import com.azure.resourcemanager.netapp.models.MirrorState; import com.azure.resourcemanager.netapp.models.ReplicationStatus; +import com.azure.resourcemanager.netapp.models.VolumeReplicationRelationshipStatus; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; @@ -22,7 +23,7 @@ public final class VolumesReplicationStatusWithResponseMockTests { @Test public void testReplicationStatusWithResponse() throws Exception { String responseStr - = "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Mirrored\",\"totalProgress\":\"igorqjbttzhragl\",\"errorMessage\":\"fhonqjujeickpzvc\"}"; + = "{\"healthy\":false,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Mirrored\",\"totalProgress\":\"ojhp\",\"errorMessage\":\"fnmdxotn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +33,14 @@ public void testReplicationStatusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ReplicationStatus response = manager.volumes() - .replicationStatusWithResponse("zkzobgopxlhslnel", "ieixynllxe", "wcrojphslhcaw", "u", + .replicationStatusWithResponse("oj", "ngiflrzpasccbi", "imzdlyj", "fqwmkyoquf", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertTrue(response.healthy()); - Assertions.assertEquals(RelationshipStatus.TRANSFERRING, response.relationshipStatus()); - Assertions.assertEquals("igorqjbttzhragl", response.totalProgress()); - Assertions.assertEquals("fhonqjujeickpzvc", response.errorMessage()); + Assertions.assertFalse(response.healthy()); + Assertions.assertEquals(VolumeReplicationRelationshipStatus.IDLE, response.relationshipStatus()); + Assertions.assertEquals(MirrorState.MIRRORED, response.mirrorState()); + Assertions.assertEquals("ojhp", response.totalProgress()); + Assertions.assertEquals("fnmdxotn", response.errorMessage()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java index 1b392dd959f7..f04184bbed22 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -27,9 +27,7 @@ public void testResyncReplication() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.volumes() - .resyncReplication("knsmjblmljhlnymz", "tqyryuzcbmqqv", "mv", "fgtayxonsup", - com.azure.core.util.Context.NONE); + manager.volumes().resyncReplication("v", "cvbmqzb", "q", "lajrnwxacevehj", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java index e4c92ee1203c..fde8c54695cf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -29,8 +29,8 @@ public void testRevert() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .revert("ibcysihsgqc", "dhohsdtmcdzsuf", "ohdxbzlmcmu", "pcvhdbevwqqxeys", - new VolumeRevert().withSnapshotId("nqzi"), com.azure.core.util.Context.NONE); + .revert("flyh", "xcudchxgsr", "oldforobw", "lvizb", new VolumeRevert().withSnapshotId("fovvacqpbtuodxes"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java index 2529bc419ea9..f1a89a17ef5c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -28,8 +28,7 @@ public void testRevertRelocation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .revertRelocation("pttaqutd", "wemxswvruunzz", "gehkfkimrtixokff", "yinljqe", - com.azure.core.util.Context.NONE); + .revertRelocation("utmzlbiojlvfhrbb", "neqvcwwyyurmo", "hppr", "rsnm", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java index e39f9da53dd2..8254b732f29f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.netapp.generated; @@ -12,27 +12,27 @@ public final class WeeklyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WeeklySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":214137082,\"day\":\"msbvdkcrodtjinf\",\"hour\":1492452539,\"minute\":274733430,\"usedBytes\":3850222588525127321}") + "{\"snapshotsToKeep\":1634117386,\"day\":\"mpaxmodfvuefywsb\",\"hour\":938827927,\"minute\":1491614176,\"usedBytes\":5583429102583863786}") .toObject(WeeklySchedule.class); - Assertions.assertEquals(214137082, model.snapshotsToKeep()); - Assertions.assertEquals("msbvdkcrodtjinf", model.day()); - Assertions.assertEquals(1492452539, model.hour()); - Assertions.assertEquals(274733430, model.minute()); - Assertions.assertEquals(3850222588525127321L, model.usedBytes()); + Assertions.assertEquals(1634117386, model.snapshotsToKeep()); + Assertions.assertEquals("mpaxmodfvuefywsb", model.day()); + Assertions.assertEquals(938827927, model.hour()); + Assertions.assertEquals(1491614176, model.minute()); + Assertions.assertEquals(5583429102583863786L, model.usedBytes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WeeklySchedule model = new WeeklySchedule().withSnapshotsToKeep(214137082) - .withDay("msbvdkcrodtjinf") - .withHour(1492452539) - .withMinute(274733430) - .withUsedBytes(3850222588525127321L); + WeeklySchedule model = new WeeklySchedule().withSnapshotsToKeep(1634117386) + .withDay("mpaxmodfvuefywsb") + .withHour(938827927) + .withMinute(1491614176) + .withUsedBytes(5583429102583863786L); model = BinaryData.fromObject(model).toObject(WeeklySchedule.class); - Assertions.assertEquals(214137082, model.snapshotsToKeep()); - Assertions.assertEquals("msbvdkcrodtjinf", model.day()); - Assertions.assertEquals(1492452539, model.hour()); - Assertions.assertEquals(274733430, model.minute()); - Assertions.assertEquals(3850222588525127321L, model.usedBytes()); + Assertions.assertEquals(1634117386, model.snapshotsToKeep()); + Assertions.assertEquals("mpaxmodfvuefywsb", model.day()); + Assertions.assertEquals(938827927, model.hour()); + Assertions.assertEquals(1491614176, model.minute()); + Assertions.assertEquals(5583429102583863786L, model.usedBytes()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml b/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml new file mode 100644 index 000000000000..04bf7a5c35af --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/netapp/resource-manager/Microsoft.NetApp/NetApp +commit: dbdbc75c548071c0f5f0bdfae18dd1b31a7ab95a +repo: Azure/azure-rest-api-specs +additionalDirectories: