diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
index a72e1781e60f..2fb4c0298ef8 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
@@ -1,14 +1,202 @@
# Release History
-## 1.7.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2025-04-11)
-### 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 tag package-2025-01-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.SubscriptionQuotaItem` was removed
-### Other Changes
+#### `models.SubscriptionQuotaItemList` was removed
+
+#### `models.Volume$Definition` was modified
+
+* `withIsRestoring(java.lang.Boolean)` was removed
+
+#### `models.ReplicationObject` was modified
+
+* `withEndpointType(models.EndpointType)` was removed
+
+#### `models.VolumeGroupVolumeProperties` was modified
+
+* `withIsRestoring(java.lang.Boolean)` was removed
+
+#### `models.NetAppResourceQuotaLimits` was modified
+
+* `models.SubscriptionQuotaItem get(java.lang.String,java.lang.String)` -> `models.QuotaItem get(java.lang.String,java.lang.String)`
+
+### Features Added
+
+* `models.BucketPatch` was added
+
+* `models.AcceptGrowCapacityPoolForShortTermCloneSplit` was added
+
+* `models.QuotaItemList` was added
+
+* `models.LdapConfiguration` was added
+
+* `models.Bucket$DefinitionStages` was added
+
+* `models.ListQuotaReportResponse` was added
+
+* `models.NetAppResourceUsages` was added
+
+* `models.BucketServerProperties` was added
+
+* `models.LdapServerType` was added
+
+* `models.VolumeLanguage` was added
+
+* `models.UsagesListResult` was added
+
+* `models.MultiAdStatus` was added
+
+* `models.UsageResult` was added
+
+* `models.ReplicationType` was added
+
+* `models.Bucket$Definition` was added
+
+* `models.Bucket` was added
+
+* `models.NfsUser` was added
+
+* `models.BucketGenerateCredentials` was added
+
+* `models.BucketCredentialsExpiry` was added
+
+* `models.NetAppResourceQuotaLimitsAccounts` was added
+
+* `models.UsageName` was added
+
+* `models.Bucket$Update` was added
+
+* `models.CifsUser` was added
+
+* `models.QuotaReport` was added
+
+* `models.DestinationReplication` was added
+
+* `models.BucketServerPatchProperties` was added
+
+* `models.CredentialsStatus` was added
+
+* `models.BucketList` was added
+
+* `models.QuotaItem` was added
+
+* `models.ExternalReplicationSetupStatus` was added
+
+* `models.Bucket$UpdateStages` was added
+
+* `models.Buckets` was added
+
+* `models.FileSystemUser` was added
+
+* `models.NetappProvisioningState` was added
+
+#### `models.NetAppAccount$Definition` was modified
+
+* `withNfsV4IdDomain(java.lang.String)` was added
+* `withLdapConfiguration(models.LdapConfiguration)` was added
+
+#### `models.CapacityPool$Update` was modified
+
+* `withCustomThroughputMibps(java.lang.Float)` was added
+
+#### `models.Backup` was modified
+
+* `snapshotCreationDate()` was added
+* `completionDate()` was added
+* `isLargeVolume()` was added
+
+#### `models.CapacityPool` was modified
+
+* `customThroughputMibps()` was added
+
+#### `models.Volume$Definition` was modified
+
+* `withLdapServerType(models.LdapServerType)` was added
+* `withAcceptGrowCapacityPoolForShortTermCloneSplit(models.AcceptGrowCapacityPoolForShortTermCloneSplit)` was added
+* `withLanguage(models.VolumeLanguage)` was added
+
+#### `models.OperationListResult` was modified
+
+* `nextLink()` was added
+
+#### `models.ReplicationObject` was modified
+
+* `destinationReplications()` was added
+* `externalReplicationSetupInfo()` was added
+* `externalReplicationSetupStatus()` was added
+
+#### `models.NetAppAccountPatch` was modified
+
+* `ldapConfiguration()` was added
+* `nfsV4IdDomain()` was added
+* `withLdapConfiguration(models.LdapConfiguration)` was added
+* `multiAdStatus()` was added
+* `withNfsV4IdDomain(java.lang.String)` was added
+
+#### `models.NetAppAccount$Update` was modified
+
+* `withNfsV4IdDomain(java.lang.String)` was added
+* `withLdapConfiguration(models.LdapConfiguration)` was added
+
+#### `models.CapacityPoolPatch` was modified
+
+* `customThroughputMibps()` was added
+* `withCustomThroughputMibps(java.lang.Float)` was added
+
+#### `models.VolumeGroupVolumeProperties` was modified
+
+* `withLdapServerType(models.LdapServerType)` was added
+* `withAcceptGrowCapacityPoolForShortTermCloneSplit(models.AcceptGrowCapacityPoolForShortTermCloneSplit)` was added
+* `language()` was added
+* `acceptGrowCapacityPoolForShortTermCloneSplit()` was added
+* `inheritedSizeInBytes()` was added
+* `withLanguage(models.VolumeLanguage)` was added
+* `ldapServerType()` was added
+
+#### `models.Volume` was modified
+
+* `splitCloneFromParent(com.azure.core.util.Context)` was added
+* `language()` was added
+* `splitCloneFromParent()` was added
+* `listQuotaReport()` was added
+* `inheritedSizeInBytes()` was added
+* `ldapServerType()` was added
+* `listQuotaReport(com.azure.core.util.Context)` was added
+* `acceptGrowCapacityPoolForShortTermCloneSplit()` was added
+
+#### `models.CapacityPool$Definition` was modified
+
+* `withCustomThroughputMibps(java.lang.Float)` was added
+
+#### `NetAppFilesManager` was modified
+
+* `netAppResourceUsages()` was added
+* `buckets()` was added
+* `netAppResourceQuotaLimitsAccounts()` was added
+
+#### `models.EncryptionIdentity` was modified
+
+* `withFederatedClientId(java.lang.String)` was added
+* `federatedClientId()` was added
+
+#### `models.Volumes` was modified
+
+* `splitCloneFromParent(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was added
+* `splitCloneFromParent(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `listQuotaReport(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was added
+* `listQuotaReport(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.NetAppAccount` was modified
+
+* `nfsV4IdDomain()` was added
+* `ldapConfiguration()` was added
+* `multiAdStatus()` was added
## 1.6.0 (2025-02-21)
diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md
index 6c2d493a72b2..650c698f4009 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-2024-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-2025-01-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
index f1fb41340c0a..4cd86f575e00 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
@@ -52,6 +52,15 @@
- [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)
@@ -66,11 +75,21 @@
- [Get](#netappresourcequotalimits_get)
- [List](#netappresourcequotalimits_list)
+## NetAppResourceQuotaLimitsAccount
+
+- [Get](#netappresourcequotalimitsaccount_get)
+- [List](#netappresourcequotalimitsaccount_list)
+
## NetAppResourceRegionInfos
- [Get](#netappresourceregioninfos_get)
- [List](#netappresourceregioninfos_list)
+## NetAppResourceUsages
+
+- [Get](#netappresourceusages_get)
+- [List](#netappresourceusages_list)
+
## Operations
- [List](#operations_list)
@@ -139,6 +158,7 @@
- [Get](#volumes_get)
- [List](#volumes_list)
- [ListGetGroupIdListForLdapUser](#volumes_listgetgroupidlistforldapuser)
+- [ListQuotaReport](#volumes_listquotareport)
- [ListReplications](#volumes_listreplications)
- [PeerExternalCluster](#volumes_peerexternalcluster)
- [PerformReplicationTransfer](#volumes_performreplicationtransfer)
@@ -152,6 +172,7 @@
- [ResyncReplication](#volumes_resyncreplication)
- [Revert](#volumes_revert)
- [RevertRelocation](#volumes_revertrelocation)
+- [SplitCloneFromParent](#volumes_splitclonefromparent)
- [Update](#volumes_update)
### Accounts_ChangeKeyVault
@@ -165,8 +186,8 @@ import java.util.Arrays;
*/
public final class AccountsChangeKeyVaultSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_ChangeKeyVault.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Accounts_ChangeKeyVault.json
*/
/**
* Sample code: Accounts_ChangeKeyVault.
@@ -179,9 +200,9 @@ public final class AccountsChangeKeyVaultSamples {
.withKeyName("fakeTokenPlaceholder")
.withKeyVaultResourceId("fakeTokenPlaceholder")
.withKeyVaultPrivateEndpoints(Arrays.asList(new KeyVaultPrivateEndpoint().withVirtualNetworkId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1")
.withPrivateEndpointId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"))),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"))),
com.azure.core.util.Context.NONE);
}
}
@@ -198,8 +219,8 @@ import java.util.Arrays;
*/
public final class AccountsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_CreateOrUpdate.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Accounts_CreateOrUpdate.json
*/
/**
* Sample code: Accounts_CreateOrUpdate.
@@ -211,8 +232,8 @@ public final class AccountsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_CreateOrUpdateAD.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Accounts_CreateOrUpdateAD.json
*/
/**
* Sample code: Accounts_CreateOrUpdateWithActiveDirectory.
@@ -249,7 +270,7 @@ public final class AccountsCreateOrUpdateSamples {
public final class AccountsDeleteSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Delete.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_Delete.json
*/
/**
* Sample code: Accounts_Delete.
@@ -271,7 +292,7 @@ public final class AccountsDeleteSamples {
public final class AccountsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_Get.json
*/
/**
* Sample code: Accounts_Get.
@@ -292,7 +313,7 @@ public final class AccountsGetByResourceGroupSamples {
*/
public final class AccountsGetChangeKeyVaultInformationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
* Accounts_GetChangeKeyVaultInformation.json
*/
/**
@@ -315,8 +336,8 @@ public final class AccountsGetChangeKeyVaultInformationSamples {
*/
public final class AccountsListSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Accounts_ListBySubscription.json
*/
/**
* Sample code: Accounts_List.
@@ -338,7 +359,7 @@ public final class AccountsListSamples {
public final class AccountsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_List.json
*/
/**
* Sample code: Accounts_List.
@@ -359,8 +380,8 @@ public final class AccountsListByResourceGroupSamples {
*/
public final class AccountsRenewCredentialsSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_RenewCredentials.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Accounts_RenewCredentials.json
*/
/**
* Sample code: Accounts_RenewCredentials.
@@ -383,7 +404,7 @@ import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest;
*/
public final class AccountsTransitionToCmkSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
* Accounts_TransitionEncryptionKey.json
*/
/**
@@ -394,9 +415,9 @@ public final class AccountsTransitionToCmkSamples {
public static void accountsMigrateEncryptionKey(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.accounts()
.transitionToCmk("myRG", "account1", new EncryptionTransitionRequest().withVirtualNetworkId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1")
.withPrivateEndpointId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"),
com.azure.core.util.Context.NONE);
}
}
@@ -415,7 +436,7 @@ import java.util.Map;
public final class AccountsUpdateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Update.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_Update.json
*/
/**
* Sample code: Accounts_Update.
@@ -452,7 +473,8 @@ public final class AccountsUpdateSamples {
public final class BackupPoliciesCreateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Create.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Create.
+ * json
*/
/**
* Sample code: BackupPolicies_Create.
@@ -482,7 +504,8 @@ public final class BackupPoliciesCreateSamples {
public final class BackupPoliciesDeleteSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Delete.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Delete.
+ * json
*/
/**
* Sample code: BackupPolicies_Delete.
@@ -505,7 +528,8 @@ public final class BackupPoliciesDeleteSamples {
public final class BackupPoliciesGetSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Get.
+ * json
*/
/**
* Sample code: Backups_Get.
@@ -528,7 +552,8 @@ public final class BackupPoliciesGetSamples {
public final class BackupPoliciesListSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_List.
+ * json
*/
/**
* Sample code: BackupPolicies_List.
@@ -552,7 +577,8 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy;
public final class BackupPoliciesUpdateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Update.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Update.
+ * json
*/
/**
* Sample code: BackupPolicies_Update.
@@ -582,7 +608,8 @@ public final class BackupPoliciesUpdateSamples {
public final class BackupVaultsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Create.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Create.
+ * json
*/
/**
* Sample code: BackupVault_CreateOrUpdate.
@@ -608,7 +635,8 @@ public final class BackupVaultsCreateOrUpdateSamples {
public final class BackupVaultsDeleteSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Delete.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Delete.
+ * json
*/
/**
* Sample code: BackupVaults_Delete.
@@ -630,7 +658,7 @@ public final class BackupVaultsDeleteSamples {
public final class BackupVaultsGetSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Get.json
*/
/**
* Sample code: BackupVaults_Get.
@@ -652,7 +680,7 @@ public final class BackupVaultsGetSamples {
public final class BackupVaultsListByNetAppAccountSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_List.json
*/
/**
* Sample code: BackupVaults_List.
@@ -678,7 +706,8 @@ import java.util.Map;
public final class BackupVaultsUpdateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Update.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Update.
+ * json
*/
/**
* Sample code: BackupVaults_Update.
@@ -714,9 +743,8 @@ public final class BackupVaultsUpdateSamples {
*/
public final class BackupsCreateSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Create.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * BackupsUnderBackupVault_Create.json
*/
/**
* Sample code: BackupsUnderBackupVault_Create.
@@ -728,7 +756,7 @@ public final class BackupsCreateSamples {
.define("backup1")
.withExistingBackupVault("myRG", "account1", "backupVault1")
.withVolumeResourceId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1")
.withLabel("myLabel")
.create();
}
@@ -743,9 +771,8 @@ public final class BackupsCreateSamples {
*/
public final class BackupsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Delete.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * BackupsUnderBackupVault_Delete.json
*/
/**
* Sample code: BackupsUnderBackupVault_Delete.
@@ -767,9 +794,8 @@ public final class BackupsDeleteSamples {
*/
public final class BackupsGetSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Get.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * BackupsUnderBackupVault_Get.json
*/
/**
* Sample code: BackupsUnderBackupVault_Get.
@@ -791,8 +817,8 @@ public final class BackupsGetSamples {
*/
public final class BackupsGetLatestStatusSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_LatestBackupStatus.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_LatestBackupStatus.json
*/
/**
* Sample code: Volumes_BackupStatus.
@@ -814,9 +840,8 @@ public final class BackupsGetLatestStatusSamples {
*/
public final class BackupsGetVolumeLatestRestoreStatusSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_LatestRestoreStatus.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_LatestRestoreStatus.json
*/
/**
* Sample code: Volumes_RestoreStatus.
@@ -839,9 +864,8 @@ public final class BackupsGetVolumeLatestRestoreStatusSamples {
*/
public final class BackupsListByVaultSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_List.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * BackupsUnderBackupVault_List.json
*/
/**
* Sample code: Backups_List.
@@ -864,9 +888,8 @@ import com.azure.resourcemanager.netapp.models.Backup;
*/
public final class BackupsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Update.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * BackupsUnderBackupVault_Update.json
*/
/**
* Sample code: BackupsUnderBackupVault_Update.
@@ -892,9 +915,8 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
*/
public final class BackupsUnderAccountMigrateBackupsSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderAccount_Migrate.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * BackupsUnderAccount_Migrate.json
*/
/**
* Sample code: BackupsUnderAccount_Migrate.
@@ -904,7 +926,7 @@ public final class BackupsUnderAccountMigrateBackupsSamples {
public static void backupsUnderAccountMigrate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupsUnderAccounts()
.migrateBackups("myRG", "account1", new BackupsMigrationRequest().withBackupVaultId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
com.azure.core.util.Context.NONE);
}
}
@@ -921,7 +943,7 @@ import java.util.Arrays;
*/
public final class BackupsUnderBackupVaultRestoreFilesSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
* BackupsUnderBackupVault_SingleFileRestore.json
*/
/**
@@ -934,7 +956,7 @@ public final class BackupsUnderBackupVaultRestoreFilesSamples {
.restoreFiles("myRG", "account1", "backupVault1", "backup1", new BackupRestoreFiles()
.withFileList(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db"))
.withDestinationVolumeId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"),
com.azure.core.util.Context.NONE);
}
}
@@ -950,8 +972,8 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
*/
public final class BackupsUnderVolumeMigrateBackupsSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderVolume_Migrate.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * BackupsUnderVolume_Migrate.json
*/
/**
* Sample code: BackupsUnderVolume_Migrate.
@@ -961,12 +983,172 @@ public final class BackupsUnderVolumeMigrateBackupsSamples {
public static void backupsUnderVolumeMigrate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupsUnderVolumes()
.migrateBackups("myRG", "account1", "pool1", "volume1", new BackupsMigrationRequest().withBackupVaultId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
com.azure.core.util.Context.NONE);
}
}
```
+### Buckets_CreateOrUpdate
+
+```java
+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-01-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(
+ "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURuVENDQW9XZ0F3SUJBZ0lRR3FXdnRxeHBvSTFJV3Z4VGdJbElWREFOQmdrcWhraUc5dzBCQVFzRkFEQlYKTVJNd0VRWUtDWkltaVpQeUxHUUJHUllEWTI5dE1SY3dGUVlLQ1pJbWlaUHlMR1FCR1JZSGFHRnlhV3R5WWpFbApNQ01HQTFVRUF4TWNhR0Z5YVd0eVlpMVhTVTR0TWtKUFZrRkZTMEkwTkVJdFEwRXRNakFlRncweU1EQTFNRFV3Ck56TTVORGxhRncweU1EQTFNRFl3TnpRNU5EaGFNRlV4RXpBUkJnb0praWFKay9Jc1pBRVpGZ05qYjIweEZ6QVYKQmdvSmtpYUprL0lzWkFFWkZnZG9ZWEpwYTNKaU1TVXdJd1lEVlFRREV4eG9ZWEpwYTNKaUxWZEpUaTB5UWs5VwpRVVZMUWpRMFFpMURRUzB5TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFqMHByCnhaaXpNaDBqYnRwN1ZOc0JrRVJ2MVpZT0MzMEtqaGRWdEExRm1MeFM2cXlycmpMZUdXOXRSd2ZnUkR0eVBodTIKZVJTcVpTUjF6Z1hZR0s0Nys3Y3F0YnB2UElOektCb0dOWERIVTNxVWlleXJWSjFDVzRKNjJodUdrbUV1VVVkMApKMXBxNTVxbjk1SmRUbWh1dmZlTUxxeHB5c01nbGVnY281ZFhoN0hsQkhwaTNKMFN4ZnhVWmxKMVZiOFJZVEZhCkJiMGFlTVZaRzRKeVREaktiMlR1TmFXOG1aUE5vOFBMRDRocjdndFNZUEQvQ1dVVGV5QlpoZC9LTzNPczlWVEIKYmpLUGtWd0J2WEs2SlFMSGprNFBHS3VYZDhaWVFyajBtOWNIZDNmcWNYTXlQUnQ2TlJ4ak0yMTUxckFzSkVhNgpWZC9ta056akpXalBrT2VZUVFJREFRQUJvMmt3WnpBVEJna3JCZ0VFQVlJM0ZBSUVCaDRFQUVNQVFUQU9CZ05WCkhROEJBZjhFQkFNQ0FZWXdEd1lEVlIwVEFRSC9CQVV3QXdFQi96QWRCZ05WSFE0RUZnUVVDVEc2ODJSay9kMysKWGtHa0VMakRFMjI4ZjNnd0VBWUpLd1lCQkFHQ054VUJCQU1DQVFBd0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQgpBR1RjTTNnWExIU05wS014RHEvUFpZbWZCMmNlN3VhMmxxbXpzZSt4QmthSTE0WXdzZE5ZQjZBVTNFWDM3QWpZCjd3bm9xQzY1N0U2RVhTODVDckoyNXJNTHo4OEtONGI3cUg5RUowSS9XVHg5YTdUT0ZENENWQThuL0xwNGh1Ym4KNlBFalY5NFlZWXBXTG1hTkkvbGFReWsxSHVJbDFSTCttVDFnSWQ4ZWZXZ1UvNmlVVEw3eGMrdjkyNHBuTHhISwpOSnNTV3c0NFk5a0R5SU9KOXFjWUlBN1lhTkxPZTRjSysvQlRvdDh0dVVKT1hHLzdBRmtxR2EyQVA4MmFZOStKCnkwSmU2OG5nTHJ1dVU4VHpneVpqdkFHcTRrVEVOdWFoaFdHVC9KWkEzOXhSNUV4MmNMUUplcE5NdnlZbUZ3Z1UKME8zYlA0OWNBVFVCMXoyQ3Y5aTRQbVk9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"))
+ .create();
+ }
+}
+```
+
+### Buckets_Delete
+
+```java
+/**
+ * Samples for Buckets Delete.
+ */
+public final class BucketsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-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-01-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-01-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-01-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.BucketServerPatchProperties;
+
+/**
+ * Samples for Buckets Update.
+ */
+public final class BucketsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-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(
+ "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURuVENDQW9XZ0F3SUJBZ0lRR3FXdnRxeHBvSTFJV3Z4VGdJbElWREFOQmdrcWhraUc5dzBCQVFzRkFEQlYKTVJNd0VRWUtDWkltaVpQeUxHUUJHUllEWTI5dE1SY3dGUVlLQ1pJbWlaUHlMR1FCR1JZSGFHRnlhV3R5WWpFbApNQ01HQTFVRUF4TWNhR0Z5YVd0eVlpMVhTVTR0TWtKUFZrRkZTMEkwTkVJdFEwRXRNakFlRncweU1EQTFNRFV3Ck56TTVORGxhRncweU1EQTFNRFl3TnpRNU5EaGFNRlV4RXpBUkJnb0praWFKay9Jc1pBRVpGZ05qYjIweEZ6QVYKQmdvSmtpYUprL0lzWkFFWkZnZG9ZWEpwYTNKaU1TVXdJd1lEVlFRREV4eG9ZWEpwYTNKaUxWZEpUaTB5UWs5VwpRVVZMUWpRMFFpMURRUzB5TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFqMHByCnhaaXpNaDBqYnRwN1ZOc0JrRVJ2MVpZT0MzMEtqaGRWdEExRm1MeFM2cXlycmpMZUdXOXRSd2ZnUkR0eVBodTIKZVJTcVpTUjF6Z1hZR0s0Nys3Y3F0YnB2UElOektCb0dOWERIVTNxVWlleXJWSjFDVzRKNjJodUdrbUV1VVVkMApKMXBxNTVxbjk1SmRUbWh1dmZlTUxxeHB5c01nbGVnY281ZFhoN0hsQkhwaTNKMFN4ZnhVWmxKMVZiOFJZVEZhCkJiMGFlTVZaRzRKeVREaktiMlR1TmFXOG1aUE5vOFBMRDRocjdndFNZUEQvQ1dVVGV5QlpoZC9LTzNPczlWVEIKYmpLUGtWd0J2WEs2SlFMSGprNFBHS3VYZDhaWVFyajBtOWNIZDNmcWNYTXlQUnQ2TlJ4ak0yMTUxckFzSkVhNgpWZC9ta056akpXalBrT2VZUVFJREFRQUJvMmt3WnpBVEJna3JCZ0VFQVlJM0ZBSUVCaDRFQUVNQVFUQU9CZ05WCkhROEJBZjhFQkFNQ0FZWXdEd1lEVlIwVEFRSC9CQVV3QXdFQi96QWRCZ05WSFE0RUZnUVVDVEc2ODJSay9kMysKWGtHa0VMakRFMjI4ZjNnd0VBWUpLd1lCQkFHQ054VUJCQU1DQVFBd0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQgpBR1RjTTNnWExIU05wS014RHEvUFpZbWZCMmNlN3VhMmxxbXpzZSt4QmthSTE0WXdzZE5ZQjZBVTNFWDM3QWpZCjd3bm9xQzY1N0U2RVhTODVDckoyNXJNTHo4OEtONGI3cUg5RUowSS9XVHg5YTdUT0ZENENWQThuL0xwNGh1Ym4KNlBFalY5NFlZWXBXTG1hTkkvbGFReWsxSHVJbDFSTCttVDFnSWQ4ZWZXZ1UvNmlVVEw3eGMrdjkyNHBuTHhISwpOSnNTV3c0NFk5a0R5SU9KOXFjWUlBN1lhTkxPZTRjSysvQlRvdDh0dVVKT1hHLzdBRmtxR2EyQVA4MmFZOStKCnkwSmU2OG5nTHJ1dVU4VHpneVpqdkFHcTRrVEVOdWFoaFdHVC9KWkEzOXhSNUV4MmNMUUplcE5NdnlZbUZ3Z1UKME8zYlA0OWNBVFVCMXoyQ3Y5aTRQbVk9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"))
+ .apply();
+ }
+}
+```
+
### NetAppResource_CheckFilePathAvailability
```java
@@ -977,8 +1159,8 @@ import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
*/
public final class NetAppResourceCheckFilePathAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckFilePathAvailability.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * CheckFilePathAvailability.json
*/
/**
* Sample code: CheckFilePathAvailability.
@@ -990,7 +1172,7 @@ public final class NetAppResourceCheckFilePathAvailabilitySamples {
.checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest()
.withName("my-exact-filepth")
.withSubnetId(
- "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"),
com.azure.core.util.Context.NONE);
}
}
@@ -1008,7 +1190,8 @@ import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
public final class NetAppResourceCheckNameAvailabilitySamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckNameAvailability.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/CheckNameAvailability.
+ * json
*/
/**
* Sample code: CheckNameAvailability.
@@ -1038,7 +1221,8 @@ import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
public final class NetAppResourceCheckQuotaAvailabilitySamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckQuotaAvailability.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/CheckQuotaAvailability
+ * .json
*/
/**
* Sample code: CheckQuotaAvailability.
@@ -1066,8 +1250,8 @@ import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest;
*/
public final class NetAppResourceQueryNetworkSiblingSetSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/NetworkSiblingSet_Query.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * NetworkSiblingSet_Query.json
*/
/**
* Sample code: NetworkSiblingSet_Query.
@@ -1079,7 +1263,7 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples {
.queryNetworkSiblingSetWithResponse("eastus", new QueryNetworkSiblingSetRequest()
.withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333")
.withSubnetId(
- "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"),
com.azure.core.util.Context.NONE);
}
}
@@ -1094,7 +1278,7 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples {
public final class NetAppResourceQueryRegionInfoSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfo.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/RegionInfo.json
*/
/**
* Sample code: RegionInfo_Query.
@@ -1118,8 +1302,8 @@ import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest;
*/
public final class NetAppResourceUpdateNetworkSiblingSetSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/NetworkSiblingSet_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * NetworkSiblingSet_Update.json
*/
/**
* Sample code: NetworkFeatures_Update.
@@ -1131,7 +1315,7 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples {
.updateNetworkSiblingSet("eastus", new UpdateNetworkSiblingSetRequest()
.withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333")
.withSubnetId(
- "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet")
.withNetworkSiblingSetStateId("12345_44420.8001578125")
.withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE);
}
@@ -1147,7 +1331,7 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples {
public final class NetAppResourceQuotaLimitsGetSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/QuotaLimits_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/QuotaLimits_Get.json
*/
/**
* Sample code: QuotaLimits.
@@ -1170,7 +1354,7 @@ public final class NetAppResourceQuotaLimitsGetSamples {
public final class NetAppResourceQuotaLimitsListSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/QuotaLimits_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/QuotaLimits_List.json
*/
/**
* Sample code: QuotaLimits.
@@ -1183,6 +1367,52 @@ public final class NetAppResourceQuotaLimitsListSamples {
}
```
+### NetAppResourceQuotaLimitsAccount_Get
+
+```java
+/**
+ * Samples for NetAppResourceQuotaLimitsAccount Get.
+ */
+public final class NetAppResourceQuotaLimitsAccountGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/QuotaLimitsAccount_Get
+ * .json
+ */
+ /**
+ * Sample code: Volumes_RestoreStatus.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceQuotaLimitsAccounts()
+ .getWithResponse("myRG", "myAccount", "poolsPerAccount", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResourceQuotaLimitsAccount_List
+
+```java
+/**
+ * Samples for NetAppResourceQuotaLimitsAccount List.
+ */
+public final class NetAppResourceQuotaLimitsAccountListSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * QuotaLimitsAccount_List.json
+ */
+ /**
+ * Sample code: Volumes_RestoreStatus.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceQuotaLimitsAccounts().list("myRG", "myAccount", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### NetAppResourceRegionInfos_Get
```java
@@ -1192,7 +1422,7 @@ public final class NetAppResourceQuotaLimitsListSamples {
public final class NetAppResourceRegionInfosGetSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfos_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/RegionInfos_Get.json
*/
/**
* Sample code: RegionInfos_Get.
@@ -1214,7 +1444,7 @@ public final class NetAppResourceRegionInfosGetSamples {
public final class NetAppResourceRegionInfosListSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfos_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/RegionInfos_List.json
*/
/**
* Sample code: RegionInfos_List.
@@ -1227,6 +1457,51 @@ public final class NetAppResourceRegionInfosListSamples {
}
```
+### NetAppResourceUsages_Get
+
+```java
+/**
+ * Samples for NetAppResourceUsages Get.
+ */
+public final class NetAppResourceUsagesGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Usages_Get.json
+ */
+ /**
+ * Sample code: Usages_Get.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void usagesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceUsages()
+ .getWithResponse("eastus", "totalTibsPerSubscription", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetAppResourceUsages_List
+
+```java
+/**
+ * Samples for NetAppResourceUsages List.
+ */
+public final class NetAppResourceUsagesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Usages_List.json
+ */
+ /**
+ * Sample code: Usages_List.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void usagesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.netAppResourceUsages().list("eastus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Operations_List
```java
@@ -1236,7 +1511,7 @@ public final class NetAppResourceRegionInfosListSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/OperationList.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/OperationList.json
*/
/**
* Sample code: OperationList.
@@ -1261,7 +1536,8 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel;
public final class PoolsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_CreateOrUpdate.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_CreateOrUpdate.
+ * json
*/
/**
* Sample code: Pools_CreateOrUpdate.
@@ -1278,6 +1554,28 @@ public final class PoolsCreateOrUpdateSamples {
.withQosType(QosType.AUTO)
.create();
}
+
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Pools_CreateOrUpdate_CustomThroughput.json
+ */
+ /**
+ * Sample code: Pools_CreateOrUpdate_CustomThroughput.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void
+ poolsCreateOrUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools()
+ .define("customPool1")
+ .withRegion("eastus")
+ .withExistingNetAppAccount("myRG", "account1")
+ .withSize(4398046511104L)
+ .withServiceLevel(ServiceLevel.FLEXIBLE)
+ .withCustomThroughputMibps(128.0F)
+ .withQosType(QosType.MANUAL)
+ .create();
+ }
}
```
@@ -1290,7 +1588,7 @@ public final class PoolsCreateOrUpdateSamples {
public final class PoolsDeleteSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Delete.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_Delete.json
*/
/**
* Sample code: Pools_Delete.
@@ -1310,9 +1608,22 @@ public final class PoolsDeleteSamples {
* Samples for Pools Get.
*/
public final class PoolsGetSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Pools_Get_CustomThroughput.json
+ */
+ /**
+ * Sample code: Pools_Get_CustomThroughput.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void poolsGetCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.pools().getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE);
+ }
+
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_Get.json
*/
/**
* Sample code: Pools_Get.
@@ -1334,7 +1645,7 @@ public final class PoolsGetSamples {
public final class PoolsListSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_List.json
*/
/**
* Sample code: Pools_List.
@@ -1358,7 +1669,7 @@ import com.azure.resourcemanager.netapp.models.CapacityPool;
public final class PoolsUpdateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Update.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_Update.json
*/
/**
* Sample code: Pools_Update.
@@ -1370,6 +1681,22 @@ public final class PoolsUpdateSamples {
= manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue();
resource.update().apply();
}
+
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Pools_Update_CustomThroughput.json
+ */
+ /**
+ * Sample code: Pools_Update_CustomThroughput.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void poolsUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ CapacityPool resource = manager.pools()
+ .getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().apply();
+ }
}
```
@@ -1386,8 +1713,8 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule;
*/
public final class SnapshotPoliciesCreateSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Create.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * SnapshotPolicies_Create.json
*/
/**
* Sample code: SnapshotPolicies_Create.
@@ -1419,8 +1746,8 @@ public final class SnapshotPoliciesCreateSamples {
*/
public final class SnapshotPoliciesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * SnapshotPolicies_Delete.json
*/
/**
* Sample code: SnapshotPolicies_Delete.
@@ -1443,7 +1770,8 @@ public final class SnapshotPoliciesDeleteSamples {
public final class SnapshotPoliciesGetSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/SnapshotPolicies_Get.
+ * json
*/
/**
* Sample code: SnapshotPolicies_Get.
@@ -1466,7 +1794,8 @@ public final class SnapshotPoliciesGetSamples {
public final class SnapshotPoliciesListSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/SnapshotPolicies_List.
+ * json
*/
/**
* Sample code: SnapshotPolicies_List.
@@ -1487,9 +1816,8 @@ public final class SnapshotPoliciesListSamples {
*/
public final class SnapshotPoliciesListVolumesSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_ListVolumes.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * SnapshotPolicies_ListVolumes.json
*/
/**
* Sample code: SnapshotPolicies_ListVolumes.
@@ -1517,8 +1845,8 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule;
*/
public final class SnapshotPoliciesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * SnapshotPolicies_Update.json
*/
/**
* Sample code: SnapshotPolicies_Update.
@@ -1551,7 +1879,7 @@ public final class SnapshotPoliciesUpdateSamples {
public final class SnapshotsCreateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Create.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Create.json
*/
/**
* Sample code: Snapshots_Create.
@@ -1577,7 +1905,7 @@ public final class SnapshotsCreateSamples {
public final class SnapshotsDeleteSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Delete.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Delete.json
*/
/**
* Sample code: Snapshots_Delete.
@@ -1600,7 +1928,7 @@ public final class SnapshotsDeleteSamples {
public final class SnapshotsGetSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Get.json
*/
/**
* Sample code: Snapshots_Get.
@@ -1623,7 +1951,7 @@ public final class SnapshotsGetSamples {
public final class SnapshotsListSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_List.json
*/
/**
* Sample code: Snapshots_List.
@@ -1647,9 +1975,8 @@ import java.util.Arrays;
*/
public final class SnapshotsRestoreFilesSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_SingleFileRestore.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Snapshots_SingleFileRestore.json
*/
/**
* Sample code: Snapshots_SingleFileRestore.
@@ -1678,7 +2005,7 @@ import java.io.IOException;
public final class SnapshotsUpdateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Update.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Update.json
*/
/**
* Sample code: Snapshots_Update.
@@ -1704,7 +2031,7 @@ public final class SnapshotsUpdateSamples {
public final class SubvolumesCreateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Create.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Create.json
*/
/**
* Sample code: Subvolumes_Create.
@@ -1730,7 +2057,7 @@ public final class SubvolumesCreateSamples {
public final class SubvolumesDeleteSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Delete.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Delete.json
*/
/**
* Sample code: Subvolumes_Delete.
@@ -1753,7 +2080,7 @@ public final class SubvolumesDeleteSamples {
public final class SubvolumesGetSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Get.json
*/
/**
* Sample code: Subvolumes_Get.
@@ -1776,7 +2103,8 @@ public final class SubvolumesGetSamples {
public final class SubvolumesGetMetadataSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Metadata.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Metadata.
+ * json
*/
/**
* Sample code: Subvolumes_Metadata.
@@ -1799,7 +2127,7 @@ public final class SubvolumesGetMetadataSamples {
public final class SubvolumesListByVolumeSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_List.json
*/
/**
* Sample code: Subvolumes_List.
@@ -1823,7 +2151,7 @@ import com.azure.resourcemanager.netapp.models.SubvolumeInfo;
public final class SubvolumesUpdateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Update.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Update.json
*/
/**
* Sample code: Subvolumes_Update.
@@ -1855,9 +2183,8 @@ import java.util.Arrays;
*/
public final class VolumeGroupsCreateSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Create_SapHana.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * VolumeGroups_Create_SapHana.json
*/
/**
* Sample code: VolumeGroups_Create_SapHana.
@@ -1894,12 +2221,12 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withProximityPlacementGroup(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
.withVolumeSpecName("data"),
new VolumeGroupVolumeProperties().withName("test-log-mnt00001")
.withCreationToken("fakeTokenPlaceholder")
@@ -1922,12 +2249,12 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withProximityPlacementGroup(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
.withVolumeSpecName("log"),
new VolumeGroupVolumeProperties().withName("test-shared")
.withCreationToken("fakeTokenPlaceholder")
@@ -1950,12 +2277,12 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withProximityPlacementGroup(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
.withVolumeSpecName("shared"),
new VolumeGroupVolumeProperties().withName("test-data-backup")
.withCreationToken("fakeTokenPlaceholder")
@@ -1978,12 +2305,12 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withProximityPlacementGroup(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
.withVolumeSpecName("data-backup"),
new VolumeGroupVolumeProperties().withName("test-log-backup")
.withCreationToken("fakeTokenPlaceholder")
@@ -2006,19 +2333,19 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withProximityPlacementGroup(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
.withVolumeSpecName("log-backup")))
.create();
}
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Create_Oracle.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * VolumeGroups_Create_Oracle.json
*/
/**
* Sample code: VolumeGroups_Create_Oracle.
@@ -2056,10 +2383,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-data1"),
new VolumeGroupVolumeProperties().withName("test-ora-data2")
.withZones(Arrays.asList("1"))
@@ -2083,10 +2410,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-data2"),
new VolumeGroupVolumeProperties().withName("test-ora-data3")
.withZones(Arrays.asList("1"))
@@ -2110,10 +2437,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-data3"),
new VolumeGroupVolumeProperties().withName("test-ora-data4")
.withZones(Arrays.asList("1"))
@@ -2137,10 +2464,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-data4"),
new VolumeGroupVolumeProperties().withName("test-ora-data5")
.withZones(Arrays.asList("1"))
@@ -2164,10 +2491,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-data5"),
new VolumeGroupVolumeProperties().withName("test-ora-data6")
.withZones(Arrays.asList("1"))
@@ -2191,10 +2518,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-data6"),
new VolumeGroupVolumeProperties().withName("test-ora-data7")
.withZones(Arrays.asList("1"))
@@ -2218,10 +2545,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-data7"),
new VolumeGroupVolumeProperties().withName("test-ora-data8")
.withZones(Arrays.asList("1"))
@@ -2245,10 +2572,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-data8"),
new VolumeGroupVolumeProperties().withName("test-ora-log")
.withZones(Arrays.asList("1"))
@@ -2272,10 +2599,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-log"),
new VolumeGroupVolumeProperties().withName("test-ora-log-mirror")
.withZones(Arrays.asList("1"))
@@ -2299,10 +2626,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-log-mirror"),
new VolumeGroupVolumeProperties().withName("test-ora-binary")
.withZones(Arrays.asList("1"))
@@ -2326,10 +2653,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-binary"),
new VolumeGroupVolumeProperties().withName("test-ora-backup")
.withZones(Arrays.asList("1"))
@@ -2353,10 +2680,10 @@ public final class VolumeGroupsCreateSamples {
.withHasRootAccess(true))))
.withProtocolTypes(Arrays.asList("NFSv4.1"))
.withSubnetId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withThroughputMibps(10.0F)
.withCapacityPoolResourceId(
- "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
.withVolumeSpecName("ora-backup")))
.create();
}
@@ -2372,7 +2699,8 @@ public final class VolumeGroupsCreateSamples {
public final class VolumeGroupsDeleteSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Delete.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/VolumeGroups_Delete.
+ * json
*/
/**
* Sample code: VolumeGroups_Delete.
@@ -2393,8 +2721,8 @@ public final class VolumeGroupsDeleteSamples {
*/
public final class VolumeGroupsGetSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Get_SapHana.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * VolumeGroups_Get_SapHana.json
*/
/**
* Sample code: VolumeGroups_Get_SapHana.
@@ -2406,8 +2734,8 @@ public final class VolumeGroupsGetSamples {
}
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Get_Oracle.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * VolumeGroups_Get_Oracle.json
*/
/**
* Sample code: VolumeGroups_Get_Oracle.
@@ -2428,8 +2756,8 @@ public final class VolumeGroupsGetSamples {
*/
public final class VolumeGroupsListByNetAppAccountSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_List_Oracle.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * VolumeGroups_List_Oracle.json
*/
/**
* Sample code: VolumeGroups_List_Oracle.
@@ -2441,8 +2769,8 @@ public final class VolumeGroupsListByNetAppAccountSamples {
}
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_List_SapHana.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * VolumeGroups_List_SapHana.json
*/
/**
* Sample code: VolumeGroups_List_SapHana.
@@ -2465,8 +2793,8 @@ import com.azure.resourcemanager.netapp.models.Type;
*/
public final class VolumeQuotaRulesCreateSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Create.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * VolumeQuotaRules_Create.json
*/
/**
* Sample code: VolumeQuotaRules_Create.
@@ -2494,8 +2822,8 @@ public final class VolumeQuotaRulesCreateSamples {
*/
public final class VolumeQuotaRulesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * VolumeQuotaRules_Delete.json
*/
/**
* Sample code: VolumeQuotaRules_Delete.
@@ -2518,7 +2846,8 @@ public final class VolumeQuotaRulesDeleteSamples {
public final class VolumeQuotaRulesGetSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/VolumeQuotaRules_Get.
+ * json
*/
/**
* Sample code: VolumeQuotaRules_Get.
@@ -2542,7 +2871,8 @@ public final class VolumeQuotaRulesGetSamples {
public final class VolumeQuotaRulesListByVolumeSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/VolumeQuotaRules_List.
+ * json
*/
/**
* Sample code: VolumeQuotaRules_List.
@@ -2566,8 +2896,8 @@ import com.azure.resourcemanager.netapp.models.VolumeQuotaRule;
*/
public final class VolumeQuotaRulesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * VolumeQuotaRules_Update.json
*/
/**
* Sample code: VolumeQuotaRules_Update.
@@ -2592,7 +2922,7 @@ public final class VolumeQuotaRulesUpdateSamples {
*/
public final class VolumesAuthorizeExternalReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
* Volumes_AuthorizeExternalReplication.json
*/
/**
@@ -2618,9 +2948,8 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest;
*/
public final class VolumesAuthorizeReplicationSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_AuthorizeReplication.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_AuthorizeReplication.json
*/
/**
* Sample code: Volumes_AuthorizeReplication.
@@ -2631,7 +2960,7 @@ public final class VolumesAuthorizeReplicationSamples {
manager.volumes()
.authorizeReplication("myRG", "account1", "pool1", "volume1",
new AuthorizeRequest().withRemoteVolumeResourceId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"),
com.azure.core.util.Context.NONE);
}
}
@@ -2648,7 +2977,8 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest;
public final class VolumesBreakFileLocksSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_BreakFileLocks.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_BreakFileLocks
+ * .json
*/
/**
* Sample code: Volumes_BreakFileLocks.
@@ -2674,8 +3004,8 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest;
*/
public final class VolumesBreakReplicationSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_BreakReplication.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_BreakReplication.json
*/
/**
* Sample code: Volumes_BreakReplication.
@@ -2701,7 +3031,8 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel;
public final class VolumesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_CreateOrUpdate.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_CreateOrUpdate
+ * .json
*/
/**
* Sample code: Volumes_CreateOrUpdate.
@@ -2716,7 +3047,7 @@ public final class VolumesCreateOrUpdateSamples {
.withCreationToken("my-unique-file-path")
.withUsageThreshold(107374182400L)
.withSubnetId(
- "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withServiceLevel(ServiceLevel.PREMIUM)
.create();
}
@@ -2732,7 +3063,7 @@ public final class VolumesCreateOrUpdateSamples {
public final class VolumesDeleteSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Delete.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Delete.json
*/
/**
* Sample code: Volumes_Delete.
@@ -2753,8 +3084,8 @@ public final class VolumesDeleteSamples {
*/
public final class VolumesDeleteReplicationSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_DeleteReplication.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_DeleteReplication.json
*/
/**
* Sample code: Volumes_DeleteReplication.
@@ -2775,7 +3106,7 @@ public final class VolumesDeleteReplicationSamples {
*/
public final class VolumesFinalizeExternalReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
* Volumes_FinalizeExternalReplication.json
*/
/**
@@ -2798,8 +3129,8 @@ public final class VolumesFinalizeExternalReplicationSamples {
*/
public final class VolumesFinalizeRelocationSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_FinalizeRelocation.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_FinalizeRelocation.json
*/
/**
* Sample code: Volumes_FinalizeRelocation.
@@ -2821,7 +3152,7 @@ public final class VolumesFinalizeRelocationSamples {
public final class VolumesGetSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Get.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Get.json
*/
/**
* Sample code: Volumes_Get.
@@ -2843,7 +3174,7 @@ public final class VolumesGetSamples {
public final class VolumesListSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_List.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_List.json
*/
/**
* Sample code: Volumes_List.
@@ -2867,7 +3198,8 @@ import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest;
public final class VolumesListGetGroupIdListForLdapUserSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/GroupIdListForLDAPUser.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/GroupIdListForLDAPUser
+ * .json
*/
/**
* Sample code: GetGroupIdListForUser.
@@ -2882,6 +3214,28 @@ 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-01-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
@@ -2890,8 +3244,8 @@ public final class VolumesListGetGroupIdListForLdapUserSamples {
*/
public final class VolumesListReplicationsSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ListReplications.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_ListReplications.json
*/
/**
* Sample code: Volumes_ListReplications.
@@ -2915,9 +3269,8 @@ import java.util.Arrays;
*/
public final class VolumesPeerExternalClusterSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_PeerExternalCluster.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_PeerExternalCluster.json
*/
/**
* Sample code: Volumes_PeerExternalCluster.
@@ -2942,7 +3295,7 @@ public final class VolumesPeerExternalClusterSamples {
*/
public final class VolumesPerformReplicationTransferSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
* Volumes_PerformReplicationTransfer.json
*/
/**
@@ -2968,7 +3321,8 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest;
public final class VolumesPoolChangeSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_PoolChange.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_PoolChange.
+ * json
*/
/**
* Sample code: Volumes_AuthorizeReplication.
@@ -2978,7 +3332,7 @@ public final class VolumesPoolChangeSamples {
public static void volumesAuthorizeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.volumes()
.poolChange("myRG", "account1", "pool1", "volume1", new PoolChangeRequest().withNewPoolResourceId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
com.azure.core.util.Context.NONE);
}
}
@@ -2992,7 +3346,7 @@ public final class VolumesPoolChangeSamples {
*/
public final class VolumesPopulateAvailabilityZoneSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
* Volumes_PopulateAvailabilityZones.json
*/
/**
@@ -3015,9 +3369,8 @@ public final class VolumesPopulateAvailabilityZoneSamples {
*/
public final class VolumesReInitializeReplicationSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReInitializeReplication
- * .json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_ReInitializeReplication.json
*/
/**
* Sample code: Volumes_ReInitializeReplication.
@@ -3041,9 +3394,8 @@ import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest;
*/
public final class VolumesReestablishReplicationSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReestablishReplication.
- * json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_ReestablishReplication.json
*/
/**
* Sample code: Volumes_ReestablishReplication.
@@ -3054,7 +3406,7 @@ public final class VolumesReestablishReplicationSamples {
manager.volumes()
.reestablishReplication("myRG", "account1", "pool1", "volume1",
new ReestablishReplicationRequest().withSourceVolumeId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"),
com.azure.core.util.Context.NONE);
}
}
@@ -3071,7 +3423,7 @@ import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest;
public final class VolumesRelocateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Relocate.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Relocate.json
*/
/**
* Sample code: Volumes_Relocate.
@@ -3094,8 +3446,8 @@ public final class VolumesRelocateSamples {
*/
public final class VolumesReplicationStatusSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReplicationStatus.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_ReplicationStatus.json
*/
/**
* Sample code: Volumes_ReplicationStatus.
@@ -3117,8 +3469,8 @@ public final class VolumesReplicationStatusSamples {
*/
public final class VolumesResetCifsPasswordSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ResetCifsPassword.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_ResetCifsPassword.json
*/
/**
* Sample code: Volumes_ResetCifsPassword.
@@ -3139,8 +3491,8 @@ public final class VolumesResetCifsPasswordSamples {
*/
public final class VolumesResyncReplicationSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ResyncReplication.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_ResyncReplication.json
*/
/**
* Sample code: Volumes_ResyncReplication.
@@ -3164,7 +3516,7 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert;
public final class VolumesRevertSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Revert.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Revert.json
*/
/**
* Sample code: Volumes_Revert.
@@ -3174,7 +3526,7 @@ public final class VolumesRevertSamples {
public static void volumesRevert(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.volumes()
.revert("myRG", "account1", "pool1", "volume1", new VolumeRevert().withSnapshotId(
- "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"),
com.azure.core.util.Context.NONE);
}
}
@@ -3188,8 +3540,8 @@ public final class VolumesRevertSamples {
*/
public final class VolumesRevertRelocationSamples {
/*
- * x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_RevertRelocation.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/
+ * Volumes_RevertRelocation.json
*/
/**
* Sample code: Volumes_RevertRelocation.
@@ -3202,6 +3554,30 @@ public final class VolumesRevertRelocationSamples {
}
```
+### Volumes_SplitCloneFromParent
+
+```java
+/**
+ * Samples for Volumes SplitCloneFromParent.
+ */
+public final class VolumesSplitCloneFromParentSamples {
+ /*
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_SplitClone.
+ * json
+ */
+ /**
+ * Sample code: Volumes_SplitClone.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumesSplitClone(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumes()
+ .splitCloneFromParent("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Volumes_Update
```java
@@ -3213,7 +3589,7 @@ import com.azure.resourcemanager.netapp.models.Volume;
public final class VolumesUpdateSamples {
/*
* x-ms-original-file:
- * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Update.json
+ * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Update.json
*/
/**
* Sample code: Volumes_Update.
diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml
index 098ba624452c..fb41aaa175fe 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml
+++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for NetAppFiles Management
- This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-2024-09-01.
+ This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-2025-01-01-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
false
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java
index f42fbd365df2..49115ed7ffa9 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
@@ -32,9 +32,12 @@
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;
import com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosImpl;
+import com.azure.resourcemanager.netapp.implementation.NetAppResourceUsagesImpl;
import com.azure.resourcemanager.netapp.implementation.NetAppResourcesImpl;
import com.azure.resourcemanager.netapp.implementation.OperationsImpl;
import com.azure.resourcemanager.netapp.implementation.PoolsImpl;
@@ -51,8 +54,11 @@
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;
+import com.azure.resourcemanager.netapp.models.NetAppResourceUsages;
import com.azure.resourcemanager.netapp.models.NetAppResources;
import com.azure.resourcemanager.netapp.models.Operations;
import com.azure.resourcemanager.netapp.models.Pools;
@@ -79,6 +85,8 @@ public final class NetAppFilesManager {
private NetAppResources netAppResources;
+ private NetAppResourceUsages netAppResourceUsages;
+
private NetAppResourceQuotaLimits netAppResourceQuotaLimits;
private NetAppResourceRegionInfos netAppResourceRegionInfos;
@@ -103,6 +111,8 @@ public final class NetAppFilesManager {
private Backups backups;
+ private NetAppResourceQuotaLimitsAccounts netAppResourceQuotaLimitsAccounts;
+
private BackupVaults backupVaults;
private BackupsUnderBackupVaults backupsUnderBackupVaults;
@@ -111,6 +121,8 @@ public final class NetAppFilesManager {
private BackupsUnderAccounts backupsUnderAccounts;
+ private Buckets buckets;
+
private final NetAppManagementClient clientObject;
private NetAppFilesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -350,6 +362,18 @@ public NetAppResources netAppResources() {
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.
*
@@ -496,6 +520,19 @@ public Backups backups() {
return backups;
}
+ /**
+ * Gets the resource collection API of NetAppResourceQuotaLimitsAccounts.
+ *
+ * @return Resource collection API of NetAppResourceQuotaLimitsAccounts.
+ */
+ public NetAppResourceQuotaLimitsAccounts netAppResourceQuotaLimitsAccounts() {
+ if (this.netAppResourceQuotaLimitsAccounts == null) {
+ this.netAppResourceQuotaLimitsAccounts
+ = new NetAppResourceQuotaLimitsAccountsImpl(clientObject.getNetAppResourceQuotaLimitsAccounts(), this);
+ }
+ return netAppResourceQuotaLimitsAccounts;
+ }
+
/**
* Gets the resource collection API of BackupVaults. It manages BackupVault.
*
@@ -545,6 +582,18 @@ public BackupsUnderAccounts backupsUnderAccounts() {
return backupsUnderAccounts;
}
+ /**
+ * Gets the resource collection API of Buckets. It manages Bucket.
+ *
+ * @return Resource collection API of Buckets.
+ */
+ public Buckets buckets() {
+ if (this.buckets == null) {
+ this.buckets = new BucketsImpl(clientObject.getBuckets(), this);
+ }
+ return buckets;
+ }
+
/**
* Gets wrapped service client NetAppManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
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
new file mode 100644
index 000000000000..d746d49a5954
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java
@@ -0,0 +1,392 @@
+// 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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);
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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);
+
+ /**
+ * 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 cd8cb7a15cc9..290eba0adb2b 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
@@ -60,6 +60,13 @@ public interface NetAppManagementClient {
*/
NetAppResourcesClient getNetAppResources();
+ /**
+ * Gets the NetAppResourceUsagesClient object to access its operations.
+ *
+ * @return the NetAppResourceUsagesClient object.
+ */
+ NetAppResourceUsagesClient getNetAppResourceUsages();
+
/**
* Gets the NetAppResourceQuotaLimitsClient object to access its operations.
*
@@ -144,6 +151,13 @@ public interface NetAppManagementClient {
*/
BackupsClient getBackups();
+ /**
+ * Gets the NetAppResourceQuotaLimitsAccountsClient object to access its operations.
+ *
+ * @return the NetAppResourceQuotaLimitsAccountsClient object.
+ */
+ NetAppResourceQuotaLimitsAccountsClient getNetAppResourceQuotaLimitsAccounts();
+
/**
* Gets the BackupVaultsClient object to access its operations.
*
@@ -171,4 +185,11 @@ public interface NetAppManagementClient {
* @return the BackupsUnderAccountsClient object.
*/
BackupsUnderAccountsClient getBackupsUnderAccounts();
+
+ /**
+ * Gets the BucketsClient object to access its operations.
+ *
+ * @return the BucketsClient object.
+ */
+ BucketsClient getBuckets();
}
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
new file mode 100644
index 000000000000..4168cf6268f0
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java
@@ -0,0 +1,84 @@
+// 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.util.Context;
+import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner;
+
+/**
+ * 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.
+ *
+ * @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 a list of quota limits for all quotas that are under account as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName);
+
+ /**
+ * 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 com.azure.core.management.exception.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)
+ PagedIterable list(String resourceGroupName, String accountName, Context 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName,
+ Context 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 com.azure.core.management.exception.ManagementException 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)
+ QuotaItemInner get(String resourceGroupName, String accountName, String quotaLimitName);
+}
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 370b55680b6f..9c46cb25b567 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
@@ -9,7 +9,7 @@
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.SubscriptionQuotaItemInner;
+import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner;
/**
* An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsClient.
@@ -27,7 +27,7 @@ public interface NetAppResourceQuotaLimitsClient {
* @return the default and current limits for quotas as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String location);
+ PagedIterable list(String location);
/**
* Get quota limits
@@ -42,7 +42,7 @@ public interface NetAppResourceQuotaLimitsClient {
* @return the default and current limits for quotas as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String location, Context context);
+ PagedIterable list(String location, Context context);
/**
* Get quota limits
@@ -58,7 +58,7 @@ public interface NetAppResourceQuotaLimitsClient {
* @return the default and current subscription quota limit along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String location, String quotaLimitName, Context context);
+ Response getWithResponse(String location, String quotaLimitName, Context context);
/**
* Get quota limits
@@ -73,5 +73,5 @@ public interface NetAppResourceQuotaLimitsClient {
* @return the default and current subscription quota limit.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SubscriptionQuotaItemInner get(String location, String quotaLimitName);
+ QuotaItemInner get(String location, String quotaLimitName);
}
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
new file mode 100644
index 000000000000..7016d2184f1c
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java
@@ -0,0 +1,77 @@
+// 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.util.Context;
+import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in NetAppResourceUsagesClient.
+ */
+public interface NetAppResourceUsagesClient {
+ /**
+ * Get usages
+ *
+ * Get current subscription usages.
+ *
+ * @param location The name of the Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location);
+
+ /**
+ * Get usages
+ *
+ * Get current subscription usages.
+ *
+ * @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 current subscription usages as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location, Context context);
+
+ /**
+ * Get specific type of usage
+ *
+ * Get current subscription usage of the specific type.
+ *
+ * @param location The name of the Azure region.
+ * @param usageType The type of usage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String location, String usageType, Context context);
+
+ /**
+ * Get specific type of usage
+ *
+ * Get current subscription usage of the specific type.
+ *
+ * @param location The name of the Azure region.
+ * @param usageType The type of usage.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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.
+ */
+ @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/VolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java
index 76a8f005aeb6..5f4c25b6c0ce 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java
@@ -13,6 +13,7 @@
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;
@@ -552,6 +553,77 @@ SyncPoller, Void> beginResetCifsPassword(String resourceGroupNa
void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName,
Context context);
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName,
+ String poolName, String volumeName);
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName,
+ String poolName, String volumeName, Context context);
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName,
+ Context context);
+
/**
* Break file locks
*
@@ -705,6 +777,80 @@ GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String reso
GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, String accountName,
String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context);
+ /**
+ * Lists Quota Report for the volume
+ *
+ * Returns report of quotas for the volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of quota Report for volume.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ListQuotaReportResponseInner>
+ beginListQuotaReport(String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Lists Quota Report for the volume
+ *
+ * Returns report of quotas for the volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of quota Report for volume.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ListQuotaReportResponseInner> beginListQuotaReport(
+ String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+
+ /**
+ * Lists Quota Report for the volume
+ *
+ * Returns report of quotas for the volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return quota Report for volume.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName,
+ String volumeName);
+
+ /**
+ * Lists Quota Report for the volume
+ *
+ * Returns report of quotas for the volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return quota Report for volume.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName,
+ String volumeName, Context context);
+
/**
* Break volume replication
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java
index a0a0deb442f1..1c675c89c454 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java
@@ -11,6 +11,8 @@
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.netapp.models.AccountEncryption;
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
+import com.azure.resourcemanager.netapp.models.LdapConfiguration;
+import com.azure.resourcemanager.netapp.models.MultiAdStatus;
import java.io.IOException;
import java.util.List;
@@ -39,6 +41,22 @@ 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();
}
@@ -155,6 +229,12 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti
deserializedAccountProperties.encryption = AccountEncryption.fromJson(reader);
} else if ("disableShowmount".equals(fieldName)) {
deserializedAccountProperties.disableShowmount = reader.getNullable(JsonReader::getBoolean);
+ } else if ("nfsV4IDDomain".equals(fieldName)) {
+ deserializedAccountProperties.nfsV4IdDomain = reader.getString();
+ } else if ("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 bdb627ced090..833daf3382a6 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
@@ -117,6 +117,24 @@ public OffsetDateTime creationDate() {
return this.innerProperties() == null ? null : this.innerProperties().creationDate();
}
+ /**
+ * Get the snapshotCreationDate property: The snapshot creation date of the backup.
+ *
+ * @return the snapshotCreationDate value.
+ */
+ public OffsetDateTime snapshotCreationDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().snapshotCreationDate();
+ }
+
+ /**
+ * Get the completionDate property: The completion date of the backup.
+ *
+ * @return the completionDate value.
+ */
+ public OffsetDateTime completionDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().completionDate();
+ }
+
/**
* Get the provisioningState property: Azure lifecycle management.
*
@@ -256,6 +274,15 @@ public String backupPolicyResourceId() {
return this.innerProperties() == null ? null : this.innerProperties().backupPolicyResourceId();
}
+ /**
+ * Get the isLargeVolume property: Specifies if the backup is for a large volume.
+ *
+ * @return the isLargeVolume value.
+ */
+ public Boolean isLargeVolume() {
+ return this.innerProperties() == null ? null : this.innerProperties().isLargeVolume();
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java
index 38ff6c3df221..a88013884c50 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
@@ -30,6 +30,16 @@ public final class BackupProperties implements JsonSerializable CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("snapshotCreationDate".equals(fieldName)) {
+ deserializedBackupProperties.snapshotCreationDate = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("completionDate".equals(fieldName)) {
+ deserializedBackupProperties.completionDate = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
} else if ("provisioningState".equals(fieldName)) {
deserializedBackupProperties.provisioningState = reader.getString();
} else if ("size".equals(fieldName)) {
@@ -294,6 +342,8 @@ public static BackupProperties fromJson(JsonReader jsonReader) throws IOExceptio
deserializedBackupProperties.snapshotName = reader.getString();
} else if ("backupPolicyResourceId".equals(fieldName)) {
deserializedBackupProperties.backupPolicyResourceId = reader.getString();
+ } else if ("isLargeVolume".equals(fieldName)) {
+ deserializedBackupProperties.isLargeVolume = reader.getNullable(JsonReader::getBoolean);
} else {
reader.skipChildren();
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java
new file mode 100644
index 000000000000..daf84854e395
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java
@@ -0,0 +1,117 @@
+// 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.Immutable;
+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;
+
+/**
+ * Bucket Access Key, Secret Key, and Expiry date and time of the key pair.
+ */
+@Immutable
+public final class BucketGenerateCredentialsInner 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
new file mode 100644
index 000000000000..4936a7dfd336
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java
@@ -0,0 +1,255 @@
+// 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.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;
+ }
+
+ /**
+ * 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
new file mode 100644
index 000000000000..66f1a924baf9
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java
@@ -0,0 +1,181 @@
+// 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.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;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * 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);
+ 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 {
+ 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
new file mode 100644
index 000000000000..f586a6c053e1
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java
@@ -0,0 +1,209 @@
+// 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.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;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * 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);
+ 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 {
+ 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 9a90e7e166db..25ed4882a05c 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
@@ -217,6 +217,31 @@ public Float utilizedThroughputMibps() {
return this.innerProperties() == null ? null : this.innerProperties().utilizedThroughputMibps();
}
+ /**
+ * Get the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this
+ * will be accepted as input only for manual qosType pool with Flexible service level.
+ *
+ * @return the customThroughputMibps value.
+ */
+ public Float customThroughputMibps() {
+ return this.innerProperties() == null ? null : this.innerProperties().customThroughputMibps();
+ }
+
+ /**
+ * Set the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this
+ * will be accepted as input only for manual qosType pool with Flexible service level.
+ *
+ * @param customThroughputMibps the customThroughputMibps value to set.
+ * @return the CapacityPoolInner object itself.
+ */
+ public CapacityPoolInner withCustomThroughputMibps(Float customThroughputMibps) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PoolProperties();
+ }
+ this.innerProperties().withCustomThroughputMibps(customThroughputMibps);
+ return this;
+ }
+
/**
* Get the qosType property: The qos type of the pool.
*
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
new file mode 100644
index 000000000000..0fc97a6a1a4d
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResponseInner.java
@@ -0,0 +1,127 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.netapp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.QuotaReport;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Quota Report for volume.
+ */
+@Fluent
+public final class ListQuotaReportResponseInner implements JsonSerializable {
+ /*
+ * List of volume quota report records
+ */
+ private List value;
+
+ /*
+ * URL to get the next set of results.
+ */
+ private String nextLink;
+
+ /**
+ * Creates an instance of ListQuotaReportResponseInner class.
+ */
+ public ListQuotaReportResponseInner() {
+ }
+
+ /**
+ * Get the value property: List of volume quota report records.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: List of volume quota report records.
+ *
+ * @param value the value value to set.
+ * @return the ListQuotaReportResponseInner object itself.
+ */
+ public ListQuotaReportResponseInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: URL to get the next set of results.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: URL to get the next set of results.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the ListQuotaReportResponseInner object itself.
+ */
+ public ListQuotaReportResponseInner withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ListQuotaReportResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ListQuotaReportResponseInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the ListQuotaReportResponseInner.
+ */
+ public static ListQuotaReportResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ListQuotaReportResponseInner deserializedListQuotaReportResponseInner = new ListQuotaReportResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> QuotaReport.fromJson(reader1));
+ deserializedListQuotaReportResponseInner.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedListQuotaReportResponseInner.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedListQuotaReportResponseInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java
index 35293fa98930..292b52b4750f 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java
@@ -12,7 +12,9 @@
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;
import java.util.List;
import java.util.Map;
@@ -223,6 +225,63 @@ public Boolean disableShowmount() {
return this.innerProperties() == null ? null : this.innerProperties().disableShowmount();
}
+ /**
+ * Get the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
+ * accounts in the subscription and region and only affect non ldap NFSv4 volumes.
+ *
+ * @return the nfsV4IdDomain value.
+ */
+ public String nfsV4IdDomain() {
+ return this.innerProperties() == null ? null : this.innerProperties().nfsV4IdDomain();
+ }
+
+ /**
+ * Set the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
+ * accounts in the subscription and region and only affect non ldap NFSv4 volumes.
+ *
+ * @param nfsV4IdDomain the nfsV4IdDomain value to set.
+ * @return the NetAppAccountInner object itself.
+ */
+ public NetAppAccountInner withNfsV4IdDomain(String nfsV4IdDomain) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AccountProperties();
+ }
+ this.innerProperties().withNfsV4IdDomain(nfsV4IdDomain);
+ return this;
+ }
+
+ /**
+ * Get the multiAdStatus property: MultiAD Status for the account.
+ *
+ * @return the multiAdStatus value.
+ */
+ public MultiAdStatus multiAdStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().multiAdStatus();
+ }
+
+ /**
+ * Get the ldapConfiguration property: LDAP Configuration for the account.
+ *
+ * @return the ldapConfiguration value.
+ */
+ public LdapConfiguration ldapConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().ldapConfiguration();
+ }
+
+ /**
+ * Set the ldapConfiguration property: LDAP Configuration for the account.
+ *
+ * @param ldapConfiguration the ldapConfiguration value to set.
+ * @return the NetAppAccountInner object itself.
+ */
+ public NetAppAccountInner withLdapConfiguration(LdapConfiguration ldapConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AccountProperties();
+ }
+ this.innerProperties().withLdapConfiguration(ldapConfiguration);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java
index b73b809b72b5..999f47974e1b 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java
@@ -33,6 +33,12 @@ public final class PoolPatchProperties implements JsonSerializable {
*/
private Float utilizedThroughputMibps;
+ /*
+ * Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual
+ * qosType pool with Flexible service level
+ */
+ private Float customThroughputMibps;
+
/*
* The qos type of the pool
*/
@@ -151,6 +157,28 @@ public Float utilizedThroughputMibps() {
return this.utilizedThroughputMibps;
}
+ /**
+ * Get the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this
+ * will be accepted as input only for manual qosType pool with Flexible service level.
+ *
+ * @return the customThroughputMibps value.
+ */
+ public Float customThroughputMibps() {
+ return this.customThroughputMibps;
+ }
+
+ /**
+ * Set the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this
+ * will be accepted as input only for manual qosType pool with Flexible service level.
+ *
+ * @param customThroughputMibps the customThroughputMibps value to set.
+ * @return the PoolProperties object itself.
+ */
+ public PoolProperties withCustomThroughputMibps(Float customThroughputMibps) {
+ this.customThroughputMibps = customThroughputMibps;
+ return this;
+ }
+
/**
* Get the qosType property: The qos type of the pool.
*
@@ -235,6 +263,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeLongField("size", this.size);
jsonWriter.writeStringField("serviceLevel", this.serviceLevel == null ? null : this.serviceLevel.toString());
+ jsonWriter.writeNumberField("customThroughputMibps", this.customThroughputMibps);
jsonWriter.writeStringField("qosType", this.qosType == null ? null : this.qosType.toString());
jsonWriter.writeBooleanField("coolAccess", this.coolAccess);
jsonWriter.writeStringField("encryptionType",
@@ -270,6 +299,8 @@ public static PoolProperties fromJson(JsonReader jsonReader) throws IOException
deserializedPoolProperties.totalThroughputMibps = reader.getNullable(JsonReader::getFloat);
} else if ("utilizedThroughputMibps".equals(fieldName)) {
deserializedPoolProperties.utilizedThroughputMibps = reader.getNullable(JsonReader::getFloat);
+ } else if ("customThroughputMibps".equals(fieldName)) {
+ deserializedPoolProperties.customThroughputMibps = reader.getNullable(JsonReader::getFloat);
} else if ("qosType".equals(fieldName)) {
deserializedPoolProperties.qosType = QosType.fromString(reader.getString());
} else if ("coolAccess".equals(fieldName)) {
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemInner.java
similarity index 71%
rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java
rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemInner.java
index 0e79c3380396..718bcd255216 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemInner.java
@@ -13,14 +13,14 @@
import java.io.IOException;
/**
- * Information regarding Subscription Quota Item.
+ * Information regarding Quota Item.
*/
@Immutable
-public final class SubscriptionQuotaItemInner extends ProxyResource {
+public final class QuotaItemInner extends ProxyResource {
/*
- * SubscriptionQuotaItem properties
+ * QuotaItem properties
*/
- private SubscriptionQuotaItemProperties innerProperties;
+ private QuotaItemProperties innerProperties;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -43,17 +43,17 @@ public final class SubscriptionQuotaItemInner extends ProxyResource {
private String id;
/**
- * Creates an instance of SubscriptionQuotaItemInner class.
+ * Creates an instance of QuotaItemInner class.
*/
- public SubscriptionQuotaItemInner() {
+ public QuotaItemInner() {
}
/**
- * Get the innerProperties property: SubscriptionQuotaItem properties.
+ * Get the innerProperties property: QuotaItem properties.
*
* @return the innerProperties value.
*/
- private SubscriptionQuotaItemProperties innerProperties() {
+ private QuotaItemProperties innerProperties() {
return this.innerProperties;
}
@@ -114,6 +114,15 @@ public Integer defaultProperty() {
return this.innerProperties() == null ? null : this.innerProperties().defaultProperty();
}
+ /**
+ * Get the usage property: The usage quota value.
+ *
+ * @return the usage value.
+ */
+ public Integer usage() {
+ return this.innerProperties() == null ? null : this.innerProperties().usage();
+ }
+
/**
* Validates the instance.
*
@@ -136,38 +145,37 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
}
/**
- * Reads an instance of SubscriptionQuotaItemInner from the JsonReader.
+ * Reads an instance of QuotaItemInner from the JsonReader.
*
* @param jsonReader The JsonReader being read.
- * @return An instance of SubscriptionQuotaItemInner if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
+ * @return An instance of QuotaItemInner 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 SubscriptionQuotaItemInner.
+ * @throws IOException If an error occurs while reading the QuotaItemInner.
*/
- public static SubscriptionQuotaItemInner fromJson(JsonReader jsonReader) throws IOException {
+ public static QuotaItemInner fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
- SubscriptionQuotaItemInner deserializedSubscriptionQuotaItemInner = new SubscriptionQuotaItemInner();
+ QuotaItemInner deserializedQuotaItemInner = new QuotaItemInner();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("id".equals(fieldName)) {
- deserializedSubscriptionQuotaItemInner.id = reader.getString();
+ deserializedQuotaItemInner.id = reader.getString();
} else if ("name".equals(fieldName)) {
- deserializedSubscriptionQuotaItemInner.name = reader.getString();
+ deserializedQuotaItemInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
- deserializedSubscriptionQuotaItemInner.type = reader.getString();
+ deserializedQuotaItemInner.type = reader.getString();
} else if ("properties".equals(fieldName)) {
- deserializedSubscriptionQuotaItemInner.innerProperties
- = SubscriptionQuotaItemProperties.fromJson(reader);
+ deserializedQuotaItemInner.innerProperties = QuotaItemProperties.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
- deserializedSubscriptionQuotaItemInner.systemData = SystemData.fromJson(reader);
+ deserializedQuotaItemInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
}
- return deserializedSubscriptionQuotaItemInner;
+ return deserializedQuotaItemInner;
});
}
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java
similarity index 60%
rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java
rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java
index 659af2269886..c4b3cfd4d4b3 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java
@@ -12,10 +12,10 @@
import java.io.IOException;
/**
- * SubscriptionQuotaItem Properties.
+ * QuotaItem Properties.
*/
@Immutable
-public final class SubscriptionQuotaItemProperties implements JsonSerializable {
+public final class QuotaItemProperties implements JsonSerializable {
/*
* The current quota value.
*/
@@ -26,10 +26,15 @@ public final class SubscriptionQuotaItemProperties implements JsonSerializable {
- SubscriptionQuotaItemProperties deserializedSubscriptionQuotaItemProperties
- = new SubscriptionQuotaItemProperties();
+ QuotaItemProperties deserializedQuotaItemProperties = new QuotaItemProperties();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("current".equals(fieldName)) {
- deserializedSubscriptionQuotaItemProperties.current = reader.getNullable(JsonReader::getInt);
+ deserializedQuotaItemProperties.current = reader.getNullable(JsonReader::getInt);
} else if ("default".equals(fieldName)) {
- deserializedSubscriptionQuotaItemProperties.defaultProperty
- = reader.getNullable(JsonReader::getInt);
+ deserializedQuotaItemProperties.defaultProperty = reader.getNullable(JsonReader::getInt);
+ } else if ("usage".equals(fieldName)) {
+ deserializedQuotaItemProperties.usage = reader.getNullable(JsonReader::getInt);
} else {
reader.skipChildren();
}
}
- return deserializedSubscriptionQuotaItemProperties;
+ return deserializedQuotaItemProperties;
});
}
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java
new file mode 100644
index 000000000000..d4ecd69a622e
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java
@@ -0,0 +1,113 @@
+// 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.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Usage properties.
+ */
+@Immutable
+public final class UsageProperties implements JsonSerializable {
+ /*
+ * The current usage value for the subscription.
+ */
+ private Integer currentValue;
+
+ /*
+ * The limit of the usage.
+ */
+ private Integer limit;
+
+ /*
+ * The unit of the usage.
+ */
+ private String unit;
+
+ /**
+ * Creates an instance of UsageProperties class.
+ */
+ public UsageProperties() {
+ }
+
+ /**
+ * Get the currentValue property: The current usage value for the subscription.
+ *
+ * @return the currentValue value.
+ */
+ public Integer currentValue() {
+ return this.currentValue;
+ }
+
+ /**
+ * Get the limit property: The limit of the usage.
+ *
+ * @return the limit value.
+ */
+ public Integer limit() {
+ return this.limit;
+ }
+
+ /**
+ * Get the unit property: The unit of the usage.
+ *
+ * @return the unit value.
+ */
+ public String unit() {
+ return this.unit;
+ }
+
+ /**
+ * 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 UsageProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of UsageProperties 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 UsageProperties.
+ */
+ public static UsageProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ UsageProperties deserializedUsageProperties = new UsageProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("currentValue".equals(fieldName)) {
+ deserializedUsageProperties.currentValue = reader.getNullable(JsonReader::getInt);
+ } else if ("limit".equals(fieldName)) {
+ deserializedUsageProperties.limit = reader.getNullable(JsonReader::getInt);
+ } else if ("unit".equals(fieldName)) {
+ deserializedUsageProperties.unit = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedUsageProperties;
+ });
+ }
+}
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
new file mode 100644
index 000000000000..71afe95c71e3
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java
@@ -0,0 +1,148 @@
+// 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.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.UsageName;
+import java.io.IOException;
+
+/**
+ * Usages entity model.
+ */
+@Immutable
+public final class UsageResultInner implements JsonSerializable {
+ /*
+ * The id of the usage.
+ */
+ private String id;
+
+ /*
+ * The name of the usage.
+ */
+ private UsageName name;
+
+ /*
+ * Usage properties
+ */
+ private UsageProperties innerProperties;
+
+ /**
+ * Creates an instance of UsageResultInner class.
+ */
+ public UsageResultInner() {
+ }
+
+ /**
+ * Get the id property: The id of the usage.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the usage.
+ *
+ * @return the name value.
+ */
+ public UsageName name() {
+ return this.name;
+ }
+
+ /**
+ * Get the innerProperties property: Usage properties.
+ *
+ * @return the innerProperties value.
+ */
+ private UsageProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the currentValue property: The current usage value for the subscription.
+ *
+ * @return the currentValue value.
+ */
+ public Integer currentValue() {
+ return this.innerProperties() == null ? null : this.innerProperties().currentValue();
+ }
+
+ /**
+ * Get the limit property: The limit of the usage.
+ *
+ * @return the limit value.
+ */
+ public Integer limit() {
+ return this.innerProperties() == null ? null : this.innerProperties().limit();
+ }
+
+ /**
+ * Get the unit property: The unit of the usage.
+ *
+ * @return the unit value.
+ */
+ public String unit() {
+ return this.innerProperties() == null ? null : this.innerProperties().unit();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() != null) {
+ name().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 UsageResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of UsageResultInner 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 UsageResultInner.
+ */
+ public static UsageResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ UsageResultInner deserializedUsageResultInner = new UsageResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedUsageResultInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedUsageResultInner.name = UsageName.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedUsageResultInner.innerProperties = UsageProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedUsageResultInner;
+ });
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java
index 9dfe423bf287..14ec0043fdef 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java
@@ -11,18 +11,21 @@
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit;
import com.azure.resourcemanager.netapp.models.AvsDataStore;
import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy;
import com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy;
import com.azure.resourcemanager.netapp.models.EnableSubvolumes;
import com.azure.resourcemanager.netapp.models.EncryptionKeySource;
import com.azure.resourcemanager.netapp.models.FileAccessLogs;
+import com.azure.resourcemanager.netapp.models.LdapServerType;
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;
@@ -480,7 +483,7 @@ public List mountTargets() {
/**
* Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication,
- * set type to DataProtection.
+ * set type to DataProtection. For creating clone volume, set type to ShortTermClone.
*
* @return the volumeType value.
*/
@@ -490,7 +493,7 @@ public String volumeType() {
/**
* Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication,
- * set type to DataProtection.
+ * set type to DataProtection. For creating clone volume, set type to ShortTermClone.
*
* @param volumeType the volumeType value to set.
* @return the VolumeInner object itself.
@@ -529,28 +532,48 @@ public VolumeInner withDataProtection(VolumePropertiesDataProtection dataProtect
}
/**
- * Get the isRestoring property: Restoring.
+ * Get the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume,
+ * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically
+ * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term
+ * clone volume, set the property as accepted.
*
- * @return the isRestoring value.
+ * @return the acceptGrowCapacityPoolForShortTermCloneSplit value.
*/
- public Boolean isRestoring() {
- return this.innerProperties() == null ? null : this.innerProperties().isRestoring();
+ public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() {
+ return this.innerProperties() == null
+ ? null
+ : this.innerProperties().acceptGrowCapacityPoolForShortTermCloneSplit();
}
/**
- * Set the isRestoring property: Restoring.
+ * Set the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume,
+ * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically
+ * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term
+ * clone volume, set the property as accepted.
*
- * @param isRestoring the isRestoring value to set.
+ * @param acceptGrowCapacityPoolForShortTermCloneSplit the acceptGrowCapacityPoolForShortTermCloneSplit value to
+ * set.
* @return the VolumeInner object itself.
*/
- public VolumeInner withIsRestoring(Boolean isRestoring) {
+ public VolumeInner withAcceptGrowCapacityPoolForShortTermCloneSplit(
+ AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) {
if (this.innerProperties() == null) {
this.innerProperties = new VolumeProperties();
}
- this.innerProperties().withIsRestoring(isRestoring);
+ this.innerProperties()
+ .withAcceptGrowCapacityPoolForShortTermCloneSplit(acceptGrowCapacityPoolForShortTermCloneSplit);
return this;
}
+ /**
+ * Get the isRestoring property: Restoring.
+ *
+ * @return the isRestoring value.
+ */
+ public Boolean isRestoring() {
+ return this.innerProperties() == null ? null : this.innerProperties().isRestoring();
+ }
+
/**
* Get the snapshotDirectoryVisible property: If enabled (true) the volume will contain a read-only snapshot
* directory which provides access to each of the volume's snapshots (defaults to true).
@@ -836,6 +859,29 @@ public VolumeInner withLdapEnabled(Boolean ldapEnabled) {
return this;
}
+ /**
+ * Get the ldapServerType property: Specifies the type of LDAP server for a given NFS volume.
+ *
+ * @return the ldapServerType value.
+ */
+ public LdapServerType ldapServerType() {
+ return this.innerProperties() == null ? null : this.innerProperties().ldapServerType();
+ }
+
+ /**
+ * Set the ldapServerType property: Specifies the type of LDAP server for a given NFS volume.
+ *
+ * @param ldapServerType the ldapServerType value to set.
+ * @return the VolumeInner object itself.
+ */
+ public VolumeInner withLdapServerType(LdapServerType ldapServerType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeProperties();
+ }
+ this.innerProperties().withLdapServerType(ldapServerType);
+ return this;
+ }
+
/**
* Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume.
*
@@ -953,7 +999,10 @@ 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.
+ * 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.
*
* @return the unixPermissions value.
*/
@@ -966,7 +1015,10 @@ 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.
+ * 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.
*
* @param unixPermissions the unixPermissions value to set.
* @return the VolumeInner object itself.
@@ -1304,6 +1356,38 @@ public String originatingResourceId() {
return this.innerProperties() == null ? null : this.innerProperties().originatingResourceId();
}
+ /**
+ * Get the inheritedSizeInBytes property: Space shared by short term clone volume with parent volume in bytes.
+ *
+ * @return the inheritedSizeInBytes value.
+ */
+ public Long inheritedSizeInBytes() {
+ return this.innerProperties() == null ? null : this.innerProperties().inheritedSizeInBytes();
+ }
+
+ /**
+ * Get the language property: Language supported for volume.
+ *
+ * @return the language value.
+ */
+ public VolumeLanguage language() {
+ return this.innerProperties() == null ? null : this.innerProperties().language();
+ }
+
+ /**
+ * Set the language property: Language supported for volume.
+ *
+ * @param language the language value to set.
+ * @return the VolumeInner object itself.
+ */
+ public VolumeInner withLanguage(VolumeLanguage language) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeProperties();
+ }
+ this.innerProperties().withLanguage(language);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java
index 0010c1100166..5b358004b2d1 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
@@ -10,18 +10,21 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit;
import com.azure.resourcemanager.netapp.models.AvsDataStore;
import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy;
import com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy;
import com.azure.resourcemanager.netapp.models.EnableSubvolumes;
import com.azure.resourcemanager.netapp.models.EncryptionKeySource;
import com.azure.resourcemanager.netapp.models.FileAccessLogs;
+import com.azure.resourcemanager.netapp.models.LdapServerType;
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;
@@ -123,7 +126,8 @@ public final class VolumeProperties implements JsonSerializable mountTargets;
/*
- * What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection
+ * What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For
+ * creating clone volume, set type to ShortTermClone
*/
private String volumeType;
@@ -132,6 +136,13 @@ public final class VolumeProperties implements JsonSerializable mountTargets() {
/**
* Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication,
- * set type to DataProtection.
+ * set type to DataProtection. For creating clone volume, set type to ShortTermClone.
*
* @return the volumeType value.
*/
@@ -635,7 +664,7 @@ public String volumeType() {
/**
* Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication,
- * set type to DataProtection.
+ * set type to DataProtection. For creating clone volume, set type to ShortTermClone.
*
* @param volumeType the volumeType value to set.
* @return the VolumeProperties object itself.
@@ -668,25 +697,42 @@ public VolumeProperties withDataProtection(VolumePropertiesDataProtection dataPr
}
/**
- * Get the isRestoring property: Restoring.
+ * Get the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume,
+ * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically
+ * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term
+ * clone volume, set the property as accepted.
*
- * @return the isRestoring value.
+ * @return the acceptGrowCapacityPoolForShortTermCloneSplit value.
*/
- public Boolean isRestoring() {
- return this.isRestoring;
+ public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() {
+ return this.acceptGrowCapacityPoolForShortTermCloneSplit;
}
/**
- * Set the isRestoring property: Restoring.
+ * Set the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume,
+ * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically
+ * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term
+ * clone volume, set the property as accepted.
*
- * @param isRestoring the isRestoring value to set.
+ * @param acceptGrowCapacityPoolForShortTermCloneSplit the acceptGrowCapacityPoolForShortTermCloneSplit value to
+ * set.
* @return the VolumeProperties object itself.
*/
- public VolumeProperties withIsRestoring(Boolean isRestoring) {
- this.isRestoring = isRestoring;
+ public VolumeProperties withAcceptGrowCapacityPoolForShortTermCloneSplit(
+ AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) {
+ this.acceptGrowCapacityPoolForShortTermCloneSplit = acceptGrowCapacityPoolForShortTermCloneSplit;
return this;
}
+ /**
+ * Get the isRestoring property: Restoring.
+ *
+ * @return the isRestoring value.
+ */
+ public Boolean isRestoring() {
+ return this.isRestoring;
+ }
+
/**
* Get the snapshotDirectoryVisible property: If enabled (true) the volume will contain a read-only snapshot
* directory which provides access to each of the volume's snapshots (defaults to true).
@@ -939,6 +985,26 @@ public VolumeProperties 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.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 VolumeProperties object itself.
+ */
+ public VolumeProperties withLdapServerType(LdapServerType ldapServerType) {
+ this.ldapServerType = ldapServerType;
+ return this;
+ }
+
/**
* Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume.
*
@@ -1044,7 +1110,10 @@ public VolumeProperties withCoolAccessTieringPolicy(CoolAccessTieringPolicy cool
* 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.
+ * 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.
*
* @return the unixPermissions value.
*/
@@ -1057,7 +1126,10 @@ 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.
+ * 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.
*
* @param unixPermissions the unixPermissions value to set.
* @return the VolumeProperties object itself.
@@ -1362,6 +1434,35 @@ public String originatingResourceId() {
return this.originatingResourceId;
}
+ /**
+ * Get the inheritedSizeInBytes property: Space shared by short term clone volume with parent volume in bytes.
+ *
+ * @return the inheritedSizeInBytes value.
+ */
+ public Long inheritedSizeInBytes() {
+ return this.inheritedSizeInBytes;
+ }
+
+ /**
+ * Get the language property: Language supported for volume.
+ *
+ * @return the language value.
+ */
+ public VolumeLanguage language() {
+ return this.language;
+ }
+
+ /**
+ * Set the language property: Language supported for volume.
+ *
+ * @param language the language value to set.
+ * @return the VolumeProperties object itself.
+ */
+ public VolumeProperties withLanguage(VolumeLanguage language) {
+ this.language = language;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -1412,7 +1513,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
this.networkFeatures == null ? null : this.networkFeatures.toString());
jsonWriter.writeStringField("volumeType", this.volumeType);
jsonWriter.writeJsonField("dataProtection", this.dataProtection);
- jsonWriter.writeBooleanField("isRestoring", this.isRestoring);
+ jsonWriter.writeStringField("acceptGrowCapacityPoolForShortTermCloneSplit",
+ this.acceptGrowCapacityPoolForShortTermCloneSplit == null
+ ? null
+ : this.acceptGrowCapacityPoolForShortTermCloneSplit.toString());
jsonWriter.writeBooleanField("snapshotDirectoryVisible", this.snapshotDirectoryVisible);
jsonWriter.writeBooleanField("kerberosEnabled", this.kerberosEnabled);
jsonWriter.writeStringField("securityStyle", this.securityStyle == null ? null : this.securityStyle.toString());
@@ -1427,6 +1531,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
this.encryptionKeySource == null ? null : this.encryptionKeySource.toString());
jsonWriter.writeStringField("keyVaultPrivateEndpointResourceId", this.keyVaultPrivateEndpointResourceId);
jsonWriter.writeBooleanField("ldapEnabled", this.ldapEnabled);
+ jsonWriter.writeStringField("ldapServerType",
+ this.ldapServerType == null ? null : this.ldapServerType.toString());
jsonWriter.writeBooleanField("coolAccess", this.coolAccess);
jsonWriter.writeNumberField("coolnessPeriod", this.coolnessPeriod);
jsonWriter.writeStringField("coolAccessRetrievalPolicy",
@@ -1446,6 +1552,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("enableSubvolumes",
this.enableSubvolumes == null ? null : this.enableSubvolumes.toString());
jsonWriter.writeBooleanField("isLargeVolume", this.isLargeVolume);
+ jsonWriter.writeStringField("language", this.language == null ? null : this.language.toString());
return jsonWriter.writeEndObject();
}
@@ -1508,6 +1615,9 @@ public static VolumeProperties fromJson(JsonReader jsonReader) throws IOExceptio
deserializedVolumeProperties.volumeType = reader.getString();
} else if ("dataProtection".equals(fieldName)) {
deserializedVolumeProperties.dataProtection = VolumePropertiesDataProtection.fromJson(reader);
+ } else if ("acceptGrowCapacityPoolForShortTermCloneSplit".equals(fieldName)) {
+ deserializedVolumeProperties.acceptGrowCapacityPoolForShortTermCloneSplit
+ = AcceptGrowCapacityPoolForShortTermCloneSplit.fromString(reader.getString());
} else if ("isRestoring".equals(fieldName)) {
deserializedVolumeProperties.isRestoring = reader.getNullable(JsonReader::getBoolean);
} else if ("snapshotDirectoryVisible".equals(fieldName)) {
@@ -1536,6 +1646,8 @@ public static VolumeProperties fromJson(JsonReader jsonReader) throws IOExceptio
deserializedVolumeProperties.keyVaultPrivateEndpointResourceId = reader.getString();
} else if ("ldapEnabled".equals(fieldName)) {
deserializedVolumeProperties.ldapEnabled = reader.getNullable(JsonReader::getBoolean);
+ } else if ("ldapServerType".equals(fieldName)) {
+ deserializedVolumeProperties.ldapServerType = LdapServerType.fromString(reader.getString());
} else if ("coolAccess".equals(fieldName)) {
deserializedVolumeProperties.coolAccess = reader.getNullable(JsonReader::getBoolean);
} else if ("coolnessPeriod".equals(fieldName)) {
@@ -1589,6 +1701,10 @@ public static VolumeProperties fromJson(JsonReader jsonReader) throws IOExceptio
deserializedVolumeProperties.isLargeVolume = reader.getNullable(JsonReader::getBoolean);
} else if ("originatingResourceId".equals(fieldName)) {
deserializedVolumeProperties.originatingResourceId = reader.getString();
+ } else if ("inheritedSizeInBytes".equals(fieldName)) {
+ deserializedVolumeProperties.inheritedSizeInBytes = reader.getNullable(JsonReader::getLong);
+ } else if ("language".equals(fieldName)) {
+ deserializedVolumeProperties.language = VolumeLanguage.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java
index 89412ac1a317..3462e366ea70 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
@@ -41,6 +41,14 @@ public OffsetDateTime creationDate() {
return this.innerModel().creationDate();
}
+ public OffsetDateTime snapshotCreationDate() {
+ return this.innerModel().snapshotCreationDate();
+ }
+
+ public OffsetDateTime completionDate() {
+ return this.innerModel().completionDate();
+ }
+
public String provisioningState() {
return this.innerModel().provisioningState();
}
@@ -77,6 +85,10 @@ public String backupPolicyResourceId() {
return this.innerModel().backupPolicyResourceId();
}
+ public Boolean isLargeVolume() {
+ return this.innerModel().isLargeVolume();
+ }
+
public String resourceGroupName() {
return resourceGroupName;
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java
new file mode 100644
index 000000000000..2e637c0db77c
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java
@@ -0,0 +1,41 @@
+// 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
new file mode 100644
index 000000000000..11bb389ba946
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java
@@ -0,0 +1,207 @@
+// 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.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 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 withServer(BucketServerPatchProperties server) {
+ this.updateBody.withServer(server);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java
new file mode 100644
index 000000000000..1d75af6fc176
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java
@@ -0,0 +1,1713 @@
+// 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.Context;
+import com.azure.core.util.FluxUtil;
+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 = "NetAppManagementClie")
+ 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/{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" })
+ @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" })
+ @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" })
+ @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" })
+ @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" })
+ @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);
+ }
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ if (volumeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .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));
+ }
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName, volumeName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, 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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String accountName, String poolName,
+ String volumeName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, accountName, poolName, 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 ManagementException 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<>(listAsync(resourceGroupName, accountName, poolName, volumeName, 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ if (volumeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
+ }
+ if (bucketName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(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 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) {
+ return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, context).block();
+ }
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ if (volumeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
+ }
+ 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";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown 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, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, accountName,
+ poolName, volumeName, bucketName, body, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ 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 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) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context)
+ .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 createOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body).block();
+ }
+
+ /**
+ * 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 createOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context)
+ .block();
+ }
+
+ /**
+ * 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) {
+ 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ if (volumeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
+ }
+ if (bucketName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown 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) {
+ final BucketPatch body = null;
+ 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown 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, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is 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) {
+ final BucketPatch body = null;
+ return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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) {
+ return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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) {
+ final BucketPatch body = null;
+ 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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, Context context) {
+ return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context).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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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) {
+ final BucketPatch body = null;
+ return updateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body).block();
+ }
+
+ /**
+ * 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 updateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context).block();
+ }
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown 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, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ if (volumeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
+ }
+ if (bucketName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown 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, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), 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 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) {
+ return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName).getSyncPoller();
+ }
+
+ /**
+ * 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) {
+ return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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, Context context) {
+ return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, context).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) {
+ deleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName).block();
+ }
+
+ /**
+ * 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) {
+ deleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, context).block();
+ }
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ if (volumeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
+ }
+ 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";
+ context = this.client.mergeContext(context);
+ return service.generateCredentials(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 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) {
+ return generateCredentialsWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName,
+ body, context).block();
+ }
+
+ /**
+ * 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();
+ }
+
+ /**
+ * 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()));
+ }
+
+ /**
+ * 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} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ 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";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+}
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
new file mode 100644
index 000000000000..e5b7191e4e79
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java
@@ -0,0 +1,231 @@
+// 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 ec6c998cf8c3..e32e2c32926f 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java
@@ -78,6 +78,10 @@ public Float utilizedThroughputMibps() {
return this.innerModel().utilizedThroughputMibps();
}
+ public Float customThroughputMibps() {
+ return this.innerModel().customThroughputMibps();
+ }
+
public QosType qosType() {
return this.innerModel().qosType();
}
@@ -218,6 +222,16 @@ public CapacityPoolImpl withTags(Map tags) {
}
}
+ public CapacityPoolImpl withCustomThroughputMibps(Float customThroughputMibps) {
+ if (isInCreateMode()) {
+ this.innerModel().withCustomThroughputMibps(customThroughputMibps);
+ return this;
+ } else {
+ this.updateBody.withCustomThroughputMibps(customThroughputMibps);
+ return this;
+ }
+ }
+
public CapacityPoolImpl withQosType(QosType qosType) {
if (isInCreateMode()) {
this.innerModel().withQosType(qosType);
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResponseImpl.java
new file mode 100644
index 000000000000..9114159e75eb
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResponseImpl.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.netapp.implementation;
+
+import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner;
+import com.azure.resourcemanager.netapp.models.ListQuotaReportResponse;
+import com.azure.resourcemanager.netapp.models.QuotaReport;
+import java.util.Collections;
+import java.util.List;
+
+public final class ListQuotaReportResponseImpl implements ListQuotaReportResponse {
+ private ListQuotaReportResponseInner innerObject;
+
+ private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
+
+ ListQuotaReportResponseImpl(ListQuotaReportResponseInner innerObject,
+ com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List value() {
+ List inner = this.innerModel().value();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String nextLink() {
+ return this.innerModel().nextLink();
+ }
+
+ public ListQuotaReportResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.netapp.NetAppFilesManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java
index 221aa025815b..3fc4b824fa70 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
@@ -13,7 +13,9 @@
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;
import com.azure.resourcemanager.netapp.models.NetAppAccountPatch;
import java.util.Collections;
@@ -83,6 +85,18 @@ public Boolean disableShowmount() {
return this.innerModel().disableShowmount();
}
+ public String nfsV4IdDomain() {
+ return this.innerModel().nfsV4IdDomain();
+ }
+
+ public MultiAdStatus multiAdStatus() {
+ return this.innerModel().multiAdStatus();
+ }
+
+ public LdapConfiguration ldapConfiguration() {
+ return this.innerModel().ldapConfiguration();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -258,6 +272,26 @@ public NetAppAccountImpl withEncryption(AccountEncryption encryption) {
}
}
+ public NetAppAccountImpl withNfsV4IdDomain(String nfsV4IdDomain) {
+ if (isInCreateMode()) {
+ this.innerModel().withNfsV4IdDomain(nfsV4IdDomain);
+ return this;
+ } else {
+ this.updateBody.withNfsV4IdDomain(nfsV4IdDomain);
+ return this;
+ }
+ }
+
+ 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().id() == null;
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java
index fc2c55ae85c9..80939f11678e 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
@@ -30,9 +30,12 @@
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;
import com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient;
+import com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient;
import com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient;
import com.azure.resourcemanager.netapp.fluent.OperationsClient;
import com.azure.resourcemanager.netapp.fluent.PoolsClient;
@@ -168,6 +171,20 @@ 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.
*/
@@ -336,6 +353,20 @@ public BackupsClient getBackups() {
return this.backups;
}
+ /**
+ * The NetAppResourceQuotaLimitsAccountsClient object to access its operations.
+ */
+ private final NetAppResourceQuotaLimitsAccountsClient netAppResourceQuotaLimitsAccounts;
+
+ /**
+ * Gets the NetAppResourceQuotaLimitsAccountsClient object to access its operations.
+ *
+ * @return the NetAppResourceQuotaLimitsAccountsClient object.
+ */
+ public NetAppResourceQuotaLimitsAccountsClient getNetAppResourceQuotaLimitsAccounts() {
+ return this.netAppResourceQuotaLimitsAccounts;
+ }
+
/**
* The BackupVaultsClient object to access its operations.
*/
@@ -392,6 +423,20 @@ public BackupsUnderAccountsClient getBackupsUnderAccounts() {
return this.backupsUnderAccounts;
}
+ /**
+ * The BucketsClient object to access its operations.
+ */
+ private final BucketsClient buckets;
+
+ /**
+ * Gets the BucketsClient object to access its operations.
+ *
+ * @return the BucketsClient object.
+ */
+ public BucketsClient getBuckets() {
+ return this.buckets;
+ }
+
/**
* Initializes an instance of NetAppManagementClient client.
*
@@ -409,9 +454,10 @@ public BackupsUnderAccountsClient getBackupsUnderAccounts() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2024-09-01";
+ this.apiVersion = "2025-01-01-preview";
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);
@@ -424,10 +470,12 @@ public BackupsUnderAccountsClient getBackupsUnderAccounts() {
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.backupsUnderBackupVaults = new BackupsUnderBackupVaultsClientImpl(this);
this.backupsUnderVolumes = new BackupsUnderVolumesClientImpl(this);
this.backupsUnderAccounts = new BackupsUnderAccountsClientImpl(this);
+ this.buckets = new BucketsClientImpl(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
new file mode 100644
index 000000000000..ef3a5f503422
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java
@@ -0,0 +1,439 @@
+// 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.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.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.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient;
+import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner;
+import com.azure.resourcemanager.netapp.models.QuotaItemList;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsAccountsClient.
+ */
+public final class NetAppResourceQuotaLimitsAccountsClientImpl implements NetAppResourceQuotaLimitsAccountsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final NetAppResourceQuotaLimitsAccountsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final NetAppManagementClientImpl client;
+
+ /**
+ * Initializes an instance of NetAppResourceQuotaLimitsAccountsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ NetAppResourceQuotaLimitsAccountsClientImpl(NetAppManagementClientImpl client) {
+ this.service = RestProxy.create(NetAppResourceQuotaLimitsAccountsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for NetAppManagementClientNetAppResourceQuotaLimitsAccounts to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "NetAppManagementClie")
+ public interface NetAppResourceQuotaLimitsAccountsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits")
+ @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}/quotaLimits/{quotaLimitName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @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("{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);
+ }
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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}.
+ */
+ @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()));
+ }
+
+ /**
+ * 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 along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName, String accountName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ 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 PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String accountName, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, 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.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a 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) {
+ return new PagedIterable<>(listAsync(resourceGroupName, accountName));
+ }
+
+ /**
+ * 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<>(listAsync(resourceGroupName, accountName, 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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."));
+ }
+ 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 (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(),
+ 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String accountName,
+ String quotaLimitName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (quotaLimitName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName,
+ quotaLimitName, this.client.getApiVersion(), accept, 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 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()));
+ }
+
+ /**
+ * 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName,
+ Context context) {
+ return getWithResponseAsync(resourceGroupName, accountName, quotaLimitName, context).block();
+ }
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public QuotaItemInner get(String resourceGroupName, String accountName, String quotaLimitName) {
+ return getWithResponse(resourceGroupName, accountName, quotaLimitName, 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 Quota Items 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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 Quota Items along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ 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";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+}
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
new file mode 100644
index 000000000000..dee5d469e586
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java
@@ -0,0 +1,68 @@
+// 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.NetAppResourceQuotaLimitsAccountsClient;
+import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner;
+import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimitsAccounts;
+import com.azure.resourcemanager.netapp.models.QuotaItem;
+
+public final class NetAppResourceQuotaLimitsAccountsImpl implements NetAppResourceQuotaLimitsAccounts {
+ private static final ClientLogger LOGGER = new ClientLogger(NetAppResourceQuotaLimitsAccountsImpl.class);
+
+ private final NetAppResourceQuotaLimitsAccountsClient innerClient;
+
+ private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
+
+ public NetAppResourceQuotaLimitsAccountsImpl(NetAppResourceQuotaLimitsAccountsClient innerClient,
+ com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
+ this.innerClient = innerClient;
+ 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
+ = 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()));
+ } else {
+ return null;
+ }
+ }
+
+ public QuotaItem get(String resourceGroupName, String accountName, String quotaLimitName) {
+ QuotaItemInner inner = this.serviceClient().get(resourceGroupName, accountName, quotaLimitName);
+ if (inner != null) {
+ return new QuotaItemImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private NetAppResourceQuotaLimitsAccountsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ 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/NetAppResourceQuotaLimitsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java
index 2f5896aba3c8..19b2c0d970e7 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
@@ -26,8 +26,8 @@
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient;
-import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner;
-import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItemList;
+import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner;
+import com.azure.resourcemanager.netapp.models.QuotaItemList;
import reactor.core.publisher.Mono;
/**
@@ -66,7 +66,7 @@ public interface NetAppResourceQuotaLimitsService {
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
+ 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);
@@ -74,7 +74,7 @@ Mono> list(@HostParam("$host") String endpoi
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ 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);
@@ -93,7 +93,7 @@ Mono> get(@HostParam("$host") String endpoi
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String location) {
+ 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."));
@@ -109,8 +109,8 @@ private Mono> listSinglePageAsync(Stri
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(), null, null))
+ .>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()));
}
@@ -128,7 +128,7 @@ private Mono> listSinglePageAsync(Stri
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String location, Context context) {
+ private Mono> listSinglePageAsync(String location, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -161,7 +161,7 @@ private Mono> listSinglePageAsync(Stri
* @return the default and current limits for quotas as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String location) {
+ private PagedFlux listAsync(String location) {
return new PagedFlux<>(() -> listSinglePageAsync(location));
}
@@ -178,7 +178,7 @@ private PagedFlux listAsync(String location) {
* @return the default and current limits for quotas as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String location, Context context) {
+ private PagedFlux listAsync(String location, Context context) {
return new PagedFlux<>(() -> listSinglePageAsync(location, context));
}
@@ -194,7 +194,7 @@ private PagedFlux listAsync(String location, Context
* @return the default and current limits for quotas as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String location) {
+ public PagedIterable list(String location) {
return new PagedIterable<>(listAsync(location));
}
@@ -211,7 +211,7 @@ public PagedIterable list(String location) {
* @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) {
+ public PagedIterable list(String location, Context context) {
return new PagedIterable<>(listAsync(location, context));
}
@@ -229,7 +229,7 @@ public PagedIterable list(String location, Context c
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String location, String quotaLimitName) {
+ 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."));
@@ -266,7 +266,7 @@ private Mono> getWithResponseAsync(String l
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String location, String quotaLimitName,
+ private Mono> getWithResponseAsync(String location, String quotaLimitName,
Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -301,7 +301,7 @@ private Mono> getWithResponseAsync(String l
* @return the default and current subscription quota limit on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String location, String quotaLimitName) {
+ private Mono getAsync(String location, String quotaLimitName) {
return getWithResponseAsync(location, quotaLimitName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -319,8 +319,7 @@ private Mono getAsync(String location, String quotaL
* @return the default and current subscription quota limit along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String location, String quotaLimitName,
- Context context) {
+ public Response getWithResponse(String location, String quotaLimitName, Context context) {
return getWithResponseAsync(location, quotaLimitName, context).block();
}
@@ -337,7 +336,7 @@ public Response getWithResponse(String location, Str
* @return the default and current subscription quota limit.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public SubscriptionQuotaItemInner get(String location, String quotaLimitName) {
+ public QuotaItemInner get(String location, String quotaLimitName) {
return getWithResponse(location, quotaLimitName, Context.NONE).getValue();
}
}
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 0b3b0931de89..5e1797966d34 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
@@ -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.SubscriptionQuotaItemInner;
+import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner;
import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits;
-import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem;
+import com.azure.resourcemanager.netapp.models.QuotaItem;
public final class NetAppResourceQuotaLimitsImpl implements NetAppResourceQuotaLimits {
private static final ClientLogger LOGGER = new ClientLogger(NetAppResourceQuotaLimitsImpl.class);
@@ -27,31 +27,30 @@ public NetAppResourceQuotaLimitsImpl(NetAppResourceQuotaLimitsClient innerClient
this.serviceManager = serviceManager;
}
- 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) {
+ 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 SubscriptionQuotaItemImpl(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 SubscriptionQuotaItemImpl(inner.getValue(), this.manager()));
+ new QuotaItemImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
- public SubscriptionQuotaItem get(String location, String quotaLimitName) {
- SubscriptionQuotaItemInner inner = this.serviceClient().get(location, quotaLimitName);
+ public QuotaItem get(String location, String quotaLimitName) {
+ QuotaItemInner inner = this.serviceClient().get(location, quotaLimitName);
if (inner != null) {
- return new SubscriptionQuotaItemImpl(inner, this.manager());
+ return new QuotaItemImpl(inner, this.manager());
} else {
return null;
}
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
new file mode 100644
index 000000000000..2098fc66f3a2
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java
@@ -0,0 +1,398 @@
+// 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.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.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.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient;
+import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner;
+import com.azure.resourcemanager.netapp.models.UsagesListResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in NetAppResourceUsagesClient.
+ */
+public final class NetAppResourceUsagesClientImpl implements NetAppResourceUsagesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final NetAppResourceUsagesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final NetAppManagementClientImpl client;
+
+ /**
+ * Initializes an instance of NetAppResourceUsagesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ NetAppResourceUsagesClientImpl(NetAppManagementClientImpl client) {
+ this.service = RestProxy.create(NetAppResourceUsagesService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for NetAppManagementClientNetAppResourceUsages to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "NetAppManagementClie")
+ 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);
+
+ @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,
+ @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);
+ }
+
+ /**
+ * Get usages
+ *
+ * Get current subscription usages.
+ *
+ * @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 current subscription usages along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @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.getSubscriptionId(), location,
+ 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()));
+ }
+
+ /**
+ * Get usages
+ *
+ * Get current subscription usages.
+ *
+ * @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 current subscription usages along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String location, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+
+ /**
+ * Get usages
+ *
+ * Get current subscription usages.
+ *
+ * @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 current subscription usages as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String location) {
+ return new PagedFlux<>(() -> listSinglePageAsync(location), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get usages
+ *
+ * Get current subscription usages.
+ *
+ * @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 current subscription usages as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String location, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(location, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get usages
+ *
+ * Get current subscription usages.
+ *
+ * @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 current subscription usages as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String location) {
+ return new PagedIterable<>(listAsync(location));
+ }
+
+ /**
+ * Get usages
+ *
+ * Get current subscription usages.
+ *
+ * @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 current subscription usages as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String location, Context context) {
+ return new PagedIterable<>(listAsync(location, context));
+ }
+
+ /**
+ * Get specific type of usage
+ *
+ * Get current subscription usage of the specific type.
+ *
+ * @param location The name of the Azure region.
+ * @param usageType The type of usage.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String location, String usageType) {
+ 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."));
+ }
+ if (usageType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter usageType is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location,
+ usageType, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get specific type of usage
+ *
+ * Get current subscription usage of the specific type.
+ *
+ * @param location The name of the Azure region.
+ * @param usageType The type of usage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String location, String usageType, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (usageType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter usageType is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location, usageType,
+ this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Get specific type of usage
+ *
+ * Get current subscription usage of the specific type.
+ *
+ * @param location The name of the Azure region.
+ * @param usageType The type of usage.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String location, String usageType) {
+ return getWithResponseAsync(location, usageType).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get specific type of usage
+ *
+ * Get current subscription usage of the specific type.
+ *
+ * @param location The name of the Azure region.
+ * @param usageType The type of usage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String location, String usageType, Context context) {
+ return getWithResponseAsync(location, usageType, context).block();
+ }
+
+ /**
+ * Get specific type of usage
+ *
+ * Get current subscription usage of the specific type.
+ *
+ * @param location The name of the Azure region.
+ * @param usageType The type of usage.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public UsageResultInner get(String location, String usageType) {
+ return getWithResponse(location, usageType, 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 usages result 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return usages result along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ 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";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+}
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
new file mode 100644
index 000000000000..bffc73ec8d0a
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java
@@ -0,0 +1,66 @@
+// 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.NetAppResourceUsagesClient;
+import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner;
+import com.azure.resourcemanager.netapp.models.NetAppResourceUsages;
+import com.azure.resourcemanager.netapp.models.UsageResult;
+
+public final class NetAppResourceUsagesImpl implements NetAppResourceUsages {
+ private static final ClientLogger LOGGER = new ClientLogger(NetAppResourceUsagesImpl.class);
+
+ private final NetAppResourceUsagesClient innerClient;
+
+ private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
+
+ public NetAppResourceUsagesImpl(NetAppResourceUsagesClient innerClient,
+ com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String location) {
+ PagedIterable inner = this.serviceClient().list(location);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new UsageResultImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String location, Context context) {
+ PagedIterable inner = this.serviceClient().list(location, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new UsageResultImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(String location, String usageType, Context context) {
+ Response inner = this.serviceClient().getWithResponse(location, usageType, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new UsageResultImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public UsageResult get(String location, String usageType) {
+ UsageResultInner inner = this.serviceClient().get(location, usageType);
+ if (inner != null) {
+ return new UsageResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private NetAppResourceUsagesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ 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/OperationsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java
index b45b3e3f5c23..aa04ed84d007 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
@@ -10,6 +10,7 @@
import com.azure.core.annotation.Headers;
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceInterface;
@@ -67,6 +68,13 @@ public interface OperationsService {
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @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);
}
/**
@@ -90,7 +98,7 @@ private Mono> listSinglePageAsync() {
.withContext(
context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, 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()));
}
@@ -116,7 +124,7 @@ private Mono> listSinglePageAsync(Context context)
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), null, null));
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
@@ -130,7 +138,7 @@ private Mono> listSinglePageAsync(Context context)
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
- return new PagedFlux<>(() -> listSinglePageAsync());
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
}
/**
@@ -146,7 +154,8 @@ private PagedFlux listAsync() {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(context));
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
@@ -178,4 +187,57 @@ public PagedIterable list() {
public PagedIterable list(Context context) {
return new PagedIterable<>(listAsync(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 result of the request to list Cloud Volume operations 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ 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";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/QuotaItemImpl.java
similarity index 69%
rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java
rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/QuotaItemImpl.java
index 70b6ad3a4355..ae9c81194bad 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/QuotaItemImpl.java
@@ -5,16 +5,15 @@
package com.azure.resourcemanager.netapp.implementation;
import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner;
-import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem;
+import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner;
+import com.azure.resourcemanager.netapp.models.QuotaItem;
-public final class SubscriptionQuotaItemImpl implements SubscriptionQuotaItem {
- private SubscriptionQuotaItemInner innerObject;
+public final class QuotaItemImpl implements QuotaItem {
+ private QuotaItemInner innerObject;
private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
- SubscriptionQuotaItemImpl(SubscriptionQuotaItemInner innerObject,
- com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
+ QuotaItemImpl(QuotaItemInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -43,7 +42,11 @@ public Integer defaultProperty() {
return this.innerModel().defaultProperty();
}
- public SubscriptionQuotaItemInner innerModel() {
+ public Integer usage() {
+ return this.innerModel().usage();
+ }
+
+ public QuotaItemInner innerModel() {
return this.innerObject;
}
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
new file mode 100644
index 000000000000..a17f848f37ef
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java
@@ -0,0 +1,48 @@
+// 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.UsageResultInner;
+import com.azure.resourcemanager.netapp.models.UsageName;
+import com.azure.resourcemanager.netapp.models.UsageResult;
+
+public final class UsageResultImpl implements UsageResult {
+ private UsageResultInner innerObject;
+
+ private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
+
+ UsageResultImpl(UsageResultInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public UsageName name() {
+ return this.innerModel().name();
+ }
+
+ public Integer currentValue() {
+ return this.innerModel().currentValue();
+ }
+
+ public Integer limit() {
+ return this.innerModel().limit();
+ }
+
+ public String unit() {
+ return this.innerModel().unit();
+ }
+
+ public UsageResultInner 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/VolumeImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java
index 415391080d14..a9a7104e0ac5 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java
@@ -10,6 +10,7 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties;
import com.azure.resourcemanager.netapp.fluent.models.VolumeInner;
+import com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit;
import com.azure.resourcemanager.netapp.models.AuthorizeRequest;
import com.azure.resourcemanager.netapp.models.AvsDataStore;
import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest;
@@ -22,6 +23,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.NetworkFeatures;
import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest;
import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs;
@@ -35,6 +38,7 @@
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;
@@ -179,6 +183,10 @@ public VolumePropertiesDataProtection dataProtection() {
return this.innerModel().dataProtection();
}
+ public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() {
+ return this.innerModel().acceptGrowCapacityPoolForShortTermCloneSplit();
+ }
+
public Boolean isRestoring() {
return this.innerModel().isRestoring();
}
@@ -231,6 +239,10 @@ public Boolean ldapEnabled() {
return this.innerModel().ldapEnabled();
}
+ public LdapServerType ldapServerType() {
+ return this.innerModel().ldapServerType();
+ }
+
public Boolean coolAccess() {
return this.innerModel().coolAccess();
}
@@ -337,6 +349,14 @@ public String originatingResourceId() {
return this.innerModel().originatingResourceId();
}
+ public Long inheritedSizeInBytes() {
+ return this.innerModel().inheritedSizeInBytes();
+ }
+
+ public VolumeLanguage language() {
+ return this.innerModel().language();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -463,6 +483,14 @@ public void resetCifsPassword(Context context) {
serviceManager.volumes().resetCifsPassword(resourceGroupName, accountName, poolName, volumeName, context);
}
+ public void splitCloneFromParent() {
+ serviceManager.volumes().splitCloneFromParent(resourceGroupName, accountName, poolName, volumeName);
+ }
+
+ public void splitCloneFromParent(Context context) {
+ serviceManager.volumes().splitCloneFromParent(resourceGroupName, accountName, poolName, volumeName, context);
+ }
+
public void breakFileLocks() {
serviceManager.volumes().breakFileLocks(resourceGroupName, accountName, poolName, volumeName);
}
@@ -482,6 +510,14 @@ 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);
}
@@ -704,8 +740,10 @@ public VolumeImpl withDataProtection(VolumePropertiesDataProtection dataProtecti
return this;
}
- public VolumeImpl withIsRestoring(Boolean isRestoring) {
- this.innerModel().withIsRestoring(isRestoring);
+ public VolumeImpl withAcceptGrowCapacityPoolForShortTermCloneSplit(
+ AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) {
+ this.innerModel()
+ .withAcceptGrowCapacityPoolForShortTermCloneSplit(acceptGrowCapacityPoolForShortTermCloneSplit);
return this;
}
@@ -784,6 +822,11 @@ 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);
@@ -899,6 +942,11 @@ public VolumeImpl withIsLargeVolume(Boolean isLargeVolume) {
return this;
}
+ public VolumeImpl withLanguage(VolumeLanguage language) {
+ this.innerModel().withLanguage(language);
+ return this;
+ }
+
public VolumeImpl withUsageThreshold(Long usageThreshold) {
this.updateBody.withUsageThreshold(usageThreshold);
return this;
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java
index 071d7f856b43..ed05189f14f5 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java
@@ -36,6 +36,7 @@
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;
@@ -171,6 +172,16 @@ Mono>> resetCifsPassword(@HostParam("$host") String en
@PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName,
@QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> splitCloneFromParent(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
+ @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks")
@ExpectedResponses({ 200, 202 })
@@ -194,6 +205,16 @@ Mono>> listGetGroupIdListForLdapUser(@HostParam("$host
@BodyParam("application/json") GetGroupIdListForLdapUserRequest body, @HeaderParam("Accept") String accept,
Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listQuotaReport")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> listQuotaReport(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
+ @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication")
@ExpectedResponses({ 200, 202 })
@@ -2393,6 +2414,269 @@ public void resetCifsPassword(String resourceGroupName, String accountName, Stri
resetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName, context).block();
}
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> splitCloneFromParentWithResponseAsync(String resourceGroupName,
+ String accountName, String poolName, String volumeName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ if (volumeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.splitCloneFromParent(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> splitCloneFromParentWithResponseAsync(String resourceGroupName,
+ String accountName, String poolName, String volumeName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ if (volumeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.splitCloneFromParent(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginSplitCloneFromParentAsync(String resourceGroupName,
+ String accountName, String poolName, String volumeName) {
+ Mono>> mono
+ = splitCloneFromParentWithResponseAsync(resourceGroupName, accountName, poolName, volumeName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginSplitCloneFromParentAsync(String resourceGroupName,
+ String accountName, String poolName, String volumeName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = splitCloneFromParentWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName,
+ String poolName, String volumeName) {
+ return this.beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName)
+ .getSyncPoller();
+ }
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName,
+ String poolName, String volumeName, Context context) {
+ return this.beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono splitCloneFromParentAsync(String resourceGroupName, String accountName, String poolName,
+ String volumeName) {
+ return beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono splitCloneFromParentAsync(String resourceGroupName, String accountName, String poolName,
+ String volumeName, Context context) {
+ return beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName) {
+ splitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName).block();
+ }
+
+ /**
+ * Split clone from parent volume
+ *
+ * Split operation to convert clone volume to an independent volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName,
+ Context context) {
+ splitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName, context).block();
+ }
+
/**
* Break file locks
*
@@ -3017,6 +3301,273 @@ public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(Stri
.block();
}
+ /**
+ * Lists Quota Report for the volume
+ *
+ * Returns report of quotas for the volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return quota Report for volume along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> listQuotaReportWithResponseAsync(String resourceGroupName,
+ String accountName, String poolName, String volumeName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ if (volumeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listQuotaReport(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Lists Quota Report for the volume
+ *
+ * Returns report of quotas for the volume.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return quota Report for volume along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono