diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 69ed367d1cd0..a2fdd5617fb1 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -296,7 +296,7 @@ com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.1.0;1.2.0-beta.6
com.azure.resourcemanager:azure-resourcemanager-healthbot;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-confluent;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-digitaltwins;1.2.0;1.3.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-netapp;1.0.0;1.1.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-netapp;1.0.0;1.1.0
com.azure.resourcemanager:azure-resourcemanager-storagecache;1.0.0-beta.10;1.0.0-beta.11
com.azure.resourcemanager:azure-resourcemanager-redisenterprise;2.0.0;2.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-hybridkubernetes;1.0.0-beta.3;1.0.0-beta.4
diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
index c509152f1bd7..fee7e6c77a66 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
@@ -1,14 +1,14 @@
# Release History
-## 1.1.0-beta.2 (Unreleased)
+## 1.1.0 (2024-03-20)
-### Features Added
+- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2023-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.VolumeGroupMetadata` was modified
-### Other Changes
+* Removed `deploymentSpecId` property as it's non-functional in service backend.
## 1.1.0-beta.1 (2023-12-19)
diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md
index bdd44a819432..e391122fca3f 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/README.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager NetAppFiles client library for Java.
-This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2023-05. 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-2023-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-netapp
- 1.1.0-beta.1
+ 1.1.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
index c1066e3f2041..013ef157b658 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
+++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
@@ -1,12 +1,6 @@
# Code snippets and samples
-## AccountBackups
-
-- [Delete](#accountbackups_delete)
-- [Get](#accountbackups_get)
-- [ListByNetAppAccount](#accountbackups_listbynetappaccount)
-
## Accounts
- [CreateOrUpdate](#accounts_createorupdate)
@@ -14,7 +8,6 @@
- [GetByResourceGroup](#accounts_getbyresourcegroup)
- [List](#accounts_list)
- [ListByResourceGroup](#accounts_listbyresourcegroup)
-- [MigrateEncryptionKey](#accounts_migrateencryptionkey)
- [RenewCredentials](#accounts_renewcredentials)
- [Update](#accounts_update)
@@ -26,35 +19,9 @@
- [List](#backuppolicies_list)
- [Update](#backuppolicies_update)
-## BackupVaults
-
-- [CreateOrUpdate](#backupvaults_createorupdate)
-- [Delete](#backupvaults_delete)
-- [Get](#backupvaults_get)
-- [ListByNetAppAccount](#backupvaults_listbynetappaccount)
-- [Update](#backupvaults_update)
-
## Backups
-- [Create](#backups_create)
-- [Delete](#backups_delete)
-- [Get](#backups_get)
-- [GetLatestStatus](#backups_getlateststatus)
- [GetVolumeRestoreStatus](#backups_getvolumerestorestatus)
-- [ListByVault](#backups_listbyvault)
-- [Update](#backups_update)
-
-## BackupsUnderAccount
-
-- [MigrateBackups](#backupsunderaccount_migratebackups)
-
-## BackupsUnderBackupVault
-
-- [RestoreFiles](#backupsunderbackupvault_restorefiles)
-
-## BackupsUnderVolume
-
-- [MigrateBackups](#backupsundervolume_migratebackups)
## NetAppResource
@@ -70,11 +37,6 @@
- [Get](#netappresourcequotalimits_get)
- [List](#netappresourcequotalimits_list)
-## NetAppResourceRegionInfos
-
-- [Get](#netappresourceregioninfos_get)
-- [List](#netappresourceregioninfos_list)
-
## Operations
- [List](#operations_list)
@@ -152,71 +114,7 @@
- [ResyncReplication](#volumes_resyncreplication)
- [Revert](#volumes_revert)
- [RevertRelocation](#volumes_revertrelocation)
-- [SplitCloneFromParent](#volumes_splitclonefromparent)
- [Update](#volumes_update)
-### AccountBackups_Delete
-
-```java
-/**
- * Samples for AccountBackups Delete.
- */
-public final class AccountBackupsDeleteSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json
- */
- /**
- * Sample code: AccountBackups_Delete.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void accountBackupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.accountBackups().delete("resourceGroup", "accountName", "backupName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AccountBackups_Get
-
-```java
-/**
- * Samples for AccountBackups Get.
- */
-public final class AccountBackupsGetSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json
- */
- /**
- * Sample code: AccountBackups_Get.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void accountBackupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.accountBackups().getWithResponse("myRG", "account1", "backup1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AccountBackups_ListByNetAppAccount
-
-```java
-/**
- * Samples for AccountBackups ListByNetAppAccount.
- */
-public final class AccountBackupsListByNetAppAccountSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json
- */
- /**
- * Sample code: AccountBackups_List.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void accountBackupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.accountBackups().listByNetAppAccount("myRG", "account1", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Accounts_CreateOrUpdate
```java
@@ -228,7 +126,8 @@ import java.util.Arrays;
*/
public final class AccountsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json
*/
/**
* Sample code: Accounts_CreateOrUpdate.
@@ -240,15 +139,22 @@ public final class AccountsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdateAD.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json
*/
/**
* Sample code: Accounts_CreateOrUpdateWithActiveDirectory.
*
* @param manager Entry point to NetAppFilesManager.
*/
- public static void accountsCreateOrUpdateWithActiveDirectory(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.accounts().define("account1").withRegion("eastus").withExistingResourceGroup("myRG").withActiveDirectories(Arrays.asList(new ActiveDirectory().withUsername("ad_user_name").withPassword("fakeTokenPlaceholder").withDomain("10.10.10.3").withDns("10.10.10.3").withSmbServerName("SMBServer").withOrganizationalUnit("OU=Engineering").withSite("SiteName").withAesEncryption(true).withLdapSigning(false).withLdapOverTls(false))).create();
+ public static void
+ accountsCreateOrUpdateWithActiveDirectory(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
+ manager.accounts().define("account1").withRegion("eastus").withExistingResourceGroup("myRG")
+ .withActiveDirectories(Arrays.asList(new ActiveDirectory().withUsername("ad_user_name")
+ .withPassword("fakeTokenPlaceholder").withDomain("10.10.10.3").withDns("10.10.10.3")
+ .withSmbServerName("SMBServer").withOrganizationalUnit("OU=Engineering").withSite("SiteName")
+ .withAesEncryption(true).withLdapSigning(false).withLdapOverTls(false)))
+ .create();
}
}
```
@@ -261,7 +167,8 @@ public final class AccountsCreateOrUpdateSamples {
*/
public final class AccountsDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json
*/
/**
* Sample code: Accounts_Delete.
@@ -282,7 +189,8 @@ public final class AccountsDeleteSamples {
*/
public final class AccountsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json
*/
/**
* Sample code: Accounts_Get.
@@ -303,7 +211,8 @@ public final class AccountsGetByResourceGroupSamples {
*/
public final class AccountsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json
*/
/**
* Sample code: Accounts_List.
@@ -324,7 +233,8 @@ public final class AccountsListSamples {
*/
public final class AccountsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json
*/
/**
* Sample code: Accounts_List.
@@ -337,29 +247,6 @@ public final class AccountsListByResourceGroupSamples {
}
```
-### Accounts_MigrateEncryptionKey
-
-```java
-import com.azure.resourcemanager.netapp.models.EncryptionMigrationRequest;
-
-/**
- * Samples for Accounts MigrateEncryptionKey.
- */
-public final class AccountsMigrateEncryptionKeySamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json
- */
- /**
- * Sample code: Accounts_MigrateEncryptionKey.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void accountsMigrateEncryptionKey(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.accounts().migrateEncryptionKey("myRG", "account1", new EncryptionMigrationRequest().withVirtualNetworkId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1").withPrivateEndpointId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"), com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Accounts_RenewCredentials
```java
@@ -368,7 +255,8 @@ public final class AccountsMigrateEncryptionKeySamples {
*/
public final class AccountsRenewCredentialsSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json
*/
/**
* Sample code: Accounts_RenewCredentials.
@@ -393,7 +281,8 @@ import java.util.Map;
*/
public final class AccountsUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json
*/
/**
* Sample code: Accounts_Update.
@@ -401,7 +290,8 @@ public final class AccountsUpdateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void accountsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- NetAppAccount resource = manager.accounts().getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE).getValue();
+ NetAppAccount resource = manager.accounts()
+ .getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE).getValue();
resource.update().withTags(mapOf("Tag1", "Value1")).apply();
}
@@ -427,7 +317,8 @@ public final class AccountsUpdateSamples {
*/
public final class BackupPoliciesCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json
*/
/**
* Sample code: BackupPolicies_Create.
@@ -435,7 +326,9 @@ public final class BackupPoliciesCreateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backupPolicies().define("backupPolicyName").withRegion("westus").withExistingNetAppAccount("myRG", "account1").withDailyBackupsToKeep(10).withWeeklyBackupsToKeep(10).withMonthlyBackupsToKeep(10).withEnabled(true).create();
+ manager.backupPolicies().define("backupPolicyName").withRegion("westus")
+ .withExistingNetAppAccount("myRG", "account1").withDailyBackupsToKeep(10).withWeeklyBackupsToKeep(10)
+ .withMonthlyBackupsToKeep(10).withEnabled(true).create();
}
}
```
@@ -448,7 +341,8 @@ public final class BackupPoliciesCreateSamples {
*/
public final class BackupPoliciesDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json
*/
/**
* Sample code: Backups_Delete.
@@ -456,7 +350,8 @@ public final class BackupPoliciesDeleteSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backupPolicies().delete("resourceGroup", "accountName", "backupPolicyName", com.azure.core.util.Context.NONE);
+ manager.backupPolicies().delete("resourceGroup", "accountName", "backupPolicyName",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -469,7 +364,8 @@ public final class BackupPoliciesDeleteSamples {
*/
public final class BackupPoliciesGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json
*/
/**
* Sample code: Backups_Get.
@@ -477,7 +373,8 @@ public final class BackupPoliciesGetSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backupPolicies().getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE);
+ manager.backupPolicies().getWithResponse("myRG", "account1", "backupPolicyName",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -490,7 +387,8 @@ public final class BackupPoliciesGetSamples {
*/
public final class BackupPoliciesListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json
*/
/**
* Sample code: Backups_List.
@@ -513,7 +411,8 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy;
*/
public final class BackupPoliciesUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json
*/
/**
* Sample code: BackupPolicies_Update.
@@ -521,214 +420,10 @@ public final class BackupPoliciesUpdateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- BackupPolicy resource = manager.backupPolicies().getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE).getValue();
- resource.update().withDailyBackupsToKeep(5).withWeeklyBackupsToKeep(10).withMonthlyBackupsToKeep(10).withEnabled(false).apply();
- }
-}
-```
-
-### BackupVaults_CreateOrUpdate
-
-```java
-/**
- * Samples for BackupVaults CreateOrUpdate.
- */
-public final class BackupVaultsCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json
- */
- /**
- * Sample code: BackupVault_CreateOrUpdate.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupVaultCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backupVaults().define("backupVault1").withRegion("eastus").withExistingNetAppAccount("myRG", "account1").create();
- }
-}
-```
-
-### BackupVaults_Delete
-
-```java
-/**
- * Samples for BackupVaults Delete.
- */
-public final class BackupVaultsDeleteSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json
- */
- /**
- * Sample code: BackupVaults_Delete.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupVaultsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backupVaults().delete("resourceGroup", "account1", "backupVault1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BackupVaults_Get
-
-```java
-/**
- * Samples for BackupVaults Get.
- */
-public final class BackupVaultsGetSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json
- */
- /**
- * Sample code: BackupVaults_Get.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupVaultsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backupVaults().getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BackupVaults_ListByNetAppAccount
-
-```java
-/**
- * Samples for BackupVaults ListByNetAppAccount.
- */
-public final class BackupVaultsListByNetAppAccountSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json
- */
- /**
- * Sample code: BackupVaults_List.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupVaultsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backupVaults().listByNetAppAccount("myRG", "account1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BackupVaults_Update
-
-```java
-import com.azure.resourcemanager.netapp.models.BackupVault;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for BackupVaults Update.
- */
-public final class BackupVaultsUpdateSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json
- */
- /**
- * Sample code: BackupVaults_Update.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupVaultsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- BackupVault resource = manager.backupVaults().getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE).getValue();
- resource.update().withTags(mapOf("Tag1", "Value1")).apply();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
-```
-
-### Backups_Create
-
-```java
-/**
- * Samples for Backups Create.
- */
-public final class BackupsCreateSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json
- */
- /**
- * Sample code: BackupsUnderBackupVault_Create.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupsUnderBackupVaultCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backups().define("backup1").withExistingBackupVault("myRG", "account1", "backupVault1").withVolumeResourceId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1").withLabel("myLabel").create();
- }
-}
-```
-
-### Backups_Delete
-
-```java
-/**
- * Samples for Backups Delete.
- */
-public final class BackupsDeleteSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json
- */
- /**
- * Sample code: BackupsUnderBackupVault_Delete.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupsUnderBackupVaultDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backups().delete("resourceGroup", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Backups_Get
-
-```java
-/**
- * Samples for Backups Get.
- */
-public final class BackupsGetSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json
- */
- /**
- * Sample code: BackupsUnderBackupVault_Get.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupsUnderBackupVaultGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backups().getWithResponse("myRG", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Backups_GetLatestStatus
-
-```java
-/**
- * Samples for Backups GetLatestStatus.
- */
-public final class BackupsGetLatestStatusSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json
- */
- /**
- * Sample code: Volumes_BackupStatus.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void volumesBackupStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backups().getLatestStatusWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ BackupPolicy resource = manager.backupPolicies()
+ .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE).getValue();
+ resource.update().withDailyBackupsToKeep(5).withWeeklyBackupsToKeep(10).withMonthlyBackupsToKeep(10)
+ .withEnabled(false).apply();
}
}
```
@@ -741,7 +436,8 @@ public final class BackupsGetLatestStatusSamples {
*/
public final class BackupsGetVolumeRestoreStatusSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json
*/
/**
* Sample code: Volumes_RestoreStatus.
@@ -749,122 +445,8 @@ public final class BackupsGetVolumeRestoreStatusSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backups().getVolumeRestoreStatusWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Backups_ListByVault
-
-```java
-/**
- * Samples for Backups ListByVault.
- */
-public final class BackupsListByVaultSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json
- */
- /**
- * Sample code: Backups_List.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backups().listByVault("myRG", "account1", "backupVault1", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Backups_Update
-
-```java
-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/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json
- */
- /**
- * Sample code: BackupsUnderBackupVault_Update.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupsUnderBackupVaultUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- Backup resource = manager.backups().getWithResponse("myRG", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE).getValue();
- resource.update().apply();
- }
-}
-```
-
-### BackupsUnderAccount_MigrateBackups
-
-```java
-import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
-
-/**
- * Samples for BackupsUnderAccount MigrateBackups.
- */
-public final class BackupsUnderAccountMigrateBackupsSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json
- */
- /**
- * Sample code: BackupsUnderAccount_Migrate.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupsUnderAccountMigrate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backupsUnderAccounts().migrateBackups("myRG", "account1", new BackupsMigrationRequest().withBackupVaultId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"), com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BackupsUnderBackupVault_RestoreFiles
-
-```java
-import com.azure.resourcemanager.netapp.models.BackupRestoreFiles;
-import java.util.Arrays;
-
-/**
- * Samples for BackupsUnderBackupVault RestoreFiles.
- */
-public final class BackupsUnderBackupVaultRestoreFilesSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json
- */
- /**
- * Sample code: Backups_SingleFileRestore.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupsSingleFileRestore(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backupsUnderBackupVaults().restoreFiles("myRG", "account1", "backupVault1", "backup1", new BackupRestoreFiles().withFileList(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db")).withDestinationVolumeId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"), com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BackupsUnderVolume_MigrateBackups
-
-```java
-import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
-
-/**
- * Samples for BackupsUnderVolume MigrateBackups.
- */
-public final class BackupsUnderVolumeMigrateBackupsSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json
- */
- /**
- * Sample code: BackupsUnderVolume_Migrate.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void backupsUnderVolumeMigrate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.backupsUnderVolumes().migrateBackups("myRG", "account1", "pool1", "volume1", new BackupsMigrationRequest().withBackupVaultId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"), com.azure.core.util.Context.NONE);
+ manager.backups().getVolumeRestoreStatusWithResponse("myRG", "account1", "pool1", "volume1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -879,7 +461,8 @@ import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
*/
public final class NetAppResourceCheckFilePathAvailabilitySamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json
*/
/**
* Sample code: CheckFilePathAvailability.
@@ -887,7 +470,10 @@ public final class NetAppResourceCheckFilePathAvailabilitySamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources().checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest().withName("my-exact-filepth").withSubnetId("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), com.azure.core.util.Context.NONE);
+ manager.netAppResources().checkFilePathAvailabilityWithResponse("eastus",
+ new FilePathAvailabilityRequest().withName("my-exact-filepth").withSubnetId(
+ "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -897,14 +483,14 @@ public final class NetAppResourceCheckFilePathAvailabilitySamples {
```java
import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes;
import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
-import java.util.stream.Collectors;
/**
* Samples for NetAppResource CheckNameAvailability.
*/
public final class NetAppResourceCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json
*/
/**
* Sample code: CheckNameAvailability.
@@ -912,7 +498,10 @@ public final class NetAppResourceCheckNameAvailabilitySamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void checkNameAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources().checkNameAvailabilityWithResponse("eastus", new ResourceNameAvailabilityRequest().withName("accName").withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS).withResourceGroup("myRG"), com.azure.core.util.Context.NONE);
+ manager.netAppResources().checkNameAvailabilityWithResponse("eastus",
+ new ResourceNameAvailabilityRequest().withName("accName")
+ .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS).withResourceGroup("myRG"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -922,14 +511,14 @@ public final class NetAppResourceCheckNameAvailabilitySamples {
```java
import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes;
import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
-import java.util.stream.Collectors;
/**
* Samples for NetAppResource CheckQuotaAvailability.
*/
public final class NetAppResourceCheckQuotaAvailabilitySamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json
*/
/**
* Sample code: CheckQuotaAvailability.
@@ -937,7 +526,10 @@ public final class NetAppResourceCheckQuotaAvailabilitySamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void checkQuotaAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources().checkQuotaAvailabilityWithResponse("eastus", new QuotaAvailabilityRequest().withName("resource1").withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS).withResourceGroup("myRG"), com.azure.core.util.Context.NONE);
+ manager.netAppResources().checkQuotaAvailabilityWithResponse("eastus",
+ new QuotaAvailabilityRequest().withName("resource1")
+ .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS).withResourceGroup("myRG"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -952,7 +544,8 @@ import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest;
*/
public final class NetAppResourceQueryNetworkSiblingSetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json
*/
/**
* Sample code: NetworkSiblingSet_Query.
@@ -960,7 +553,10 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void networkSiblingSetQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources().queryNetworkSiblingSetWithResponse("eastus", new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333").withSubnetId("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), com.azure.core.util.Context.NONE);
+ manager.netAppResources().queryNetworkSiblingSetWithResponse("eastus", new QueryNetworkSiblingSetRequest()
+ .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333").withSubnetId(
+ "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -973,7 +569,8 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples {
*/
public final class NetAppResourceQueryRegionInfoSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json
*/
/**
* Sample code: RegionInfo_Query.
@@ -991,14 +588,14 @@ public final class NetAppResourceQueryRegionInfoSamples {
```java
import com.azure.resourcemanager.netapp.models.NetworkFeatures;
import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest;
-import java.util.stream.Collectors;
/**
* Samples for NetAppResource UpdateNetworkSiblingSet.
*/
public final class NetAppResourceUpdateNetworkSiblingSetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json
*/
/**
* Sample code: NetworkFeatures_Update.
@@ -1006,7 +603,12 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void networkFeaturesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResources().updateNetworkSiblingSet("eastus", new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333").withSubnetId("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet").withNetworkSiblingSetStateId("12345_44420.8001578125").withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE);
+ manager.netAppResources().updateNetworkSiblingSet("eastus", new UpdateNetworkSiblingSetRequest()
+ .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333")
+ .withSubnetId(
+ "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet")
+ .withNetworkSiblingSetStateId("12345_44420.8001578125").withNetworkFeatures(NetworkFeatures.STANDARD),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1019,7 +621,8 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples {
*/
public final class NetAppResourceQuotaLimitsGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json
*/
/**
* Sample code: QuotaLimits.
@@ -1027,7 +630,8 @@ public final class NetAppResourceQuotaLimitsGetSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceQuotaLimits().getWithResponse("eastus", "totalCoolAccessVolumesPerSubscription", com.azure.core.util.Context.NONE);
+ manager.netAppResourceQuotaLimits().getWithResponse("eastus", "totalCoolAccessVolumesPerSubscription",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1040,7 +644,8 @@ public final class NetAppResourceQuotaLimitsGetSamples {
*/
public final class NetAppResourceQuotaLimitsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json
*/
/**
* Sample code: QuotaLimits.
@@ -1053,48 +658,6 @@ public final class NetAppResourceQuotaLimitsListSamples {
}
```
-### NetAppResourceRegionInfos_Get
-
-```java
-/**
- * Samples for NetAppResourceRegionInfos Get.
- */
-public final class NetAppResourceRegionInfosGetSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json
- */
- /**
- * Sample code: RegionInfos_Get.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void regionInfosGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceRegionInfos().getWithResponse("eastus", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### NetAppResourceRegionInfos_List
-
-```java
-/**
- * Samples for NetAppResourceRegionInfos List.
- */
-public final class NetAppResourceRegionInfosListSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json
- */
- /**
- * Sample code: RegionInfos_List.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void regionInfosList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.netAppResourceRegionInfos().list("eastus", com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Operations_List
```java
@@ -1103,7 +666,8 @@ public final class NetAppResourceRegionInfosListSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json
*/
/**
* Sample code: OperationList.
@@ -1121,14 +685,14 @@ public final class OperationsListSamples {
```java
import com.azure.resourcemanager.netapp.models.QosType;
import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import java.util.stream.Collectors;
/**
* Samples for Pools CreateOrUpdate.
*/
public final class PoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json
*/
/**
* Sample code: Pools_CreateOrUpdate.
@@ -1136,7 +700,8 @@ public final class PoolsCreateOrUpdateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.pools().define("pool1").withRegion("eastus").withExistingNetAppAccount("myRG", "account1").withSize(4398046511104L).withServiceLevel(ServiceLevel.PREMIUM).withQosType(QosType.AUTO).create();
+ manager.pools().define("pool1").withRegion("eastus").withExistingNetAppAccount("myRG", "account1")
+ .withSize(4398046511104L).withServiceLevel(ServiceLevel.PREMIUM).withQosType(QosType.AUTO).create();
}
}
```
@@ -1149,7 +714,8 @@ public final class PoolsCreateOrUpdateSamples {
*/
public final class PoolsDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json
*/
/**
* Sample code: Pools_Delete.
@@ -1170,7 +736,8 @@ public final class PoolsDeleteSamples {
*/
public final class PoolsGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json
*/
/**
* Sample code: Pools_Get.
@@ -1191,7 +758,8 @@ public final class PoolsGetSamples {
*/
public final class PoolsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json
*/
/**
* Sample code: Pools_List.
@@ -1214,7 +782,8 @@ import com.azure.resourcemanager.netapp.models.CapacityPool;
*/
public final class PoolsUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json
*/
/**
* Sample code: Pools_Update.
@@ -1222,7 +791,8 @@ public final class PoolsUpdateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- CapacityPool resource = manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue();
+ CapacityPool resource
+ = manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue();
resource.update().apply();
}
}
@@ -1241,7 +811,8 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule;
*/
public final class SnapshotPoliciesCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json
*/
/**
* Sample code: SnapshotPolicies_Create.
@@ -1249,7 +820,15 @@ public final class SnapshotPoliciesCreateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshotPolicies().define("snapshotPolicyName").withRegion("eastus").withExistingNetAppAccount("myRG", "account1").withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)).withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)).withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45)).withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15)).withEnabled(true).create();
+ manager.snapshotPolicies().define("snapshotPolicyName").withRegion("eastus")
+ .withExistingNetAppAccount("myRG", "account1")
+ .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50))
+ .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30))
+ .withWeeklySchedule(
+ new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45))
+ .withMonthlySchedule(
+ new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15))
+ .withEnabled(true).create();
}
}
```
@@ -1262,7 +841,8 @@ public final class SnapshotPoliciesCreateSamples {
*/
public final class SnapshotPoliciesDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json
*/
/**
* Sample code: SnapshotPolicies_Delete.
@@ -1270,7 +850,8 @@ public final class SnapshotPoliciesDeleteSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshotPolicies().delete("resourceGroup", "accountName", "snapshotPolicyName", com.azure.core.util.Context.NONE);
+ manager.snapshotPolicies().delete("resourceGroup", "accountName", "snapshotPolicyName",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1283,7 +864,8 @@ public final class SnapshotPoliciesDeleteSamples {
*/
public final class SnapshotPoliciesGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json
*/
/**
* Sample code: SnapshotPolicies_Get.
@@ -1291,7 +873,8 @@ public final class SnapshotPoliciesGetSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshotPolicies().getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
+ manager.snapshotPolicies().getWithResponse("myRG", "account1", "snapshotPolicyName",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1304,7 +887,8 @@ public final class SnapshotPoliciesGetSamples {
*/
public final class SnapshotPoliciesListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json
*/
/**
* Sample code: SnapshotPolicies_List.
@@ -1325,7 +909,9 @@ public final class SnapshotPoliciesListSamples {
*/
public final class SnapshotPoliciesListVolumesSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.
+ * json
*/
/**
* Sample code: SnapshotPolicies_ListVolumes.
@@ -1333,7 +919,8 @@ public final class SnapshotPoliciesListVolumesSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotPoliciesListVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshotPolicies().listVolumesWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE);
+ manager.snapshotPolicies().listVolumesWithResponse("myRG", "account1", "snapshotPolicyName",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1352,7 +939,8 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule;
*/
public final class SnapshotPoliciesUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json
*/
/**
* Sample code: SnapshotPolicies_Update.
@@ -1360,8 +948,15 @@ public final class SnapshotPoliciesUpdateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- SnapshotPolicy resource = manager.snapshotPolicies().getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE).getValue();
- resource.update().withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)).withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)).withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45)).withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15)).withEnabled(true).apply();
+ SnapshotPolicy resource = manager.snapshotPolicies()
+ .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE).getValue();
+ resource.update().withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50))
+ .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30))
+ .withWeeklySchedule(
+ new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45))
+ .withMonthlySchedule(
+ new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15))
+ .withEnabled(true).apply();
}
}
```
@@ -1374,7 +969,8 @@ public final class SnapshotPoliciesUpdateSamples {
*/
public final class SnapshotsCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json
*/
/**
* Sample code: Snapshots_Create.
@@ -1382,7 +978,8 @@ public final class SnapshotsCreateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotsCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshots().define("snapshot1").withRegion("eastus").withExistingVolume("myRG", "account1", "pool1", "volume1").create();
+ manager.snapshots().define("snapshot1").withRegion("eastus")
+ .withExistingVolume("myRG", "account1", "pool1", "volume1").create();
}
}
```
@@ -1395,7 +992,8 @@ public final class SnapshotsCreateSamples {
*/
public final class SnapshotsDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json
*/
/**
* Sample code: Snapshots_Delete.
@@ -1403,7 +1001,8 @@ public final class SnapshotsDeleteSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshots().delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE);
+ manager.snapshots().delete("myRG", "account1", "pool1", "volume1", "snapshot1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1416,7 +1015,8 @@ public final class SnapshotsDeleteSamples {
*/
public final class SnapshotsGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json
*/
/**
* Sample code: Snapshots_Get.
@@ -1424,7 +1024,8 @@ public final class SnapshotsGetSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshots().getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE);
+ manager.snapshots().getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1437,7 +1038,8 @@ public final class SnapshotsGetSamples {
*/
public final class SnapshotsListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json
*/
/**
* Sample code: Snapshots_List.
@@ -1461,7 +1063,9 @@ import java.util.Arrays;
*/
public final class SnapshotsRestoreFilesSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.
+ * json
*/
/**
* Sample code: Snapshots_SingleFileRestore.
@@ -1469,7 +1073,9 @@ public final class SnapshotsRestoreFilesSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotsSingleFileRestore(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.snapshots().restoreFiles("myRG", "account1", "pool1", "volume1", "snapshot1", new SnapshotRestoreFiles().withFilePaths(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db")), com.azure.core.util.Context.NONE);
+ manager.snapshots().restoreFiles("myRG", "account1", "pool1", "volume1", "snapshot1",
+ new SnapshotRestoreFiles().withFilePaths(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db")),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1486,7 +1092,8 @@ import java.io.IOException;
*/
public final class SnapshotsUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json
*/
/**
* Sample code: Snapshots_Update.
@@ -1494,7 +1101,10 @@ public final class SnapshotsUpdateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) throws IOException {
- manager.snapshots().update("myRG", "account1", "pool1", "volume1", "snapshot1", SerializerFactory.createDefaultManagementSerializerAdapter().deserialize("{}", Object.class, SerializerEncoding.JSON), com.azure.core.util.Context.NONE);
+ manager.snapshots()
+ .update("myRG", "account1", "pool1", "volume1", "snapshot1", SerializerFactory
+ .createDefaultManagementSerializerAdapter().deserialize("{}", Object.class, SerializerEncoding.JSON),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1507,7 +1117,8 @@ public final class SnapshotsUpdateSamples {
*/
public final class SubvolumesCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json
*/
/**
* Sample code: Subvolumes_Create.
@@ -1515,7 +1126,8 @@ public final class SubvolumesCreateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void subvolumesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.subvolumes().define("subvolume1").withExistingVolume("myRG", "account1", "pool1", "volume1").withPath("/subvolumePath").create();
+ manager.subvolumes().define("subvolume1").withExistingVolume("myRG", "account1", "pool1", "volume1")
+ .withPath("/subvolumePath").create();
}
}
```
@@ -1528,7 +1140,8 @@ public final class SubvolumesCreateSamples {
*/
public final class SubvolumesDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json
*/
/**
* Sample code: Subvolumes_Delete.
@@ -1536,7 +1149,8 @@ public final class SubvolumesDeleteSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void subvolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.subvolumes().delete("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
+ manager.subvolumes().delete("myRG", "account1", "pool1", "volume1", "subvolume1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1549,7 +1163,8 @@ public final class SubvolumesDeleteSamples {
*/
public final class SubvolumesGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json
*/
/**
* Sample code: Subvolumes_Get.
@@ -1557,7 +1172,8 @@ public final class SubvolumesGetSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void subvolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.subvolumes().getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
+ manager.subvolumes().getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1570,7 +1186,8 @@ public final class SubvolumesGetSamples {
*/
public final class SubvolumesGetMetadataSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json
*/
/**
* Sample code: Subvolumes_Metadata.
@@ -1578,7 +1195,8 @@ public final class SubvolumesGetMetadataSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void subvolumesMetadata(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.subvolumes().getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE);
+ manager.subvolumes().getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1591,7 +1209,8 @@ public final class SubvolumesGetMetadataSamples {
*/
public final class SubvolumesListByVolumeSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json
*/
/**
* Sample code: Subvolumes_List.
@@ -1614,7 +1233,8 @@ import com.azure.resourcemanager.netapp.models.SubvolumeInfo;
*/
public final class SubvolumesUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json
*/
/**
* Sample code: Subvolumes_Update.
@@ -1622,7 +1242,9 @@ public final class SubvolumesUpdateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void subvolumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- SubvolumeInfo resource = manager.subvolumes().getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE).getValue();
+ SubvolumeInfo resource = manager.subvolumes()
+ .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE)
+ .getValue();
resource.update().withPath("/subvolumePath").apply();
}
}
@@ -1638,14 +1260,15 @@ import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata;
import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties;
import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy;
import java.util.Arrays;
-import java.util.stream.Collectors;
/**
* Samples for VolumeGroups Create.
*/
public final class VolumeGroupsCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_SapHana.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.
+ * json
*/
/**
* Sample code: VolumeGroups_Create_SapHana.
@@ -1653,11 +1276,102 @@ public final class VolumeGroupsCreateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumeGroups().define("group1").withExistingNetAppAccount("myRG", "account1").withRegion("westus").withGroupMetadata(new VolumeGroupMetadata().withGroupDescription("Volume group").withApplicationType(ApplicationType.SAP_HANA).withApplicationIdentifier("SH9")).withVolumes(Arrays.asList(new VolumeGroupVolumeProperties().withName("test-data-mnt00001").withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withProximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg").withVolumeSpecName("data"), new VolumeGroupVolumeProperties().withName("test-log-mnt00001").withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withProximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg").withVolumeSpecName("log"), new VolumeGroupVolumeProperties().withName("test-shared").withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withProximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg").withVolumeSpecName("shared"), new VolumeGroupVolumeProperties().withName("test-data-backup").withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withProximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg").withVolumeSpecName("data-backup"), new VolumeGroupVolumeProperties().withName("test-log-backup").withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withProximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg").withVolumeSpecName("log-backup"))).create();
- }
-
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json
+ manager
+ .volumeGroups().define("group1").withExistingNetAppAccount("myRG", "account1").withRegion(
+ "westus")
+ .withGroupMetadata(
+ new VolumeGroupMetadata()
+ .withGroupDescription("Volume group").withApplicationType(
+ ApplicationType.SAP_HANA)
+ .withApplicationIdentifier("SH9"))
+ .withVolumes(Arrays.asList(new VolumeGroupVolumeProperties().withName("test-data-mnt00001")
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withProximityPlacementGroup(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ .withVolumeSpecName("data"),
+ new VolumeGroupVolumeProperties().withName("test-log-mnt00001")
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withProximityPlacementGroup(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ .withVolumeSpecName("log"),
+ new VolumeGroupVolumeProperties().withName("test-shared").withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withProximityPlacementGroup(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ .withVolumeSpecName("shared"),
+ new VolumeGroupVolumeProperties().withName("test-data-backup").withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withProximityPlacementGroup(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ .withVolumeSpecName("data-backup"),
+ new VolumeGroupVolumeProperties().withName("test-log-backup").withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withProximityPlacementGroup(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
+ .withVolumeSpecName("log-backup")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json
*/
/**
* Sample code: VolumeGroups_Create_Oracle.
@@ -1665,7 +1379,195 @@ public final class VolumeGroupsCreateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumeGroups().define("group1").withExistingNetAppAccount("myRG", "account1").withRegion("westus").withGroupMetadata(new VolumeGroupMetadata().withGroupDescription("Volume group").withApplicationType(ApplicationType.ORACLE).withApplicationIdentifier("OR2")).withVolumes(Arrays.asList(new VolumeGroupVolumeProperties().withName("test-ora-data1").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-data1"), new VolumeGroupVolumeProperties().withName("test-ora-data2").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-data2"), new VolumeGroupVolumeProperties().withName("test-ora-data3").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-data3"), new VolumeGroupVolumeProperties().withName("test-ora-data4").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-data4"), new VolumeGroupVolumeProperties().withName("test-ora-data5").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-data5"), new VolumeGroupVolumeProperties().withName("test-ora-data6").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-data6"), new VolumeGroupVolumeProperties().withName("test-ora-data7").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-data7"), new VolumeGroupVolumeProperties().withName("test-ora-data8").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-data8"), new VolumeGroupVolumeProperties().withName("test-ora-log").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-log"), new VolumeGroupVolumeProperties().withName("test-ora-log-mirror").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-log-mirror"), new VolumeGroupVolumeProperties().withName("test-ora-binary").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-binary"), new VolumeGroupVolumeProperties().withName("test-ora-backup").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withThroughputMibps(10.0F).withCapacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1").withVolumeSpecName("ora-backup"))).create();
+ manager
+ .volumeGroups().define("group1").withExistingNetAppAccount("myRG", "account1").withRegion(
+ "westus")
+ .withGroupMetadata(
+ new VolumeGroupMetadata()
+ .withGroupDescription("Volume group").withApplicationType(
+ ApplicationType.ORACLE)
+ .withApplicationIdentifier("OR2"))
+ .withVolumes(Arrays.asList(new VolumeGroupVolumeProperties().withName("test-ora-data1")
+ .withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder")
+ .withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data1"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data2").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data2"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data3").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data3"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data4").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data4"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data5").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data5"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data6").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data6"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data7").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data7"),
+ new VolumeGroupVolumeProperties().withName("test-ora-data8").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-data8"),
+ new VolumeGroupVolumeProperties().withName("test-ora-log").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-log"),
+ new VolumeGroupVolumeProperties().withName("test-ora-log-mirror").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-log-mirror"),
+ new VolumeGroupVolumeProperties().withName("test-ora-binary").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-binary"),
+ new VolumeGroupVolumeProperties().withName("test-ora-backup").withZones(Arrays.asList("1"))
+ .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM)
+ .withUsageThreshold(107374182400L)
+ .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule()
+ .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false)
+ .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false)
+ .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false)
+ .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true))))
+ .withProtocolTypes(Arrays.asList("NFSv4.1"))
+ .withSubnetId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withThroughputMibps(10.0F)
+ .withCapacityPoolResourceId(
+ "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
+ .withVolumeSpecName("ora-backup")))
+ .create();
}
}
```
@@ -1678,7 +1580,8 @@ public final class VolumeGroupsCreateSamples {
*/
public final class VolumeGroupsDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json
*/
/**
* Sample code: VolumeGroups_Delete.
@@ -1699,7 +1602,8 @@ public final class VolumeGroupsDeleteSamples {
*/
public final class VolumeGroupsGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_SapHana.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json
*/
/**
* Sample code: VolumeGroups_Get_SapHana.
@@ -1711,7 +1615,8 @@ public final class VolumeGroupsGetSamples {
}
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json
*/
/**
* Sample code: VolumeGroups_Get_Oracle.
@@ -1732,7 +1637,8 @@ public final class VolumeGroupsGetSamples {
*/
public final class VolumeGroupsListByNetAppAccountSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json
*/
/**
* Sample code: VolumeGroups_List_Oracle.
@@ -1744,7 +1650,8 @@ public final class VolumeGroupsListByNetAppAccountSamples {
}
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_SapHana.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json
*/
/**
* Sample code: VolumeGroups_List_SapHana.
@@ -1761,14 +1668,14 @@ public final class VolumeGroupsListByNetAppAccountSamples {
```java
import com.azure.resourcemanager.netapp.models.Type;
-import java.util.stream.Collectors;
/**
* Samples for VolumeQuotaRules Create.
*/
public final class VolumeQuotaRulesCreateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json
*/
/**
* Sample code: VolumeQuotaRules_Create.
@@ -1776,7 +1683,9 @@ public final class VolumeQuotaRulesCreateSamples {
* @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();
+ 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();
}
}
```
@@ -1789,7 +1698,8 @@ public final class VolumeQuotaRulesCreateSamples {
*/
public final class VolumeQuotaRulesDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json
*/
/**
* Sample code: VolumeQuotaRules_Delete.
@@ -1797,7 +1707,8 @@ public final class VolumeQuotaRulesDeleteSamples {
* @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", com.azure.core.util.Context.NONE);
+ manager.volumeQuotaRules().delete("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1810,7 +1721,8 @@ public final class VolumeQuotaRulesDeleteSamples {
*/
public final class VolumeQuotaRulesGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json
*/
/**
* Sample code: VolumeQuotaRules_Get.
@@ -1818,7 +1730,8 @@ public final class VolumeQuotaRulesGetSamples {
* @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", com.azure.core.util.Context.NONE);
+ manager.volumeQuotaRules().getWithResponse("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1831,7 +1744,8 @@ public final class VolumeQuotaRulesGetSamples {
*/
public final class VolumeQuotaRulesListByVolumeSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json
*/
/**
* Sample code: VolumeQuotaRules_List.
@@ -1839,7 +1753,8 @@ public final class VolumeQuotaRulesListByVolumeSamples {
* @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", com.azure.core.util.Context.NONE);
+ manager.volumeQuotaRules().listByVolume("myRG", "account-9957", "pool-5210", "volume-6387",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1854,7 +1769,8 @@ import com.azure.resourcemanager.netapp.models.VolumeQuotaRule;
*/
public final class VolumeQuotaRulesUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json
*/
/**
* Sample code: VolumeQuotaRules_Update.
@@ -1862,7 +1778,8 @@ public final class VolumeQuotaRulesUpdateSamples {
* @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", com.azure.core.util.Context.NONE).getValue();
+ VolumeQuotaRule resource = manager.volumeQuotaRules().getWithResponse("myRG", "account-9957", "pool-5210",
+ "volume-6387", "rule-0004", com.azure.core.util.Context.NONE).getValue();
resource.update().withQuotaSizeInKiBs(100009L).apply();
}
}
@@ -1878,7 +1795,9 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest;
*/
public final class VolumesAuthorizeReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.
+ * json
*/
/**
* Sample code: Volumes_AuthorizeReplication.
@@ -1886,7 +1805,10 @@ public final class VolumesAuthorizeReplicationSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesAuthorizeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().authorizeReplication("myRG", "account1", "pool1", "volume1", new AuthorizeRequest().withRemoteVolumeResourceId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"), com.azure.core.util.Context.NONE);
+ manager.volumes().authorizeReplication("myRG", "account1", "pool1", "volume1",
+ new AuthorizeRequest().withRemoteVolumeResourceId(
+ "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1901,7 +1823,8 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest;
*/
public final class VolumesBreakFileLocksSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json
*/
/**
* Sample code: Volumes_BreakFileLocks.
@@ -1909,7 +1832,9 @@ public final class VolumesBreakFileLocksSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesBreakFileLocks(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().breakFileLocks("myRG", "account1", "pool1", "volume1", new BreakFileLocksRequest().withClientIp("101.102.103.104").withConfirmRunningDisruptiveOperation(true), com.azure.core.util.Context.NONE);
+ manager.volumes().breakFileLocks("myRG", "account1", "pool1", "volume1",
+ new BreakFileLocksRequest().withClientIp("101.102.103.104").withConfirmRunningDisruptiveOperation(true),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1924,7 +1849,8 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest;
*/
public final class VolumesBreakReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json
*/
/**
* Sample code: Volumes_BreakReplication.
@@ -1932,7 +1858,8 @@ public final class VolumesBreakReplicationSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesBreakReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().breakReplication("myRG", "account1", "pool1", "volume1", new BreakReplicationRequest().withForceBreakReplication(false), com.azure.core.util.Context.NONE);
+ manager.volumes().breakReplication("myRG", "account1", "pool1", "volume1",
+ new BreakReplicationRequest().withForceBreakReplication(false), com.azure.core.util.Context.NONE);
}
}
```
@@ -1940,16 +1867,15 @@ public final class VolumesBreakReplicationSamples {
### Volumes_CreateOrUpdate
```java
-import com.azure.resourcemanager.netapp.models.EncryptionKeySource;
import com.azure.resourcemanager.netapp.models.ServiceLevel;
-import java.util.stream.Collectors;
/**
* Samples for Volumes CreateOrUpdate.
*/
public final class VolumesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json
*/
/**
* Sample code: Volumes_CreateOrUpdate.
@@ -1957,7 +1883,11 @@ public final class VolumesCreateOrUpdateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().define("volume1").withRegion("eastus").withExistingCapacityPool("myRG", "account1", "pool1").withCreationToken("my-unique-file-path").withUsageThreshold(107374182400L).withSubnetId("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withServiceLevel(ServiceLevel.PREMIUM).withThroughputMibps(128.0F).withEncryptionKeySource(EncryptionKeySource.MICROSOFT_KEY_VAULT).create();
+ manager.volumes().define("volume1").withRegion("eastus").withExistingCapacityPool("myRG", "account1", "pool1")
+ .withCreationToken("my-unique-file-path").withUsageThreshold(107374182400L)
+ .withSubnetId(
+ "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
+ .withServiceLevel(ServiceLevel.PREMIUM).create();
}
}
```
@@ -1970,7 +1900,8 @@ public final class VolumesCreateOrUpdateSamples {
*/
public final class VolumesDeleteSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json
*/
/**
* Sample code: Volumes_Delete.
@@ -1991,7 +1922,8 @@ public final class VolumesDeleteSamples {
*/
public final class VolumesDeleteReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json
*/
/**
* Sample code: Volumes_DeleteReplication.
@@ -2012,7 +1944,8 @@ public final class VolumesDeleteReplicationSamples {
*/
public final class VolumesFinalizeRelocationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json
*/
/**
* Sample code: Volumes_FinalizeRelocation.
@@ -2033,7 +1966,8 @@ public final class VolumesFinalizeRelocationSamples {
*/
public final class VolumesGetSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json
*/
/**
* Sample code: Volumes_Get.
@@ -2054,7 +1988,8 @@ public final class VolumesGetSamples {
*/
public final class VolumesListSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json
*/
/**
* Sample code: Volumes_List.
@@ -2077,7 +2012,8 @@ import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest;
*/
public final class VolumesListGetGroupIdListForLdapUserSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json
*/
/**
* Sample code: GetGroupIdListForUser.
@@ -2085,7 +2021,8 @@ public final class VolumesListGetGroupIdListForLdapUserSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void getGroupIdListForUser(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().listGetGroupIdListForLdapUser("myRG", "account1", "pool1", "volume1", new GetGroupIdListForLdapUserRequest().withUsername("user1"), com.azure.core.util.Context.NONE);
+ manager.volumes().listGetGroupIdListForLdapUser("myRG", "account1", "pool1", "volume1",
+ new GetGroupIdListForLdapUserRequest().withUsername("user1"), com.azure.core.util.Context.NONE);
}
}
```
@@ -2098,7 +2035,8 @@ public final class VolumesListGetGroupIdListForLdapUserSamples {
*/
public final class VolumesListReplicationsSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json
*/
/**
* Sample code: Volumes_ListReplications.
@@ -2121,7 +2059,8 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest;
*/
public final class VolumesPoolChangeSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json
*/
/**
* Sample code: Volumes_AuthorizeReplication.
@@ -2129,7 +2068,10 @@ public final class VolumesPoolChangeSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesAuthorizeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().poolChange("myRG", "account1", "pool1", "volume1", new PoolChangeRequest().withNewPoolResourceId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), com.azure.core.util.Context.NONE);
+ manager.volumes().poolChange("myRG", "account1", "pool1", "volume1",
+ new PoolChangeRequest().withNewPoolResourceId(
+ "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2142,7 +2084,8 @@ public final class VolumesPoolChangeSamples {
*/
public final class VolumesPopulateAvailabilityZoneSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/
+ * Volumes_PopulateAvailabilityZones.json
*/
/**
* Sample code: Volumes_PopulateAvailabilityZones.
@@ -2150,7 +2093,8 @@ public final class VolumesPopulateAvailabilityZoneSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesPopulateAvailabilityZones(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().populateAvailabilityZone("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ manager.volumes().populateAvailabilityZone("myRG", "account1", "pool1", "volume1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2163,7 +2107,9 @@ public final class VolumesPopulateAvailabilityZoneSamples {
*/
public final class VolumesReInitializeReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication
+ * .json
*/
/**
* Sample code: Volumes_ReInitializeReplication.
@@ -2171,7 +2117,8 @@ public final class VolumesReInitializeReplicationSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesReInitializeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().reInitializeReplication("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ manager.volumes().reInitializeReplication("myRG", "account1", "pool1", "volume1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2186,7 +2133,9 @@ import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest;
*/
public final class VolumesReestablishReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.
+ * json
*/
/**
* Sample code: Volumes_ReestablishReplication.
@@ -2194,7 +2143,10 @@ public final class VolumesReestablishReplicationSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesReestablishReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().reestablishReplication("myRG", "account1", "pool1", "volume1", new ReestablishReplicationRequest().withSourceVolumeId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"), com.azure.core.util.Context.NONE);
+ manager.volumes().reestablishReplication("myRG", "account1", "pool1", "volume1",
+ new ReestablishReplicationRequest().withSourceVolumeId(
+ "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2209,7 +2161,8 @@ import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest;
*/
public final class VolumesRelocateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json
*/
/**
* Sample code: Volumes_Relocate.
@@ -2217,7 +2170,8 @@ public final class VolumesRelocateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesRelocate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().relocate("myRG", "account1", "pool1", "volume1", new RelocateVolumeRequest(), com.azure.core.util.Context.NONE);
+ manager.volumes().relocate("myRG", "account1", "pool1", "volume1", new RelocateVolumeRequest(),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2230,7 +2184,8 @@ public final class VolumesRelocateSamples {
*/
public final class VolumesReplicationStatusSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json
*/
/**
* Sample code: Volumes_ReplicationStatus.
@@ -2238,7 +2193,8 @@ public final class VolumesReplicationStatusSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesReplicationStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().replicationStatusWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
+ manager.volumes().replicationStatusWithResponse("myRG", "account1", "pool1", "volume1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2251,7 +2207,8 @@ public final class VolumesReplicationStatusSamples {
*/
public final class VolumesResetCifsPasswordSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json
*/
/**
* Sample code: Volumes_ResetCifsPassword.
@@ -2272,7 +2229,8 @@ public final class VolumesResetCifsPasswordSamples {
*/
public final class VolumesResyncReplicationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json
*/
/**
* Sample code: Volumes_ResyncReplication.
@@ -2295,7 +2253,8 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert;
*/
public final class VolumesRevertSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json
*/
/**
* Sample code: Volumes_Revert.
@@ -2303,7 +2262,9 @@ public final class VolumesRevertSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesRevert(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().revert("myRG", "account1", "pool1", "volume1", new VolumeRevert().withSnapshotId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"), com.azure.core.util.Context.NONE);
+ manager.volumes().revert("myRG", "account1", "pool1", "volume1", new VolumeRevert().withSnapshotId(
+ "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2316,7 +2277,8 @@ public final class VolumesRevertSamples {
*/
public final class VolumesRevertRelocationSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json
*/
/**
* Sample code: Volumes_RevertRelocation.
@@ -2329,40 +2291,18 @@ public final class VolumesRevertRelocationSamples {
}
```
-### Volumes_SplitCloneFromParent
-
-```java
-/**
- * Samples for Volumes SplitCloneFromParent.
- */
-public final class VolumesSplitCloneFromParentSamples {
- /*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json
- */
- /**
- * Sample code: Volumes_SplitClone.
- *
- * @param manager Entry point to NetAppFilesManager.
- */
- public static void volumesSplitClone(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- manager.volumes().splitCloneFromParent("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Volumes_Update
```java
import com.azure.resourcemanager.netapp.models.Volume;
-import com.azure.resourcemanager.netapp.models.VolumeBackupProperties;
-import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection;
/**
* Samples for Volumes Update.
*/
public final class VolumesUpdateSamples {
/*
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json
+ * x-ms-original-file:
+ * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json
*/
/**
* Sample code: Volumes_Update.
@@ -2370,8 +2310,9 @@ public final class VolumesUpdateSamples {
* @param manager Entry point to NetAppFilesManager.
*/
public static void volumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
- Volume resource = manager.volumes().getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE).getValue();
- resource.update().withDataProtection(new VolumePatchPropertiesDataProtection().withBackup(new VolumeBackupProperties().withPolicyEnforced(false).withBackupEnabled(true).withBackupVaultId("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"))).apply();
+ Volume resource = manager.volumes()
+ .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE).getValue();
+ resource.update().apply();
}
}
```
diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml
index 43edaeabb912..b7df85539e9f 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml
+++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-netapp
- 1.1.0-beta.2
+ 1.1.0
jar
Microsoft Azure SDK for NetAppFiles Management
- This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2023-05.
+ 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-2023-07-01.
https://github.com/Azure/azure-sdk-for-java
@@ -88,8 +88,6 @@
4.11.0
test
-
-
net.bytebuddy
byte-buddy
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 d8661e69069c..71c237b9770f 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
@@ -24,17 +24,11 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.fluent.NetAppManagementClient;
-import com.azure.resourcemanager.netapp.implementation.AccountBackupsImpl;
import com.azure.resourcemanager.netapp.implementation.AccountsImpl;
import com.azure.resourcemanager.netapp.implementation.BackupPoliciesImpl;
-import com.azure.resourcemanager.netapp.implementation.BackupVaultsImpl;
import com.azure.resourcemanager.netapp.implementation.BackupsImpl;
-import com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsImpl;
-import com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsImpl;
-import com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesImpl;
import com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder;
import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsImpl;
-import com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosImpl;
import com.azure.resourcemanager.netapp.implementation.NetAppResourcesImpl;
import com.azure.resourcemanager.netapp.implementation.OperationsImpl;
import com.azure.resourcemanager.netapp.implementation.PoolsImpl;
@@ -44,16 +38,10 @@
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;
import com.azure.resourcemanager.netapp.models.BackupPolicies;
-import com.azure.resourcemanager.netapp.models.BackupVaults;
import com.azure.resourcemanager.netapp.models.Backups;
-import com.azure.resourcemanager.netapp.models.BackupsUnderAccounts;
-import com.azure.resourcemanager.netapp.models.BackupsUnderBackupVaults;
-import com.azure.resourcemanager.netapp.models.BackupsUnderVolumes;
import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits;
-import com.azure.resourcemanager.netapp.models.NetAppResourceRegionInfos;
import com.azure.resourcemanager.netapp.models.NetAppResources;
import com.azure.resourcemanager.netapp.models.Operations;
import com.azure.resourcemanager.netapp.models.Pools;
@@ -81,8 +69,6 @@ public final class NetAppFilesManager {
private NetAppResourceQuotaLimits netAppResourceQuotaLimits;
- private NetAppResourceRegionInfos netAppResourceRegionInfos;
-
private Accounts accounts;
private Pools pools;
@@ -95,8 +81,6 @@ public final class NetAppFilesManager {
private Backups backups;
- private AccountBackups accountBackups;
-
private BackupPolicies backupPolicies;
private VolumeQuotaRules volumeQuotaRules;
@@ -105,14 +89,6 @@ public final class NetAppFilesManager {
private Subvolumes subvolumes;
- private BackupVaults backupVaults;
-
- private BackupsUnderBackupVaults backupsUnderBackupVaults;
-
- private BackupsUnderVolumes backupsUnderVolumes;
-
- private BackupsUnderAccounts backupsUnderAccounts;
-
private final NetAppManagementClient clientObject;
private NetAppFilesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -272,7 +248,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.netapp").append("/")
- .append("1.1.0-beta.1");
+ .append("1.1.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
@@ -348,19 +324,6 @@ public NetAppResourceQuotaLimits netAppResourceQuotaLimits() {
return netAppResourceQuotaLimits;
}
- /**
- * Gets the resource collection API of NetAppResourceRegionInfos.
- *
- * @return Resource collection API of NetAppResourceRegionInfos.
- */
- public NetAppResourceRegionInfos netAppResourceRegionInfos() {
- if (this.netAppResourceRegionInfos == null) {
- this.netAppResourceRegionInfos
- = new NetAppResourceRegionInfosImpl(clientObject.getNetAppResourceRegionInfos(), this);
- }
- return netAppResourceRegionInfos;
- }
-
/**
* Gets the resource collection API of Accounts. It manages NetAppAccount.
*
@@ -422,7 +385,7 @@ public SnapshotPolicies snapshotPolicies() {
}
/**
- * Gets the resource collection API of Backups. It manages Backup.
+ * Gets the resource collection API of Backups.
*
* @return Resource collection API of Backups.
*/
@@ -433,18 +396,6 @@ public Backups backups() {
return backups;
}
- /**
- * 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);
- }
- return accountBackups;
- }
-
/**
* Gets the resource collection API of BackupPolicies. It manages BackupPolicy.
*
@@ -493,55 +444,6 @@ public Subvolumes subvolumes() {
return subvolumes;
}
- /**
- * Gets the resource collection API of BackupVaults. It manages BackupVault.
- *
- * @return Resource collection API of BackupVaults.
- */
- public BackupVaults backupVaults() {
- if (this.backupVaults == null) {
- this.backupVaults = new BackupVaultsImpl(clientObject.getBackupVaults(), this);
- }
- return backupVaults;
- }
-
- /**
- * Gets the resource collection API of BackupsUnderBackupVaults.
- *
- * @return Resource collection API of BackupsUnderBackupVaults.
- */
- public BackupsUnderBackupVaults backupsUnderBackupVaults() {
- if (this.backupsUnderBackupVaults == null) {
- this.backupsUnderBackupVaults
- = new BackupsUnderBackupVaultsImpl(clientObject.getBackupsUnderBackupVaults(), this);
- }
- return backupsUnderBackupVaults;
- }
-
- /**
- * Gets the resource collection API of BackupsUnderVolumes.
- *
- * @return Resource collection API of BackupsUnderVolumes.
- */
- public BackupsUnderVolumes backupsUnderVolumes() {
- if (this.backupsUnderVolumes == null) {
- this.backupsUnderVolumes = new BackupsUnderVolumesImpl(clientObject.getBackupsUnderVolumes(), this);
- }
- return backupsUnderVolumes;
- }
-
- /**
- * Gets the resource collection API of BackupsUnderAccounts.
- *
- * @return Resource collection API of BackupsUnderAccounts.
- */
- public BackupsUnderAccounts backupsUnderAccounts() {
- if (this.backupsUnderAccounts == null) {
- this.backupsUnderAccounts = new BackupsUnderAccountsImpl(clientObject.getBackupsUnderAccounts(), this);
- }
- return backupsUnderAccounts;
- }
-
/**
* Gets wrapped service client NetAppManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountBackupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountBackupsClient.java
deleted file mode 100644
index 0210a2d5ac51..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountBackupsClient.java
+++ /dev/null
@@ -1,152 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.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.BackupInner;
-
-/**
- * An instance of this class provides access to all the operations defined in AccountBackupsClient.
- */
-public interface AccountBackupsClient {
- /**
- * List Backups for a Netapp Account
- *
- * List all Backups for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByNetAppAccount(String resourceGroupName, String accountName);
-
- /**
- * List Backups for a Netapp Account
- *
- * List all Backups for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param includeOnlyBackupsFromDeletedVolumes An option to specify whether to return backups only from deleted
- * volumes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByNetAppAccount(String resourceGroupName, String accountName,
- String includeOnlyBackupsFromDeletedVolumes, Context context);
-
- /**
- * Get Backup for a Netapp Account
- *
- * Gets the specified backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified backup for a Netapp Account along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName, String backupName,
- Context context);
-
- /**
- * Get Backup for a Netapp Account
- *
- * Gets the specified backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified backup for a Netapp Account.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupInner get(String resourceGroupName, String accountName, String backupName);
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupName);
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupName,
- Context context);
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String backupName);
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String backupName, Context context);
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java
index 2e4f838e9140..b82f0b74cb0a 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java
@@ -12,7 +12,6 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner;
-import com.azure.resourcemanager.netapp.models.EncryptionMigrationRequest;
import com.azure.resourcemanager.netapp.models.NetAppAccountPatch;
/**
@@ -367,72 +366,4 @@ SyncPoller, Void> beginRenewCredentials(String resourceGroupNam
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void renewCredentials(String resourceGroupName, String accountName, Context context);
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginMigrateEncryptionKey(String resourceGroupName, String accountName);
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body The required parameters to perform encryption migration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown 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> beginMigrateEncryptionKey(String resourceGroupName, String accountName,
- EncryptionMigrationRequest body, Context context);
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void migrateEncryptionKey(String resourceGroupName, String accountName);
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body The required parameters to perform encryption migration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.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 migrateEncryptionKey(String resourceGroupName, String accountName, EncryptionMigrationRequest body,
- Context context);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java
deleted file mode 100644
index 0abfd494ddcd..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java
+++ /dev/null
@@ -1,299 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner;
-import com.azure.resourcemanager.netapp.models.BackupVaultPatch;
-
-/**
- * An instance of this class provides access to all the operations defined in BackupVaultsClient.
- */
-public interface BackupVaultsClient {
- /**
- * Describe all Backup Vaults
- *
- * List and describe all Backup Vaults in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backup Vaults as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByNetAppAccount(String resourceGroupName, String accountName);
-
- /**
- * Describe all Backup Vaults
- *
- * List and describe all Backup Vaults in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backup Vaults as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, Context context);
-
- /**
- * Describe the Backup Vault
- *
- * Get the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Backup Vault along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName,
- Context context);
-
- /**
- * Describe the Backup Vault
- *
- * Get the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultInner get(String resourceGroupName, String accountName, String backupVaultName);
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault 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 backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BackupVaultInner> beginCreateOrUpdate(String resourceGroupName,
- String accountName, String backupVaultName, BackupVaultInner body);
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault 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 backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BackupVaultInner> beginCreateOrUpdate(String resourceGroupName,
- String accountName, String backupVaultName, BackupVaultInner body, Context context);
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault 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 backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName,
- BackupVaultInner body);
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault 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 backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName,
- BackupVaultInner body, Context context);
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault 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 backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BackupVaultInner> beginUpdate(String resourceGroupName, String accountName,
- String backupVaultName, BackupVaultPatch body);
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault 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 backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BackupVaultInner> beginUpdate(String resourceGroupName, String accountName,
- String backupVaultName, BackupVaultPatch body, Context context);
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault 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 backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName,
- BackupVaultPatch body);
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault 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 backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName, BackupVaultPatch body,
- Context context);
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String accountName,
- String backupVaultName);
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupVaultName,
- Context context);
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String backupVaultName);
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String backupVaultName, Context context);
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java
index 26588b590f70..7bc0fc889803 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java
@@ -6,56 +6,14 @@
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.BackupInner;
-import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner;
import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner;
-import com.azure.resourcemanager.netapp.models.BackupPatch;
/**
* An instance of this class provides access to all the operations defined in BackupsClient.
*/
public interface BackupsClient {
- /**
- * Get the latest backup status of a volume
- *
- * Get the latest status of the backup for a volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the latest status of the backup for a volume along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getLatestStatusWithResponse(String resourceGroupName, String accountName,
- String poolName, String volumeName, Context context);
-
- /**
- * Get the latest backup status of a volume
- *
- * Get the latest status of the backup for a volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the latest status of the backup for a volume.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupStatusInner getLatestStatus(String resourceGroupName, String accountName, String poolName, String volumeName);
-
/**
* Get volume's restore status
*
@@ -92,300 +50,4 @@ Response getVolumeRestoreStatusWithResponse(String resourceG
@ServiceMethod(returns = ReturnType.SINGLE)
RestoreStatusInner getVolumeRestoreStatus(String resourceGroupName, String accountName, String poolName,
String volumeName);
-
- /**
- * List Backups
- *
- * List all backups Under a Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName);
-
- /**
- * List Backups
- *
- * List all backups Under a Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the
- * specified volume.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName,
- String filter, Context context);
-
- /**
- * Describe the Backup under Backup Vault
- *
- * Get the specified Backup under Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Backup under Backup Vault along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName,
- String backupName, Context context);
-
- /**
- * Describe the Backup under Backup Vault
- *
- * Get the specified Backup under Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Backup under Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupInner get(String resourceGroupName, String accountName, String backupVaultName, String backupName);
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BackupInner> beginCreate(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupInner body);
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BackupInner> beginCreate(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupInner body, Context context);
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupInner create(String resourceGroupName, String accountName, String backupVaultName, String backupName,
- BackupInner body);
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupInner create(String resourceGroupName, String accountName, String backupVaultName, String backupName,
- BackupInner body, Context context);
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BackupInner> beginUpdate(String resourceGroupName, String accountName,
- String backupVaultName, String backupName);
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BackupInner> beginUpdate(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupPatch body, Context context);
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName);
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName,
- BackupPatch body, Context context);
-
- /**
- * Delete backup
- *
- * Delete a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupVaultName,
- String backupName);
-
- /**
- * Delete backup
- *
- * Delete a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupVaultName,
- String backupName, Context context);
-
- /**
- * Delete backup
- *
- * Delete a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName);
-
- /**
- * Delete backup
- *
- * Delete a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName,
- Context context);
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java
deleted file mode 100644
index c6c412209142..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
-
-/**
- * An instance of this class provides access to all the operations defined in BackupsUnderAccountsClient.
- */
-public interface BackupsUnderAccountsClient {
- /**
- * Create a new migrate request for backups under account
- *
- * Migrate the backups under a NetApp account to backup vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body Migrate backups under an account payload 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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginMigrateBackups(String resourceGroupName, String accountName,
- BackupsMigrationRequest body);
-
- /**
- * Create a new migrate request for backups under account
- *
- * Migrate the backups under a NetApp account to backup vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body Migrate backups under an account payload 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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginMigrateBackups(String resourceGroupName, String accountName,
- BackupsMigrationRequest body, Context context);
-
- /**
- * Create a new migrate request for backups under account
- *
- * Migrate the backups under a NetApp account to backup vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body Migrate backups under an account payload 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void migrateBackups(String resourceGroupName, String accountName, BackupsMigrationRequest body);
-
- /**
- * Create a new migrate request for backups under account
- *
- * Migrate the backups under a NetApp account to backup vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body Migrate backups under an account payload 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void migrateBackups(String resourceGroupName, String accountName, BackupsMigrationRequest body, Context context);
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java
deleted file mode 100644
index 590bf356e98e..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.netapp.models.BackupRestoreFiles;
-
-/**
- * An instance of this class provides access to all the operations defined in BackupsUnderBackupVaultsClient.
- */
-public interface BackupsUnderBackupVaultsClient {
- /**
- * Create a new Backup Restore Files request
- *
- * Restore the specified files from the specified backup to the active filesystem.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Restore payload 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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRestoreFiles(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupRestoreFiles body);
-
- /**
- * Create a new Backup Restore Files request
- *
- * Restore the specified files from the specified backup to the active filesystem.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Restore payload 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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRestoreFiles(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupRestoreFiles body, Context context);
-
- /**
- * Create a new Backup Restore Files request
- *
- * Restore the specified files from the specified backup to the active filesystem.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Restore payload 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void restoreFiles(String resourceGroupName, String accountName, String backupVaultName, String backupName,
- BackupRestoreFiles body);
-
- /**
- * Create a new Backup Restore Files request
- *
- * Restore the specified files from the specified backup to the active filesystem.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Restore payload 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void restoreFiles(String resourceGroupName, String accountName, String backupVaultName, String backupName,
- BackupRestoreFiles body, Context context);
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java
deleted file mode 100644
index 6f8b97e2af64..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
-
-/**
- * An instance of this class provides access to all the operations defined in BackupsUnderVolumesClient.
- */
-public interface BackupsUnderVolumesClient {
- /**
- * Create a new migrate request for backups under volume
- *
- * Migrate the backups under volume to backup vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @param body Migrate backups under volume payload 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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginMigrateBackups(String resourceGroupName, String accountName,
- String poolName, String volumeName, BackupsMigrationRequest body);
-
- /**
- * Create a new migrate request for backups under volume
- *
- * Migrate the backups under volume to backup vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @param body Migrate backups under volume payload 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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginMigrateBackups(String resourceGroupName, String accountName,
- String poolName, String volumeName, BackupsMigrationRequest body, Context context);
-
- /**
- * Create a new migrate request for backups under volume
- *
- * Migrate the backups under volume to backup vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @param body Migrate backups under volume payload 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void migrateBackups(String resourceGroupName, String accountName, String poolName, String volumeName,
- BackupsMigrationRequest body);
-
- /**
- * Create a new migrate request for backups under volume
- *
- * Migrate the backups under volume to backup vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @param body Migrate backups under volume payload 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void migrateBackups(String resourceGroupName, String accountName, String poolName, String volumeName,
- BackupsMigrationRequest body, Context context);
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java
index a17af7c45614..340aad54fa12 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
@@ -67,13 +67,6 @@ public interface NetAppManagementClient {
*/
NetAppResourceQuotaLimitsClient getNetAppResourceQuotaLimits();
- /**
- * Gets the NetAppResourceRegionInfosClient object to access its operations.
- *
- * @return the NetAppResourceRegionInfosClient object.
- */
- NetAppResourceRegionInfosClient getNetAppResourceRegionInfos();
-
/**
* Gets the AccountsClient object to access its operations.
*
@@ -116,13 +109,6 @@ public interface NetAppManagementClient {
*/
BackupsClient getBackups();
- /**
- * Gets the AccountBackupsClient object to access its operations.
- *
- * @return the AccountBackupsClient object.
- */
- AccountBackupsClient getAccountBackups();
-
/**
* Gets the BackupPoliciesClient object to access its operations.
*
@@ -150,32 +136,4 @@ public interface NetAppManagementClient {
* @return the SubvolumesClient object.
*/
SubvolumesClient getSubvolumes();
-
- /**
- * Gets the BackupVaultsClient object to access its operations.
- *
- * @return the BackupVaultsClient object.
- */
- BackupVaultsClient getBackupVaults();
-
- /**
- * Gets the BackupsUnderBackupVaultsClient object to access its operations.
- *
- * @return the BackupsUnderBackupVaultsClient object.
- */
- BackupsUnderBackupVaultsClient getBackupsUnderBackupVaults();
-
- /**
- * Gets the BackupsUnderVolumesClient object to access its operations.
- *
- * @return the BackupsUnderVolumesClient object.
- */
- BackupsUnderVolumesClient getBackupsUnderVolumes();
-
- /**
- * Gets the BackupsUnderAccountsClient object to access its operations.
- *
- * @return the BackupsUnderAccountsClient object.
- */
- BackupsUnderAccountsClient getBackupsUnderAccounts();
}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java
deleted file mode 100644
index d1077d2c2671..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner;
-
-/**
- * An instance of this class provides access to all the operations defined in NetAppResourceRegionInfosClient.
- */
-public interface NetAppResourceRegionInfosClient {
- /**
- * Describes region specific information.
- *
- * Provides region specific information.
- *
- * @param location The name of the Azure region.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of regionInfo resources as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String location);
-
- /**
- * Describes region specific information.
- *
- * Provides region specific information.
- *
- * @param location The name of the Azure region.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of regionInfo resources as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String location, Context context);
-
- /**
- * Describes region specific information.
- *
- * Provides storage to network proximity and logical zone mapping information.
- *
- * @param location The name of the Azure region.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information regarding regionInfo Item along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String location, Context context);
-
- /**
- * Describes region specific information.
- *
- * Provides storage to network proximity and logical zone mapping information.
- *
- * @param location The name of the Azure region.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information regarding regionInfo Item.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RegionInfoResourceInner get(String location);
-}
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 8e462ed9f30d..b6142c79bf04 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
@@ -549,77 +549,6 @@ SyncPoller, Void> beginResetCifsPassword(String resourceGroupNa
void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName,
Context context);
- /**
- * Split clone from parent volume
- *
- * Split operation to convert clone volume to an independent volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName,
- String poolName, String volumeName);
-
- /**
- * Split clone from parent volume
- *
- * Split operation to convert clone volume to an independent volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName,
- String poolName, String volumeName, Context context);
-
- /**
- * Split clone from parent volume
- *
- * Split operation to convert clone volume to an independent volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName);
-
- /**
- * Split clone from parent volume
- *
- * Split operation to convert clone volume to an independent volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName,
- Context context);
-
/**
* Break file locks
*
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 20f8de0f1a7b..710f5eea907d 100644
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java
+++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java
@@ -39,19 +39,6 @@ public final class AccountProperties {
@JsonProperty(value = "disableShowmount", access = JsonProperty.Access.WRITE_ONLY)
private Boolean disableShowmount;
- /*
- * Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and
- * region and only affect non ldap NFSv4 volumes.
- */
- @JsonProperty(value = "nfsV4IDDomain")
- private String nfsV4IdDomain;
-
- /*
- * This will have true value only if account is Multiple AD enabled.
- */
- @JsonProperty(value = "isMultiAdEnabled", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean isMultiAdEnabled;
-
/**
* Creates an instance of AccountProperties class.
*/
@@ -117,37 +104,6 @@ public Boolean disableShowmount() {
return this.disableShowmount;
}
- /**
- * Get the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
- * accounts in the subscription and region and only affect non ldap NFSv4 volumes.
- *
- * @return the nfsV4IdDomain value.
- */
- public String nfsV4IdDomain() {
- return this.nfsV4IdDomain;
- }
-
- /**
- * Set the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
- * accounts in the subscription and region and only affect non ldap NFSv4 volumes.
- *
- * @param nfsV4IdDomain the nfsV4IdDomain value to set.
- * @return the AccountProperties object itself.
- */
- public AccountProperties withNfsV4IdDomain(String nfsV4IdDomain) {
- this.nfsV4IdDomain = nfsV4IdDomain;
- return this;
- }
-
- /**
- * Get the isMultiAdEnabled property: This will have true value only if account is Multiple AD enabled.
- *
- * @return the isMultiAdEnabled value.
- */
- public Boolean isMultiAdEnabled() {
- return this.isMultiAdEnabled;
- }
-
/**
* Validates the instance.
*
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
deleted file mode 100644
index cf88de99c399..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java
+++ /dev/null
@@ -1,234 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.netapp.models.BackupType;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/**
- * Backup under a Backup Vault.
- */
-@Fluent
-public final class BackupInner extends ProxyResource {
- /*
- * Backup Properties
- */
- @JsonProperty(value = "properties", required = true)
- private BackupProperties innerProperties = new BackupProperties();
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /**
- * Creates an instance of BackupInner class.
- */
- public BackupInner() {
- }
-
- /**
- * Get the innerProperties property: Backup Properties.
- *
- * @return the innerProperties value.
- */
- private BackupProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the backupId property: backupId
- *
- * UUID v4 used to identify the Backup.
- *
- * @return the backupId value.
- */
- public String backupId() {
- return this.innerProperties() == null ? null : this.innerProperties().backupId();
- }
-
- /**
- * Get the creationDate property: creationDate
- *
- * The creation date of the backup.
- *
- * @return the creationDate value.
- */
- public OffsetDateTime creationDate() {
- return this.innerProperties() == null ? null : this.innerProperties().creationDate();
- }
-
- /**
- * Get the provisioningState property: Azure lifecycle management.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the size property: Size of backup in bytes.
- *
- * @return the size value.
- */
- public Long size() {
- return this.innerProperties() == null ? null : this.innerProperties().size();
- }
-
- /**
- * Get the label property: Label for backup.
- *
- * @return the label value.
- */
- public String label() {
- return this.innerProperties() == null ? null : this.innerProperties().label();
- }
-
- /**
- * Set the label property: Label for backup.
- *
- * @param label the label value to set.
- * @return the BackupInner object itself.
- */
- public BackupInner withLabel(String label) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BackupProperties();
- }
- this.innerProperties().withLabel(label);
- return this;
- }
-
- /**
- * Get the backupType property: backupType
- *
- * Type of backup Manual or Scheduled.
- *
- * @return the backupType value.
- */
- public BackupType backupType() {
- return this.innerProperties() == null ? null : this.innerProperties().backupType();
- }
-
- /**
- * Get the failureReason property: Failure reason.
- *
- * @return the failureReason value.
- */
- public String failureReason() {
- return this.innerProperties() == null ? null : this.innerProperties().failureReason();
- }
-
- /**
- * Get the volumeResourceId property: ResourceId used to identify the Volume.
- *
- * @return the volumeResourceId value.
- */
- public String volumeResourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().volumeResourceId();
- }
-
- /**
- * Set the volumeResourceId property: ResourceId used to identify the Volume.
- *
- * @param volumeResourceId the volumeResourceId value to set.
- * @return the BackupInner object itself.
- */
- public BackupInner withVolumeResourceId(String volumeResourceId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BackupProperties();
- }
- this.innerProperties().withVolumeResourceId(volumeResourceId);
- return this;
- }
-
- /**
- * Get the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for
- * scheduled backups and true/false for manual backups.
- *
- * @return the useExistingSnapshot value.
- */
- public Boolean useExistingSnapshot() {
- return this.innerProperties() == null ? null : this.innerProperties().useExistingSnapshot();
- }
-
- /**
- * Set the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for
- * scheduled backups and true/false for manual backups.
- *
- * @param useExistingSnapshot the useExistingSnapshot value to set.
- * @return the BackupInner object itself.
- */
- public BackupInner withUseExistingSnapshot(Boolean useExistingSnapshot) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BackupProperties();
- }
- this.innerProperties().withUseExistingSnapshot(useExistingSnapshot);
- return this;
- }
-
- /**
- * Get the snapshotName property: The name of the snapshot.
- *
- * @return the snapshotName value.
- */
- public String snapshotName() {
- return this.innerProperties() == null ? null : this.innerProperties().snapshotName();
- }
-
- /**
- * Set the snapshotName property: The name of the snapshot.
- *
- * @param snapshotName the snapshotName value to set.
- * @return the BackupInner object itself.
- */
- public BackupInner withSnapshotName(String snapshotName) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BackupProperties();
- }
- this.innerProperties().withSnapshotName(snapshotName);
- return this;
- }
-
- /**
- * Get the backupPolicyResourceId property: ResourceId used to identify the backup policy.
- *
- * @return the backupPolicyResourceId value.
- */
- public String backupPolicyResourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().backupPolicyResourceId();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- 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/BackupPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java
deleted file mode 100644
index c05f14b104ba..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/**
- * Backup patch properties.
- */
-@Fluent
-public final class BackupPatchProperties {
- /*
- * Label for backup
- */
- @JsonProperty(value = "label")
- private String label;
-
- /**
- * Creates an instance of BackupPatchProperties class.
- */
- public BackupPatchProperties() {
- }
-
- /**
- * Get the label property: Label for backup.
- *
- * @return the label value.
- */
- public String label() {
- return this.label;
- }
-
- /**
- * Set the label property: Label for backup.
- *
- * @param label the label value to set.
- * @return the BackupPatchProperties object itself.
- */
- public BackupPatchProperties withLabel(String label) {
- this.label = label;
- 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/fluent/models/BackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java
deleted file mode 100644
index b776f2fd8009..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java
+++ /dev/null
@@ -1,261 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.netapp.models.BackupType;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/**
- * Backup properties.
- */
-@Fluent
-public final class BackupProperties {
- /*
- * backupId
- *
- * UUID v4 used to identify the Backup
- */
- @JsonProperty(value = "backupId", access = JsonProperty.Access.WRITE_ONLY)
- private String backupId;
-
- /*
- * creationDate
- *
- * The creation date of the backup
- */
- @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime creationDate;
-
- /*
- * Azure lifecycle management
- */
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private String provisioningState;
-
- /*
- * Size of backup in bytes
- */
- @JsonProperty(value = "size", access = JsonProperty.Access.WRITE_ONLY)
- private Long size;
-
- /*
- * Label for backup
- */
- @JsonProperty(value = "label")
- private String label;
-
- /*
- * backupType
- *
- * Type of backup Manual or Scheduled
- */
- @JsonProperty(value = "backupType", access = JsonProperty.Access.WRITE_ONLY)
- private BackupType backupType;
-
- /*
- * Failure reason
- */
- @JsonProperty(value = "failureReason", access = JsonProperty.Access.WRITE_ONLY)
- private String failureReason;
-
- /*
- * ResourceId used to identify the Volume
- */
- @JsonProperty(value = "volumeResourceId", required = true)
- private String volumeResourceId;
-
- /*
- * Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for
- * manual backups
- */
- @JsonProperty(value = "useExistingSnapshot")
- private Boolean useExistingSnapshot;
-
- /*
- * The name of the snapshot
- */
- @JsonProperty(value = "snapshotName")
- private String snapshotName;
-
- /*
- * ResourceId used to identify the backup policy
- */
- @JsonProperty(value = "backupPolicyResourceId", access = JsonProperty.Access.WRITE_ONLY)
- private String backupPolicyResourceId;
-
- /**
- * Creates an instance of BackupProperties class.
- */
- public BackupProperties() {
- }
-
- /**
- * Get the backupId property: backupId
- *
- * UUID v4 used to identify the Backup.
- *
- * @return the backupId value.
- */
- public String backupId() {
- return this.backupId;
- }
-
- /**
- * Get the creationDate property: creationDate
- *
- * The creation date of the backup.
- *
- * @return the creationDate value.
- */
- public OffsetDateTime creationDate() {
- return this.creationDate;
- }
-
- /**
- * Get the provisioningState property: Azure lifecycle management.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the size property: Size of backup in bytes.
- *
- * @return the size value.
- */
- public Long size() {
- return this.size;
- }
-
- /**
- * Get the label property: Label for backup.
- *
- * @return the label value.
- */
- public String label() {
- return this.label;
- }
-
- /**
- * Set the label property: Label for backup.
- *
- * @param label the label value to set.
- * @return the BackupProperties object itself.
- */
- public BackupProperties withLabel(String label) {
- this.label = label;
- return this;
- }
-
- /**
- * Get the backupType property: backupType
- *
- * Type of backup Manual or Scheduled.
- *
- * @return the backupType value.
- */
- public BackupType backupType() {
- return this.backupType;
- }
-
- /**
- * Get the failureReason property: Failure reason.
- *
- * @return the failureReason value.
- */
- public String failureReason() {
- return this.failureReason;
- }
-
- /**
- * Get the volumeResourceId property: ResourceId used to identify the Volume.
- *
- * @return the volumeResourceId value.
- */
- public String volumeResourceId() {
- return this.volumeResourceId;
- }
-
- /**
- * Set the volumeResourceId property: ResourceId used to identify the Volume.
- *
- * @param volumeResourceId the volumeResourceId value to set.
- * @return the BackupProperties object itself.
- */
- public BackupProperties withVolumeResourceId(String volumeResourceId) {
- this.volumeResourceId = volumeResourceId;
- return this;
- }
-
- /**
- * Get the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for
- * scheduled backups and true/false for manual backups.
- *
- * @return the useExistingSnapshot value.
- */
- public Boolean useExistingSnapshot() {
- return this.useExistingSnapshot;
- }
-
- /**
- * Set the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for
- * scheduled backups and true/false for manual backups.
- *
- * @param useExistingSnapshot the useExistingSnapshot value to set.
- * @return the BackupProperties object itself.
- */
- public BackupProperties withUseExistingSnapshot(Boolean useExistingSnapshot) {
- this.useExistingSnapshot = useExistingSnapshot;
- return this;
- }
-
- /**
- * Get the snapshotName property: The name of the snapshot.
- *
- * @return the snapshotName value.
- */
- public String snapshotName() {
- return this.snapshotName;
- }
-
- /**
- * Set the snapshotName property: The name of the snapshot.
- *
- * @param snapshotName the snapshotName value to set.
- * @return the BackupProperties object itself.
- */
- public BackupProperties withSnapshotName(String snapshotName) {
- this.snapshotName = snapshotName;
- return this;
- }
-
- /**
- * Get the backupPolicyResourceId property: ResourceId used to identify the backup policy.
- *
- * @return the backupPolicyResourceId value.
- */
- public String backupPolicyResourceId() {
- return this.backupPolicyResourceId;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (volumeResourceId() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property volumeResourceId in model BackupProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(BackupProperties.class);
-}
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
deleted file mode 100644
index d98bfd3cfdbc..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java
+++ /dev/null
@@ -1,166 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.resourcemanager.netapp.models.MirrorState;
-import com.azure.resourcemanager.netapp.models.RelationshipStatus;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/**
- * Backup status.
- */
-@Immutable
-public final class BackupStatusInner {
- /*
- * Backup health status
- */
- @JsonProperty(value = "healthy", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean healthy;
-
- /*
- * Status of the backup mirror relationship
- */
- @JsonProperty(value = "relationshipStatus", access = JsonProperty.Access.WRITE_ONLY)
- private RelationshipStatus relationshipStatus;
-
- /*
- * The status of the backup
- */
- @JsonProperty(value = "mirrorState", access = JsonProperty.Access.WRITE_ONLY)
- private MirrorState mirrorState;
-
- /*
- * Reason for the unhealthy backup relationship
- */
- @JsonProperty(value = "unhealthyReason", access = JsonProperty.Access.WRITE_ONLY)
- private String unhealthyReason;
-
- /*
- * Displays error message if the backup is in an error state
- */
- @JsonProperty(value = "errorMessage", access = JsonProperty.Access.WRITE_ONLY)
- private String errorMessage;
-
- /*
- * Displays the last transfer size
- */
- @JsonProperty(value = "lastTransferSize", access = JsonProperty.Access.WRITE_ONLY)
- private Long lastTransferSize;
-
- /*
- * Displays the last transfer type
- */
- @JsonProperty(value = "lastTransferType", access = JsonProperty.Access.WRITE_ONLY)
- private String lastTransferType;
-
- /*
- * Displays the total bytes transferred
- */
- @JsonProperty(value = "totalTransferBytes", access = JsonProperty.Access.WRITE_ONLY)
- private Long totalTransferBytes;
-
- /*
- * Displays the total number of bytes transferred for the ongoing operation
- */
- @JsonProperty(value = "transferProgressBytes", access = JsonProperty.Access.WRITE_ONLY)
- private Long transferProgressBytes;
-
- /**
- * Creates an instance of BackupStatusInner class.
- */
- public BackupStatusInner() {
- }
-
- /**
- * Get the healthy property: Backup health status.
- *
- * @return the healthy value.
- */
- public Boolean healthy() {
- return this.healthy;
- }
-
- /**
- * Get the relationshipStatus property: Status of the backup mirror relationship.
- *
- * @return the relationshipStatus value.
- */
- public RelationshipStatus relationshipStatus() {
- return this.relationshipStatus;
- }
-
- /**
- * Get the mirrorState property: The status of the backup.
- *
- * @return the mirrorState value.
- */
- public MirrorState mirrorState() {
- return this.mirrorState;
- }
-
- /**
- * Get the unhealthyReason property: Reason for the unhealthy backup relationship.
- *
- * @return the unhealthyReason value.
- */
- public String unhealthyReason() {
- return this.unhealthyReason;
- }
-
- /**
- * Get the errorMessage property: Displays error message if the backup is in an error state.
- *
- * @return the errorMessage value.
- */
- public String errorMessage() {
- return this.errorMessage;
- }
-
- /**
- * Get the lastTransferSize property: Displays the last transfer size.
- *
- * @return the lastTransferSize value.
- */
- public Long lastTransferSize() {
- return this.lastTransferSize;
- }
-
- /**
- * Get the lastTransferType property: Displays the last transfer type.
- *
- * @return the lastTransferType value.
- */
- public String lastTransferType() {
- return this.lastTransferType;
- }
-
- /**
- * Get the totalTransferBytes property: Displays the total bytes transferred.
- *
- * @return the totalTransferBytes value.
- */
- public Long totalTransferBytes() {
- return this.totalTransferBytes;
- }
-
- /**
- * Get the transferProgressBytes property: Displays the total number of bytes transferred for the ongoing
- * operation.
- *
- * @return the transferProgressBytes value.
- */
- public Long transferProgressBytes() {
- return this.transferProgressBytes;
- }
-
- /**
- * 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/fluent/models/BackupVaultInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultInner.java
deleted file mode 100644
index c8c572398b54..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultInner.java
+++ /dev/null
@@ -1,91 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.Map;
-
-/**
- * Backup Vault information.
- */
-@Fluent
-public final class BackupVaultInner extends Resource {
- /*
- * Backup Vault Properties
- */
- @JsonProperty(value = "properties")
- private BackupVaultProperties innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /**
- * Creates an instance of BackupVaultInner class.
- */
- public BackupVaultInner() {
- }
-
- /**
- * Get the innerProperties property: Backup Vault Properties.
- *
- * @return the innerProperties value.
- */
- private BackupVaultProperties 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 BackupVaultInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public BackupVaultInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the provisioningState property: Azure lifecycle management.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * 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/BackupVaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultProperties.java
deleted file mode 100644
index c7c4463e5520..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultProperties.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/**
- * Backup Vault properties.
- */
-@Immutable
-public final class BackupVaultProperties {
- /*
- * Azure lifecycle management
- */
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private String provisioningState;
-
- /**
- * Creates an instance of BackupVaultProperties class.
- */
- public BackupVaultProperties() {
- }
-
- /**
- * Get the provisioningState property: Azure lifecycle management.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * 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/fluent/models/NetAppAccountInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java
index df8933d9f35d..d9137b341670 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
@@ -179,40 +179,6 @@ public Boolean disableShowmount() {
return this.innerProperties() == null ? null : this.innerProperties().disableShowmount();
}
- /**
- * Get the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
- * accounts in the subscription and region and only affect non ldap NFSv4 volumes.
- *
- * @return the nfsV4IdDomain value.
- */
- public String nfsV4IdDomain() {
- return this.innerProperties() == null ? null : this.innerProperties().nfsV4IdDomain();
- }
-
- /**
- * Set the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
- * accounts in the subscription and region and only affect non ldap NFSv4 volumes.
- *
- * @param nfsV4IdDomain the nfsV4IdDomain value to set.
- * @return the NetAppAccountInner object itself.
- */
- public NetAppAccountInner withNfsV4IdDomain(String nfsV4IdDomain) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AccountProperties();
- }
- this.innerProperties().withNfsV4IdDomain(nfsV4IdDomain);
- return this;
- }
-
- /**
- * Get the isMultiAdEnabled property: This will have true value only if account is Multiple AD enabled.
- *
- * @return the isMultiAdEnabled value.
- */
- public Boolean isMultiAdEnabled() {
- return this.innerProperties() == null ? null : this.innerProperties().isMultiAdEnabled();
- }
-
/**
* Validates the instance.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java
deleted file mode 100644
index 2f692008c6fe..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java
+++ /dev/null
@@ -1,122 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem;
-import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/**
- * Information regarding regionInfo Item.
- */
-@Fluent
-public final class RegionInfoResourceInner extends ProxyResource {
- /*
- * regionInfo properties
- */
- @JsonProperty(value = "properties")
- private RegionInfoInner innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /**
- * Creates an instance of RegionInfoResourceInner class.
- */
- public RegionInfoResourceInner() {
- }
-
- /**
- * Get the innerProperties property: regionInfo properties.
- *
- * @return the innerProperties value.
- */
- private RegionInfoInner innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the storageToNetworkProximity property: Storage to Network Proximity
- *
- * Provides storage to network proximity information in the region.
- *
- * @return the storageToNetworkProximity value.
- */
- public RegionStorageToNetworkProximity storageToNetworkProximity() {
- return this.innerProperties() == null ? null : this.innerProperties().storageToNetworkProximity();
- }
-
- /**
- * Set the storageToNetworkProximity property: Storage to Network Proximity
- *
- * Provides storage to network proximity information in the region.
- *
- * @param storageToNetworkProximity the storageToNetworkProximity value to set.
- * @return the RegionInfoResourceInner object itself.
- */
- public RegionInfoResourceInner
- withStorageToNetworkProximity(RegionStorageToNetworkProximity storageToNetworkProximity) {
- if (this.innerProperties() == null) {
- this.innerProperties = new RegionInfoInner();
- }
- this.innerProperties().withStorageToNetworkProximity(storageToNetworkProximity);
- return this;
- }
-
- /**
- * Get the availabilityZoneMappings property: Logical availability zone mappings.
- *
- * Provides logical availability zone mappings for the subscription for a region.
- *
- * @return the availabilityZoneMappings value.
- */
- public List availabilityZoneMappings() {
- return this.innerProperties() == null ? null : this.innerProperties().availabilityZoneMappings();
- }
-
- /**
- * Set the availabilityZoneMappings property: Logical availability zone mappings.
- *
- * Provides logical availability zone mappings for the subscription for a region.
- *
- * @param availabilityZoneMappings the availabilityZoneMappings value to set.
- * @return the RegionInfoResourceInner object itself.
- */
- public RegionInfoResourceInner
- withAvailabilityZoneMappings(List availabilityZoneMappings) {
- if (this.innerProperties() == null) {
- this.innerProperties = new RegionInfoInner();
- }
- this.innerProperties().withAvailabilityZoneMappings(availabilityZoneMappings);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @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/VolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java
index 47e28ca0212e..fc995c0e4827 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
@@ -462,7 +462,7 @@ public List mountTargets() {
/**
* Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication,
- * set type to DataProtection. For creating clone volume, set type to ShortTermClone.
+ * set type to DataProtection.
*
* @return the volumeType value.
*/
@@ -472,7 +472,7 @@ public String volumeType() {
/**
* Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication,
- * set type to DataProtection. For creating clone volume, set type to ShortTermClone.
+ * set type to DataProtection.
*
* @param volumeType the volumeType value to set.
* @return the VolumeInner object itself.
@@ -1281,17 +1281,6 @@ public String originatingResourceId() {
return this.innerProperties() == null ? null : this.innerProperties().originatingResourceId();
}
- /**
- * Get the inheritedSizeInBytes property: inheritedSizeInBytes
- *
- * Space shared by short term clone volume with parent volume in bytes.
- *
- * @return the inheritedSizeInBytes value.
- */
- public Long inheritedSizeInBytes() {
- return this.innerProperties() == null ? null : this.innerProperties().inheritedSizeInBytes();
- }
-
/**
* Validates the instance.
*
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java
index 7378b6a435f4..2d78dc5274e5 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
@@ -154,8 +154,7 @@ public final class VolumeProperties {
private List mountTargets;
/*
- * What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection.
- * For creating clone volume, set type to ShortTermClone
+ * What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection
*/
@JsonProperty(value = "volumeType")
private String volumeType;
@@ -420,14 +419,6 @@ public final class VolumeProperties {
@JsonProperty(value = "originatingResourceId", access = JsonProperty.Access.WRITE_ONLY)
private String originatingResourceId;
- /*
- * inheritedSizeInBytes
- *
- * Space shared by short term clone volume with parent volume in bytes.
- */
- @JsonProperty(value = "inheritedSizeInBytes", access = JsonProperty.Access.WRITE_ONLY)
- private Long inheritedSizeInBytes;
-
/**
* Creates an instance of VolumeProperties class.
*/
@@ -740,7 +731,7 @@ public List mountTargets() {
/**
* Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication,
- * set type to DataProtection. For creating clone volume, set type to ShortTermClone.
+ * set type to DataProtection.
*
* @return the volumeType value.
*/
@@ -750,7 +741,7 @@ public String volumeType() {
/**
* Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication,
- * set type to DataProtection. For creating clone volume, set type to ShortTermClone.
+ * set type to DataProtection.
*
* @param volumeType the volumeType value to set.
* @return the VolumeProperties object itself.
@@ -1475,17 +1466,6 @@ public String originatingResourceId() {
return this.originatingResourceId;
}
- /**
- * Get the inheritedSizeInBytes property: inheritedSizeInBytes
- *
- * Space shared by short term clone volume with parent volume in bytes.
- *
- * @return the inheritedSizeInBytes value.
- */
- public Long inheritedSizeInBytes() {
- return this.inheritedSizeInBytes;
- }
-
/**
* Validates the instance.
*
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
deleted file mode 100644
index 2f31d271503b..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java
+++ /dev/null
@@ -1,670 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.implementation;
-
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.netapp.fluent.AccountBackupsClient;
-import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
-import com.azure.resourcemanager.netapp.models.BackupsList;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in AccountBackupsClient.
- */
-public final class AccountBackupsClientImpl implements AccountBackupsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final AccountBackupsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final NetAppManagementClientImpl client;
-
- /**
- * Initializes an instance of AccountBackupsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- AccountBackupsClientImpl(NetAppManagementClientImpl client) {
- this.service
- = RestProxy.create(AccountBackupsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for NetAppManagementClientAccountBackups to be used by the proxy service
- * to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "NetAppManagementClie")
- public interface AccountBackupsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByNetAppAccount(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @QueryParam("api-version") String apiVersion,
- @QueryParam("includeOnlyBackupsFromDeletedVolumes") String includeOnlyBackupsFromDeletedVolumes,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupName") String backupName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}")
- @ExpectedResponses({ 202, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupName") String backupName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * List Backups for a Netapp Account
- *
- * List all Backups for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param includeOnlyBackupsFromDeletedVolumes An option to specify whether to return backups only from deleted
- * volumes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByNetAppAccountSinglePageAsync(String resourceGroupName,
- String accountName, String includeOnlyBackupsFromDeletedVolumes) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByNetAppAccount(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, accountName, this.client.getApiVersion(),
- includeOnlyBackupsFromDeletedVolumes, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
- res.getHeaders(), res.getValue().value(), null, null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * List Backups for a Netapp Account
- *
- * List all Backups for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param includeOnlyBackupsFromDeletedVolumes An option to specify whether to return backups only from deleted
- * volumes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByNetAppAccountSinglePageAsync(String resourceGroupName,
- String accountName, String includeOnlyBackupsFromDeletedVolumes, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByNetAppAccount(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, this.client.getApiVersion(), includeOnlyBackupsFromDeletedVolumes, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), null, null));
- }
-
- /**
- * List Backups for a Netapp Account
- *
- * List all Backups for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param includeOnlyBackupsFromDeletedVolumes An option to specify whether to return backups only from deleted
- * volumes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName,
- String includeOnlyBackupsFromDeletedVolumes) {
- return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName,
- includeOnlyBackupsFromDeletedVolumes));
- }
-
- /**
- * List Backups for a Netapp Account
- *
- * List all Backups for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName) {
- final String includeOnlyBackupsFromDeletedVolumes = null;
- return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName,
- includeOnlyBackupsFromDeletedVolumes));
- }
-
- /**
- * List Backups for a Netapp Account
- *
- * List all Backups for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param includeOnlyBackupsFromDeletedVolumes An option to specify whether to return backups only from deleted
- * volumes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName,
- String includeOnlyBackupsFromDeletedVolumes, Context context) {
- return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName,
- includeOnlyBackupsFromDeletedVolumes, context));
- }
-
- /**
- * List Backups for a Netapp Account
- *
- * List all Backups for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) {
- final String includeOnlyBackupsFromDeletedVolumes = null;
- return new PagedIterable<>(
- listByNetAppAccountAsync(resourceGroupName, accountName, includeOnlyBackupsFromDeletedVolumes));
- }
-
- /**
- * List Backups for a Netapp Account
- *
- * List all Backups for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param includeOnlyBackupsFromDeletedVolumes An option to specify whether to return backups only from deleted
- * volumes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName,
- String includeOnlyBackupsFromDeletedVolumes, Context context) {
- return new PagedIterable<>(
- listByNetAppAccountAsync(resourceGroupName, accountName, includeOnlyBackupsFromDeletedVolumes, context));
- }
-
- /**
- * Get Backup for a Netapp Account
- *
- * Gets the specified backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified backup for a Netapp Account along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String accountName,
- String backupName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, backupName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get Backup for a Netapp Account
- *
- * Gets the specified backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified backup for a Netapp Account along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String accountName,
- String backupName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName,
- backupName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Get Backup for a Netapp Account
- *
- * Gets the specified backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified backup for a Netapp Account on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String accountName, String backupName) {
- return getWithResponseAsync(resourceGroupName, accountName, backupName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Get Backup for a Netapp Account
- *
- * Gets the specified backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified backup for a Netapp Account along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName, String accountName, String backupName,
- Context context) {
- return getWithResponseAsync(resourceGroupName, accountName, backupName, context).block();
- }
-
- /**
- * Get Backup for a Netapp Account
- *
- * Gets the specified backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified backup for a Netapp Account.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupInner get(String resourceGroupName, String accountName, String backupName) {
- return getWithResponse(resourceGroupName, accountName, backupName, Context.NONE).getValue();
- }
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName,
- String backupName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, backupName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName,
- String backupName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName,
- String backupName) {
- Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, backupName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName,
- String backupName, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, accountName, backupName, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
- }
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName,
- String backupName) {
- return this.beginDeleteAsync(resourceGroupName, accountName, backupName).getSyncPoller();
- }
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName,
- String backupName, Context context) {
- return this.beginDeleteAsync(resourceGroupName, accountName, backupName, context).getSyncPoller();
- }
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String accountName, String backupName) {
- return beginDeleteAsync(resourceGroupName, accountName, backupName).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String accountName, String backupName, Context context) {
- return beginDeleteAsync(resourceGroupName, accountName, backupName, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String accountName, String backupName) {
- deleteAsync(resourceGroupName, accountName, backupName).block();
- }
-
- /**
- * Delete Backup for a Netapp Account
- *
- * Delete the specified Backup for a Netapp Account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String accountName, String backupName, Context context) {
- deleteAsync(resourceGroupName, accountName, backupName, context).block();
- }
-}
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
deleted file mode 100644
index f6579d1ea8ef..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.netapp.fluent.AccountBackupsClient;
-import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
-import com.azure.resourcemanager.netapp.models.AccountBackups;
-import com.azure.resourcemanager.netapp.models.Backup;
-
-public final class AccountBackupsImpl implements AccountBackups {
- private static final ClientLogger LOGGER = new ClientLogger(AccountBackupsImpl.class);
-
- private final AccountBackupsClient innerClient;
-
- private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
-
- public AccountBackupsImpl(AccountBackupsClient innerClient,
- com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) {
- PagedIterable inner = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName);
- return Utils.mapPage(inner, inner1 -> new BackupImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName,
- String includeOnlyBackupsFromDeletedVolumes, Context context) {
- PagedIterable inner = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName,
- includeOnlyBackupsFromDeletedVolumes, context);
- return Utils.mapPage(inner, inner1 -> new BackupImpl(inner1, this.manager()));
- }
-
- public Response getWithResponse(String resourceGroupName, String accountName, String backupName,
- Context context) {
- Response inner
- = this.serviceClient().getWithResponse(resourceGroupName, accountName, backupName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new BackupImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public Backup get(String resourceGroupName, String accountName, String backupName) {
- BackupInner inner = this.serviceClient().get(resourceGroupName, accountName, backupName);
- if (inner != null) {
- return new BackupImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public void delete(String resourceGroupName, String accountName, String backupName) {
- this.serviceClient().delete(resourceGroupName, accountName, backupName);
- }
-
- public void delete(String resourceGroupName, String accountName, String backupName, Context context) {
- this.serviceClient().delete(resourceGroupName, accountName, backupName, context);
- }
-
- private AccountBackupsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.netapp.NetAppFilesManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java
index d99d162dc5f7..57e5d6d92363 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
@@ -35,7 +35,6 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.netapp.fluent.AccountsClient;
import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner;
-import com.azure.resourcemanager.netapp.models.EncryptionMigrationRequest;
import com.azure.resourcemanager.netapp.models.NetAppAccountList;
import com.azure.resourcemanager.netapp.models.NetAppAccountPatch;
import java.nio.ByteBuffer;
@@ -109,14 +108,14 @@ Mono>> createOrUpdate(@HostParam("$host") String endpo
@QueryParam("api-version") String apiVersion, @BodyParam("application/json") NetAppAccountInner body,
@HeaderParam("Accept") String accept, Context context);
- @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}")
@ExpectedResponses({ 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @QueryParam("api-version") String apiVersion, Context context);
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}")
@@ -128,25 +127,14 @@ Mono>> update(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @BodyParam("application/json") NetAppAccountPatch body,
@HeaderParam("Accept") String accept, Context context);
- @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> renewCredentials(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @QueryParam("api-version") String apiVersion, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateEncryption")
- @ExpectedResponses({ 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> migrateEncryptionKey(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") EncryptionMigrationRequest body, @HeaderParam("Accept") String accept,
- Context context);
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@@ -833,9 +821,10 @@ private Mono>> deleteWithResponseAsync(String resource
if (accountName == null) {
return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
}
+ final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, this.client.getApiVersion(), context))
+ resourceGroupName, accountName, this.client.getApiVersion(), accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -870,9 +859,10 @@ private Mono>> deleteWithResponseAsync(String resource
if (accountName == null) {
return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
}
+ final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, this.client.getApiVersion(), context);
+ accountName, this.client.getApiVersion(), accept, context);
}
/**
@@ -1300,9 +1290,10 @@ private Mono>> renewCredentialsWithResponseAsync(Strin
if (accountName == null) {
return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
}
+ final String accept = "application/json";
return FluxUtil
.withContext(context -> service.renewCredentials(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, this.client.getApiVersion(), context))
+ resourceGroupName, accountName, this.client.getApiVersion(), accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1338,9 +1329,10 @@ private Mono>> renewCredentialsWithResponseAsync(Strin
if (accountName == null) {
return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
}
+ final String accept = "application/json";
context = this.client.mergeContext(context);
return service.renewCredentials(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, this.client.getApiVersion(), context);
+ accountName, this.client.getApiVersion(), accept, context);
}
/**
@@ -1500,303 +1492,6 @@ public void renewCredentials(String resourceGroupName, String accountName, Conte
renewCredentialsAsync(resourceGroupName, accountName, context).block();
}
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body The required parameters to perform encryption migration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> migrateEncryptionKeyWithResponseAsync(String resourceGroupName,
- String accountName, EncryptionMigrationRequest body) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (body != null) {
- body.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.migrateEncryptionKey(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, this.client.getApiVersion(), body, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body The required parameters to perform encryption migration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> migrateEncryptionKeyWithResponseAsync(String resourceGroupName,
- String accountName, EncryptionMigrationRequest body, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (body != null) {
- body.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.migrateEncryptionKey(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, this.client.getApiVersion(), body, accept, context);
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body The required parameters to perform encryption migration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginMigrateEncryptionKeyAsync(String resourceGroupName,
- String accountName, EncryptionMigrationRequest body) {
- Mono>> mono
- = migrateEncryptionKeyWithResponseAsync(resourceGroupName, accountName, body);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginMigrateEncryptionKeyAsync(String resourceGroupName,
- String accountName) {
- final EncryptionMigrationRequest body = null;
- Mono>> mono
- = migrateEncryptionKeyWithResponseAsync(resourceGroupName, accountName, body);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body The required parameters to perform encryption migration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginMigrateEncryptionKeyAsync(String resourceGroupName,
- String accountName, EncryptionMigrationRequest body, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = migrateEncryptionKeyWithResponseAsync(resourceGroupName, accountName, body, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginMigrateEncryptionKey(String resourceGroupName, String accountName) {
- final EncryptionMigrationRequest body = null;
- return this.beginMigrateEncryptionKeyAsync(resourceGroupName, accountName, body).getSyncPoller();
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body The required parameters to perform encryption migration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginMigrateEncryptionKey(String resourceGroupName, String accountName,
- EncryptionMigrationRequest body, Context context) {
- return this.beginMigrateEncryptionKeyAsync(resourceGroupName, accountName, body, context).getSyncPoller();
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body The required parameters to perform encryption migration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono migrateEncryptionKeyAsync(String resourceGroupName, String accountName,
- EncryptionMigrationRequest body) {
- return beginMigrateEncryptionKeyAsync(resourceGroupName, accountName, body).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono migrateEncryptionKeyAsync(String resourceGroupName, String accountName) {
- final EncryptionMigrationRequest body = null;
- return beginMigrateEncryptionKeyAsync(resourceGroupName, accountName, body).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body The required parameters to perform encryption migration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono migrateEncryptionKeyAsync(String resourceGroupName, String accountName,
- EncryptionMigrationRequest body, Context context) {
- return beginMigrateEncryptionKeyAsync(resourceGroupName, accountName, body, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void migrateEncryptionKey(String resourceGroupName, String accountName) {
- final EncryptionMigrationRequest body = null;
- migrateEncryptionKeyAsync(resourceGroupName, accountName, body).block();
- }
-
- /**
- * Migrate volumes encryption key source.
- *
- * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault).
- * Operation fails if targeted volumes share encryption sibling set with volumes from another account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param body The required parameters to perform encryption migration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void migrateEncryptionKey(String resourceGroupName, String accountName, EncryptionMigrationRequest body,
- Context context) {
- migrateEncryptionKeyAsync(resourceGroupName, accountName, body, context).block();
- }
-
/**
* Get the next page of items.
*
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 66a3e73bff4e..15aebb81243b 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
@@ -12,7 +12,6 @@
import com.azure.resourcemanager.netapp.fluent.AccountsClient;
import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner;
import com.azure.resourcemanager.netapp.models.Accounts;
-import com.azure.resourcemanager.netapp.models.EncryptionMigrationRequest;
import com.azure.resourcemanager.netapp.models.NetAppAccount;
public final class AccountsImpl implements Accounts {
@@ -30,22 +29,22 @@ public AccountsImpl(AccountsClient innerClient,
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return Utils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return Utils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName) {
PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
- return Utils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context);
- return Utils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager()));
}
public Response getByResourceGroupWithResponse(String resourceGroupName, String accountName,
@@ -85,22 +84,13 @@ public void renewCredentials(String resourceGroupName, String accountName, Conte
this.serviceClient().renewCredentials(resourceGroupName, accountName, context);
}
- public void migrateEncryptionKey(String resourceGroupName, String accountName) {
- this.serviceClient().migrateEncryptionKey(resourceGroupName, accountName);
- }
-
- public void migrateEncryptionKey(String resourceGroupName, String accountName, EncryptionMigrationRequest body,
- Context context) {
- this.serviceClient().migrateEncryptionKey(resourceGroupName, accountName, body, context);
- }
-
public NetAppAccount getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
@@ -109,12 +99,12 @@ public NetAppAccount getById(String id) {
}
public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
@@ -123,12 +113,12 @@ public Response getByIdWithResponse(String id, Context context) {
}
public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
@@ -137,12 +127,12 @@ public void deleteById(String id) {
}
public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
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
deleted file mode 100644
index 806ad2f4575a..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java
+++ /dev/null
@@ -1,193 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
-import com.azure.resourcemanager.netapp.models.Backup;
-import com.azure.resourcemanager.netapp.models.BackupPatch;
-import com.azure.resourcemanager.netapp.models.BackupType;
-import java.time.OffsetDateTime;
-
-public final class BackupImpl implements Backup, Backup.Definition, Backup.Update {
- private BackupInner innerObject;
-
- private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public String backupId() {
- return this.innerModel().backupId();
- }
-
- public OffsetDateTime creationDate() {
- return this.innerModel().creationDate();
- }
-
- public String provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public Long size() {
- return this.innerModel().size();
- }
-
- public String label() {
- return this.innerModel().label();
- }
-
- public BackupType backupType() {
- return this.innerModel().backupType();
- }
-
- public String failureReason() {
- return this.innerModel().failureReason();
- }
-
- public String volumeResourceId() {
- return this.innerModel().volumeResourceId();
- }
-
- public Boolean useExistingSnapshot() {
- return this.innerModel().useExistingSnapshot();
- }
-
- public String snapshotName() {
- return this.innerModel().snapshotName();
- }
-
- public String backupPolicyResourceId() {
- return this.innerModel().backupPolicyResourceId();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public BackupInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.netapp.NetAppFilesManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String accountName;
-
- private String backupVaultName;
-
- private String backupName;
-
- private BackupPatch updateBody;
-
- public BackupImpl withExistingBackupVault(String resourceGroupName, String accountName, String backupVaultName) {
- this.resourceGroupName = resourceGroupName;
- this.accountName = accountName;
- this.backupVaultName = backupVaultName;
- return this;
- }
-
- public Backup create() {
- this.innerObject = serviceManager.serviceClient().getBackups().create(resourceGroupName, accountName,
- backupVaultName, backupName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public Backup create(Context context) {
- this.innerObject = serviceManager.serviceClient().getBackups().create(resourceGroupName, accountName,
- backupVaultName, backupName, this.innerModel(), context);
- return this;
- }
-
- BackupImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
- this.innerObject = new BackupInner();
- this.serviceManager = serviceManager;
- this.backupName = name;
- }
-
- public BackupImpl update() {
- this.updateBody = new BackupPatch();
- return this;
- }
-
- public Backup apply() {
- this.innerObject = serviceManager.serviceClient().getBackups().update(resourceGroupName, accountName,
- backupVaultName, backupName, updateBody, Context.NONE);
- return this;
- }
-
- public Backup apply(Context context) {
- this.innerObject = serviceManager.serviceClient().getBackups().update(resourceGroupName, accountName,
- backupVaultName, backupName, updateBody, context);
- return this;
- }
-
- BackupImpl(BackupInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.accountName = Utils.getValueFromIdByName(innerObject.id(), "netAppAccounts");
- this.backupVaultName = Utils.getValueFromIdByName(innerObject.id(), "backupVaults");
- this.backupName = Utils.getValueFromIdByName(innerObject.id(), "backups");
- }
-
- public Backup refresh() {
- this.innerObject = serviceManager.serviceClient().getBackups()
- .getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, Context.NONE).getValue();
- return this;
- }
-
- public Backup refresh(Context context) {
- this.innerObject = serviceManager.serviceClient().getBackups()
- .getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context).getValue();
- return this;
- }
-
- public BackupImpl withVolumeResourceId(String volumeResourceId) {
- this.innerModel().withVolumeResourceId(volumeResourceId);
- return this;
- }
-
- public BackupImpl withLabel(String label) {
- if (isInCreateMode()) {
- this.innerModel().withLabel(label);
- return this;
- } else {
- this.updateBody.withLabel(label);
- return this;
- }
- }
-
- public BackupImpl withUseExistingSnapshot(Boolean useExistingSnapshot) {
- this.innerModel().withUseExistingSnapshot(useExistingSnapshot);
- return this;
- }
-
- public BackupImpl withSnapshotName(String snapshotName) {
- this.innerModel().withSnapshotName(snapshotName);
- return this;
- }
-
- private boolean isInCreateMode() {
- return this.innerModel().id() == null;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java
index 3c2efd1350e4..18528a6e502f 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
@@ -113,7 +113,7 @@ Mono>> update(@HostParam("$host") String endpoint,
@BodyParam("application/json") BackupPolicyPatch body, @HeaderParam("Accept") String accept,
Context context);
- @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
@@ -121,7 +121,7 @@ Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
@PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
}
/**
@@ -986,9 +986,10 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null."));
}
+ final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, backupPolicyName, this.client.getApiVersion(), context))
+ resourceGroupName, accountName, backupPolicyName, this.client.getApiVersion(), accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1028,9 +1029,10 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null."));
}
+ final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupPolicyName, this.client.getApiVersion(), context);
+ accountName, backupPolicyName, this.client.getApiVersion(), accept, context);
}
/**
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 8143a6a6edac..2c6a5a82263c 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
@@ -29,12 +29,12 @@ public BackupPoliciesImpl(BackupPoliciesClient innerClient,
public PagedIterable list(String resourceGroupName, String accountName) {
PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName);
- return Utils.mapPage(inner, inner1 -> new BackupPolicyImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupPolicyImpl(inner1, this.manager()));
}
public PagedIterable list(String resourceGroupName, String accountName, Context context) {
PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context);
- return Utils.mapPage(inner, inner1 -> new BackupPolicyImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new BackupPolicyImpl(inner1, this.manager()));
}
public Response getWithResponse(String resourceGroupName, String accountName, String backupPolicyName,
@@ -67,17 +67,17 @@ public void delete(String resourceGroupName, String accountName, String backupPo
}
public BackupPolicy getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
}
- String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies");
+ String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "backupPolicies");
if (backupPolicyName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id)));
@@ -86,17 +86,17 @@ public BackupPolicy getById(String id) {
}
public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
}
- String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies");
+ String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "backupPolicies");
if (backupPolicyName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id)));
@@ -105,17 +105,17 @@ public Response getByIdWithResponse(String id, Context context) {
}
public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
}
- String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies");
+ String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "backupPolicies");
if (backupPolicyName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id)));
@@ -124,17 +124,17 @@ public void deleteById(String id) {
}
public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
}
- String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies");
+ String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "backupPolicies");
if (backupPolicyName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id)));
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 31dbaf43fedc..d73207fe4616 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
@@ -163,9 +163,9 @@ public BackupPolicy apply(Context context) {
com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.accountName = Utils.getValueFromIdByName(innerObject.id(), "netAppAccounts");
- this.backupPolicyName = Utils.getValueFromIdByName(innerObject.id(), "backupPolicies");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "netAppAccounts");
+ this.backupPolicyName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "backupPolicies");
}
public BackupPolicy refresh() {
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java
deleted file mode 100644
index df32a32dcbb7..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.implementation;
-
-import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner;
-import com.azure.resourcemanager.netapp.models.BackupStatus;
-import com.azure.resourcemanager.netapp.models.MirrorState;
-import com.azure.resourcemanager.netapp.models.RelationshipStatus;
-
-public final class BackupStatusImpl implements BackupStatus {
- private BackupStatusInner innerObject;
-
- private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
-
- BackupStatusImpl(BackupStatusInner innerObject,
- com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public Boolean healthy() {
- return this.innerModel().healthy();
- }
-
- public RelationshipStatus relationshipStatus() {
- return this.innerModel().relationshipStatus();
- }
-
- public MirrorState mirrorState() {
- return this.innerModel().mirrorState();
- }
-
- public String unhealthyReason() {
- return this.innerModel().unhealthyReason();
- }
-
- public String errorMessage() {
- return this.innerModel().errorMessage();
- }
-
- public Long lastTransferSize() {
- return this.innerModel().lastTransferSize();
- }
-
- public String lastTransferType() {
- return this.innerModel().lastTransferType();
- }
-
- public Long totalTransferBytes() {
- return this.innerModel().totalTransferBytes();
- }
-
- public Long transferProgressBytes() {
- return this.innerModel().transferProgressBytes();
- }
-
- public BackupStatusInner 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/BackupVaultImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java
deleted file mode 100644
index 4908561aadee..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.implementation;
-
-import com.azure.core.management.Region;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner;
-import com.azure.resourcemanager.netapp.models.BackupVault;
-import com.azure.resourcemanager.netapp.models.BackupVaultPatch;
-import java.util.Collections;
-import java.util.Map;
-
-public final class BackupVaultImpl implements BackupVault, BackupVault.Definition, BackupVault.Update {
- private BackupVaultInner innerObject;
-
- private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public String location() {
- return this.innerModel().location();
- }
-
- public Map tags() {
- Map inner = this.innerModel().tags();
- if (inner != null) {
- return Collections.unmodifiableMap(inner);
- } else {
- return Collections.emptyMap();
- }
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public String provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public Region region() {
- return Region.fromName(this.regionName());
- }
-
- public String regionName() {
- return this.location();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public BackupVaultInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.netapp.NetAppFilesManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String accountName;
-
- private String backupVaultName;
-
- private BackupVaultPatch updateBody;
-
- public BackupVaultImpl withExistingNetAppAccount(String resourceGroupName, String accountName) {
- this.resourceGroupName = resourceGroupName;
- this.accountName = accountName;
- return this;
- }
-
- public BackupVault create() {
- this.innerObject = serviceManager.serviceClient().getBackupVaults().createOrUpdate(resourceGroupName,
- accountName, backupVaultName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public BackupVault create(Context context) {
- this.innerObject = serviceManager.serviceClient().getBackupVaults().createOrUpdate(resourceGroupName,
- accountName, backupVaultName, this.innerModel(), context);
- return this;
- }
-
- BackupVaultImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
- this.innerObject = new BackupVaultInner();
- this.serviceManager = serviceManager;
- this.backupVaultName = name;
- }
-
- public BackupVaultImpl update() {
- this.updateBody = new BackupVaultPatch();
- return this;
- }
-
- public BackupVault apply() {
- this.innerObject = serviceManager.serviceClient().getBackupVaults().update(resourceGroupName, accountName,
- backupVaultName, updateBody, Context.NONE);
- return this;
- }
-
- public BackupVault apply(Context context) {
- this.innerObject = serviceManager.serviceClient().getBackupVaults().update(resourceGroupName, accountName,
- backupVaultName, updateBody, context);
- return this;
- }
-
- BackupVaultImpl(BackupVaultInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.accountName = Utils.getValueFromIdByName(innerObject.id(), "netAppAccounts");
- this.backupVaultName = Utils.getValueFromIdByName(innerObject.id(), "backupVaults");
- }
-
- public BackupVault refresh() {
- this.innerObject = serviceManager.serviceClient().getBackupVaults()
- .getWithResponse(resourceGroupName, accountName, backupVaultName, Context.NONE).getValue();
- return this;
- }
-
- public BackupVault refresh(Context context) {
- this.innerObject = serviceManager.serviceClient().getBackupVaults()
- .getWithResponse(resourceGroupName, accountName, backupVaultName, context).getValue();
- return this;
- }
-
- public BackupVaultImpl withRegion(Region location) {
- this.innerModel().withLocation(location.toString());
- return this;
- }
-
- public BackupVaultImpl withRegion(String location) {
- this.innerModel().withLocation(location);
- return this;
- }
-
- public BackupVaultImpl withTags(Map tags) {
- if (isInCreateMode()) {
- this.innerModel().withTags(tags);
- return this;
- } else {
- this.updateBody.withTags(tags);
- return this;
- }
- }
-
- private boolean isInCreateMode() {
- return this.innerModel().id() == null;
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java
deleted file mode 100644
index 522682119808..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java
+++ /dev/null
@@ -1,1270 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.Patch;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.netapp.fluent.BackupVaultsClient;
-import com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner;
-import com.azure.resourcemanager.netapp.models.BackupVaultPatch;
-import com.azure.resourcemanager.netapp.models.BackupVaultsList;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in BackupVaultsClient.
- */
-public final class BackupVaultsClientImpl implements BackupVaultsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final BackupVaultsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final NetAppManagementClientImpl client;
-
- /**
- * Initializes an instance of BackupVaultsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- BackupVaultsClientImpl(NetAppManagementClientImpl client) {
- this.service
- = RestProxy.create(BackupVaultsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for NetAppManagementClientBackupVaults to be used by the proxy service
- * to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "NetAppManagementClie")
- public interface BackupVaultsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByNetAppAccount(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") BackupVaultInner body, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") BackupVaultPatch body, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}")
- @ExpectedResponses({ 202, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupVaultName") String backupVaultName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByNetAppAccountNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Describe all Backup Vaults
- *
- * List and describe all Backup Vaults in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backup Vaults along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByNetAppAccountSinglePageAsync(String resourceGroupName,
- String accountName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.listByNetAppAccount(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, this.client.getApiVersion(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
- res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Describe all Backup Vaults
- *
- * List and describe all Backup Vaults in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backup Vaults along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByNetAppAccountSinglePageAsync(String resourceGroupName,
- String accountName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByNetAppAccount(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, this.client.getApiVersion(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Describe all Backup Vaults
- *
- * List and describe all Backup Vaults in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backup Vaults as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName) {
- return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName),
- nextLink -> listByNetAppAccountNextSinglePageAsync(nextLink));
- }
-
- /**
- * Describe all Backup Vaults
- *
- * List and describe all Backup Vaults in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backup Vaults as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName,
- Context context) {
- return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName, context),
- nextLink -> listByNetAppAccountNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Describe all Backup Vaults
- *
- * List and describe all Backup Vaults in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backup Vaults as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) {
- return new PagedIterable<>(listByNetAppAccountAsync(resourceGroupName, accountName));
- }
-
- /**
- * Describe all Backup Vaults
- *
- * List and describe all Backup Vaults in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backup Vaults as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName,
- Context context) {
- return new PagedIterable<>(listByNetAppAccountAsync(resourceGroupName, accountName, context));
- }
-
- /**
- * Describe the Backup Vault
- *
- * Get the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Backup Vault along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, backupVaultName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Describe the Backup Vault
- *
- * Get the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Backup Vault along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName,
- backupVaultName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Describe the Backup Vault
- *
- * Get the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Backup Vault on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String accountName, String backupVaultName) {
- return getWithResponseAsync(resourceGroupName, accountName, backupVaultName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Describe the Backup Vault
- *
- * Get the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Backup Vault along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName, String accountName,
- String backupVaultName, Context context) {
- return getWithResponseAsync(resourceGroupName, accountName, backupVaultName, context).block();
- }
-
- /**
- * Describe the Backup Vault
- *
- * Get the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupVaultInner get(String resourceGroupName, String accountName, String backupVaultName) {
- return getWithResponse(resourceGroupName, accountName, backupVaultName, Context.NONE).getValue();
- }
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String accountName, String backupVaultName, BackupVaultInner body) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (body == null) {
- return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
- } else {
- body.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, backupVaultName, this.client.getApiVersion(), body, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String accountName, String backupVaultName, BackupVaultInner body, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (body == null) {
- return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
- } else {
- body.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupVaultName, this.client.getApiVersion(), body, accept, context);
- }
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupVaultInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String accountName, String backupVaultName, BackupVaultInner body) {
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, accountName, backupVaultName, body);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- BackupVaultInner.class, BackupVaultInner.class, this.client.getContext());
- }
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupVaultInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String accountName, String backupVaultName, BackupVaultInner body, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, accountName, backupVaultName, body, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- BackupVaultInner.class, BackupVaultInner.class, context);
- }
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupVaultInner> beginCreateOrUpdate(String resourceGroupName,
- String accountName, String backupVaultName, BackupVaultInner body) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, backupVaultName, body).getSyncPoller();
- }
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupVaultInner> beginCreateOrUpdate(String resourceGroupName,
- String accountName, String backupVaultName, BackupVaultInner body, Context context) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, backupVaultName, body, context)
- .getSyncPoller();
- }
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String accountName,
- String backupVaultName, BackupVaultInner body) {
- return beginCreateOrUpdateAsync(resourceGroupName, accountName, backupVaultName, body).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String accountName,
- String backupVaultName, BackupVaultInner body, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, accountName, backupVaultName, body, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName,
- BackupVaultInner body) {
- return createOrUpdateAsync(resourceGroupName, accountName, backupVaultName, body).block();
- }
-
- /**
- * Create or Update a Backup Vault
- *
- * Create or update the specified Backup Vault in the NetApp account.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body BackupVault object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName,
- BackupVaultInner body, Context context) {
- return createOrUpdateAsync(resourceGroupName, accountName, backupVaultName, body, context).block();
- }
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, BackupVaultPatch body) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (body == null) {
- return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
- } else {
- body.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, backupVaultName, this.client.getApiVersion(), body, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, BackupVaultPatch body, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (body == null) {
- return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
- } else {
- body.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupVaultName, this.client.getApiVersion(), body, accept, context);
- }
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupVaultInner> beginUpdateAsync(String resourceGroupName,
- String accountName, String backupVaultName, BackupVaultPatch body) {
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, body);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- BackupVaultInner.class, BackupVaultInner.class, this.client.getContext());
- }
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupVaultInner> beginUpdateAsync(String resourceGroupName,
- String accountName, String backupVaultName, BackupVaultPatch body, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, body, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- BackupVaultInner.class, BackupVaultInner.class, context);
- }
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupVaultInner> beginUpdate(String resourceGroupName,
- String accountName, String backupVaultName, BackupVaultPatch body) {
- return this.beginUpdateAsync(resourceGroupName, accountName, backupVaultName, body).getSyncPoller();
- }
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupVaultInner> beginUpdate(String resourceGroupName,
- String accountName, String backupVaultName, BackupVaultPatch body, Context context) {
- return this.beginUpdateAsync(resourceGroupName, accountName, backupVaultName, body, context).getSyncPoller();
- }
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName,
- BackupVaultPatch body) {
- return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, body).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName,
- BackupVaultPatch body, Context context) {
- return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, body, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName,
- BackupVaultPatch body) {
- return updateAsync(resourceGroupName, accountName, backupVaultName, body).block();
- }
-
- /**
- * Update NetApp Backup Vault
- *
- * Patch the specified NetApp Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param body Backup Vault object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup Vault information.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName,
- BackupVaultPatch body, Context context) {
- return updateAsync(resourceGroupName, accountName, backupVaultName, body, context).block();
- }
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, backupVaultName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupVaultName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName,
- String backupVaultName) {
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, accountName, backupVaultName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName,
- String backupVaultName, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, accountName, backupVaultName, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
- }
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName,
- String backupVaultName) {
- return this.beginDeleteAsync(resourceGroupName, accountName, backupVaultName).getSyncPoller();
- }
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName,
- String backupVaultName, Context context) {
- return this.beginDeleteAsync(resourceGroupName, accountName, backupVaultName, context).getSyncPoller();
- }
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String accountName, String backupVaultName) {
- return beginDeleteAsync(resourceGroupName, accountName, backupVaultName).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String accountName, String backupVaultName,
- Context context) {
- return beginDeleteAsync(resourceGroupName, accountName, backupVaultName, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String accountName, String backupVaultName) {
- deleteAsync(resourceGroupName, accountName, backupVaultName).block();
- }
-
- /**
- * Delete NetApp Backup Vault
- *
- * Delete the specified Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String accountName, String backupVaultName, Context context) {
- deleteAsync(resourceGroupName, accountName, backupVaultName, context).block();
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backup Vaults along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByNetAppAccountNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.listByNetAppAccountNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
- res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backup Vaults along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByNetAppAccountNextSinglePageAsync(String nextLink,
- Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listByNetAppAccountNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-}
diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java
deleted file mode 100644
index a011175dfb83..000000000000
--- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java
+++ /dev/null
@@ -1,159 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.netapp.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.netapp.fluent.BackupVaultsClient;
-import com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner;
-import com.azure.resourcemanager.netapp.models.BackupVault;
-import com.azure.resourcemanager.netapp.models.BackupVaults;
-
-public final class BackupVaultsImpl implements BackupVaults {
- private static final ClientLogger LOGGER = new ClientLogger(BackupVaultsImpl.class);
-
- private final BackupVaultsClient innerClient;
-
- private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager;
-
- public BackupVaultsImpl(BackupVaultsClient innerClient,
- com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) {
- PagedIterable inner
- = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName);
- return Utils.mapPage(inner, inner1 -> new BackupVaultImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName,
- Context context) {
- PagedIterable inner
- = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName, context);
- return Utils.mapPage(inner, inner1 -> new BackupVaultImpl(inner1, this.manager()));
- }
-
- public Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName,
- Context context) {
- Response inner
- = this.serviceClient().getWithResponse(resourceGroupName, accountName, backupVaultName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new BackupVaultImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public BackupVault get(String resourceGroupName, String accountName, String backupVaultName) {
- BackupVaultInner inner = this.serviceClient().get(resourceGroupName, accountName, backupVaultName);
- if (inner != null) {
- return new BackupVaultImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public void delete(String resourceGroupName, String accountName, String backupVaultName) {
- this.serviceClient().delete(resourceGroupName, accountName, backupVaultName);
- }
-
- public void delete(String resourceGroupName, String accountName, String backupVaultName, Context context) {
- this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, context);
- }
-
- public BackupVault getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
- if (accountName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
- }
- String backupVaultName = Utils.getValueFromIdByName(id, "backupVaults");
- if (backupVaultName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id)));
- }
- return this.getWithResponse(resourceGroupName, accountName, backupVaultName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
- if (accountName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
- }
- String backupVaultName = Utils.getValueFromIdByName(id, "backupVaults");
- if (backupVaultName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id)));
- }
- return this.getWithResponse(resourceGroupName, accountName, backupVaultName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
- if (accountName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
- }
- String backupVaultName = Utils.getValueFromIdByName(id, "backupVaults");
- if (backupVaultName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id)));
- }
- this.delete(resourceGroupName, accountName, backupVaultName, Context.NONE);
- }
-
- public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String accountName = Utils.getValueFromIdByName(id, "netAppAccounts");
- if (accountName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id)));
- }
- String backupVaultName = Utils.getValueFromIdByName(id, "backupVaults");
- if (backupVaultName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id)));
- }
- this.delete(resourceGroupName, accountName, backupVaultName, context);
- }
-
- private BackupVaultsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.netapp.NetAppFilesManager manager() {
- return this.serviceManager;
- }
-
- public BackupVaultImpl define(String name) {
- return new BackupVaultImpl(name, this.manager());
- }
-}
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 0be2250addd3..1a4b62827546 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
@@ -4,42 +4,25 @@
package com.azure.resourcemanager.netapp.implementation;
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
import com.azure.core.annotation.ExpectedResponses;
import com.azure.core.annotation.Get;
import com.azure.core.annotation.HeaderParam;
import com.azure.core.annotation.Headers;
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceInterface;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.netapp.fluent.BackupsClient;
-import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
-import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner;
import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner;
-import com.azure.resourcemanager.netapp.models.BackupPatch;
-import com.azure.resourcemanager.netapp.models.BackupsList;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
@@ -73,16 +56,6 @@ public final class BackupsClientImpl implements BackupsClient {
@Host("{$host}")
@ServiceInterface(name = "NetAppManagementClie")
public interface BackupsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getLatestStatus(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus")
@ExpectedResponses({ 200 })
@@ -92,220 +65,6 @@ Mono> getVolumeRestoreStatus(@HostParam("$host") St
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
@PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName,
@QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByVault(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupVaultName") String backupVaultName, @QueryParam("$filter") String filter,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName,
- @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupInner body,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName,
- @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BackupPatch body,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}")
- @ExpectedResponses({ 202, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
- @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByVaultNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Get the latest backup status of a volume
- *
- * Get the latest status of the backup for a volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the latest status of the backup for a volume along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getLatestStatusWithResponseAsync(String resourceGroupName,
- String accountName, String poolName, String volumeName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (poolName == null) {
- return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
- }
- if (volumeName == null) {
- return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.getLatestStatus(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the latest backup status of a volume
- *
- * Get the latest status of the backup for a volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the latest status of the backup for a volume along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getLatestStatusWithResponseAsync(String resourceGroupName,
- String accountName, String poolName, String volumeName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (poolName == null) {
- return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
- }
- if (volumeName == null) {
- return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getLatestStatus(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, poolName, volumeName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Get the latest backup status of a volume
- *
- * Get the latest status of the backup for a volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the latest status of the backup for a volume on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getLatestStatusAsync(String resourceGroupName, String accountName, String poolName,
- String volumeName) {
- return getLatestStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Get the latest backup status of a volume
- *
- * Get the latest status of the backup for a volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the latest status of the backup for a volume along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getLatestStatusWithResponse(String resourceGroupName, String accountName,
- String poolName, String volumeName, Context context) {
- return getLatestStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context).block();
- }
-
- /**
- * Get the latest backup status of a volume
- *
- * Get the latest status of the backup for a volume.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param poolName The name of the capacity pool.
- * @param volumeName The name of the volume.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the latest status of the backup for a volume.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupStatusInner getLatestStatus(String resourceGroupName, String accountName, String poolName,
- String volumeName) {
- return getLatestStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE)
- .getValue();
}
/**
@@ -464,1299 +223,4 @@ public RestoreStatusInner getVolumeRestoreStatus(String resourceGroupName, Strin
return getVolumeRestoreStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE)
.getValue();
}
-
- /**
- * List Backups
- *
- * List all backups Under a Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the
- * specified volume.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByVaultSinglePageAsync(String resourceGroupName, String accountName,
- String backupVaultName, String filter) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByVault(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, accountName, backupVaultName, filter, this.client.getApiVersion(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
- res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * List Backups
- *
- * List all backups Under a Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the
- * specified volume.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByVaultSinglePageAsync(String resourceGroupName, String accountName,
- String backupVaultName, String filter, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByVault(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName,
- backupVaultName, filter, this.client.getApiVersion(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * List Backups
- *
- * List all backups Under a Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the
- * specified volume.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByVaultAsync(String resourceGroupName, String accountName,
- String backupVaultName, String filter) {
- return new PagedFlux<>(
- () -> listByVaultSinglePageAsync(resourceGroupName, accountName, backupVaultName, filter),
- nextLink -> listByVaultNextSinglePageAsync(nextLink));
- }
-
- /**
- * List Backups
- *
- * List all backups Under a Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByVaultAsync(String resourceGroupName, String accountName,
- String backupVaultName) {
- final String filter = null;
- return new PagedFlux<>(
- () -> listByVaultSinglePageAsync(resourceGroupName, accountName, backupVaultName, filter),
- nextLink -> listByVaultNextSinglePageAsync(nextLink));
- }
-
- /**
- * List Backups
- *
- * List all backups Under a Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the
- * specified volume.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByVaultAsync(String resourceGroupName, String accountName,
- String backupVaultName, String filter, Context context) {
- return new PagedFlux<>(
- () -> listByVaultSinglePageAsync(resourceGroupName, accountName, backupVaultName, filter, context),
- nextLink -> listByVaultNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * List Backups
- *
- * List all backups Under a Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByVault(String resourceGroupName, String accountName,
- String backupVaultName) {
- final String filter = null;
- return new PagedIterable<>(listByVaultAsync(resourceGroupName, accountName, backupVaultName, filter));
- }
-
- /**
- * List Backups
- *
- * List all backups Under a Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param filter An option to specify the VolumeResourceId. If present, then only returns the backups under the
- * specified volume.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName,
- String filter, Context context) {
- return new PagedIterable<>(listByVaultAsync(resourceGroupName, accountName, backupVaultName, filter, context));
- }
-
- /**
- * Describe the Backup under Backup Vault
- *
- * Get the specified Backup under Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Backup under Backup Vault along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, String backupName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupVaultName, backupName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Describe the Backup under Backup Vault
- *
- * Get the specified Backup under Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Backup under Backup Vault along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName,
- backupVaultName, backupName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Describe the Backup under Backup Vault
- *
- * Get the specified Backup under Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Backup under Backup Vault on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String accountName, String backupVaultName,
- String backupName) {
- return getWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Describe the Backup under Backup Vault
- *
- * Get the specified Backup under Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Backup under Backup Vault along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName,
- String backupName, Context context) {
- return getWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, context).block();
- }
-
- /**
- * Describe the Backup under Backup Vault
- *
- * Get the specified Backup under Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Backup under Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupInner get(String resourceGroupName, String accountName, String backupVaultName, String backupName) {
- return getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, Context.NONE).getValue();
- }
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupInner body) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- if (body == null) {
- return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
- } else {
- body.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupInner body, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- if (body == null) {
- return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
- } else {
- body.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, context);
- }
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupInner> beginCreateAsync(String resourceGroupName,
- String accountName, String backupVaultName, String backupName, BackupInner body) {
- Mono>> mono
- = createWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- BackupInner.class, BackupInner.class, this.client.getContext());
- }
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupInner> beginCreateAsync(String resourceGroupName,
- String accountName, String backupVaultName, String backupName, BackupInner body, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = createWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- BackupInner.class, BackupInner.class, context);
- }
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupInner> beginCreate(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupInner body) {
- return this.beginCreateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).getSyncPoller();
- }
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupInner> beginCreate(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupInner body, Context context) {
- return this.beginCreateAsync(resourceGroupName, accountName, backupVaultName, backupName, body, context)
- .getSyncPoller();
- }
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(String resourceGroupName, String accountName, String backupVaultName,
- String backupName, BackupInner body) {
- return beginCreateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(String resourceGroupName, String accountName, String backupVaultName,
- String backupName, BackupInner body, Context context) {
- return beginCreateAsync(resourceGroupName, accountName, backupVaultName, backupName, body, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupInner create(String resourceGroupName, String accountName, String backupVaultName, String backupName,
- BackupInner body) {
- return createAsync(resourceGroupName, accountName, backupVaultName, backupName, body).block();
- }
-
- /**
- * Create a backup
- *
- * Create a backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupInner create(String resourceGroupName, String accountName, String backupVaultName, String backupName,
- BackupInner body, Context context) {
- return createAsync(resourceGroupName, accountName, backupVaultName, backupName, body, context).block();
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupPatch body) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- if (body != null) {
- body.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupPatch body, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- if (body != null) {
- body.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupVaultName, backupName, this.client.getApiVersion(), body, accept, context);
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupInner> beginUpdateAsync(String resourceGroupName,
- String accountName, String backupVaultName, String backupName, BackupPatch body) {
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- BackupInner.class, BackupInner.class, this.client.getContext());
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupInner> beginUpdateAsync(String resourceGroupName,
- String accountName, String backupVaultName, String backupName) {
- final BackupPatch body = null;
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- BackupInner.class, BackupInner.class, this.client.getContext());
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupInner> beginUpdateAsync(String resourceGroupName,
- String accountName, String backupVaultName, String backupName, BackupPatch body, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- BackupInner.class, BackupInner.class, context);
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupInner> beginUpdate(String resourceGroupName, String accountName,
- String backupVaultName, String backupName) {
- final BackupPatch body = null;
- return this.beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).getSyncPoller();
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupInner> beginUpdate(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, BackupPatch body, Context context) {
- return this.beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body, context)
- .getSyncPoller();
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName,
- String backupName, BackupPatch body) {
- return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName,
- String backupName) {
- final BackupPatch body = null;
- return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName,
- String backupName, BackupPatch body, Context context) {
- return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName) {
- final BackupPatch body = null;
- return updateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).block();
- }
-
- /**
- * Patch a backup
- *
- * Patch a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param body Backup object supplied in the body of the operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup under a Backup Vault.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName,
- BackupPatch body, Context context) {
- return updateAsync(resourceGroupName, accountName, backupVaultName, backupName, body, context).block();
- }
-
- /**
- * Delete backup
- *
- * Delete a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, String backupName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupVaultName, backupName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Delete backup
- *
- * Delete a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName,
- String backupVaultName, String backupName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (accountName == null) {
- return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
- }
- if (backupVaultName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- accountName, backupVaultName, backupName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Delete backup
- *
- * Delete a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName,
- String backupVaultName, String backupName) {
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Delete backup
- *
- * Delete a Backup under the Backup Vault.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the NetApp account.
- * @param backupVaultName The name of the Backup Vault.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux