diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
index fde0d391833a..2231af0cd182 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.9 (Unreleased)
+## 1.0.0-beta.1 (2022-05-25)
+
+- 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-netapp-2022-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md
index 107de6ef5521..eeb9ce5e64ac 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-netapp-2021-10-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-netapp-2022-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanagerazure-resourcemanager-netapp
- 1.0.0-beta.8
+ 1.0.0-beta.9
```
[//]: # ({x-version-update-end})
diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
index 1c816eca8b01..fc20ff406d06 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
@@ -95,6 +95,14 @@
- [Get](#volumegroups_get)
- [ListByNetAppAccount](#volumegroups_listbynetappaccount)
+## VolumeQuotaRules
+
+- [Create](#volumequotarules_create)
+- [Delete](#volumequotarules_delete)
+- [Get](#volumequotarules_get)
+- [ListByVolume](#volumequotarules_listbyvolume)
+- [Update](#volumequotarules_update)
+
## Volumes
- [AuthorizeReplication](#volumes_authorizereplication)
@@ -102,13 +110,18 @@
- [CreateOrUpdate](#volumes_createorupdate)
- [Delete](#volumes_delete)
- [DeleteReplication](#volumes_deletereplication)
+- [FinalizeRelocation](#volumes_finalizerelocation)
- [Get](#volumes_get)
- [List](#volumes_list)
+- [ListReplications](#volumes_listreplications)
- [PoolChange](#volumes_poolchange)
- [ReInitializeReplication](#volumes_reinitializereplication)
+- [Relocate](#volumes_relocate)
- [ReplicationStatus](#volumes_replicationstatus)
+- [ResetCifsPassword](#volumes_resetcifspassword)
- [ResyncReplication](#volumes_resyncreplication)
- [Revert](#volumes_revert)
+- [RevertRelocation](#volumes_revertrelocation)
- [Update](#volumes_update)
### AccountBackups_Delete
@@ -118,7 +131,7 @@ import com.azure.core.util.Context;
/** Samples for AccountBackups Delete. */
public final class AccountBackupsDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Backups_Account_Delete.json
*/
/**
* Sample code: AccountBackups_Delete.
@@ -139,7 +152,7 @@ import com.azure.core.util.Context;
/** Samples for AccountBackups Get. */
public final class AccountBackupsGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Backups_Account_Get.json
*/
/**
* Sample code: AccountBackups_Get.
@@ -160,7 +173,7 @@ import com.azure.core.util.Context;
/** Samples for AccountBackups List. */
public final class AccountBackupsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Backups_Account_List.json
*/
/**
* Sample code: AccountBackups_List.
@@ -182,7 +195,7 @@ import java.util.Arrays;
/** Samples for Accounts CreateOrUpdate. */
public final class AccountsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_CreateOrUpdate.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Accounts_CreateOrUpdate.json
*/
/**
* Sample code: Accounts_CreateOrUpdate.
@@ -222,7 +235,7 @@ import com.azure.core.util.Context;
/** Samples for Accounts Delete. */
public final class AccountsDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Accounts_Delete.json
*/
/**
* Sample code: Accounts_Delete.
@@ -243,7 +256,7 @@ import com.azure.core.util.Context;
/** Samples for Accounts GetByResourceGroup. */
public final class AccountsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Accounts_Get.json
*/
/**
* Sample code: Accounts_Get.
@@ -264,7 +277,7 @@ import com.azure.core.util.Context;
/** Samples for Accounts List. */
public final class AccountsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Accounts_List.json
*/
/**
* Sample code: Accounts_List.
@@ -285,7 +298,7 @@ import com.azure.core.util.Context;
/** Samples for Accounts ListByResourceGroup. */
public final class AccountsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Accounts_List.json
*/
/**
* Sample code: Accounts_List.
@@ -309,7 +322,7 @@ import java.util.Map;
/** Samples for Accounts Update. */
public final class AccountsUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Accounts_Update.json
*/
/**
* Sample code: Accounts_Update.
@@ -341,7 +354,7 @@ public final class AccountsUpdateSamples {
/** Samples for BackupPolicies Create. */
public final class BackupPoliciesCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Create.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/BackupPolicies_Create.json
*/
/**
* Sample code: BackupPolicies_Create.
@@ -371,7 +384,7 @@ import com.azure.core.util.Context;
/** Samples for BackupPolicies Delete. */
public final class BackupPoliciesDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/BackupPolicies_Delete.json
*/
/**
* Sample code: Backups_Delete.
@@ -392,7 +405,7 @@ import com.azure.core.util.Context;
/** Samples for BackupPolicies Get. */
public final class BackupPoliciesGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/BackupPolicies_Get.json
*/
/**
* Sample code: Backups_Get.
@@ -413,7 +426,7 @@ import com.azure.core.util.Context;
/** Samples for BackupPolicies List. */
public final class BackupPoliciesListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/BackupPolicies_List.json
*/
/**
* Sample code: Backups_List.
@@ -435,7 +448,7 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy;
/** Samples for BackupPolicies Update. */
public final class BackupPoliciesUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/BackupPolicies_Update.json
*/
/**
* Sample code: BackupPolicies_Update.
@@ -462,7 +475,7 @@ public final class BackupPoliciesUpdateSamples {
/** Samples for Backups Create. */
public final class BackupsCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Create.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Backups_Create.json
*/
/**
* Sample code: Backups_Create.
@@ -489,7 +502,7 @@ import com.azure.core.util.Context;
/** Samples for Backups Delete. */
public final class BackupsDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Backups_Delete.json
*/
/**
* Sample code: Backups_Delete.
@@ -510,7 +523,7 @@ import com.azure.core.util.Context;
/** Samples for Backups Get. */
public final class BackupsGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Backups_Get.json
*/
/**
* Sample code: Backups_Get.
@@ -531,7 +544,7 @@ import com.azure.core.util.Context;
/** Samples for Backups GetStatus. */
public final class BackupsGetStatusSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_BackupStatus.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_BackupStatus.json
*/
/**
* Sample code: Volumes_BackupStatus.
@@ -552,7 +565,7 @@ import com.azure.core.util.Context;
/** Samples for Backups GetVolumeRestoreStatus. */
public final class BackupsGetVolumeRestoreStatusSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_RestoreStatus.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_RestoreStatus.json
*/
/**
* Sample code: Volumes_RestoreStatus.
@@ -573,7 +586,7 @@ import com.azure.core.util.Context;
/** Samples for Backups List. */
public final class BackupsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Backups_List.json
*/
/**
* Sample code: Backups_List.
@@ -595,7 +608,7 @@ import com.azure.resourcemanager.netapp.models.Backup;
/** Samples for Backups Update. */
public final class BackupsUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Backups_Update.json
*/
/**
* Sample code: Backups_Update.
@@ -622,7 +635,7 @@ import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
/** Samples for NetAppResource CheckFilePathAvailability. */
public final class NetAppResourceCheckFilePathAvailabilitySamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckFilePathAvailability.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/CheckFilePathAvailability.json
*/
/**
* Sample code: CheckFilePathAvailability.
@@ -653,7 +666,7 @@ import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
/** Samples for NetAppResource CheckNameAvailability. */
public final class NetAppResourceCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckNameAvailability.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/CheckNameAvailability.json
*/
/**
* Sample code: CheckNameAvailability.
@@ -684,7 +697,7 @@ import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
/** Samples for NetAppResource CheckQuotaAvailability. */
public final class NetAppResourceCheckQuotaAvailabilitySamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckQuotaAvailability.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/CheckQuotaAvailability.json
*/
/**
* Sample code: CheckQuotaAvailability.
@@ -713,7 +726,7 @@ import com.azure.core.util.Context;
/** Samples for NetAppResourceQuotaLimits Get. */
public final class NetAppResourceQuotaLimitsGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/QuotaLimits_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/QuotaLimits_Get.json
*/
/**
* Sample code: QuotaLimits.
@@ -736,7 +749,7 @@ import com.azure.core.util.Context;
/** Samples for NetAppResourceQuotaLimits List. */
public final class NetAppResourceQuotaLimitsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/QuotaLimits_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/QuotaLimits_List.json
*/
/**
* Sample code: QuotaLimits.
@@ -757,7 +770,7 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/OperationList.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/OperationList.json
*/
/**
* Sample code: OperationList.
@@ -779,7 +792,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel;
/** Samples for Pools CreateOrUpdate. */
public final class PoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_CreateOrUpdate.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Pools_CreateOrUpdate.json
*/
/**
* Sample code: Pools_CreateOrUpdate.
@@ -808,7 +821,7 @@ import com.azure.core.util.Context;
/** Samples for Pools Delete. */
public final class PoolsDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Pools_Delete.json
*/
/**
* Sample code: Pools_Delete.
@@ -829,7 +842,7 @@ import com.azure.core.util.Context;
/** Samples for Pools Get. */
public final class PoolsGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Pools_Get.json
*/
/**
* Sample code: Pools_Get.
@@ -850,7 +863,7 @@ import com.azure.core.util.Context;
/** Samples for Pools List. */
public final class PoolsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Pools_List.json
*/
/**
* Sample code: Pools_List.
@@ -872,7 +885,7 @@ import com.azure.resourcemanager.netapp.models.CapacityPool;
/** Samples for Pools Update. */
public final class PoolsUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Pools_Update.json
*/
/**
* Sample code: Pools_Update.
@@ -897,7 +910,7 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule;
/** Samples for SnapshotPolicies Create. */
public final class SnapshotPoliciesCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Create.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/SnapshotPolicies_Create.json
*/
/**
* Sample code: SnapshotPolicies_Create.
@@ -930,7 +943,7 @@ import com.azure.core.util.Context;
/** Samples for SnapshotPolicies Delete. */
public final class SnapshotPoliciesDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/SnapshotPolicies_Delete.json
*/
/**
* Sample code: SnapshotPolicies_Delete.
@@ -951,7 +964,7 @@ import com.azure.core.util.Context;
/** Samples for SnapshotPolicies Get. */
public final class SnapshotPoliciesGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/SnapshotPolicies_Get.json
*/
/**
* Sample code: SnapshotPolicies_Get.
@@ -972,7 +985,7 @@ import com.azure.core.util.Context;
/** Samples for SnapshotPolicies List. */
public final class SnapshotPoliciesListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/SnapshotPolicies_List.json
*/
/**
* Sample code: SnapshotPolicies_List.
@@ -993,7 +1006,7 @@ import com.azure.core.util.Context;
/** Samples for SnapshotPolicies ListVolumes. */
public final class SnapshotPoliciesListVolumesSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_ListVolumes.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/SnapshotPolicies_ListVolumes.json
*/
/**
* Sample code: SnapshotPolicies_ListVolumes.
@@ -1019,7 +1032,7 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule;
/** Samples for SnapshotPolicies Update. */
public final class SnapshotPoliciesUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/SnapshotPolicies_Update.json
*/
/**
* Sample code: SnapshotPolicies_Update.
@@ -1052,7 +1065,7 @@ public final class SnapshotPoliciesUpdateSamples {
/** Samples for Snapshots Create. */
public final class SnapshotsCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Create.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Snapshots_Create.json
*/
/**
* Sample code: Snapshots_Create.
@@ -1078,7 +1091,7 @@ import com.azure.core.util.Context;
/** Samples for Snapshots Delete. */
public final class SnapshotsDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Snapshots_Delete.json
*/
/**
* Sample code: Snapshots_Delete.
@@ -1099,7 +1112,7 @@ import com.azure.core.util.Context;
/** Samples for Snapshots Get. */
public final class SnapshotsGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Snapshots_Get.json
*/
/**
* Sample code: Snapshots_Get.
@@ -1120,7 +1133,7 @@ import com.azure.core.util.Context;
/** Samples for Snapshots List. */
public final class SnapshotsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Snapshots_List.json
*/
/**
* Sample code: Snapshots_List.
@@ -1143,7 +1156,7 @@ import java.util.Arrays;
/** Samples for Snapshots RestoreFiles. */
public final class SnapshotsRestoreFilesSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_SingleFileRestore.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Snapshots_SingleFileRestore.json
*/
/**
* Sample code: Snapshots_SingleFileRestore.
@@ -1176,7 +1189,7 @@ import java.io.IOException;
/** Samples for Snapshots Update. */
public final class SnapshotsUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Snapshots_Update.json
*/
/**
* Sample code: Snapshots_Update.
@@ -1206,7 +1219,7 @@ public final class SnapshotsUpdateSamples {
/** Samples for Subvolumes Create. */
public final class SubvolumesCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Create.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Subvolumes_Create.json
*/
/**
* Sample code: Subvolumes_Create.
@@ -1232,7 +1245,7 @@ import com.azure.core.util.Context;
/** Samples for Subvolumes Delete. */
public final class SubvolumesDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Subvolumes_Delete.json
*/
/**
* Sample code: Subvolumes_Delete.
@@ -1253,7 +1266,7 @@ import com.azure.core.util.Context;
/** Samples for Subvolumes Get. */
public final class SubvolumesGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Subvolumes_Get.json
*/
/**
* Sample code: Subvolumes_Get.
@@ -1274,7 +1287,7 @@ import com.azure.core.util.Context;
/** Samples for Subvolumes GetMetadata. */
public final class SubvolumesGetMetadataSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Metadata.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Subvolumes_Metadata.json
*/
/**
* Sample code: Subvolumes_Metadata.
@@ -1295,7 +1308,7 @@ import com.azure.core.util.Context;
/** Samples for Subvolumes ListByVolume. */
public final class SubvolumesListByVolumeSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Subvolumes_List.json
*/
/**
* Sample code: Subvolumes_List.
@@ -1317,7 +1330,7 @@ import com.azure.resourcemanager.netapp.models.SubvolumeInfo;
/** Samples for Subvolumes Update. */
public final class SubvolumesUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Subvolumes_Update.json
*/
/**
* Sample code: Subvolumes_Update.
@@ -1343,7 +1356,7 @@ import com.azure.core.util.Context;
/** Samples for Vaults List. */
public final class VaultsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Vaults_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Vaults_List.json
*/
/**
* Sample code: Vaults_List.
@@ -1368,7 +1381,7 @@ import java.util.Arrays;
/** Samples for VolumeGroups Create. */
public final class VolumeGroupsCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Create.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeGroups_Create.json
*/
/**
* Sample code: VolumeGroups_Create.
@@ -1442,7 +1455,7 @@ import com.azure.core.util.Context;
/** Samples for VolumeGroups Delete. */
public final class VolumeGroupsDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeGroups_Delete.json
*/
/**
* Sample code: VolumeGroups_Delete.
@@ -1463,7 +1476,7 @@ import com.azure.core.util.Context;
/** Samples for VolumeGroups Get. */
public final class VolumeGroupsGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeGroups_Get.json
*/
/**
* Sample code: VolumeGroups_Get.
@@ -1484,7 +1497,7 @@ import com.azure.core.util.Context;
/** Samples for VolumeGroups ListByNetAppAccount. */
public final class VolumeGroupsListByNetAppAccountSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeGroups_List.json
*/
/**
* Sample code: VolumeGroups_List.
@@ -1497,6 +1510,129 @@ public final class VolumeGroupsListByNetAppAccountSamples {
}
```
+### VolumeQuotaRules_Create
+
+```java
+import com.azure.resourcemanager.netapp.models.Type;
+
+/** Samples for VolumeQuotaRules Create. */
+public final class VolumeQuotaRulesCreateSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeQuotaRules_Create.json
+ */
+ /**
+ * Sample code: VolumeQuotaRules_Create.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeQuotaRulesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager
+ .volumeQuotaRules()
+ .define("rule-0004")
+ .withRegion("westus")
+ .withExistingVolume("myRG", "account-9957", "pool-5210", "volume-6387")
+ .withQuotaSizeInKiBs(100005L)
+ .withQuotaType(Type.INDIVIDUAL_USER_QUOTA)
+ .withQuotaTarget("1821")
+ .create();
+ }
+}
+```
+
+### VolumeQuotaRules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VolumeQuotaRules Delete. */
+public final class VolumeQuotaRulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeQuotaRules_Delete.json
+ */
+ /**
+ * Sample code: VolumeQuotaRules_Delete.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeQuotaRulesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager
+ .volumeQuotaRules()
+ .delete("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", Context.NONE);
+ }
+}
+```
+
+### VolumeQuotaRules_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VolumeQuotaRules Get. */
+public final class VolumeQuotaRulesGetSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeQuotaRules_Get.json
+ */
+ /**
+ * Sample code: VolumeQuotaRules_Get.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeQuotaRulesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager
+ .volumeQuotaRules()
+ .getWithResponse("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", Context.NONE);
+ }
+}
+```
+
+### VolumeQuotaRules_ListByVolume
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VolumeQuotaRules ListByVolume. */
+public final class VolumeQuotaRulesListByVolumeSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeQuotaRules_List.json
+ */
+ /**
+ * Sample code: VolumeQuotaRules_List.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeQuotaRulesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumeQuotaRules().listByVolume("myRG", "account-9957", "pool-5210", "volume-6387", Context.NONE);
+ }
+}
+```
+
+### VolumeQuotaRules_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.netapp.models.VolumeQuotaRule;
+
+/** Samples for VolumeQuotaRules Update. */
+public final class VolumeQuotaRulesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeQuotaRules_Update.json
+ */
+ /**
+ * Sample code: VolumeQuotaRules_Update.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumeQuotaRulesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ VolumeQuotaRule resource =
+ manager
+ .volumeQuotaRules()
+ .getWithResponse("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", Context.NONE)
+ .getValue();
+ resource.update().withQuotaSizeInKiBs(100009L).apply();
+ }
+}
+```
+
### Volumes_AuthorizeReplication
```java
@@ -1506,7 +1642,7 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest;
/** Samples for Volumes AuthorizeReplication. */
public final class VolumesAuthorizeReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_AuthorizeReplication.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_AuthorizeReplication.json
*/
/**
* Sample code: Volumes_AuthorizeReplication.
@@ -1538,7 +1674,7 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest;
/** Samples for Volumes BreakReplication. */
public final class VolumesBreakReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_BreakReplication.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_BreakReplication.json
*/
/**
* Sample code: Volumes_BreakReplication.
@@ -1562,12 +1698,13 @@ public final class VolumesBreakReplicationSamples {
### Volumes_CreateOrUpdate
```java
+import com.azure.resourcemanager.netapp.models.EncryptionKeySource;
import com.azure.resourcemanager.netapp.models.ServiceLevel;
/** Samples for Volumes CreateOrUpdate. */
public final class VolumesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_CreateOrUpdate.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_CreateOrUpdate.json
*/
/**
* Sample code: Volumes_CreateOrUpdate.
@@ -1586,7 +1723,7 @@ public final class VolumesCreateOrUpdateSamples {
"/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
.withServiceLevel(ServiceLevel.PREMIUM)
.withThroughputMibps(128.0f)
- .withEncryptionKeySource("Microsoft.KeyVault")
+ .withEncryptionKeySource(EncryptionKeySource.fromString("Microsoft.KeyVault"))
.create();
}
}
@@ -1600,7 +1737,7 @@ import com.azure.core.util.Context;
/** Samples for Volumes Delete. */
public final class VolumesDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Delete.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_Delete.json
*/
/**
* Sample code: Volumes_Delete.
@@ -1621,7 +1758,7 @@ import com.azure.core.util.Context;
/** Samples for Volumes DeleteReplication. */
public final class VolumesDeleteReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_DeleteReplication.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_DeleteReplication.json
*/
/**
* Sample code: Volumes_DeleteReplication.
@@ -1634,6 +1771,27 @@ public final class VolumesDeleteReplicationSamples {
}
```
+### Volumes_FinalizeRelocation
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Volumes FinalizeRelocation. */
+public final class VolumesFinalizeRelocationSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_FinalizeRelocation.json
+ */
+ /**
+ * Sample code: Volumes_FinalizeRelocation.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumesFinalizeRelocation(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumes().finalizeRelocation("myRG", "account1", "pool1", "volume1", Context.NONE);
+ }
+}
+```
+
### Volumes_Get
```java
@@ -1642,7 +1800,7 @@ import com.azure.core.util.Context;
/** Samples for Volumes Get. */
public final class VolumesGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Get.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_Get.json
*/
/**
* Sample code: Volumes_Get.
@@ -1663,7 +1821,7 @@ import com.azure.core.util.Context;
/** Samples for Volumes List. */
public final class VolumesListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_List.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_List.json
*/
/**
* Sample code: Volumes_List.
@@ -1676,6 +1834,27 @@ public final class VolumesListSamples {
}
```
+### Volumes_ListReplications
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Volumes ListReplications. */
+public final class VolumesListReplicationsSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_ListReplications.json
+ */
+ /**
+ * Sample code: Volumes_ListReplications.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumesListReplications(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumes().listReplicationsWithResponse("myRG", "account1", "pool1", "volume1", Context.NONE);
+ }
+}
+```
+
### Volumes_PoolChange
```java
@@ -1685,7 +1864,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest;
/** Samples for Volumes PoolChange. */
public final class VolumesPoolChangeSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_PoolChange.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_PoolChange.json
*/
/**
* Sample code: Volumes_AuthorizeReplication.
@@ -1716,7 +1895,7 @@ import com.azure.core.util.Context;
/** Samples for Volumes ReInitializeReplication. */
public final class VolumesReInitializeReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ReInitializeReplication.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_ReInitializeReplication.json
*/
/**
* Sample code: Volumes_ReInitializeReplication.
@@ -1729,6 +1908,27 @@ public final class VolumesReInitializeReplicationSamples {
}
```
+### Volumes_Relocate
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Volumes Relocate. */
+public final class VolumesRelocateSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_Relocate.json
+ */
+ /**
+ * Sample code: Volumes_Relocate.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumesRelocate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumes().relocate("myRG", "account1", "pool1", "volume1", Context.NONE);
+ }
+}
+```
+
### Volumes_ReplicationStatus
```java
@@ -1737,7 +1937,7 @@ import com.azure.core.util.Context;
/** Samples for Volumes ReplicationStatus. */
public final class VolumesReplicationStatusSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ReplicationStatus.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_ReplicationStatus.json
*/
/**
* Sample code: Volumes_ReplicationStatus.
@@ -1750,6 +1950,27 @@ public final class VolumesReplicationStatusSamples {
}
```
+### Volumes_ResetCifsPassword
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Volumes ResetCifsPassword. */
+public final class VolumesResetCifsPasswordSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_ResetCifsPassword.json
+ */
+ /**
+ * Sample code: Volumes_ResetCifsPassword.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumesResetCifsPassword(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumes().resetCifsPassword("myRG", "account1", "pool1", "volume1", Context.NONE);
+ }
+}
+```
+
### Volumes_ResyncReplication
```java
@@ -1758,7 +1979,7 @@ import com.azure.core.util.Context;
/** Samples for Volumes ResyncReplication. */
public final class VolumesResyncReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ResyncReplication.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_ResyncReplication.json
*/
/**
* Sample code: Volumes_ResyncReplication.
@@ -1780,7 +2001,7 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert;
/** Samples for Volumes Revert. */
public final class VolumesRevertSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Revert.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_Revert.json
*/
/**
* Sample code: Volumes_Revert.
@@ -1803,6 +2024,27 @@ public final class VolumesRevertSamples {
}
```
+### Volumes_RevertRelocation
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Volumes RevertRelocation. */
+public final class VolumesRevertRelocationSamples {
+ /*
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_RevertRelocation.json
+ */
+ /**
+ * Sample code: Volumes_RevertRelocation.
+ *
+ * @param manager Entry point to NetAppFilesManager.
+ */
+ public static void volumesRevertRelocation(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.volumes().revertRelocation("myRG", "account1", "pool1", "volume1", Context.NONE);
+ }
+}
+```
+
### Volumes_Update
```java
@@ -1812,7 +2054,7 @@ import com.azure.resourcemanager.netapp.models.Volume;
/** Samples for Volumes Update. */
public final class VolumesUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Update.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_Update.json
*/
/**
* Sample code: Volumes_Update.
diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml
index 676aa150abcd..2fe4f77d12d8 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml
+++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml
@@ -13,7 +13,7 @@
jarMicrosoft 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-netapp-2021-10-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-netapp-2022-01-01.https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java
index 04f3e802fd8c..8e1f0bf9ea67 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
@@ -10,11 +10,13 @@
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
@@ -36,6 +38,7 @@
import com.azure.resourcemanager.netapp.implementation.SubvolumesImpl;
import com.azure.resourcemanager.netapp.implementation.VaultsImpl;
import com.azure.resourcemanager.netapp.implementation.VolumeGroupsImpl;
+import com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesImpl;
import com.azure.resourcemanager.netapp.implementation.VolumesImpl;
import com.azure.resourcemanager.netapp.models.AccountBackups;
import com.azure.resourcemanager.netapp.models.Accounts;
@@ -50,6 +53,7 @@
import com.azure.resourcemanager.netapp.models.Subvolumes;
import com.azure.resourcemanager.netapp.models.Vaults;
import com.azure.resourcemanager.netapp.models.VolumeGroups;
+import com.azure.resourcemanager.netapp.models.VolumeQuotaRules;
import com.azure.resourcemanager.netapp.models.Volumes;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
@@ -82,6 +86,8 @@ public final class NetAppFilesManager {
private BackupPolicies backupPolicies;
+ private VolumeQuotaRules volumeQuotaRules;
+
private Vaults vaults;
private VolumeGroups volumeGroups;
@@ -115,6 +121,19 @@ public static NetAppFilesManager authenticate(TokenCredential credential, AzureP
return configure().authenticate(credential, profile);
}
+ /**
+ * Creates an instance of NetAppFiles service API entry point.
+ *
+ * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
+ * @param profile the Azure profile for client.
+ * @return the NetAppFiles service API instance.
+ */
+ public static NetAppFilesManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return new NetAppFilesManager(httpPipeline, profile, null);
+ }
+
/**
* Gets a Configurable instance that can be used to create NetAppFilesManager with optional configuration.
*
@@ -126,13 +145,14 @@ public static Configurable configure() {
/** The Configurable allowing configurations to be set. */
public static final class Configurable {
- private final ClientLogger logger = new ClientLogger(Configurable.class);
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List policies = new ArrayList<>();
private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -193,6 +213,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ *
This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -200,9 +233,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -224,7 +259,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.netapp")
.append("/")
- .append("1.0.0-beta.8");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -242,10 +277,15 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
policies
.addAll(
@@ -276,7 +316,11 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
}
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -284,7 +328,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of NetAppResources. */
+ /**
+ * Gets the resource collection API of NetAppResources.
+ *
+ * @return Resource collection API of NetAppResources.
+ */
public NetAppResources netAppResources() {
if (this.netAppResources == null) {
this.netAppResources = new NetAppResourcesImpl(clientObject.getNetAppResources(), this);
@@ -292,7 +340,11 @@ public NetAppResources netAppResources() {
return netAppResources;
}
- /** @return Resource collection API of NetAppResourceQuotaLimits. */
+ /**
+ * Gets the resource collection API of NetAppResourceQuotaLimits.
+ *
+ * @return Resource collection API of NetAppResourceQuotaLimits.
+ */
public NetAppResourceQuotaLimits netAppResourceQuotaLimits() {
if (this.netAppResourceQuotaLimits == null) {
this.netAppResourceQuotaLimits =
@@ -301,7 +353,11 @@ public NetAppResourceQuotaLimits netAppResourceQuotaLimits() {
return netAppResourceQuotaLimits;
}
- /** @return Resource collection API of Accounts. */
+ /**
+ * Gets the resource collection API of Accounts. It manages NetAppAccount.
+ *
+ * @return Resource collection API of Accounts.
+ */
public Accounts accounts() {
if (this.accounts == null) {
this.accounts = new AccountsImpl(clientObject.getAccounts(), this);
@@ -309,7 +365,11 @@ public Accounts accounts() {
return accounts;
}
- /** @return Resource collection API of Pools. */
+ /**
+ * Gets the resource collection API of Pools. It manages CapacityPool.
+ *
+ * @return Resource collection API of Pools.
+ */
public Pools pools() {
if (this.pools == null) {
this.pools = new PoolsImpl(clientObject.getPools(), this);
@@ -317,7 +377,11 @@ public Pools pools() {
return pools;
}
- /** @return Resource collection API of Volumes. */
+ /**
+ * Gets the resource collection API of Volumes. It manages Volume.
+ *
+ * @return Resource collection API of Volumes.
+ */
public Volumes volumes() {
if (this.volumes == null) {
this.volumes = new VolumesImpl(clientObject.getVolumes(), this);
@@ -325,7 +389,11 @@ public Volumes volumes() {
return volumes;
}
- /** @return Resource collection API of Snapshots. */
+ /**
+ * Gets the resource collection API of Snapshots. It manages Snapshot.
+ *
+ * @return Resource collection API of Snapshots.
+ */
public Snapshots snapshots() {
if (this.snapshots == null) {
this.snapshots = new SnapshotsImpl(clientObject.getSnapshots(), this);
@@ -333,7 +401,11 @@ public Snapshots snapshots() {
return snapshots;
}
- /** @return Resource collection API of SnapshotPolicies. */
+ /**
+ * Gets the resource collection API of SnapshotPolicies. It manages SnapshotPolicy.
+ *
+ * @return Resource collection API of SnapshotPolicies.
+ */
public SnapshotPolicies snapshotPolicies() {
if (this.snapshotPolicies == null) {
this.snapshotPolicies = new SnapshotPoliciesImpl(clientObject.getSnapshotPolicies(), this);
@@ -341,7 +413,11 @@ public SnapshotPolicies snapshotPolicies() {
return snapshotPolicies;
}
- /** @return Resource collection API of Backups. */
+ /**
+ * Gets the resource collection API of Backups. It manages Backup.
+ *
+ * @return Resource collection API of Backups.
+ */
public Backups backups() {
if (this.backups == null) {
this.backups = new BackupsImpl(clientObject.getBackups(), this);
@@ -349,7 +425,11 @@ public Backups backups() {
return backups;
}
- /** @return Resource collection API of AccountBackups. */
+ /**
+ * Gets the resource collection API of AccountBackups.
+ *
+ * @return Resource collection API of AccountBackups.
+ */
public AccountBackups accountBackups() {
if (this.accountBackups == null) {
this.accountBackups = new AccountBackupsImpl(clientObject.getAccountBackups(), this);
@@ -357,7 +437,11 @@ public AccountBackups accountBackups() {
return accountBackups;
}
- /** @return Resource collection API of BackupPolicies. */
+ /**
+ * Gets the resource collection API of BackupPolicies. It manages BackupPolicy.
+ *
+ * @return Resource collection API of BackupPolicies.
+ */
public BackupPolicies backupPolicies() {
if (this.backupPolicies == null) {
this.backupPolicies = new BackupPoliciesImpl(clientObject.getBackupPolicies(), this);
@@ -365,7 +449,23 @@ public BackupPolicies backupPolicies() {
return backupPolicies;
}
- /** @return Resource collection API of Vaults. */
+ /**
+ * Gets the resource collection API of VolumeQuotaRules. It manages VolumeQuotaRule.
+ *
+ * @return Resource collection API of VolumeQuotaRules.
+ */
+ public VolumeQuotaRules volumeQuotaRules() {
+ if (this.volumeQuotaRules == null) {
+ this.volumeQuotaRules = new VolumeQuotaRulesImpl(clientObject.getVolumeQuotaRules(), this);
+ }
+ return volumeQuotaRules;
+ }
+
+ /**
+ * Gets the resource collection API of Vaults.
+ *
+ * @return Resource collection API of Vaults.
+ */
public Vaults vaults() {
if (this.vaults == null) {
this.vaults = new VaultsImpl(clientObject.getVaults(), this);
@@ -373,7 +473,11 @@ public Vaults vaults() {
return vaults;
}
- /** @return Resource collection API of VolumeGroups. */
+ /**
+ * Gets the resource collection API of VolumeGroups. It manages VolumeGroupDetails.
+ *
+ * @return Resource collection API of VolumeGroups.
+ */
public VolumeGroups volumeGroups() {
if (this.volumeGroups == null) {
this.volumeGroups = new VolumeGroupsImpl(clientObject.getVolumeGroups(), this);
@@ -381,7 +485,11 @@ public VolumeGroups volumeGroups() {
return volumeGroups;
}
- /** @return Resource collection API of Subvolumes. */
+ /**
+ * Gets the resource collection API of Subvolumes. It manages SubvolumeInfo.
+ *
+ * @return Resource collection API of Subvolumes.
+ */
public Subvolumes subvolumes() {
if (this.subvolumes == null) {
this.subvolumes = new SubvolumesImpl(clientObject.getSubvolumes(), this);
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 0c50983ce359..9ea5f0692bc0 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
@@ -122,6 +122,13 @@ public interface NetAppManagementClient {
*/
BackupPoliciesClient getBackupPolicies();
+ /**
+ * Gets the VolumeQuotaRulesClient object to access its operations.
+ *
+ * @return the VolumeQuotaRulesClient object.
+ */
+ VolumeQuotaRulesClient getVolumeQuotaRules();
+
/**
* Gets the VaultsClient object to access its operations.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java
new file mode 100644
index 000000000000..c4c76fcac92d
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java
@@ -0,0 +1,361 @@
+// Copyright (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.VolumeQuotaRuleInner;
+import com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch;
+
+/** An instance of this class provides access to all the operations defined in VolumeQuotaRulesClient. */
+public interface VolumeQuotaRulesClient {
+ /**
+ * List all quota rules associated with the volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVolume(
+ String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * List all quota rules associated with the volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVolume(
+ String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+
+ /**
+ * Get details of the specified quota rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the specified quota rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeQuotaRuleInner get(
+ String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName);
+
+ /**
+ * Get details of the specified quota rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the specified quota rule along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String poolName,
+ String volumeName,
+ String volumeQuotaRuleName,
+ Context context);
+
+ /**
+ * Create the specified quota rule within the given volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param body Quota rule object supplied in the body of the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of quota Rule of a Volume.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeQuotaRuleInner> beginCreate(
+ String resourceGroupName,
+ String accountName,
+ String poolName,
+ String volumeName,
+ String volumeQuotaRuleName,
+ VolumeQuotaRuleInner body);
+
+ /**
+ * Create the specified quota rule within the given volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param body Quota rule object supplied in the body of the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of quota Rule of a Volume.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeQuotaRuleInner> beginCreate(
+ String resourceGroupName,
+ String accountName,
+ String poolName,
+ String volumeName,
+ String volumeQuotaRuleName,
+ VolumeQuotaRuleInner body,
+ Context context);
+
+ /**
+ * Create the specified quota rule within the given volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param body Quota rule object supplied in the body of the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return quota Rule of a Volume.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeQuotaRuleInner create(
+ String resourceGroupName,
+ String accountName,
+ String poolName,
+ String volumeName,
+ String volumeQuotaRuleName,
+ VolumeQuotaRuleInner body);
+
+ /**
+ * Create the specified quota rule within the given volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param body Quota rule object supplied in the body of the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return quota Rule of a Volume.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeQuotaRuleInner create(
+ String resourceGroupName,
+ String accountName,
+ String poolName,
+ String volumeName,
+ String volumeQuotaRuleName,
+ VolumeQuotaRuleInner body,
+ Context context);
+
+ /**
+ * Patch a quota rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param body Quota rule object supplied in the body of the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of quota Rule of a Volume.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeQuotaRuleInner> beginUpdate(
+ String resourceGroupName,
+ String accountName,
+ String poolName,
+ String volumeName,
+ String volumeQuotaRuleName,
+ VolumeQuotaRulePatch body);
+
+ /**
+ * Patch a quota rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param body Quota rule object supplied in the body of the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of quota Rule of a Volume.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VolumeQuotaRuleInner> beginUpdate(
+ String resourceGroupName,
+ String accountName,
+ String poolName,
+ String volumeName,
+ String volumeQuotaRuleName,
+ VolumeQuotaRulePatch body,
+ Context context);
+
+ /**
+ * Patch a quota rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param body Quota rule object supplied in the body of the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return quota Rule of a Volume.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeQuotaRuleInner update(
+ String resourceGroupName,
+ String accountName,
+ String poolName,
+ String volumeName,
+ String volumeQuotaRuleName,
+ VolumeQuotaRulePatch body);
+
+ /**
+ * Patch a quota rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param body Quota rule object supplied in the body of the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return quota Rule of a Volume.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VolumeQuotaRuleInner update(
+ String resourceGroupName,
+ String accountName,
+ String poolName,
+ String volumeName,
+ String volumeQuotaRuleName,
+ VolumeQuotaRulePatch body,
+ Context context);
+
+ /**
+ * Delete quota rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return 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 volumeQuotaRuleName);
+
+ /**
+ * Delete quota rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return 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 volumeQuotaRuleName,
+ Context context);
+
+ /**
+ * Delete quota rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName);
+
+ /**
+ * Delete quota rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param accountName The name of the NetApp account.
+ * @param poolName The name of the capacity pool.
+ * @param volumeName The name of the volume.
+ * @param volumeQuotaRuleName The name of volume quota rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName,
+ String accountName,
+ String poolName,
+ String volumeName,
+ String volumeQuotaRuleName,
+ Context context);
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java
index 3176e8a0e1b0..43c3c31eeca9 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
@@ -11,6 +11,7 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.netapp.fluent.models.ListReplicationsInner;
import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner;
import com.azure.resourcemanager.netapp.fluent.models.VolumeInner;
import com.azure.resourcemanager.netapp.models.AuthorizeRequest;
@@ -414,6 +415,69 @@ void revert(
VolumeRevert body,
Context context);
+ /**
+ * Reset cifs password from volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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> beginResetCifsPassword(
+ String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Reset cifs password from volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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> beginResetCifsPassword(
+ String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+
+ /**
+ * Reset cifs password from volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Reset cifs password from volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 resetCifsPassword(
+ String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+
/**
* Break the replication connection on the destination volume.
*
@@ -539,6 +603,39 @@ ReplicationStatusInner replicationStatus(
Response replicationStatusWithResponse(
String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+ /**
+ * List all replications for a specified volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 Replications.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ListReplicationsInner listReplications(
+ String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * List all replications for a specified volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 Replications along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listReplicationsWithResponse(
+ String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+
/**
* Resync the connection on the destination volume. If the operation is ran on the source volume it will
* reverse-resync the connection and sync from destination to source.
@@ -887,4 +984,192 @@ void poolChange(
String volumeName,
PoolChangeRequest body,
Context context);
+
+ /**
+ * Relocates volume to a new stamp.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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> beginRelocate(
+ String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Relocates volume to a new stamp.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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> beginRelocate(
+ String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+
+ /**
+ * Relocates volume to a new stamp.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 relocate(String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Relocates volume to a new stamp.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 relocate(String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+
+ /**
+ * Finalizes the relocation of the volume and cleans up the old volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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> beginFinalizeRelocation(
+ String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Finalizes the relocation of the volume and cleans up the old volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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> beginFinalizeRelocation(
+ String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+
+ /**
+ * Finalizes the relocation of the volume and cleans up the old volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 finalizeRelocation(String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Finalizes the relocation of the volume and cleans up the old volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 finalizeRelocation(
+ String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+
+ /**
+ * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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> beginRevertRelocation(
+ String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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> beginRevertRelocation(
+ String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
+
+ /**
+ * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 revertRelocation(String resourceGroupName, String accountName, String poolName, String volumeName);
+
+ /**
+ * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 revertRelocation(
+ String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java
index 742cb02e4c7c..27f7ac66283c 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
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.AccountEncryption;
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** NetApp account properties. */
@Fluent
public final class AccountProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AccountProperties.class);
-
/*
* Azure lifecycle management
*/
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 159048fd47bd..ce1c66b22fcb 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
@@ -8,15 +8,12 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.BackupType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Backup of a Volume. */
@Fluent
public final class BackupInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupInner.class);
-
/*
* Resource location
*/
@@ -176,16 +173,18 @@ public BackupInner withUseExistingSnapshot(Boolean useExistingSnapshot) {
*/
public void validate() {
if (location() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property location in model BackupInner"));
}
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model BackupInner"));
} else {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(BackupInner.class);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java
index 2ab7daad6c93..1b95eef8d564 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java
@@ -9,7 +9,6 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.VolumeBackups;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -17,8 +16,6 @@
/** Backup policy information. */
@Fluent
public final class BackupPolicyInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyInner.class);
-
/*
* A unique read-only string that changes whenever the resource is updated.
*/
@@ -32,7 +29,8 @@ public final class BackupPolicyInner extends Resource {
private BackupPolicyProperties innerProperties = new BackupPolicyProperties();
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -56,7 +54,7 @@ private BackupPolicyProperties innerProperties() {
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -213,7 +211,7 @@ public List volumeBackups() {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model BackupPolicyInner"));
@@ -221,4 +219,6 @@ public void validate() {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(BackupPolicyInner.class);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java
index 493e91eaa876..d52f6bc85dc0 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.VolumeBackups;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Backup policy properties. */
@Fluent
public final class BackupPolicyProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyProperties.class);
-
/*
* Backup Policy Resource ID
*/
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 5204b90e9f81..bded98966e81 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
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.BackupType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Backup properties. */
@Fluent
public final class BackupProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupProperties.class);
-
/*
* backupId UUID v4 used to identify the Backup
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java
index 9e95ebd57afb..46054e55e5f0 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.MirrorState;
import com.azure.resourcemanager.netapp.models.RelationshipStatus;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Backup status. */
@Immutable
public final class BackupStatusInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupStatusInner.class);
-
/*
* Backup health status
*/
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 b2ad8d776a10..e1dea6b56e14 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
@@ -11,15 +11,12 @@
import com.azure.resourcemanager.netapp.models.EncryptionType;
import com.azure.resourcemanager.netapp.models.QosType;
import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** Capacity pool resource. */
@Fluent
public final class CapacityPoolInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityPoolInner.class);
-
/*
* A unique read-only string that changes whenever the resource is updated.
*/
@@ -33,7 +30,8 @@ public final class CapacityPoolInner extends Resource {
private PoolProperties innerProperties = new PoolProperties();
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -57,7 +55,7 @@ private PoolProperties innerProperties() {
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -241,7 +239,7 @@ public CapacityPoolInner withEncryptionType(EncryptionType encryptionType) {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model CapacityPoolInner"));
@@ -249,4 +247,6 @@ public void validate() {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(CapacityPoolInner.class);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java
index d161dbac43e7..dd7e8330f074 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Information regarding availability of a resource. */
@Fluent
public final class CheckAvailabilityResponseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckAvailabilityResponseInner.class);
-
/*
* true indicates name is valid and available.
* false indicates the name is invalid, unavailable, or both.
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListReplicationsInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListReplicationsInner.java
new file mode 100644
index 000000000000..c565bb75ef85
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListReplicationsInner.java
@@ -0,0 +1,51 @@
+// Copyright (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.resourcemanager.netapp.models.Replication;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List Replications. */
+@Fluent
+public final class ListReplicationsInner {
+ /*
+ * A list of replications
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: A list of replications.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: A list of replications.
+ *
+ * @param value the value value to set.
+ * @return the ListReplicationsInner object itself.
+ */
+ public ListReplicationsInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java
index e1f9505a0212..f9b279297cfc 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java
@@ -6,14 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Mount target properties. */
@Fluent
public final class MountTargetProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MountTargetProperties.class);
-
/*
* mountTargetId UUID v4 used to identify the MountTarget
*/
@@ -103,10 +100,12 @@ public MountTargetProperties withSmbServerFqdn(String smbServerFqdn) {
*/
public void validate() {
if (fileSystemId() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property fileSystemId in model MountTargetProperties"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(MountTargetProperties.class);
}
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 c282eeb78e76..a7941717b3ae 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
@@ -6,11 +6,8 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.AccountEncryption;
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -18,8 +15,6 @@
/** NetApp account resource. */
@Fluent
public final class NetAppAccountInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppAccountInner.class);
-
/*
* A unique read-only string that changes whenever the resource is updated.
*/
@@ -32,12 +27,6 @@ public final class NetAppAccountInner extends Resource {
@JsonProperty(value = "properties")
private AccountProperties innerProperties;
- /*
- * The system meta data relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/**
* Get the etag property: A unique read-only string that changes whenever the resource is updated.
*
@@ -56,15 +45,6 @@ private AccountProperties innerProperties() {
return this.innerProperties;
}
- /**
- * Get the systemData property: The system meta data relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
/** {@inheritDoc} */
@Override
public NetAppAccountInner withLocation(String location) {
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java
index 2a4977ad8d34..8d4b210a0797 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.OperationDisplay;
import com.azure.resourcemanager.netapp.models.ServiceSpecification;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Microsoft.NetApp REST API operation definition. */
@Fluent
public final class OperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
-
/*
* Operation name: {provider}/{resource}/{operation}
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java
index 4ce35159cf1e..41cf61910a9e 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.ServiceSpecification;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Properties of operation, include metric specifications. */
@Fluent
public final class OperationProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationProperties.class);
-
/*
* One property of operation, include metric specifications.
*/
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 93b956657415..464b93a73c42 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
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.QosType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Patchable pool properties. */
@Fluent
public final class PoolPatchProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PoolPatchProperties.class);
-
/*
* size Provisioned size of the pool (in bytes). Allowed values are in 1TiB
* chunks (value must be multiply of 4398046511104).
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java
index 45e1af855c68..19202edcad86 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java
@@ -9,14 +9,11 @@
import com.azure.resourcemanager.netapp.models.EncryptionType;
import com.azure.resourcemanager.netapp.models.QosType;
import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Pool properties. */
@Fluent
public final class PoolProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PoolProperties.class);
-
/*
* poolId UUID v4 used to identify the Pool
*/
@@ -221,9 +218,11 @@ public PoolProperties withEncryptionType(EncryptionType encryptionType) {
*/
public void validate() {
if (serviceLevel() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property serviceLevel in model PoolProperties"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(PoolProperties.class);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java
index dfeae58906d3..6c401681ee63 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.MirrorState;
import com.azure.resourcemanager.netapp.models.RelationshipStatus;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Replication status. */
@Fluent
public final class ReplicationStatusInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicationStatusInner.class);
-
/*
* Replication health check
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java
index 2316df0c254b..248084df03e3 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.MirrorState;
import com.azure.resourcemanager.netapp.models.RelationshipStatus;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Restore status. */
@Immutable
public final class RestoreStatusInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(RestoreStatusInner.class);
-
/*
* Restore health status
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java
index 48777cd6f807..6c0c2bfbbbeb 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java
@@ -7,15 +7,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Snapshot of a Volume. */
@Fluent
public final class SnapshotInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotInner.class);
-
/*
* Resource location
*/
@@ -91,7 +88,7 @@ public String provisioningState() {
*/
public void validate() {
if (location() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property location in model SnapshotInner"));
}
@@ -99,4 +96,6 @@ public void validate() {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(SnapshotInner.class);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java
index 3292a15b8bcd..d205a5f07fb5 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java
@@ -12,15 +12,12 @@
import com.azure.resourcemanager.netapp.models.HourlySchedule;
import com.azure.resourcemanager.netapp.models.MonthlySchedule;
import com.azure.resourcemanager.netapp.models.WeeklySchedule;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** Snapshot policy information. */
@Fluent
public final class SnapshotPolicyInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyInner.class);
-
/*
* A unique read-only string that changes whenever the resource is updated.
*/
@@ -34,7 +31,8 @@ public final class SnapshotPolicyInner extends Resource {
private SnapshotPolicyProperties innerProperties = new SnapshotPolicyProperties();
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -58,7 +56,7 @@ private SnapshotPolicyProperties innerProperties() {
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -211,7 +209,7 @@ public String provisioningState() {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model SnapshotPolicyInner"));
@@ -219,4 +217,6 @@ public void validate() {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(SnapshotPolicyInner.class);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java
index 910410b147b6..b991388d7101 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java
@@ -5,19 +5,15 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.DailySchedule;
import com.azure.resourcemanager.netapp.models.HourlySchedule;
import com.azure.resourcemanager.netapp.models.MonthlySchedule;
import com.azure.resourcemanager.netapp.models.WeeklySchedule;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Snapshot policy properties. */
@Fluent
public final class SnapshotPolicyProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyProperties.class);
-
/*
* Schedule for hourly snapshots
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java
index 1424329cf5ce..85f34c9ae377 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Volumes associated with snapshot policy. */
@Fluent
public final class SnapshotPolicyVolumeListInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyVolumeListInner.class);
-
/*
* List of volumes
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java
index 0f6d1ae6981f..2971b475f2fe 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Snapshot properties. */
@Immutable
public final class SnapshotProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotProperties.class);
-
/*
* snapshotId UUID v4 used to identify the Snapshot
*/
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/SubscriptionQuotaItemInner.java
index 50bfde34117e..70e2995762f1 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/SubscriptionQuotaItemInner.java
@@ -6,28 +6,17 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Information regarding Subscription Quota Item. */
@Fluent
public final class SubscriptionQuotaItemInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SubscriptionQuotaItemInner.class);
-
/*
* SubscriptionQuotaItem properties
*/
@JsonProperty(value = "properties")
private SubscriptionQuotaItemProperties innerProperties;
- /*
- * The system meta data relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/**
* Get the innerProperties property: SubscriptionQuotaItem properties.
*
@@ -37,15 +26,6 @@ private SubscriptionQuotaItemProperties innerProperties() {
return this.innerProperties;
}
- /**
- * Get the systemData property: The system meta data relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
/**
* Get the current property: The current quota value.
*
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/SubscriptionQuotaItemProperties.java
index b6d467531165..503b16294bab 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/SubscriptionQuotaItemProperties.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** SubscriptionQuotaItem Properties. */
@Immutable
public final class SubscriptionQuotaItemProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SubscriptionQuotaItemProperties.class);
-
/*
* The current quota value.
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java
index bf4e4d0812fe..75e561fe9639 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java
@@ -7,15 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Subvolume Information properties. */
@Fluent
public final class SubvolumeInfoInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeInfoInner.class);
-
/*
* Subvolume Properties
*/
@@ -23,7 +19,8 @@ public final class SubvolumeInfoInner extends ProxyResource {
private SubvolumeProperties innerProperties;
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -38,7 +35,7 @@ private SubvolumeProperties innerProperties() {
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java
index 47490e1d0ef7..e7203d37283d 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Result of the post subvolume and action is to get metadata of the subvolume. */
@Fluent
public final class SubvolumeModelInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeModelInner.class);
-
/*
* Resource Id
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java
index 1ec95abace80..a81a51fa61da 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Properties which represents actual subvolume model which is stored as a file in the system. */
@Fluent
public final class SubvolumeModelProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeModelProperties.class);
-
/*
* path Path to the subvolume
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java
index f27c617c0d48..70603a89eef2 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Parameters with which a subvolume can be updated. */
@Fluent
public final class SubvolumePatchParams {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumePatchParams.class);
-
/*
* size Truncate subvolume to the provided size in bytes
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java
index a887160fe9b0..3694df6f18c3 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** This represents path associated with the subvolume. */
@Fluent
public final class SubvolumeProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeProperties.class);
-
/*
* path Path to the subvolume
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java
index 6fe4f732175e..b7947496a06e 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java
@@ -7,14 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Vault information. */
@Fluent
public final class VaultInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VaultInner.class);
-
/*
* Resource location
*/
@@ -86,16 +83,18 @@ public VaultInner withVaultName(String vaultName) {
*/
public void validate() {
if (location() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property location in model VaultInner"));
}
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model VaultInner"));
} else {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(VaultInner.class);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java
index 21295214edde..53cd65c38aad 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Vault properties. */
@Fluent
public final class VaultProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VaultProperties.class);
-
/*
* Vault Name
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java
index 838ac7cdc7d6..eead110c345d 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java
@@ -5,20 +5,14 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata;
import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-import java.util.Map;
/** Volume group resource for create. */
@Fluent
public final class VolumeGroupDetailsInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupDetailsInner.class);
-
/*
* Resource location
*/
@@ -43,13 +37,6 @@ public final class VolumeGroupDetailsInner {
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
- /*
- * Resource tags
- */
- @JsonProperty(value = "tags")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
- private Map tags;
-
/*
* Volume group properties
*/
@@ -103,26 +90,6 @@ public String type() {
return this.type;
}
- /**
- * Get the tags property: Resource tags.
- *
- * @return the tags value.
- */
- public Map tags() {
- return this.tags;
- }
-
- /**
- * Set the tags property: Resource tags.
- *
- * @param tags the tags value to set.
- * @return the VolumeGroupDetailsInner object itself.
- */
- public VolumeGroupDetailsInner withTags(Map tags) {
- this.tags = tags;
- return this;
- }
-
/**
* Get the innerProperties property: Volume group properties.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java
index c10124f59412..3ee07597cecc 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java
@@ -5,18 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.Map;
/** Volume group resource. */
@Fluent
public final class VolumeGroupInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupInner.class);
-
/*
* Resource location
*/
@@ -41,13 +35,6 @@ public final class VolumeGroupInner {
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
- /*
- * Resource tags
- */
- @JsonProperty(value = "tags")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
- private Map tags;
-
/*
* Volume group properties
*/
@@ -101,26 +88,6 @@ public String type() {
return this.type;
}
- /**
- * Get the tags property: Resource tags.
- *
- * @return the tags value.
- */
- public Map tags() {
- return this.tags;
- }
-
- /**
- * Set the tags property: Resource tags.
- *
- * @param tags the tags value to set.
- * @return the VolumeGroupInner object itself.
- */
- public VolumeGroupInner withTags(Map tags) {
- this.tags = tags;
- return this;
- }
-
/**
* Get the innerProperties property: Volume group properties.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java
index 3dbed5328b86..1d67a3966eed 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Volume group properties. */
@Fluent
public final class VolumeGroupListProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupListProperties.class);
-
/*
* Azure lifecycle management
*/
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java
index 15ed0c882894..7fbdd123f2cf 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata;
import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Volume group properties. */
@Fluent
public final class VolumeGroupProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupProperties.class);
-
/*
* Azure lifecycle management
*/
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 d0cb6d5013d2..3ab408564172 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
@@ -10,6 +10,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.AvsDataStore;
import com.azure.resourcemanager.netapp.models.EnableSubvolumes;
+import com.azure.resourcemanager.netapp.models.EncryptionKeySource;
import com.azure.resourcemanager.netapp.models.NetworkFeatures;
import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs;
import com.azure.resourcemanager.netapp.models.SecurityStyle;
@@ -17,7 +18,6 @@
import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection;
import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy;
import com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -25,14 +25,18 @@
/** Volume resource. */
@Fluent
public final class VolumeInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeInner.class);
-
/*
* A unique read-only string that changes whenever the resource is updated.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
+ /*
+ * Availability Zone
+ */
+ @JsonProperty(value = "zones")
+ private List zones;
+
/*
* Volume properties
*/
@@ -40,7 +44,8 @@ public final class VolumeInner extends Resource {
private VolumeProperties innerProperties = new VolumeProperties();
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -54,6 +59,26 @@ public String etag() {
return this.etag;
}
+ /**
+ * Get the zones property: Availability Zone.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: Availability Zone.
+ *
+ * @param zones the zones value to set.
+ * @return the VolumeInner object itself.
+ */
+ public VolumeInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
/**
* Get the innerProperties property: Volume properties.
*
@@ -64,7 +89,7 @@ private VolumeProperties innerProperties() {
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -579,21 +604,23 @@ public VolumeInner withThroughputMibps(Float throughputMibps) {
}
/**
- * Get the encryptionKeySource property: Encryption Key Source. Possible values are: 'Microsoft.NetApp'.
+ * Get the encryptionKeySource property: Source of key used to encrypt data in volume. Possible values
+ * (case-insensitive) are: 'Microsoft.NetApp'.
*
* @return the encryptionKeySource value.
*/
- public String encryptionKeySource() {
+ public EncryptionKeySource encryptionKeySource() {
return this.innerProperties() == null ? null : this.innerProperties().encryptionKeySource();
}
/**
- * Set the encryptionKeySource property: Encryption Key Source. Possible values are: 'Microsoft.NetApp'.
+ * Set the encryptionKeySource property: Source of key used to encrypt data in volume. Possible values
+ * (case-insensitive) are: 'Microsoft.NetApp'.
*
* @param encryptionKeySource the encryptionKeySource value to set.
* @return the VolumeInner object itself.
*/
- public VolumeInner withEncryptionKeySource(String encryptionKeySource) {
+ public VolumeInner withEncryptionKeySource(EncryptionKeySource encryptionKeySource) {
if (this.innerProperties() == null) {
this.innerProperties = new VolumeProperties();
}
@@ -911,6 +938,16 @@ public VolumeInner withVolumeSpecName(String volumeSpecName) {
return this;
}
+ /**
+ * Get the encrypted property: Specifies if the volume is encrypted or not. Only available on volumes created or
+ * updated after 2022-01-01.
+ *
+ * @return the encrypted value.
+ */
+ public Boolean encrypted() {
+ return this.innerProperties() == null ? null : this.innerProperties().encrypted();
+ }
+
/**
* Get the placementRules property: Volume placement rules Application specific placement rules for the particular
* volume.
@@ -966,11 +1003,13 @@ public VolumeInner withEnableSubvolumes(EnableSubvolumes enableSubvolumes) {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model VolumeInner"));
} else {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(VolumeInner.class);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java
index 3b7b5aad7082..9d29ce42ac83 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.ServiceLevel;
import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection;
import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Patchable volume properties. */
@Fluent
public final class VolumePatchProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePatchProperties.class);
-
/*
* serviceLevel The service level of the file system
*/
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 d3d03fc75db7..0e12e842cc17 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
@@ -8,6 +8,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.AvsDataStore;
import com.azure.resourcemanager.netapp.models.EnableSubvolumes;
+import com.azure.resourcemanager.netapp.models.EncryptionKeySource;
import com.azure.resourcemanager.netapp.models.NetworkFeatures;
import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs;
import com.azure.resourcemanager.netapp.models.SecurityStyle;
@@ -15,15 +16,12 @@
import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection;
import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy;
import com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Volume properties. */
@Fluent
public final class VolumeProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeProperties.class);
-
/*
* FileSystem ID Unique FileSystem Identifier.
*/
@@ -188,10 +186,11 @@ public final class VolumeProperties {
private Float throughputMibps;
/*
- * Encryption Key Source. Possible values are: 'Microsoft.NetApp'
+ * Source of key used to encrypt data in volume. Possible values
+ * (case-insensitive) are: 'Microsoft.NetApp'
*/
@JsonProperty(value = "encryptionKeySource")
- private String encryptionKeySource;
+ private EncryptionKeySource encryptionKeySource;
/*
* Specifies whether LDAP is enabled or not for a given NFS volume.
@@ -298,6 +297,13 @@ public final class VolumeProperties {
@JsonProperty(value = "volumeSpecName")
private String volumeSpecName;
+ /*
+ * Specifies if the volume is encrypted or not. Only available on volumes
+ * created or updated after 2022-01-01.
+ */
+ @JsonProperty(value = "encrypted", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean encrypted;
+
/*
* Volume placement rules Application specific placement rules for the
* particular volume
@@ -750,21 +756,23 @@ public VolumeProperties withThroughputMibps(Float throughputMibps) {
}
/**
- * Get the encryptionKeySource property: Encryption Key Source. Possible values are: 'Microsoft.NetApp'.
+ * Get the encryptionKeySource property: Source of key used to encrypt data in volume. Possible values
+ * (case-insensitive) are: 'Microsoft.NetApp'.
*
* @return the encryptionKeySource value.
*/
- public String encryptionKeySource() {
+ public EncryptionKeySource encryptionKeySource() {
return this.encryptionKeySource;
}
/**
- * Set the encryptionKeySource property: Encryption Key Source. Possible values are: 'Microsoft.NetApp'.
+ * Set the encryptionKeySource property: Source of key used to encrypt data in volume. Possible values
+ * (case-insensitive) are: 'Microsoft.NetApp'.
*
* @param encryptionKeySource the encryptionKeySource value to set.
* @return the VolumeProperties object itself.
*/
- public VolumeProperties withEncryptionKeySource(String encryptionKeySource) {
+ public VolumeProperties withEncryptionKeySource(EncryptionKeySource encryptionKeySource) {
this.encryptionKeySource = encryptionKeySource;
return this;
}
@@ -1046,6 +1054,16 @@ public VolumeProperties withVolumeSpecName(String volumeSpecName) {
return this;
}
+ /**
+ * Get the encrypted property: Specifies if the volume is encrypted or not. Only available on volumes created or
+ * updated after 2022-01-01.
+ *
+ * @return the encrypted value.
+ */
+ public Boolean encrypted() {
+ return this.encrypted;
+ }
+
/**
* Get the placementRules property: Volume placement rules Application specific placement rules for the particular
* volume.
@@ -1095,7 +1113,7 @@ public VolumeProperties withEnableSubvolumes(EnableSubvolumes enableSubvolumes)
*/
public void validate() {
if (creationToken() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property creationToken in model VolumeProperties"));
}
@@ -1103,7 +1121,7 @@ public void validate() {
exportPolicy().validate();
}
if (subnetId() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property subnetId in model VolumeProperties"));
}
@@ -1117,4 +1135,6 @@ public void validate() {
placementRules().forEach(e -> e.validate());
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(VolumeProperties.class);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java
new file mode 100644
index 000000000000..a23a8f04f1a5
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java
@@ -0,0 +1,155 @@
+// Copyright (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.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.netapp.models.ProvisioningState;
+import com.azure.resourcemanager.netapp.models.Type;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Quota Rule of a Volume. */
+@Fluent
+public final class VolumeQuotaRuleInner extends Resource {
+ /*
+ * Volume Quota Rule Properties
+ */
+ @JsonProperty(value = "properties")
+ private VolumeQuotaRulesProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Volume Quota Rule Properties.
+ *
+ * @return the innerProperties value.
+ */
+ private VolumeQuotaRulesProperties 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;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public VolumeQuotaRuleInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public VolumeQuotaRuleInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the quotaSizeInKiBs property: Size of quota.
+ *
+ * @return the quotaSizeInKiBs value.
+ */
+ public Long quotaSizeInKiBs() {
+ return this.innerProperties() == null ? null : this.innerProperties().quotaSizeInKiBs();
+ }
+
+ /**
+ * Set the quotaSizeInKiBs property: Size of quota.
+ *
+ * @param quotaSizeInKiBs the quotaSizeInKiBs value to set.
+ * @return the VolumeQuotaRuleInner object itself.
+ */
+ public VolumeQuotaRuleInner withQuotaSizeInKiBs(Long quotaSizeInKiBs) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeQuotaRulesProperties();
+ }
+ this.innerProperties().withQuotaSizeInKiBs(quotaSizeInKiBs);
+ return this;
+ }
+
+ /**
+ * Get the quotaType property: quotaType Type of quota.
+ *
+ * @return the quotaType value.
+ */
+ public Type quotaType() {
+ return this.innerProperties() == null ? null : this.innerProperties().quotaType();
+ }
+
+ /**
+ * Set the quotaType property: quotaType Type of quota.
+ *
+ * @param quotaType the quotaType value to set.
+ * @return the VolumeQuotaRuleInner object itself.
+ */
+ public VolumeQuotaRuleInner withQuotaType(Type quotaType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeQuotaRulesProperties();
+ }
+ this.innerProperties().withQuotaType(quotaType);
+ return this;
+ }
+
+ /**
+ * Get the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found
+ * by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount
+ * where name='user-name' get sid>.
+ *
+ * @return the quotaTarget value.
+ */
+ public String quotaTarget() {
+ return this.innerProperties() == null ? null : this.innerProperties().quotaTarget();
+ }
+
+ /**
+ * Set the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found
+ * by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount
+ * where name='user-name' get sid>.
+ *
+ * @param quotaTarget the quotaTarget value to set.
+ * @return the VolumeQuotaRuleInner object itself.
+ */
+ public VolumeQuotaRuleInner withQuotaTarget(String quotaTarget) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VolumeQuotaRulesProperties();
+ }
+ this.innerProperties().withQuotaTarget(quotaTarget);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java
new file mode 100644
index 000000000000..d77294e346fa
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java
@@ -0,0 +1,123 @@
+// Copyright (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.resourcemanager.netapp.models.ProvisioningState;
+import com.azure.resourcemanager.netapp.models.Type;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Volume Quota Rule properties. */
+@Fluent
+public final class VolumeQuotaRulesProperties {
+ /*
+ * Gets the status of the VolumeQuotaRule at the time the operation was
+ * called.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Size of quota
+ */
+ @JsonProperty(value = "quotaSizeInKiBs")
+ private Long quotaSizeInKiBs;
+
+ /*
+ * quotaType Type of quota
+ */
+ @JsonProperty(value = "quotaType")
+ private Type quotaType;
+
+ /*
+ * UserID/GroupID/SID based on the quota target type. UserID and groupID
+ * can be found by running ‘id’ or ‘getent’ command for the user or group
+ * and SID can be found by running
+ */
+ @JsonProperty(value = "quotaTarget")
+ private String quotaTarget;
+
+ /**
+ * Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the quotaSizeInKiBs property: Size of quota.
+ *
+ * @return the quotaSizeInKiBs value.
+ */
+ public Long quotaSizeInKiBs() {
+ return this.quotaSizeInKiBs;
+ }
+
+ /**
+ * Set the quotaSizeInKiBs property: Size of quota.
+ *
+ * @param quotaSizeInKiBs the quotaSizeInKiBs value to set.
+ * @return the VolumeQuotaRulesProperties object itself.
+ */
+ public VolumeQuotaRulesProperties withQuotaSizeInKiBs(Long quotaSizeInKiBs) {
+ this.quotaSizeInKiBs = quotaSizeInKiBs;
+ return this;
+ }
+
+ /**
+ * Get the quotaType property: quotaType Type of quota.
+ *
+ * @return the quotaType value.
+ */
+ public Type quotaType() {
+ return this.quotaType;
+ }
+
+ /**
+ * Set the quotaType property: quotaType Type of quota.
+ *
+ * @param quotaType the quotaType value to set.
+ * @return the VolumeQuotaRulesProperties object itself.
+ */
+ public VolumeQuotaRulesProperties withQuotaType(Type quotaType) {
+ this.quotaType = quotaType;
+ return this;
+ }
+
+ /**
+ * Get the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found
+ * by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount
+ * where name='user-name' get sid>.
+ *
+ * @return the quotaTarget value.
+ */
+ public String quotaTarget() {
+ return this.quotaTarget;
+ }
+
+ /**
+ * Set the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found
+ * by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount
+ * where name='user-name' get sid>.
+ *
+ * @param quotaTarget the quotaTarget value to set.
+ * @return the VolumeQuotaRulesProperties object itself.
+ */
+ public VolumeQuotaRulesProperties withQuotaTarget(String quotaTarget) {
+ this.quotaTarget = quotaTarget;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java
index 88da32b3b159..b9a6053fc7e5 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java
@@ -27,7 +27,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.netapp.fluent.AccountBackupsClient;
@@ -39,8 +38,6 @@
/** An instance of this class provides access to all the operations defined in AccountBackupsClient. */
public final class AccountBackupsClientImpl implements AccountBackupsClient {
- private final ClientLogger logger = new ClientLogger(AccountBackupsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final AccountBackupsService service;
@@ -395,14 +392,7 @@ private Mono> getWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroupName, String accountName, String backupName) {
return getWithResponseAsync(resourceGroupName, accountName, backupName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java
index bb26b306532e..bc060d9d9ff8 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
import com.azure.resourcemanager.netapp.models.AccountBackups;
import com.azure.resourcemanager.netapp.models.Backup;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class AccountBackupsImpl implements AccountBackups {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AccountBackupsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(AccountBackupsImpl.class);
private final AccountBackupsClient innerClient;
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java
index 796f3dcd9fea..eebe4f4794e8 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java
@@ -30,7 +30,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.netapp.fluent.AccountsClient;
@@ -43,8 +42,6 @@
/** An instance of this class provides access to all the operations defined in AccountsClient. */
public final class AccountsClientImpl implements AccountsClient {
- private final ClientLogger logger = new ClientLogger(AccountsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final AccountsService service;
@@ -589,14 +586,7 @@ private Mono> getByResourceGroupWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) {
return getByResourceGroupWithResponseAsync(resourceGroupName, accountName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java
index 6958ee3434ac..f697fea7b9c9 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner;
import com.azure.resourcemanager.netapp.models.Accounts;
import com.azure.resourcemanager.netapp.models.NetAppAccount;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class AccountsImpl implements Accounts {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AccountsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(AccountsImpl.class);
private final AccountsClient innerClient;
@@ -83,7 +82,7 @@ public void delete(String resourceGroupName, String accountName, Context context
public NetAppAccount getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -91,7 +90,7 @@ public NetAppAccount getById(String id) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -103,7 +102,7 @@ public NetAppAccount getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -111,7 +110,7 @@ public Response getByIdWithResponse(String id, Context context) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -123,7 +122,7 @@ public Response getByIdWithResponse(String id, Context context) {
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -131,7 +130,7 @@ public void deleteById(String id) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -143,7 +142,7 @@ public void deleteById(String id) {
public void deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -151,7 +150,7 @@ public void deleteByIdWithResponse(String id, Context context) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
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 3e7f48717f2f..43aa2e6dc5a3 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
@@ -78,6 +78,10 @@ public String regionName() {
return this.location();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public BackupInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java
index 5d4a8d578ec3..7f728ffda875 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java
@@ -30,7 +30,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient;
@@ -43,8 +42,6 @@
/** An instance of this class provides access to all the operations defined in BackupPoliciesClient. */
public final class BackupPoliciesClientImpl implements BackupPoliciesClient {
- private final ClientLogger logger = new ClientLogger(BackupPoliciesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final BackupPoliciesService service;
@@ -433,14 +430,7 @@ private Mono> getWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroupName, String accountName, String backupPolicyName) {
return getWithResponseAsync(resourceGroupName, accountName, backupPolicyName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java
index fd0b0279c868..8ed1aa144eee 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner;
import com.azure.resourcemanager.netapp.models.BackupPolicies;
import com.azure.resourcemanager.netapp.models.BackupPolicy;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class BackupPoliciesImpl implements BackupPolicies {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPoliciesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(BackupPoliciesImpl.class);
private final BackupPoliciesClient innerClient;
@@ -73,7 +72,7 @@ public void delete(String resourceGroupName, String accountName, String backupPo
public BackupPolicy getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -81,7 +80,7 @@ public BackupPolicy getById(String id) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -89,7 +88,7 @@ public BackupPolicy getById(String id) {
}
String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies");
if (backupPolicyName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -101,7 +100,7 @@ public BackupPolicy getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -109,7 +108,7 @@ public Response getByIdWithResponse(String id, Context context) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -117,7 +116,7 @@ public Response getByIdWithResponse(String id, Context context) {
}
String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies");
if (backupPolicyName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -129,7 +128,7 @@ public Response getByIdWithResponse(String id, Context context) {
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -137,7 +136,7 @@ public void deleteById(String id) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -145,7 +144,7 @@ public void deleteById(String id) {
}
String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies");
if (backupPolicyName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -157,7 +156,7 @@ public void deleteById(String id) {
public void deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -165,7 +164,7 @@ public void deleteByIdWithResponse(String id, Context context) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -173,7 +172,7 @@ public void deleteByIdWithResponse(String id, Context context) {
}
String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies");
if (backupPolicyName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java
index db809d662673..630296dc4031 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java
@@ -98,6 +98,10 @@ public String regionName() {
return this.location();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public BackupPolicyInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java
index 9b7178c643d7..f60d7cf8972a 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java
@@ -30,7 +30,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.netapp.fluent.BackupsClient;
@@ -45,8 +44,6 @@
/** An instance of this class provides access to all the operations defined in BackupsClient. */
public final class BackupsClientImpl implements BackupsClient {
- private final ClientLogger logger = new ClientLogger(BackupsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final BackupsService service;
@@ -327,14 +324,7 @@ private Mono> getStatusWithResponseAsync(
private Mono getStatusAsync(
String resourceGroupName, String accountName, String poolName, String volumeName) {
return getStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -506,14 +496,7 @@ private Mono> getVolumeRestoreStatusWithResponseAsy
private Mono getVolumeRestoreStatusAsync(
String resourceGroupName, String accountName, String poolName, String volumeName) {
return getVolumeRestoreStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -897,14 +880,7 @@ private Mono> getWithResponseAsync(
private Mono getAsync(
String resourceGroupName, String accountName, String poolName, String volumeName, String backupName) {
return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, backupName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java
index e9271be237e4..1e170be3bf53 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java
@@ -17,10 +17,9 @@
import com.azure.resourcemanager.netapp.models.BackupStatus;
import com.azure.resourcemanager.netapp.models.Backups;
import com.azure.resourcemanager.netapp.models.RestoreStatus;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class BackupsImpl implements Backups {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(BackupsImpl.class);
private final BackupsClient innerClient;
@@ -147,7 +146,7 @@ public void delete(
public Backup getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -155,7 +154,7 @@ public Backup getById(String id) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -163,21 +162,21 @@ public Backup getById(String id) {
}
String poolName = Utils.getValueFromIdByName(id, "capacityPools");
if (poolName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id)));
}
String volumeName = Utils.getValueFromIdByName(id, "volumes");
if (volumeName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id)));
}
String backupName = Utils.getValueFromIdByName(id, "backups");
if (backupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'backups'.", id)));
@@ -190,7 +189,7 @@ public Backup getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -198,7 +197,7 @@ public Response getByIdWithResponse(String id, Context context) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -206,21 +205,21 @@ public Response getByIdWithResponse(String id, Context context) {
}
String poolName = Utils.getValueFromIdByName(id, "capacityPools");
if (poolName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id)));
}
String volumeName = Utils.getValueFromIdByName(id, "volumes");
if (volumeName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id)));
}
String backupName = Utils.getValueFromIdByName(id, "backups");
if (backupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'backups'.", id)));
@@ -231,7 +230,7 @@ public Response getByIdWithResponse(String id, Context context) {
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -239,7 +238,7 @@ public void deleteById(String id) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -247,21 +246,21 @@ public void deleteById(String id) {
}
String poolName = Utils.getValueFromIdByName(id, "capacityPools");
if (poolName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id)));
}
String volumeName = Utils.getValueFromIdByName(id, "volumes");
if (volumeName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id)));
}
String backupName = Utils.getValueFromIdByName(id, "backups");
if (backupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'backups'.", id)));
@@ -272,7 +271,7 @@ public void deleteById(String id) {
public void deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -280,7 +279,7 @@ public void deleteByIdWithResponse(String id, Context context) {
}
String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -288,21 +287,21 @@ public void deleteByIdWithResponse(String id, Context context) {
}
String poolName = Utils.getValueFromIdByName(id, "capacityPools");
if (poolName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id)));
}
String volumeName = Utils.getValueFromIdByName(id, "volumes");
if (volumeName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id)));
}
String backupName = Utils.getValueFromIdByName(id, "backups");
if (backupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'backups'.", id)));
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 dedbbcd6ce3a..054afca3a0af 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
@@ -98,6 +98,10 @@ public String regionName() {
return this.location();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public CapacityPoolInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListReplicationsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListReplicationsImpl.java
new file mode 100644
index 000000000000..3fb827a15a16
--- /dev/null
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListReplicationsImpl.java
@@ -0,0 +1,40 @@
+// Copyright (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.ListReplicationsInner;
+import com.azure.resourcemanager.netapp.models.ListReplications;
+import com.azure.resourcemanager.netapp.models.Replication;
+import java.util.Collections;
+import java.util.List;
+
+public final class ListReplicationsImpl implements ListReplications {
+ private ListReplicationsInner innerObject;
+
+ private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
+
+ ListReplicationsImpl(
+ ListReplicationsInner 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 ListReplicationsInner 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 97599b9591a3..fc6c4bcff808 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
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.netapp.implementation;
import com.azure.core.management.Region;
-import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner;
import com.azure.resourcemanager.netapp.models.AccountEncryption;
@@ -50,10 +49,6 @@ public String etag() {
return this.innerModel().etag();
}
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
public String provisioningState() {
return this.innerModel().provisioningState();
}
@@ -79,6 +74,10 @@ public String regionName() {
return this.location();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public NetAppAccountInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java
index 15875b653aa3..0e16a59a86ca 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java
@@ -7,7 +7,6 @@
import com.azure.core.annotation.ServiceClientBuilder;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
-import com.azure.core.http.policy.CookiePolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.AzureEnvironment;
@@ -70,34 +69,34 @@ public NetAppManagementClientBuilder environment(AzureEnvironment environment) {
}
/*
- * The default poll interval for long-running operation
+ * The HTTP pipeline to send requests through
*/
- private Duration defaultPollInterval;
+ private HttpPipeline pipeline;
/**
- * Sets The default poll interval for long-running operation.
+ * Sets The HTTP pipeline to send requests through.
*
- * @param defaultPollInterval the defaultPollInterval value.
+ * @param pipeline the pipeline value.
* @return the NetAppManagementClientBuilder.
*/
- public NetAppManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = defaultPollInterval;
+ public NetAppManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
return this;
}
/*
- * The HTTP pipeline to send requests through
+ * The default poll interval for long-running operation
*/
- private HttpPipeline pipeline;
+ private Duration defaultPollInterval;
/**
- * Sets The HTTP pipeline to send requests through.
+ * Sets The default poll interval for long-running operation.
*
- * @param pipeline the pipeline value.
+ * @param defaultPollInterval the defaultPollInterval value.
* @return the NetAppManagementClientBuilder.
*/
- public NetAppManagementClientBuilder pipeline(HttpPipeline pipeline) {
- this.pipeline = pipeline;
+ public NetAppManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -129,15 +128,12 @@ public NetAppManagementClientImpl buildClient() {
if (environment == null) {
this.environment = AzureEnvironment.AZURE;
}
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
if (defaultPollInterval == null) {
this.defaultPollInterval = Duration.ofSeconds(30);
}
- if (pipeline == null) {
- this.pipeline =
- new HttpPipelineBuilder()
- .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
- .build();
- }
if (serializerAdapter == null) {
this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
}
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 0f7cc459c3cd..4e4cbe29c3a1 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
@@ -15,6 +15,7 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.AsyncPollResponse;
import com.azure.core.util.polling.LongRunningOperationStatus;
@@ -35,6 +36,7 @@
import com.azure.resourcemanager.netapp.fluent.SubvolumesClient;
import com.azure.resourcemanager.netapp.fluent.VaultsClient;
import com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient;
+import com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient;
import com.azure.resourcemanager.netapp.fluent.VolumesClient;
import java.io.IOException;
import java.lang.reflect.Type;
@@ -42,15 +44,12 @@
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
-import java.util.Map;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/** Initializes a new instance of the NetAppManagementClientImpl type. */
@ServiceClient(builder = NetAppManagementClientBuilder.class)
public final class NetAppManagementClientImpl implements NetAppManagementClient {
- private final ClientLogger logger = new ClientLogger(NetAppManagementClientImpl.class);
-
/**
* Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of
* the URI for every service call.
@@ -259,6 +258,18 @@ public BackupPoliciesClient getBackupPolicies() {
return this.backupPolicies;
}
+ /** The VolumeQuotaRulesClient object to access its operations. */
+ private final VolumeQuotaRulesClient volumeQuotaRules;
+
+ /**
+ * Gets the VolumeQuotaRulesClient object to access its operations.
+ *
+ * @return the VolumeQuotaRulesClient object.
+ */
+ public VolumeQuotaRulesClient getVolumeQuotaRules() {
+ return this.volumeQuotaRules;
+ }
+
/** The VaultsClient object to access its operations. */
private final VaultsClient vaults;
@@ -318,7 +329,7 @@ public SubvolumesClient getSubvolumes() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-10-01";
+ this.apiVersion = "2022-01-01";
this.operations = new OperationsClientImpl(this);
this.netAppResources = new NetAppResourcesClientImpl(this);
this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this);
@@ -330,6 +341,7 @@ public SubvolumesClient getSubvolumes() {
this.backups = new BackupsClientImpl(this);
this.accountBackups = new AccountBackupsClientImpl(this);
this.backupPolicies = new BackupPoliciesClientImpl(this);
+ this.volumeQuotaRules = new VolumeQuotaRulesClientImpl(this);
this.vaults = new VaultsClientImpl(this);
this.volumeGroups = new VolumeGroupsClientImpl(this);
this.subvolumes = new SubvolumesClientImpl(this);
@@ -351,10 +363,7 @@ public Context getContext() {
* @return the merged context.
*/
public Context mergeContext(Context context) {
- for (Map.Entry